RTEMS 4.10.2Annotated Report
Tue Dec 13 18:47:24 2011
0200ada4 <IMFS_Set_handlers>:
{
IMFS_jnode_t *node = loc->node_access;
IMFS_fs_info_t *fs_info;
fs_info = loc->mt_entry->fs_info;
switch( node->type ) {
200ada4: c4 02 00 00 ld [ %o0 ], %g2
)
{
IMFS_jnode_t *node = loc->node_access;
IMFS_fs_info_t *fs_info;
fs_info = loc->mt_entry->fs_info;
200ada8: c2 02 20 10 ld [ %o0 + 0x10 ], %g1
switch( node->type ) {
200adac: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2
200adb0: 84 00 bf ff add %g2, -1, %g2
200adb4: 80 a0 a0 06 cmp %g2, 6
200adb8: 18 80 00 15 bgu 200ae0c <IMFS_Set_handlers+0x68> <== NEVER TAKEN
200adbc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
200adc0: 85 28 a0 02 sll %g2, 2, %g2
200adc4: 07 00 80 2b sethi %hi(0x200ac00), %g3
200adc8: 86 10 e1 88 or %g3, 0x188, %g3 ! 200ad88 <IMFS_create_node+0x110>
200adcc: c4 00 c0 02 ld [ %g3 + %g2 ], %g2
200add0: 81 c0 80 00 jmp %g2
200add4: 01 00 00 00 nop
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
200add8: 10 80 00 0c b 200ae08 <IMFS_Set_handlers+0x64>
200addc: c2 00 60 0c ld [ %g1 + 0xc ], %g1
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
200ade0: 03 00 80 72 sethi %hi(0x201c800), %g1
200ade4: 10 80 00 09 b 200ae08 <IMFS_Set_handlers+0x64>
200ade8: 82 10 60 48 or %g1, 0x48, %g1 ! 201c848 <IMFS_device_handlers>
break;
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
200adec: 03 00 80 72 sethi %hi(0x201c800), %g1
200adf0: 10 80 00 06 b 200ae08 <IMFS_Set_handlers+0x64>
200adf4: 82 10 60 b8 or %g1, 0xb8, %g1 ! 201c8b8 <IMFS_link_handlers>
break;
case IMFS_LINEAR_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
200adf8: 10 80 00 04 b 200ae08 <IMFS_Set_handlers+0x64>
200adfc: c2 00 60 08 ld [ %g1 + 8 ], %g1
break;
case IMFS_FIFO:
loc->handlers = &IMFS_fifo_handlers;
200ae00: 03 00 80 71 sethi %hi(0x201c400), %g1
200ae04: 82 10 63 70 or %g1, 0x370, %g1 ! 201c770 <IMFS_fifo_handlers>
200ae08: c2 22 20 08 st %g1, [ %o0 + 8 ]
break;
}
return 0;
}
200ae0c: 81 c3 e0 08 retl
200ae10: 90 10 20 00 clr %o0
0200abc8 <IMFS_allocate_node>:
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
200abc8: 9d e3 bf 98 save %sp, -104, %sp
struct timeval tv;
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
200abcc: 92 10 20 68 mov 0x68, %o1
200abd0: 7f ff df 39 call 20028b4 <calloc>
200abd4: 90 10 20 01 mov 1, %o0
IMFS_jnode_t *IMFS_allocate_node(
IMFS_jnode_types_t type,
const char *name,
mode_t mode
)
{
200abd8: 92 10 00 19 mov %i1, %o1
/*
* Allocate an IMFS jnode
*/
node = calloc( 1, sizeof( IMFS_jnode_t ) );
if ( !node )
200abdc: 80 a2 20 00 cmp %o0, 0
200abe0: 02 80 00 14 be 200ac30 <IMFS_allocate_node+0x68> <== NEVER TAKEN
200abe4: a0 10 00 08 mov %o0, %l0
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
200abe8: 82 10 20 01 mov 1, %g1
node->type = type;
strncpy( node->name, name, IMFS_NAME_MAX );
200abec: 94 10 20 20 mov 0x20, %o2
return NULL;
/*
* Fill in the basic information
*/
node->st_nlink = 1;
200abf0: c2 32 20 34 sth %g1, [ %o0 + 0x34 ]
node->type = type;
200abf4: f0 22 20 4c st %i0, [ %o0 + 0x4c ]
strncpy( node->name, name, IMFS_NAME_MAX );
200abf8: 40 00 1b 56 call 2011950 <strncpy>
200abfc: 90 02 20 0c add %o0, 0xc, %o0
/*
* Fill in the mode and permission information for the jnode structure.
*/
node->st_mode = mode;
#if defined(RTEMS_POSIX_API)
node->st_uid = geteuid();
200ac00: 40 00 04 da call 200bf68 <geteuid>
200ac04: f4 24 20 30 st %i2, [ %l0 + 0x30 ]
node->st_gid = getegid();
200ac08: 40 00 04 d4 call 200bf58 <getegid>
200ac0c: d0 34 20 3c sth %o0, [ %l0 + 0x3c ]
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
200ac10: 92 10 20 00 clr %o1
* Fill in the mode and permission information for the jnode structure.
*/
node->st_mode = mode;
#if defined(RTEMS_POSIX_API)
node->st_uid = geteuid();
node->st_gid = getegid();
200ac14: d0 34 20 3e sth %o0, [ %l0 + 0x3e ]
#endif
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
200ac18: 7f ff df e3 call 2002ba4 <gettimeofday>
200ac1c: 90 07 bf f8 add %fp, -8, %o0
node->stat_atime = (time_t) tv.tv_sec;
200ac20: c2 07 bf f8 ld [ %fp + -8 ], %g1
node->stat_mtime = (time_t) tv.tv_sec;
node->stat_ctime = (time_t) tv.tv_sec;
200ac24: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
/*
* Now set all the times.
*/
gettimeofday( &tv, 0 );
node->stat_atime = (time_t) tv.tv_sec;
200ac28: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
node->stat_mtime = (time_t) tv.tv_sec;
200ac2c: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
node->stat_ctime = (time_t) tv.tv_sec;
return node;
}
200ac30: 81 c7 e0 08 ret
200ac34: 91 e8 00 10 restore %g0, %l0, %o0
0200ab44 <IMFS_chown>:
int IMFS_chown(
rtems_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
)
{
200ab44: 9d e3 bf 98 save %sp, -104, %sp
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
200ab48: 40 00 05 08 call 200bf68 <geteuid>
200ab4c: e0 06 00 00 ld [ %i0 ], %l0
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
200ab50: 91 2a 20 10 sll %o0, 0x10, %o0
200ab54: 91 32 20 10 srl %o0, 0x10, %o0
200ab58: 80 a2 20 00 cmp %o0, 0
200ab5c: 22 80 00 0c be,a 200ab8c <IMFS_chown+0x48> <== ALWAYS TAKEN
200ab60: f2 34 20 3c sth %i1, [ %l0 + 0x3c ]
200ab64: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
200ab68: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
200ab6c: 22 80 00 08 be,a 200ab8c <IMFS_chown+0x48> <== NOT EXECUTED
200ab70: f2 34 20 3c sth %i1, [ %l0 + 0x3c ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
200ab74: 40 00 17 75 call 2010948 <__errno> <== NOT EXECUTED
200ab78: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ab7c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
200ab80: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ab84: 81 c7 e0 08 ret <== NOT EXECUTED
200ab88: 81 e8 00 00 restore <== NOT EXECUTED
#endif
jnode->st_uid = owner;
jnode->st_gid = group;
200ab8c: f4 34 20 3e sth %i2, [ %l0 + 0x3e ]
IMFS_update_ctime( jnode );
200ab90: 90 07 bf f8 add %fp, -8, %o0
200ab94: 7f ff e0 04 call 2002ba4 <gettimeofday>
200ab98: 92 10 20 00 clr %o1
200ab9c: c2 07 bf f8 ld [ %fp + -8 ], %g1
200aba0: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
return 0;
}
200aba4: 81 c7 e0 08 ret
200aba8: 91 e8 20 00 restore %g0, 0, %o0
0200ac78 <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
200ac78: 9d e3 bf a0 save %sp, -96, %sp
200ac7c: a0 10 00 18 mov %i0, %l0
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
200ac80: 80 a6 20 00 cmp %i0, 0
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
200ac84: 92 10 00 1a mov %i2, %o1
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
200ac88: 02 80 00 3e be 200ad80 <IMFS_create_node+0x108> <== NEVER TAKEN
200ac8c: b0 10 20 00 clr %i0
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
200ac90: 03 00 80 76 sethi %hi(0x201d800), %g1
200ac94: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 <rtems_current_user_env>
200ac98: 90 10 00 19 mov %i1, %o0
200ac9c: d4 00 60 2c ld [ %g1 + 0x2c ], %o2
200aca0: 7f ff ff ca call 200abc8 <IMFS_allocate_node>
200aca4: 94 2e c0 0a andn %i3, %o2, %o2
if ( !node )
200aca8: b0 92 20 00 orcc %o0, 0, %i0
200acac: 02 80 00 35 be 200ad80 <IMFS_create_node+0x108> <== NEVER TAKEN
200acb0: b2 06 7f ff add %i1, -1, %i1
return NULL;
/*
* Set the type specific information
*/
switch (type) {
200acb4: 80 a6 60 06 cmp %i1, 6
200acb8: 38 80 00 20 bgu,a 200ad38 <IMFS_create_node+0xc0> <== NEVER TAKEN
200acbc: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200acc0: b3 2e 60 02 sll %i1, 2, %i1
200acc4: 03 00 80 2a sethi %hi(0x200a800), %g1
200acc8: 82 10 63 ac or %g1, 0x3ac, %g1 ! 200abac <IMFS_chown+0x68>
200accc: c2 00 40 19 ld [ %g1 + %i1 ], %g1
200acd0: 81 c0 40 00 jmp %g1
200acd4: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200acd8: 82 06 20 54 add %i0, 0x54, %g1
the_chain->permanent_null = NULL;
200acdc: c0 26 20 54 clr [ %i0 + 0x54 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200ace0: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200ace4: 82 06 20 50 add %i0, 0x50, %g1
200ace8: 10 80 00 1b b 200ad54 <IMFS_create_node+0xdc>
200acec: c2 26 20 58 st %g1, [ %i0 + 0x58 ]
case IMFS_HARD_LINK:
node->info.hard_link.link_node = info->hard_link.link_node;
break;
case IMFS_SYM_LINK:
node->info.sym_link.name = info->sym_link.name;
200acf0: 10 80 00 05 b 200ad04 <IMFS_create_node+0x8c>
200acf4: c2 07 00 00 ld [ %i4 ], %g1
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
node->info.device.minor = info->device.minor;
200acf8: c4 07 20 04 ld [ %i4 + 4 ], %g2
case IMFS_SYM_LINK:
node->info.sym_link.name = info->sym_link.name;
break;
case IMFS_DEVICE:
node->info.device.major = info->device.major;
200acfc: c2 07 00 00 ld [ %i4 ], %g1
node->info.device.minor = info->device.minor;
200ad00: c4 26 20 54 st %g2, [ %i0 + 0x54 ]
break;
200ad04: 10 80 00 14 b 200ad54 <IMFS_create_node+0xdc>
200ad08: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
case IMFS_LINEAR_FILE:
node->info.linearfile.size = 0;
200ad0c: c0 26 20 50 clr [ %i0 + 0x50 ] <== NOT EXECUTED
200ad10: c0 26 20 54 clr [ %i0 + 0x54 ] <== NOT EXECUTED
node->info.linearfile.direct = 0;
200ad14: c0 26 20 58 clr [ %i0 + 0x58 ] <== NOT EXECUTED
case IMFS_MEMORY_FILE:
node->info.file.size = 0;
200ad18: c0 26 20 50 clr [ %i0 + 0x50 ]
200ad1c: c0 26 20 54 clr [ %i0 + 0x54 ]
node->info.file.indirect = 0;
200ad20: c0 26 20 58 clr [ %i0 + 0x58 ]
node->info.file.doubly_indirect = 0;
200ad24: c0 26 20 5c clr [ %i0 + 0x5c ]
node->info.file.triply_indirect = 0;
break;
200ad28: 10 80 00 0b b 200ad54 <IMFS_create_node+0xdc>
200ad2c: c0 26 20 60 clr [ %i0 + 0x60 ]
case IMFS_FIFO:
node->info.fifo.pipe = NULL;
break;
200ad30: 10 80 00 09 b 200ad54 <IMFS_create_node+0xdc>
200ad34: c0 26 20 50 clr [ %i0 + 0x50 ]
default:
assert(0);
200ad38: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200ad3c: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200ad40: 90 12 22 98 or %o0, 0x298, %o0 <== NOT EXECUTED
200ad44: 94 12 a2 f0 or %o2, 0x2f0, %o2 <== NOT EXECUTED
200ad48: 96 12 e2 e8 or %o3, 0x2e8, %o3 <== NOT EXECUTED
200ad4c: 40 00 04 05 call 200bd60 <__assert_func> <== NOT EXECUTED
200ad50: 92 10 20 5c mov 0x5c, %o1 <== NOT EXECUTED
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
fs_info = parent_loc->mt_entry->fs_info;
200ad54: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
parent = parent_loc->node_access;
200ad58: d0 04 00 00 ld [ %l0 ], %o0
fs_info = parent_loc->mt_entry->fs_info;
200ad5c: c4 00 60 34 ld [ %g1 + 0x34 ], %g2
node->Parent = parent;
200ad60: d0 26 20 08 st %o0, [ %i0 + 8 ]
node->st_ino = ++fs_info->ino_count;
200ad64: c2 00 a0 04 ld [ %g2 + 4 ], %g1
200ad68: 90 02 20 50 add %o0, 0x50, %o0
200ad6c: 82 00 60 01 inc %g1
200ad70: c2 20 a0 04 st %g1, [ %g2 + 4 ]
200ad74: c2 26 20 38 st %g1, [ %i0 + 0x38 ]
200ad78: 7f ff ef e9 call 2006d1c <_Chain_Append>
200ad7c: 92 10 00 18 mov %i0, %o1
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
200ad80: 81 c7 e0 08 ret
200ad84: 81 e8 00 00 restore
0200ac38 <IMFS_create_root_node>:
IMFS_jnode_t *IMFS_create_root_node(void)
{
200ac38: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( IMFS_DIRECTORY, "", (S_IFDIR | 0755) );
200ac3c: 90 10 20 01 mov 1, %o0
200ac40: 13 00 80 71 sethi %hi(0x201c400), %o1
200ac44: 15 00 00 10 sethi %hi(0x4000), %o2
200ac48: 92 12 62 90 or %o1, 0x290, %o1
200ac4c: 7f ff ff df call 200abc8 <IMFS_allocate_node>
200ac50: 94 12 a1 ed or %o2, 0x1ed, %o2
if ( !node )
200ac54: 80 a2 20 00 cmp %o0, 0
200ac58: 02 80 00 06 be 200ac70 <IMFS_create_root_node+0x38> <== NEVER TAKEN
200ac5c: 82 02 20 54 add %o0, 0x54, %g1
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
200ac60: c0 22 20 54 clr [ %o0 + 0x54 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200ac64: c2 22 20 50 st %g1, [ %o0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200ac68: 82 02 20 50 add %o0, 0x50, %g1
200ac6c: c2 22 20 58 st %g1, [ %o0 + 0x58 ]
* NOTE: Root node is always a directory.
*/
rtems_chain_initialize_empty(&node->info.directory.Entries);
return node;
}
200ac70: 81 c7 e0 08 ret
200ac74: 91 e8 00 08 restore %g0, %o0, %o0
02004948 <IMFS_dump_directory>:
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
2004948: 9d e3 bf a0 save %sp, -96, %sp
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
int i;
assert( the_directory );
200494c: 80 a6 20 00 cmp %i0, 0
2004950: 12 80 00 0a bne 2004978 <IMFS_dump_directory+0x30> <== ALWAYS TAKEN
2004954: 80 a6 60 00 cmp %i1, 0
2004958: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
200495c: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
2004960: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED
2004964: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED
2004968: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED
200496c: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED
2004970: 10 80 00 0b b 200499c <IMFS_dump_directory+0x54> <== NOT EXECUTED
2004974: 92 10 20 84 mov 0x84, %o1 <== NOT EXECUTED
assert( level >= 0 );
2004978: 36 80 00 0b bge,a 20049a4 <IMFS_dump_directory+0x5c> <== ALWAYS TAKEN
200497c: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
2004980: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
2004984: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
2004988: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED
200498c: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED
2004990: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED
2004994: 96 12 e0 98 or %o3, 0x98, %o3 <== NOT EXECUTED
2004998: 92 10 20 86 mov 0x86, %o1 <== NOT EXECUTED
200499c: 40 00 02 29 call 2005240 <__assert_func> <== NOT EXECUTED
20049a0: 01 00 00 00 nop <== NOT EXECUTED
assert( the_directory->type == IMFS_DIRECTORY );
20049a4: 80 a0 60 01 cmp %g1, 1
20049a8: 02 80 00 0a be 20049d0 <IMFS_dump_directory+0x88> <== ALWAYS TAKEN
20049ac: 29 00 80 9c sethi %hi(0x2027000), %l4
20049b0: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
20049b4: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
20049b8: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED
20049bc: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED
20049c0: 94 12 a1 98 or %o2, 0x198, %o2 <== NOT EXECUTED
20049c4: 96 12 e0 a8 or %o3, 0xa8, %o3 <== NOT EXECUTED
20049c8: 10 bf ff f5 b 200499c <IMFS_dump_directory+0x54> <== NOT EXECUTED
20049cc: 92 10 20 88 mov 0x88, %o1 <== NOT EXECUTED
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
20049d0: 27 00 80 94 sethi %hi(0x2025000), %l3
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
20049d4: aa 06 20 54 add %i0, 0x54, %l5
20049d8: a8 15 20 70 or %l4, 0x70, %l4
20049dc: a6 14 e0 d0 or %l3, 0xd0, %l3
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
20049e0: e0 06 20 50 ld [ %i0 + 0x50 ], %l0
20049e4: 10 80 00 14 b 2004a34 <IMFS_dump_directory+0xec>
20049e8: a4 06 60 01 add %i1, 1, %l2
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
20049ec: c2 05 00 00 ld [ %l4 ], %g1
20049f0: 90 10 00 13 mov %l3, %o0
20049f4: d2 00 60 08 ld [ %g1 + 8 ], %o1
20049f8: 40 00 41 d0 call 2015138 <fputs>
20049fc: a2 04 60 01 inc %l1
!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++ )
2004a00: 80 a4 40 19 cmp %l1, %i1
2004a04: 24 bf ff fb ble,a 20049f0 <IMFS_dump_directory+0xa8>
2004a08: c2 05 00 00 ld [ %l4 ], %g1
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
2004a0c: 7f ff ff 71 call 20047d0 <IMFS_print_jnode>
2004a10: 90 10 00 10 mov %l0, %o0
if ( the_jnode->type == IMFS_DIRECTORY )
2004a14: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
2004a18: 80 a0 60 01 cmp %g1, 1
2004a1c: 32 80 00 06 bne,a 2004a34 <IMFS_dump_directory+0xec>
2004a20: e0 04 00 00 ld [ %l0 ], %l0
IMFS_dump_directory( the_jnode, level + 1 );
2004a24: 90 10 00 10 mov %l0, %o0
2004a28: 7f ff ff c8 call 2004948 <IMFS_dump_directory>
2004a2c: 92 10 00 12 mov %l2, %o1
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
2004a30: e0 04 00 00 ld [ %l0 ], %l0
assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = the_chain->first;
2004a34: 80 a4 00 15 cmp %l0, %l5
2004a38: 12 bf ff ed bne 20049ec <IMFS_dump_directory+0xa4>
2004a3c: a2 10 20 00 clr %l1
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
}
}
2004a40: 81 c7 e0 08 ret
2004a44: 81 e8 00 00 restore
0200afa4 <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
200afa4: 9d e3 bf 78 save %sp, -136, %sp
IMFS_token_types type = IMFS_CURRENT_DIR;
char token[ IMFS_NAME_MAX + 1 ];
IMFS_jnode_t *node;
int result;
if ( !rtems_libio_is_valid_perms( flags ) ) {
200afa8: 80 8e bf f8 btst -8, %i2
200afac: 02 80 00 0a be 200afd4 <IMFS_eval_path+0x30> <== ALWAYS TAKEN
200afb0: a0 10 00 18 mov %i0, %l0
assert( 0 );
200afb4: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200afb8: 15 00 80 71 sethi %hi(0x201c400), %o2 <== NOT EXECUTED
200afbc: 17 00 80 71 sethi %hi(0x201c400), %o3 <== NOT EXECUTED
200afc0: 90 12 23 18 or %o0, 0x318, %o0 <== NOT EXECUTED
200afc4: 94 12 a3 08 or %o2, 0x308, %o2 <== NOT EXECUTED
200afc8: 96 12 e3 68 or %o3, 0x368, %o3 <== NOT EXECUTED
200afcc: 40 00 03 65 call 200bd60 <__assert_func> <== NOT EXECUTED
200afd0: 92 10 22 08 mov 0x208, %o1 <== 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 )
200afd4: 2b 00 80 76 sethi %hi(0x201d800), %l5
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200afd8: e2 06 c0 00 ld [ %i3 ], %l1
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200afdc: aa 15 60 70 or %l5, 0x70, %l5
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200afe0: a4 10 20 00 clr %l2
200afe4: ac 10 20 01 mov 1, %l6
* 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 );
200afe8: a6 07 bf d8 add %fp, -40, %l3
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
200afec: 10 80 00 94 b 200b23c <IMFS_eval_path+0x298>
200aff0: a8 07 bf fc add %fp, -4, %l4
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
200aff4: 90 04 00 12 add %l0, %l2, %o0
200aff8: 92 10 00 19 mov %i1, %o1
200affc: 94 10 00 13 mov %l3, %o2
200b000: 40 00 02 b4 call 200bad0 <IMFS_get_token>
200b004: 96 10 00 14 mov %l4, %o3
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
200b008: c2 06 c0 00 ld [ %i3 ], %g1
* 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 );
200b00c: ac 10 00 08 mov %o0, %l6
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
200b010: 80 a0 60 00 cmp %g1, 0
200b014: 02 80 00 52 be 200b15c <IMFS_eval_path+0x1b8> <== NEVER TAKEN
200b018: f0 07 bf fc ld [ %fp + -4 ], %i0
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
200b01c: 80 a2 20 00 cmp %o0, 0
200b020: 22 80 00 10 be,a 200b060 <IMFS_eval_path+0xbc>
200b024: a4 04 80 18 add %l2, %i0, %l2
if ( node->type == IMFS_DIRECTORY )
200b028: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200b02c: 80 a0 60 01 cmp %g1, 1
200b030: 32 80 00 0c bne,a 200b060 <IMFS_eval_path+0xbc>
200b034: a4 04 80 18 add %l2, %i0, %l2
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
200b038: 90 10 00 1b mov %i3, %o0
200b03c: 7f ff ff 76 call 200ae14 <IMFS_evaluate_permission>
200b040: 92 10 20 01 mov 1, %o1
200b044: 80 a2 20 00 cmp %o0, 0
200b048: 32 80 00 06 bne,a 200b060 <IMFS_eval_path+0xbc>
200b04c: a4 04 80 18 add %l2, %i0, %l2
rtems_set_errno_and_return_minus_one( EACCES );
200b050: 40 00 16 3e call 2010948 <__errno>
200b054: b0 10 3f ff mov -1, %i0
200b058: 10 80 00 76 b 200b230 <IMFS_eval_path+0x28c>
200b05c: 82 10 20 0d mov 0xd, %g1
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
200b060: b2 26 40 18 sub %i1, %i0, %i1
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
200b064: 80 a5 a0 03 cmp %l6, 3
200b068: 02 80 00 1b be 200b0d4 <IMFS_eval_path+0x130>
200b06c: e2 06 c0 00 ld [ %i3 ], %l1
200b070: 80 a5 a0 04 cmp %l6, 4
200b074: 02 80 00 6c be 200b224 <IMFS_eval_path+0x280>
200b078: 80 a5 a0 02 cmp %l6, 2
200b07c: 12 80 00 71 bne 200b240 <IMFS_eval_path+0x29c>
200b080: 80 a5 a0 04 cmp %l6, 4
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200b084: c2 05 40 00 ld [ %l5 ], %g1
200b088: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
200b08c: 80 a4 40 01 cmp %l1, %g1
200b090: 02 bf ff da be 200aff8 <IMFS_eval_path+0x54>
200b094: 90 04 00 12 add %l0, %l2, %o0
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
200b098: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
200b09c: c2 02 60 1c ld [ %o1 + 0x1c ], %g1
200b0a0: 80 a4 40 01 cmp %l1, %g1
200b0a4: 32 80 00 04 bne,a 200b0b4 <IMFS_eval_path+0x110>
200b0a8: e2 04 60 08 ld [ %l1 + 8 ], %l1
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
200b0ac: 10 80 00 71 b 200b270 <IMFS_eval_path+0x2cc>
200b0b0: 92 02 60 08 add %o1, 8, %o1
return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
200b0b4: 80 a4 60 00 cmp %l1, 0
200b0b8: 32 bf ff cf bne,a 200aff4 <IMFS_eval_path+0x50>
200b0bc: e2 26 c0 00 st %l1, [ %i3 ]
rtems_set_errno_and_return_minus_one( ENOENT );
200b0c0: 40 00 16 22 call 2010948 <__errno>
200b0c4: b0 10 3f ff mov -1, %i0
200b0c8: ec 22 00 00 st %l6, [ %o0 ]
200b0cc: 81 c7 e0 08 ret
200b0d0: 81 e8 00 00 restore
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
200b0d4: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200b0d8: 80 a0 60 03 cmp %g1, 3
200b0dc: 12 80 00 0a bne 200b104 <IMFS_eval_path+0x160>
200b0e0: 80 a0 60 04 cmp %g1, 4
IMFS_evaluate_hard_link( pathloc, 0 );
200b0e4: 90 10 00 1b mov %i3, %o0
200b0e8: 7f ff ff 6c call 200ae98 <IMFS_evaluate_hard_link>
200b0ec: 92 10 20 00 clr %o1
node = pathloc->node_access;
200b0f0: e2 06 c0 00 ld [ %i3 ], %l1
if ( !node )
200b0f4: 80 a4 60 00 cmp %l1, 0
200b0f8: 32 80 00 0d bne,a 200b12c <IMFS_eval_path+0x188> <== ALWAYS TAKEN
200b0fc: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200b100: 30 80 00 0e b,a 200b138 <IMFS_eval_path+0x194> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
} else if ( node->type == IMFS_SYM_LINK ) {
200b104: 32 80 00 0a bne,a 200b12c <IMFS_eval_path+0x188>
200b108: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
result = IMFS_evaluate_sym_link( pathloc, 0 );
200b10c: 90 10 00 1b mov %i3, %o0
200b110: 7f ff ff 7a call 200aef8 <IMFS_evaluate_sym_link>
200b114: 92 10 20 00 clr %o1
node = pathloc->node_access;
200b118: e2 06 c0 00 ld [ %i3 ], %l1
if ( result == -1 )
200b11c: 80 a2 3f ff cmp %o0, -1
200b120: 02 bf ff eb be 200b0cc <IMFS_eval_path+0x128> <== NEVER TAKEN
200b124: b0 10 00 08 mov %o0, %i0
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
200b128: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200b12c: 80 a0 60 01 cmp %g1, 1
200b130: 22 80 00 06 be,a 200b148 <IMFS_eval_path+0x1a4>
200b134: 90 10 00 11 mov %l1, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
200b138: 40 00 16 04 call 2010948 <__errno>
200b13c: b0 10 3f ff mov -1, %i0
200b140: 10 80 00 3c b 200b230 <IMFS_eval_path+0x28c>
200b144: 82 10 20 14 mov 0x14, %g1
/*
* Find the token name in the current node.
*/
node = IMFS_find_match_in_dir( node, token );
200b148: 40 00 02 37 call 200ba24 <IMFS_find_match_in_dir>
200b14c: 92 10 00 13 mov %l3, %o1
if ( !node )
200b150: a2 92 20 00 orcc %o0, 0, %l1
200b154: 32 80 00 06 bne,a 200b16c <IMFS_eval_path+0x1c8>
200b158: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
rtems_set_errno_and_return_minus_one( ENOENT );
200b15c: 40 00 15 fb call 2010948 <__errno>
200b160: b0 10 3f ff mov -1, %i0
200b164: 10 80 00 33 b 200b230 <IMFS_eval_path+0x28c>
200b168: 82 10 20 02 mov 2, %g1
* file system and not the IMFS. For example the IMFS length is
* limited. If the token is a parent directory move back up otherwise
* set loc to the new fs root node and let them finish evaluating the
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
200b16c: 80 a0 60 01 cmp %g1, 1
200b170: 32 bf ff a1 bne,a 200aff4 <IMFS_eval_path+0x50>
200b174: e2 26 c0 00 st %l1, [ %i3 ]
200b178: c2 04 60 5c ld [ %l1 + 0x5c ], %g1
200b17c: 80 a0 60 00 cmp %g1, 0
200b180: 12 80 00 06 bne 200b198 <IMFS_eval_path+0x1f4>
200b184: b0 04 00 12 add %l0, %l2, %i0
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
200b188: 10 bf ff 9b b 200aff4 <IMFS_eval_path+0x50>
200b18c: e2 26 c0 00 st %l1, [ %i3 ]
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
200b190: a4 04 a0 01 inc %l2
--(*len);
200b194: b2 06 7f ff add %i1, -1, %i1
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
200b198: d0 4e 00 00 ldsb [ %i0 ], %o0
200b19c: 7f ff e2 4d call 2003ad0 <rtems_filesystem_is_separator>
200b1a0: ac 10 00 18 mov %i0, %l6
200b1a4: 80 a2 20 00 cmp %o0, 0
200b1a8: 22 80 00 09 be,a 200b1cc <IMFS_eval_path+0x228>
200b1ac: c2 4d 80 00 ldsb [ %l6 ], %g1
200b1b0: c2 4e 00 00 ldsb [ %i0 ], %g1
200b1b4: 80 a0 60 00 cmp %g1, 0
200b1b8: 02 80 00 04 be 200b1c8 <IMFS_eval_path+0x224>
200b1bc: 80 a6 60 00 cmp %i1, 0
200b1c0: 12 bf ff f4 bne 200b190 <IMFS_eval_path+0x1ec> <== ALWAYS TAKEN
200b1c4: b0 06 20 01 inc %i0
* set loc to the new fs root node and let them finish evaluating the
* path.
*/
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( pathname, &pathnamelen, &i);
if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {
200b1c8: c2 4d 80 00 ldsb [ %l6 ], %g1
200b1cc: 80 a0 60 2e cmp %g1, 0x2e
200b1d0: 32 80 00 08 bne,a 200b1f0 <IMFS_eval_path+0x24c>
200b1d4: d2 04 60 5c ld [ %l1 + 0x5c ], %o1
200b1d8: 82 04 00 12 add %l0, %l2, %g1
200b1dc: c2 48 60 01 ldsb [ %g1 + 1 ], %g1
200b1e0: 80 a0 60 2e cmp %g1, 0x2e
200b1e4: 22 80 00 0c be,a 200b214 <IMFS_eval_path+0x270>
200b1e8: e2 04 60 08 ld [ %l1 + 8 ], %l1
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200b1ec: d2 04 60 5c ld [ %l1 + 0x5c ], %o1
200b1f0: 94 10 20 14 mov 0x14, %o2
200b1f4: 92 02 60 1c add %o1, 0x1c, %o1
200b1f8: 40 00 18 10 call 2011238 <memcpy>
200b1fc: 90 10 00 1b mov %i3, %o0
return (*pathloc->ops->evalpath_h)( &pathname[i],
200b200: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
200b204: 90 10 00 16 mov %l6, %o0
200b208: c2 00 40 00 ld [ %g1 ], %g1
200b20c: 10 80 00 22 b 200b294 <IMFS_eval_path+0x2f0>
200b210: 92 10 00 19 mov %i1, %o1
pathnamelen,
flags, pathloc );
}
i += 2;
200b214: a4 04 a0 02 add %l2, 2, %l2
pathnamelen -= 2;
200b218: b2 06 7f fe add %i1, -2, %i1
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
200b21c: 10 bf ff 76 b 200aff4 <IMFS_eval_path+0x50>
200b220: e2 26 c0 00 st %l1, [ %i3 ]
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
200b224: 40 00 15 c9 call 2010948 <__errno>
200b228: b0 10 3f ff mov -1, %i0
200b22c: 82 10 20 5b mov 0x5b, %g1
200b230: c2 22 00 00 st %g1, [ %o0 ]
200b234: 81 c7 e0 08 ret
200b238: 81 e8 00 00 restore
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
200b23c: 80 a5 a0 04 cmp %l6, 4
200b240: 02 80 00 04 be 200b250 <IMFS_eval_path+0x2ac> <== NEVER TAKEN
200b244: 80 a5 a0 00 cmp %l6, 0
200b248: 12 bf ff 6c bne 200aff8 <IMFS_eval_path+0x54>
200b24c: 90 04 00 12 add %l0, %l2, %o0
* 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 ) {
200b250: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200b254: 80 a0 60 01 cmp %g1, 1
200b258: 12 80 00 14 bne 200b2a8 <IMFS_eval_path+0x304>
200b25c: 01 00 00 00 nop
if ( node->info.directory.mt_fs != NULL ) {
200b260: d2 04 60 5c ld [ %l1 + 0x5c ], %o1
200b264: 80 a2 60 00 cmp %o1, 0
200b268: 02 80 00 10 be 200b2a8 <IMFS_eval_path+0x304> <== ALWAYS TAKEN
200b26c: 92 02 60 1c add %o1, 0x1c, %o1
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200b270: 94 10 20 14 mov 0x14, %o2
200b274: 40 00 17 f1 call 2011238 <memcpy>
200b278: 90 10 00 1b mov %i3, %o0
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
200b27c: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
200b280: d0 07 bf fc ld [ %fp + -4 ], %o0
200b284: c2 00 40 00 ld [ %g1 ], %g1
200b288: 92 06 40 08 add %i1, %o0, %o1
200b28c: 90 24 80 08 sub %l2, %o0, %o0
200b290: 90 04 00 08 add %l0, %o0, %o0
200b294: 94 10 00 1a mov %i2, %o2
200b298: 9f c0 40 00 call %g1
200b29c: 96 10 00 1b mov %i3, %o3
200b2a0: 81 c7 e0 08 ret
200b2a4: 91 e8 00 08 restore %g0, %o0, %o0
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
200b2a8: 7f ff fe bf call 200ada4 <IMFS_Set_handlers>
200b2ac: 90 10 00 1b mov %i3, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
200b2b0: 92 10 00 1a mov %i2, %o1
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
200b2b4: b0 10 00 08 mov %o0, %i0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
200b2b8: 7f ff fe d7 call 200ae14 <IMFS_evaluate_permission>
200b2bc: 90 10 00 1b mov %i3, %o0
200b2c0: 80 a2 20 00 cmp %o0, 0
200b2c4: 12 80 00 06 bne 200b2dc <IMFS_eval_path+0x338>
200b2c8: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200b2cc: 40 00 15 9f call 2010948 <__errno>
200b2d0: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
200b2d4: 82 10 20 0d mov 0xd, %g1
200b2d8: c2 22 00 00 st %g1, [ %o0 ]
return result;
}
200b2dc: 81 c7 e0 08 ret
200b2e0: 81 e8 00 00 restore
0200b3a0 <IMFS_evaluate_for_make>:
int IMFS_evaluate_for_make(
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
)
{
200b3a0: 9d e3 bf 78 save %sp, -136, %sp
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
200b3a4: e0 06 40 00 ld [ %i1 ], %l0
/*
* Get the path length.
*/
pathlen = strlen( path );
200b3a8: 90 10 00 18 mov %i0, %o0
200b3ac: 40 00 19 34 call 201187c <strlen>
200b3b0: 2b 00 80 76 sethi %hi(0x201d800), %l5
int IMFS_evaluate_for_make(
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
)
{
200b3b4: a2 10 00 18 mov %i0, %l1
node = pathloc->node_access;
/*
* Get the path length.
*/
pathlen = strlen( path );
200b3b8: a4 10 20 00 clr %l2
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
200b3bc: a8 07 bf d8 add %fp, -40, %l4
200b3c0: ac 07 bf fc add %fp, -4, %l6
node = pathloc->node_access;
/*
* Get the path length.
*/
pathlen = strlen( path );
200b3c4: a6 10 00 08 mov %o0, %l3
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200b3c8: aa 15 60 70 or %l5, 0x70, %l5
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
200b3cc: 90 04 40 12 add %l1, %l2, %o0
200b3d0: 92 10 00 13 mov %l3, %o1
200b3d4: 94 10 00 14 mov %l4, %o2
200b3d8: 40 00 01 be call 200bad0 <IMFS_get_token>
200b3dc: 96 10 00 16 mov %l6, %o3
pathlen -= len;
i += len;
if ( !pathloc->node_access )
200b3e0: c2 06 40 00 ld [ %i1 ], %g1
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
200b3e4: ae 10 00 08 mov %o0, %l7
pathlen -= len;
i += len;
if ( !pathloc->node_access )
200b3e8: 80 a0 60 00 cmp %g1, 0
200b3ec: 02 80 00 a4 be 200b67c <IMFS_evaluate_for_make+0x2dc> <== NEVER TAKEN
200b3f0: f0 07 bf fc ld [ %fp + -4 ], %i0
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
200b3f4: 80 a2 20 00 cmp %o0, 0
200b3f8: 22 80 00 10 be,a 200b438 <IMFS_evaluate_for_make+0x98>
200b3fc: a4 04 80 18 add %l2, %i0, %l2
if ( node->type == IMFS_DIRECTORY )
200b400: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b404: 80 a0 60 01 cmp %g1, 1
200b408: 32 80 00 0c bne,a 200b438 <IMFS_evaluate_for_make+0x98>
200b40c: a4 04 80 18 add %l2, %i0, %l2
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
200b410: 90 10 00 19 mov %i1, %o0
200b414: 7f ff fe 80 call 200ae14 <IMFS_evaluate_permission>
200b418: 92 10 20 01 mov 1, %o1
200b41c: 80 a2 20 00 cmp %o0, 0
200b420: 32 80 00 06 bne,a 200b438 <IMFS_evaluate_for_make+0x98>
200b424: a4 04 80 18 add %l2, %i0, %l2
rtems_set_errno_and_return_minus_one( EACCES );
200b428: 40 00 15 48 call 2010948 <__errno>
200b42c: b0 10 3f ff mov -1, %i0
200b430: 10 80 00 a5 b 200b6c4 <IMFS_evaluate_for_make+0x324>
200b434: 82 10 20 0d mov 0xd, %g1
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
200b438: a6 24 c0 18 sub %l3, %i0, %l3
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
200b43c: 80 a5 e0 02 cmp %l7, 2
200b440: 02 80 00 0f be 200b47c <IMFS_evaluate_for_make+0xdc>
200b444: e0 06 40 00 ld [ %i1 ], %l0
200b448: 80 a5 e0 02 cmp %l7, 2
200b44c: 18 80 00 07 bgu 200b468 <IMFS_evaluate_for_make+0xc8>
200b450: 80 a5 e0 03 cmp %l7, 3
200b454: 80 a5 e0 00 cmp %l7, 0
200b458: 02 80 00 77 be 200b634 <IMFS_evaluate_for_make+0x294>
200b45c: 01 00 00 00 nop
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
200b460: 10 bf ff dc b 200b3d0 <IMFS_evaluate_for_make+0x30>
200b464: 90 04 40 12 add %l1, %l2, %o0
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
200b468: 02 80 00 21 be 200b4ec <IMFS_evaluate_for_make+0x14c>
200b46c: 80 a5 e0 04 cmp %l7, 4
200b470: 32 bf ff d8 bne,a 200b3d0 <IMFS_evaluate_for_make+0x30> <== NEVER TAKEN
200b474: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
200b478: 30 80 00 73 b,a 200b644 <IMFS_evaluate_for_make+0x2a4>
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
200b47c: c2 05 40 00 ld [ %l5 ], %g1
200b480: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
200b484: 80 a4 00 01 cmp %l0, %g1
200b488: 02 bf ff d2 be 200b3d0 <IMFS_evaluate_for_make+0x30>
200b48c: 90 04 40 12 add %l1, %l2, %o0
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
200b490: d2 06 60 10 ld [ %i1 + 0x10 ], %o1
200b494: c2 02 60 1c ld [ %o1 + 0x1c ], %g1
200b498: 80 a4 00 01 cmp %l0, %g1
200b49c: 32 80 00 0c bne,a 200b4cc <IMFS_evaluate_for_make+0x12c>
200b4a0: e0 04 20 08 ld [ %l0 + 8 ], %l0
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break;
} else {
*pathloc = pathloc->mt_entry->mt_point_node;
200b4a4: 92 02 60 08 add %o1, 8, %o1
200b4a8: 94 10 20 14 mov 0x14, %o2
200b4ac: 40 00 17 63 call 2011238 <memcpy>
200b4b0: 90 10 00 19 mov %i1, %o0
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
200b4b4: c2 06 60 0c ld [ %i1 + 0xc ], %g1
200b4b8: c4 07 bf fc ld [ %fp + -4 ], %g2
200b4bc: c2 00 60 04 ld [ %g1 + 4 ], %g1
200b4c0: a4 24 80 02 sub %l2, %g2, %l2
200b4c4: 10 80 00 53 b 200b610 <IMFS_evaluate_for_make+0x270>
200b4c8: 90 04 40 12 add %l1, %l2, %o0
}
} else {
if ( !node->Parent )
200b4cc: 80 a4 20 00 cmp %l0, 0
200b4d0: 32 bf ff bf bne,a 200b3cc <IMFS_evaluate_for_make+0x2c>
200b4d4: e0 26 40 00 st %l0, [ %i1 ]
rtems_set_errno_and_return_minus_one( ENOENT );
200b4d8: 40 00 15 1c call 2010948 <__errno>
200b4dc: b0 10 3f ff mov -1, %i0
200b4e0: ee 22 00 00 st %l7, [ %o0 ]
200b4e4: 81 c7 e0 08 ret
200b4e8: 81 e8 00 00 restore
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
200b4ec: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b4f0: 80 a0 60 03 cmp %g1, 3
200b4f4: 12 80 00 0a bne 200b51c <IMFS_evaluate_for_make+0x17c>
200b4f8: 80 a0 60 04 cmp %g1, 4
result = IMFS_evaluate_link( pathloc, 0 );
200b4fc: 90 10 00 19 mov %i1, %o0
200b500: 7f ff ff 79 call 200b2e4 <IMFS_evaluate_link>
200b504: 92 10 20 00 clr %o1
if ( result == -1 )
200b508: 80 a2 3f ff cmp %o0, -1
200b50c: 12 80 00 0c bne 200b53c <IMFS_evaluate_for_make+0x19c> <== ALWAYS TAKEN
200b510: b0 10 00 08 mov %o0, %i0
200b514: 81 c7 e0 08 ret <== NOT EXECUTED
200b518: 81 e8 00 00 restore <== NOT EXECUTED
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
200b51c: 32 80 00 09 bne,a 200b540 <IMFS_evaluate_for_make+0x1a0>
200b520: d0 06 40 00 ld [ %i1 ], %o0
result = IMFS_evaluate_link( pathloc, 0 );
200b524: 90 10 00 19 mov %i1, %o0
200b528: 7f ff ff 6f call 200b2e4 <IMFS_evaluate_link>
200b52c: 92 10 20 00 clr %o1
if ( result == -1 )
200b530: 80 a2 3f ff cmp %o0, -1
200b534: 02 bf ff ec be 200b4e4 <IMFS_evaluate_for_make+0x144> <== NEVER TAKEN
200b538: b0 10 00 08 mov %o0, %i0
return -1;
}
node = pathloc->node_access;
200b53c: d0 06 40 00 ld [ %i1 ], %o0
if ( !node )
200b540: 80 a2 20 00 cmp %o0, 0
200b544: 02 80 00 5d be 200b6b8 <IMFS_evaluate_for_make+0x318> <== NEVER TAKEN
200b548: 01 00 00 00 nop
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
200b54c: c2 02 20 4c ld [ %o0 + 0x4c ], %g1
200b550: 80 a0 60 01 cmp %g1, 1
200b554: 12 80 00 59 bne 200b6b8 <IMFS_evaluate_for_make+0x318>
200b558: 01 00 00 00 nop
/*
* Find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
200b55c: 40 00 01 32 call 200ba24 <IMFS_find_match_in_dir>
200b560: 92 10 00 14 mov %l4, %o1
/*
* If there is no node we have found the name of the node we
* wish to create.
*/
if ( ! node )
200b564: a0 92 20 00 orcc %o0, 0, %l0
200b568: 02 80 00 3b be 200b654 <IMFS_evaluate_for_make+0x2b4>
200b56c: c2 07 bf fc ld [ %fp + -4 ], %g1
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
200b570: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b574: 80 a0 60 01 cmp %g1, 1
200b578: 32 bf ff 95 bne,a 200b3cc <IMFS_evaluate_for_make+0x2c>
200b57c: e0 26 40 00 st %l0, [ %i1 ]
200b580: c2 04 20 5c ld [ %l0 + 0x5c ], %g1
200b584: 80 a0 60 00 cmp %g1, 0
200b588: 12 80 00 05 bne 200b59c <IMFS_evaluate_for_make+0x1fc>
200b58c: b0 04 40 12 add %l1, %l2, %i0
i += 2;
pathlen -= 2;
node = node->Parent;
}
pathloc->node_access = node;
200b590: 10 bf ff 8f b 200b3cc <IMFS_evaluate_for_make+0x2c>
200b594: e0 26 40 00 st %l0, [ %i1 ]
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
++(*index);
--(*len);
200b598: a6 04 ff ff add %l3, -1, %l3
const char *path, /* IN */
size_t *len, /* IN/OUT */
int *index /* IN/OUT */
)
{
while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
200b59c: d0 4e 00 00 ldsb [ %i0 ], %o0
200b5a0: 7f ff e1 4c call 2003ad0 <rtems_filesystem_is_separator>
200b5a4: ae 10 00 18 mov %i0, %l7
200b5a8: 80 a2 20 00 cmp %o0, 0
200b5ac: 22 80 00 0a be,a 200b5d4 <IMFS_evaluate_for_make+0x234>
200b5b0: c2 4d c0 00 ldsb [ %l7 ], %g1
200b5b4: c2 4e 00 00 ldsb [ %i0 ], %g1
200b5b8: 80 a0 60 00 cmp %g1, 0
200b5bc: 02 80 00 05 be 200b5d0 <IMFS_evaluate_for_make+0x230> <== NEVER TAKEN
200b5c0: b0 06 20 01 inc %i0
200b5c4: 80 a4 e0 00 cmp %l3, 0
200b5c8: 32 bf ff f4 bne,a 200b598 <IMFS_evaluate_for_make+0x1f8> <== ALWAYS TAKEN
200b5cc: a4 04 a0 01 inc %l2
if ( ! node )
done = true;
else {
if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
IMFS_skip_separator( path, &pathlen, &i);
if ((path[i] != '.') || (path[i + 1] != '.')) {
200b5d0: c2 4d c0 00 ldsb [ %l7 ], %g1 <== NOT EXECUTED
200b5d4: 80 a0 60 2e cmp %g1, 0x2e
200b5d8: 12 80 00 06 bne 200b5f0 <IMFS_evaluate_for_make+0x250>
200b5dc: 82 04 40 12 add %l1, %l2, %g1
200b5e0: c2 48 60 01 ldsb [ %g1 + 1 ], %g1
200b5e4: 80 a0 60 2e cmp %g1, 0x2e
200b5e8: 22 80 00 0f be,a 200b624 <IMFS_evaluate_for_make+0x284> <== ALWAYS TAKEN
200b5ec: e0 04 20 08 ld [ %l0 + 8 ], %l0
*pathloc = node->info.directory.mt_fs->mt_fs_root;
200b5f0: d2 04 20 5c ld [ %l0 + 0x5c ], %o1
200b5f4: 94 10 20 14 mov 0x14, %o2
200b5f8: 92 02 60 1c add %o1, 0x1c, %o1
200b5fc: 40 00 17 0f call 2011238 <memcpy>
200b600: 90 10 00 19 mov %i1, %o0
return (*pathloc->ops->evalformake_h)( &path[i],
200b604: c2 06 60 0c ld [ %i1 + 0xc ], %g1
200b608: 90 10 00 17 mov %l7, %o0
200b60c: c2 00 60 04 ld [ %g1 + 4 ], %g1
200b610: 92 10 00 19 mov %i1, %o1
200b614: 9f c0 40 00 call %g1
200b618: 94 10 00 1a mov %i2, %o2
200b61c: 81 c7 e0 08 ret
200b620: 91 e8 00 08 restore %g0, %o0, %o0
pathloc,
name );
}
i += 2;
200b624: a4 04 a0 02 add %l2, 2, %l2
pathlen -= 2;
200b628: a6 04 ff fe add %l3, -2, %l3
node = node->Parent;
}
pathloc->node_access = node;
200b62c: 10 bf ff 68 b 200b3cc <IMFS_evaluate_for_make+0x2c>
200b630: e0 26 40 00 st %l0, [ %i1 ]
}
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
200b634: 40 00 14 c5 call 2010948 <__errno>
200b638: b0 10 3f ff mov -1, %i0
200b63c: 10 80 00 22 b 200b6c4 <IMFS_evaluate_for_make+0x324>
200b640: 82 10 20 11 mov 0x11, %g1
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
200b644: 40 00 14 c1 call 2010948 <__errno>
200b648: b0 10 3f ff mov -1, %i0
200b64c: 10 80 00 1e b 200b6c4 <IMFS_evaluate_for_make+0x324>
200b650: 82 10 20 5b mov 0x5b, %g1
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
200b654: a0 04 40 12 add %l1, %l2, %l0
200b658: a4 24 80 01 sub %l2, %g1, %l2
200b65c: a2 04 40 12 add %l1, %l2, %l1
/*
* 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++) {
200b660: 10 80 00 0b b 200b68c <IMFS_evaluate_for_make+0x2ec>
200b664: e2 26 80 00 st %l1, [ %i2 ]
if ( !IMFS_is_separator( path[ i ] ) )
200b668: 7f ff e1 1a call 2003ad0 <rtems_filesystem_is_separator>
200b66c: 01 00 00 00 nop
200b670: 80 a2 20 00 cmp %o0, 0
200b674: 32 80 00 07 bne,a 200b690 <IMFS_evaluate_for_make+0x2f0>
200b678: d0 4c 00 00 ldsb [ %l0 ], %o0
rtems_set_errno_and_return_minus_one( ENOENT );
200b67c: 40 00 14 b3 call 2010948 <__errno>
200b680: b0 10 3f ff mov -1, %i0
200b684: 10 80 00 10 b 200b6c4 <IMFS_evaluate_for_make+0x324>
200b688: 82 10 20 02 mov 2, %g1
/*
* 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++) {
200b68c: d0 4c 00 00 ldsb [ %l0 ], %o0
200b690: 80 a2 20 00 cmp %o0, 0
200b694: 12 bf ff f5 bne 200b668 <IMFS_evaluate_for_make+0x2c8>
200b698: a0 04 20 01 inc %l0
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
200b69c: 7f ff fd c2 call 200ada4 <IMFS_Set_handlers>
200b6a0: 90 10 00 19 mov %i1, %o0
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
200b6a4: c2 06 40 00 ld [ %i1 ], %g1
200b6a8: c2 00 60 4c ld [ %g1 + 0x4c ], %g1
200b6ac: 80 a0 60 01 cmp %g1, 1
200b6b0: 02 80 00 08 be 200b6d0 <IMFS_evaluate_for_make+0x330> <== ALWAYS TAKEN
200b6b4: b0 10 00 08 mov %o0, %i0
if ( node->type != IMFS_DIRECTORY )
rtems_set_errno_and_return_minus_one( ENOTDIR );
200b6b8: 40 00 14 a4 call 2010948 <__errno>
200b6bc: b0 10 3f ff mov -1, %i0
200b6c0: 82 10 20 14 mov 0x14, %g1
200b6c4: c2 22 00 00 st %g1, [ %o0 ]
200b6c8: 81 c7 e0 08 ret
200b6cc: 81 e8 00 00 restore
/*
* We must have Write and execute permission on the returned node.
*/
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
200b6d0: 90 10 00 19 mov %i1, %o0
200b6d4: 7f ff fd d0 call 200ae14 <IMFS_evaluate_permission>
200b6d8: 92 10 20 03 mov 3, %o1
200b6dc: 80 a2 20 00 cmp %o0, 0
200b6e0: 12 80 00 06 bne 200b6f8 <IMFS_evaluate_for_make+0x358>
200b6e4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200b6e8: 40 00 14 98 call 2010948 <__errno>
200b6ec: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
200b6f0: 82 10 20 0d mov 0xd, %g1
200b6f4: c2 22 00 00 st %g1, [ %o0 ]
return result;
}
200b6f8: 81 c7 e0 08 ret
200b6fc: 81 e8 00 00 restore
0200ae98 <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200ae98: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode = node->node_access;
200ae9c: c2 06 00 00 ld [ %i0 ], %g1
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_HARD_LINK )
200aea0: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200aea4: 80 a0 a0 03 cmp %g2, 3
200aea8: 22 80 00 04 be,a 200aeb8 <IMFS_evaluate_hard_link+0x20> <== ALWAYS TAKEN
200aeac: c2 00 60 50 ld [ %g1 + 0x50 ], %g1
rtems_fatal_error_occurred (0xABCD0000);
200aeb0: 7f ff ee c0 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
200aeb4: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
IMFS_Set_handlers( node );
200aeb8: 90 10 00 18 mov %i0, %o0
200aebc: 7f ff ff ba call 200ada4 <IMFS_Set_handlers>
200aec0: c2 26 00 00 st %g1, [ %i0 ]
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
200aec4: 90 10 00 18 mov %i0, %o0
200aec8: 92 10 00 19 mov %i1, %o1
200aecc: 7f ff ff d2 call 200ae14 <IMFS_evaluate_permission>
200aed0: b0 10 20 00 clr %i0
200aed4: 80 a2 20 00 cmp %o0, 0
200aed8: 12 80 00 06 bne 200aef0 <IMFS_evaluate_hard_link+0x58> <== ALWAYS TAKEN
200aedc: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200aee0: 40 00 16 9a call 2010948 <__errno> <== NOT EXECUTED
200aee4: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
200aee8: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
200aeec: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return result;
}
200aef0: 81 c7 e0 08 ret
200aef4: 81 e8 00 00 restore
0200ae14 <IMFS_evaluate_permission>:
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
200ae14: 9d e3 bf a0 save %sp, -96, %sp
uid_t st_uid;
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
200ae18: 80 8e 7f f8 btst -8, %i1
200ae1c: 02 80 00 08 be 200ae3c <IMFS_evaluate_permission+0x28> <== ALWAYS TAKEN
200ae20: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EPERM );
200ae24: 40 00 16 c9 call 2010948 <__errno> <== NOT EXECUTED
200ae28: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
200ae2c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
200ae30: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200ae34: 81 c7 e0 08 ret <== NOT EXECUTED
200ae38: 81 e8 00 00 restore <== NOT EXECUTED
jnode = node->node_access;
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
200ae3c: 40 00 04 4b call 200bf68 <geteuid>
200ae40: e0 06 00 00 ld [ %i0 ], %l0
st_gid = getegid();
200ae44: 40 00 04 45 call 200bf58 <getegid>
200ae48: a2 10 00 08 mov %o0, %l1
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
200ae4c: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1
200ae50: a3 2c 60 10 sll %l1, 0x10, %l1
200ae54: a3 34 60 10 srl %l1, 0x10, %l1
200ae58: 80 a4 40 01 cmp %l1, %g1
200ae5c: 02 80 00 09 be 200ae80 <IMFS_evaluate_permission+0x6c>
200ae60: 83 2e 60 06 sll %i1, 6, %g1
flags_to_test <<= 6;
else if ( st_gid == jnode->st_gid )
200ae64: c2 14 20 3e lduh [ %l0 + 0x3e ], %g1
200ae68: 91 2a 20 10 sll %o0, 0x10, %o0
200ae6c: 91 32 20 10 srl %o0, 0x10, %o0
200ae70: 80 a2 00 01 cmp %o0, %g1
200ae74: 02 80 00 03 be 200ae80 <IMFS_evaluate_permission+0x6c> <== ALWAYS TAKEN
200ae78: 83 2e 60 03 sll %i1, 3, %g1
200ae7c: 82 10 00 19 mov %i1, %g1 <== 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 )
200ae80: c4 04 20 30 ld [ %l0 + 0x30 ], %g2
200ae84: 82 28 40 02 andn %g1, %g2, %g1
200ae88: 80 a0 00 01 cmp %g0, %g1
200ae8c: b0 60 3f ff subx %g0, -1, %i0
return 1;
return 0;
}
200ae90: 81 c7 e0 08 ret
200ae94: 81 e8 00 00 restore
0200aef8 <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200aef8: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *jnode = node->node_access;
200aefc: e2 06 00 00 ld [ %i0 ], %l1
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
200af00: a0 10 00 18 mov %i0, %l0
/*
* Check for things that should never happen.
*/
if ( jnode->type != IMFS_SYM_LINK )
200af04: c2 04 60 4c ld [ %l1 + 0x4c ], %g1
200af08: 80 a0 60 04 cmp %g1, 4
200af0c: 12 80 00 07 bne 200af28 <IMFS_evaluate_sym_link+0x30> <== NEVER TAKEN
200af10: 11 2a f3 40 sethi %hi(0xabcd0000), %o0
rtems_fatal_error_occurred (0xABCD0000);
if ( !jnode->Parent )
200af14: c2 04 60 08 ld [ %l1 + 8 ], %g1
200af18: 80 a0 60 00 cmp %g1, 0
200af1c: 32 80 00 05 bne,a 200af30 <IMFS_evaluate_sym_link+0x38> <== ALWAYS TAKEN
200af20: c2 26 00 00 st %g1, [ %i0 ]
rtems_fatal_error_occurred( 0xBAD00000 );
200af24: 11 2e b4 00 sethi %hi(0xbad00000), %o0 <== NOT EXECUTED
200af28: 7f ff ee a2 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
200af2c: 01 00 00 00 nop <== NOT EXECUTED
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
rtems_filesystem_get_sym_start_loc(
200af30: d0 04 60 50 ld [ %l1 + 0x50 ], %o0
200af34: 94 10 00 18 mov %i0, %o2
200af38: 40 00 05 69 call 200c4dc <rtems_filesystem_get_sym_start_loc>
200af3c: 92 07 bf fc add %fp, -4, %o1
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
200af40: c2 07 bf fc ld [ %fp + -4 ], %g1
200af44: e2 04 60 50 ld [ %l1 + 0x50 ], %l1
200af48: a2 04 40 01 add %l1, %g1, %l1
200af4c: 40 00 1a 4c call 201187c <strlen>
200af50: 90 10 00 11 mov %l1, %o0
200af54: 96 10 00 18 mov %i0, %o3
200af58: 92 10 00 08 mov %o0, %o1
200af5c: 94 10 00 19 mov %i1, %o2
200af60: 40 00 00 11 call 200afa4 <IMFS_eval_path>
200af64: 90 10 00 11 mov %l1, %o0
200af68: b0 10 00 08 mov %o0, %i0
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
200af6c: 7f ff ff 8e call 200ada4 <IMFS_Set_handlers>
200af70: 90 10 00 10 mov %l0, %o0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
200af74: 90 10 00 10 mov %l0, %o0
200af78: 7f ff ff a7 call 200ae14 <IMFS_evaluate_permission>
200af7c: 92 10 00 19 mov %i1, %o1
200af80: 80 a2 20 00 cmp %o0, 0
200af84: 12 80 00 06 bne 200af9c <IMFS_evaluate_sym_link+0xa4> <== ALWAYS TAKEN
200af88: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EACCES );
200af8c: 40 00 16 6f call 2010948 <__errno> <== NOT EXECUTED
200af90: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
200af94: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
200af98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return result;
}
200af9c: 81 c7 e0 08 ret
200afa0: 81 e8 00 00 restore
0200f5bc <IMFS_fchmod>:
int IMFS_fchmod(
rtems_filesystem_location_info_t *loc,
mode_t mode
)
{
200f5bc: 9d e3 bf 98 save %sp, -104, %sp
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
200f5c0: 7f ff f2 6a call 200bf68 <geteuid>
200f5c4: e0 06 00 00 ld [ %i0 ], %l0
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
200f5c8: 91 2a 20 10 sll %o0, 0x10, %o0
200f5cc: 91 32 20 10 srl %o0, 0x10, %o0
200f5d0: 80 a2 20 00 cmp %o0, 0
200f5d4: 22 80 00 0c be,a 200f604 <IMFS_fchmod+0x48> <== ALWAYS TAKEN
200f5d8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
200f5dc: c2 14 20 3c lduh [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
200f5e0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
200f5e4: 22 80 00 08 be,a 200f604 <IMFS_fchmod+0x48> <== NOT EXECUTED
200f5e8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
200f5ec: 40 00 04 d7 call 2010948 <__errno> <== NOT EXECUTED
200f5f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200f5f4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
200f5f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200f5fc: 81 c7 e0 08 ret <== NOT EXECUTED
200f600: 81 e8 00 00 restore <== 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 );
200f604: 90 07 bf f8 add %fp, -8, %o0
/*
* 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);
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
200f608: 82 08 70 00 and %g1, -4096, %g1
IMFS_update_ctime( jnode );
200f60c: 92 10 20 00 clr %o1
/*
* 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);
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
200f610: b2 0e 6f ff and %i1, 0xfff, %i1
200f614: b2 16 40 01 or %i1, %g1, %i1
IMFS_update_ctime( jnode );
200f618: 7f ff cd 63 call 2002ba4 <gettimeofday>
200f61c: f2 24 20 30 st %i1, [ %l0 + 0x30 ]
200f620: c2 07 bf f8 ld [ %fp + -8 ], %g1
200f624: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
return 0;
}
200f628: 81 c7 e0 08 ret
200f62c: 91 e8 20 00 restore %g0, 0, %o0
0200b8a8 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
200b8a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200b8ac: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
int err = pipe_release(&JNODE2PIPE(jnode), iop);
200b8b0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
200b8b4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
200b8b8: 7f ff fb 67 call 200a654 <pipe_release> <== NOT EXECUTED
200b8bc: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED
if (! err) {
200b8c0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b8c4: 12 80 00 12 bne 200b90c <IMFS_fifo_close+0x64> <== NOT EXECUTED
200b8c8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
200b8cc: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
/* Free jnode if file is already unlinked and no one opens it */
if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1)
200b8d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_release(&JNODE2PIPE(jnode), iop);
if (! err) {
iop->flags &= ~LIBIO_FLAGS_OPEN;
200b8d4: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED
/* Free jnode if file is already unlinked and no one opens it */
if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1)
200b8d8: 40 00 01 c1 call 200bfdc <rtems_libio_is_file_open> <== NOT EXECUTED
200b8dc: c2 24 60 18 st %g1, [ %l1 + 0x18 ] <== NOT EXECUTED
200b8e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200b8e4: 12 80 00 10 bne 200b924 <IMFS_fifo_close+0x7c> <== NOT EXECUTED
200b8e8: 01 00 00 00 nop <== NOT EXECUTED
200b8ec: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
200b8f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200b8f4: 12 80 00 0c bne 200b924 <IMFS_fifo_close+0x7c> <== NOT EXECUTED
200b8f8: 01 00 00 00 nop <== NOT EXECUTED
free(jnode);
200b8fc: 7f ff dc 80 call 2002afc <free> <== NOT EXECUTED
200b900: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200b904: 81 c7 e0 08 ret <== NOT EXECUTED
200b908: 81 e8 00 00 restore <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
200b90c: 16 80 00 06 bge 200b924 <IMFS_fifo_close+0x7c> <== NOT EXECUTED
200b910: 01 00 00 00 nop <== NOT EXECUTED
200b914: 40 00 14 0d call 2010948 <__errno> <== NOT EXECUTED
200b918: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b91c: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b920: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b924: 81 c7 e0 08 ret <== NOT EXECUTED
200b928: 81 e8 00 00 restore <== NOT EXECUTED
0200b758 <IMFS_fifo_ioctl>:
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200b758: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200b75c: 03 20 01 19 sethi %hi(0x80046400), %g1 <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200b760: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200b764: 82 10 62 7e or %g1, 0x27e, %g1 <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200b768: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
int err;
if (command == FIONBIO) {
200b76c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200b770: 12 80 00 0f bne 200b7ac <IMFS_fifo_ioctl+0x54> <== NOT EXECUTED
200b774: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (buffer == NULL)
200b778: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200b77c: 02 80 00 12 be 200b7c4 <IMFS_fifo_ioctl+0x6c> <== NOT EXECUTED
200b780: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
200b784: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
200b788: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200b78c: 02 80 00 04 be 200b79c <IMFS_fifo_ioctl+0x44> <== NOT EXECUTED
200b790: c2 02 e0 18 ld [ %o3 + 0x18 ], %g1 <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
200b794: 10 80 00 03 b 200b7a0 <IMFS_fifo_ioctl+0x48> <== NOT EXECUTED
200b798: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200b79c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
200b7a0: c2 22 e0 18 st %g1, [ %o3 + 0x18 ] <== NOT EXECUTED
200b7a4: 81 c7 e0 08 ret <== NOT EXECUTED
200b7a8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
200b7ac: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
200b7b0: 7f ff fa a6 call 200a248 <pipe_ioctl> <== NOT EXECUTED
200b7b4: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200b7b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b7bc: 16 80 00 06 bge 200b7d4 <IMFS_fifo_ioctl+0x7c> <== NOT EXECUTED
200b7c0: 01 00 00 00 nop <== NOT EXECUTED
200b7c4: 40 00 14 61 call 2010948 <__errno> <== NOT EXECUTED
200b7c8: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b7cc: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b7d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b7d4: 81 c7 e0 08 ret <== NOT EXECUTED
200b7d8: 81 e8 00 00 restore <== NOT EXECUTED
0200b700 <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200b700: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
200b704: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200b708: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
200b70c: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 <== NOT EXECUTED
200b710: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
200b714: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200b718: 7f ff fa af call 200a1d4 <pipe_lseek> <== NOT EXECUTED
200b71c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
200b720: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED
200b724: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200b728: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200b72c: 16 80 00 08 bge 200b74c <IMFS_fifo_lseek+0x4c> <== NOT EXECUTED
200b730: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
200b734: 40 00 14 85 call 2010948 <__errno> <== NOT EXECUTED
200b738: a0 20 00 10 neg %l0 <== NOT EXECUTED
200b73c: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
200b740: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
200b744: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
200b748: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
}
200b74c: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
200b750: 81 c7 e0 08 ret <== NOT EXECUTED
200b754: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
0200b92c <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200b92c: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
200b930: d0 06 20 3c ld [ %i0 + 0x3c ], %o0
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200b934: 92 10 00 18 mov %i0, %o1
IMFS_jnode_t *jnode = iop->file_info;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
200b938: 7f ff fb 8b call 200a764 <fifo_open>
200b93c: 90 02 20 50 add %o0, 0x50, %o0
IMFS_FIFO_RETURN(err);
200b940: b0 92 20 00 orcc %o0, 0, %i0
200b944: 16 80 00 06 bge 200b95c <IMFS_fifo_open+0x30> <== NEVER TAKEN
200b948: 01 00 00 00 nop
200b94c: 40 00 13 ff call 2010948 <__errno>
200b950: b0 20 00 18 neg %i0
200b954: f0 22 00 00 st %i0, [ %o0 ]
200b958: b0 10 3f ff mov -1, %i0
}
200b95c: 81 c7 e0 08 ret
200b960: 81 e8 00 00 restore
0200b844 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200b844: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200b848: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200b84c: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
200b850: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
200b854: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200b858: 7f ff fa 95 call 200a2ac <pipe_read> <== NOT EXECUTED
200b85c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (err > 0)
200b860: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b864: 04 80 00 08 ble 200b884 <IMFS_fifo_read+0x40> <== NOT EXECUTED
200b868: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
IMFS_update_atime(jnode);
200b86c: 7f ff dc ce call 2002ba4 <gettimeofday> <== NOT EXECUTED
200b870: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b874: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200b878: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
200b87c: 81 c7 e0 08 ret <== NOT EXECUTED
200b880: 81 e8 00 00 restore <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
200b884: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200b888: 02 80 00 06 be 200b8a0 <IMFS_fifo_read+0x5c> <== NOT EXECUTED
200b88c: 01 00 00 00 nop <== NOT EXECUTED
200b890: 40 00 14 2e call 2010948 <__errno> <== NOT EXECUTED
200b894: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b898: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b89c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b8a0: 81 c7 e0 08 ret <== NOT EXECUTED
200b8a4: 81 e8 00 00 restore <== NOT EXECUTED
0200b7dc <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200b7dc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
200b7e0: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200b7e4: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->file_info;
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
200b7e8: d0 04 20 50 ld [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
200b7ec: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200b7f0: 7f ff fb 16 call 200a448 <pipe_write> <== NOT EXECUTED
200b7f4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (err > 0) {
200b7f8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
200b7fc: 04 80 00 09 ble 200b820 <IMFS_fifo_write+0x44> <== NOT EXECUTED
200b800: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
200b804: 7f ff dc e8 call 2002ba4 <gettimeofday> <== NOT EXECUTED
200b808: 92 10 20 00 clr %o1 <== NOT EXECUTED
200b80c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200b810: c2 24 20 48 st %g1, [ %l0 + 0x48 ] <== NOT EXECUTED
200b814: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
200b818: 81 c7 e0 08 ret <== NOT EXECUTED
200b81c: 81 e8 00 00 restore <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
200b820: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200b824: 02 80 00 06 be 200b83c <IMFS_fifo_write+0x60> <== NOT EXECUTED
200b828: 01 00 00 00 nop <== NOT EXECUTED
200b82c: 40 00 14 47 call 2010948 <__errno> <== NOT EXECUTED
200b830: b0 20 00 18 neg %i0 <== NOT EXECUTED
200b834: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
200b838: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
200b83c: 81 c7 e0 08 ret <== NOT EXECUTED
200b840: 81 e8 00 00 restore <== NOT EXECUTED
0200ba24 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
200ba24: 9d e3 bf a0 save %sp, -96, %sp
/*
* Check for fatal errors. A NULL directory show a problem in the
* the IMFS code.
*/
assert( directory );
200ba28: 80 a6 20 00 cmp %i0, 0
200ba2c: 12 80 00 0a bne 200ba54 <IMFS_find_match_in_dir+0x30> <== ALWAYS TAKEN
200ba30: 80 a6 60 00 cmp %i1, 0
200ba34: 11 00 80 71 sethi %hi(0x201c400), %o0 <== NOT EXECUTED
200ba38: 15 00 80 72 sethi %hi(0x201c800), %o2 <== NOT EXECUTED
200ba3c: 17 00 80 72 sethi %hi(0x201c800), %o3 <== NOT EXECUTED
200ba40: 90 12 23 a8 or %o0, 0x3a8, %o0 <== NOT EXECUTED
200ba44: 94 12 a0 20 or %o2, 0x20, %o2 <== NOT EXECUTED
200ba48: 96 12 e0 00 mov %o3, %o3 <== NOT EXECUTED
200ba4c: 40 00 00 c5 call 200bd60 <__assert_func> <== NOT EXECUTED
200ba50: 92 10 20 2a mov 0x2a, %o1 <== NOT EXECUTED
if ( !name )
200ba54: 02 80 00 1c be 200bac4 <IMFS_find_match_in_dir+0xa0> <== NEVER TAKEN
200ba58: 90 10 00 19 mov %i1, %o0
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
200ba5c: 13 00 80 72 sethi %hi(0x201c800), %o1
200ba60: 40 00 17 21 call 20116e4 <strcmp>
200ba64: 92 12 60 10 or %o1, 0x10, %o1 ! 201c810 <dotname>
200ba68: 80 a2 20 00 cmp %o0, 0
200ba6c: 02 80 00 09 be 200ba90 <IMFS_find_match_in_dir+0x6c> <== NEVER TAKEN
200ba70: 90 10 00 19 mov %i1, %o0
return directory;
if ( !strcmp( name, dotdotname ) )
200ba74: 13 00 80 72 sethi %hi(0x201c800), %o1
200ba78: 40 00 17 1b call 20116e4 <strcmp>
200ba7c: 92 12 60 18 or %o1, 0x18, %o1 ! 201c818 <dotdotname>
200ba80: 80 a2 20 00 cmp %o0, 0
200ba84: 12 80 00 05 bne 200ba98 <IMFS_find_match_in_dir+0x74> <== ALWAYS TAKEN
200ba88: a0 06 20 54 add %i0, 0x54, %l0
return directory->Parent;
200ba8c: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED
200ba90: 81 c7 e0 08 ret <== NOT EXECUTED
200ba94: 81 e8 00 00 restore <== NOT EXECUTED
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
200ba98: 10 80 00 08 b 200bab8 <IMFS_find_match_in_dir+0x94>
200ba9c: f0 06 20 50 ld [ %i0 + 0x50 ], %i0
!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 ) )
200baa0: 40 00 17 11 call 20116e4 <strcmp>
200baa4: 92 06 20 0c add %i0, 0xc, %o1
200baa8: 80 a2 20 00 cmp %o0, 0
200baac: 02 80 00 07 be 200bac8 <IMFS_find_match_in_dir+0xa4>
200bab0: 01 00 00 00 nop
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
200bab4: f0 06 00 00 ld [ %i0 ], %i0
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = the_chain->first;
200bab8: 80 a6 00 10 cmp %i0, %l0
200babc: 12 bf ff f9 bne 200baa0 <IMFS_find_match_in_dir+0x7c>
200bac0: 90 10 00 19 mov %i1, %o0
200bac4: b0 10 20 00 clr %i0
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
200bac8: 81 c7 e0 08 ret
200bacc: 81 e8 00 00 restore
0200b96c <IMFS_fsunmount>:
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
200b96c: 9d e3 bf 88 save %sp, -120, %sp
* 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;
200b970: 94 10 20 14 mov 0x14, %o2
200b974: 90 07 bf ec add %fp, -20, %o0
/*
* 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;
200b978: e0 06 20 1c ld [ %i0 + 0x1c ], %l0
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
200b97c: a2 10 00 08 mov %o0, %l1
* 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;
200b980: 40 00 16 2e call 2011238 <memcpy>
200b984: 92 06 20 1c add %i0, 0x1c, %o1
/*
* Set this to null to indicate that it is being unmounted.
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
200b988: c0 26 20 1c clr [ %i0 + 0x1c ]
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
200b98c: e0 27 bf ec st %l0, [ %fp + -20 ]
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
200b990: f0 04 20 08 ld [ %l0 + 8 ], %i0
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
200b994: 7f ff fd 04 call 200ada4 <IMFS_Set_handlers>
200b998: 90 10 00 11 mov %l1, %o0
if ( jnode->type != IMFS_DIRECTORY ) {
200b99c: c4 04 20 4c ld [ %l0 + 0x4c ], %g2
200b9a0: 80 a0 a0 01 cmp %g2, 1
200b9a4: 12 80 00 06 bne 200b9bc <IMFS_fsunmount+0x50>
200b9a8: 82 04 20 54 add %l0, 0x54, %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200b9ac: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
200b9b0: 80 a0 80 01 cmp %g2, %g1
200b9b4: 12 80 00 09 bne 200b9d8 <IMFS_fsunmount+0x6c>
200b9b8: 80 a4 20 00 cmp %l0, 0
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
200b9bc: 90 10 20 00 clr %o0
200b9c0: 7f ff da de call 2002538 <IMFS_unlink>
200b9c4: 92 10 00 11 mov %l1, %o1
if (result != 0)
200b9c8: 80 a2 20 00 cmp %o0, 0
200b9cc: 12 80 00 13 bne 200ba18 <IMFS_fsunmount+0xac> <== NEVER TAKEN
200b9d0: a0 10 00 18 mov %i0, %l0
return -1;
jnode = next;
}
if ( jnode != NULL ) {
200b9d4: 80 a4 20 00 cmp %l0, 0
200b9d8: 22 80 00 11 be,a 200ba1c <IMFS_fsunmount+0xb0>
200b9dc: b0 10 20 00 clr %i0
if ( jnode->type == IMFS_DIRECTORY ) {
200b9e0: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200b9e4: 80 a0 60 01 cmp %g1, 1
200b9e8: 32 bf ff ea bne,a 200b990 <IMFS_fsunmount+0x24> <== NEVER TAKEN
200b9ec: e0 27 bf ec st %l0, [ %fp + -20 ] <== NOT EXECUTED
200b9f0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200b9f4: 84 04 20 54 add %l0, 0x54, %g2
200b9f8: 80 a0 40 02 cmp %g1, %g2
200b9fc: 22 bf ff e5 be,a 200b990 <IMFS_fsunmount+0x24>
200ba00: e0 27 bf ec st %l0, [ %fp + -20 ]
if ( jnode_has_children( jnode ) )
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
200ba04: a0 90 60 00 orcc %g1, 0, %l0
200ba08: 32 bf ff e2 bne,a 200b990 <IMFS_fsunmount+0x24> <== ALWAYS TAKEN
200ba0c: e0 27 bf ec st %l0, [ %fp + -20 ]
200ba10: 81 c7 e0 08 ret <== NOT EXECUTED
200ba14: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200ba18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return 0;
}
200ba1c: 81 c7 e0 08 ret
200ba20: 81 e8 00 00 restore
0200bad0 <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
200bad0: 9d e3 bf a0 save %sp, -96, %sp
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
200bad4: a0 10 20 00 clr %l0
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
200bad8: 10 80 00 08 b 200baf8 <IMFS_get_token+0x28>
200badc: e2 0e 00 00 ldub [ %i0 ], %l1
token[i] = c;
if ( i == IMFS_NAME_MAX )
200bae0: 80 a4 20 20 cmp %l0, 0x20
200bae4: 12 80 00 04 bne 200baf4 <IMFS_get_token+0x24>
200bae8: a0 04 20 01 inc %l0
200baec: 81 c7 e0 08 ret
200baf0: 91 e8 20 04 restore %g0, 4, %o0
return IMFS_INVALID_TOKEN;
if ( !IMFS_is_valid_name_char(c) )
type = IMFS_INVALID_TOKEN;
c = path [++i];
200baf4: e2 0e 00 10 ldub [ %i0 + %l0 ], %l1
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
200baf8: 91 2c 60 18 sll %l1, 0x18, %o0
200bafc: 7f ff df f5 call 2003ad0 <rtems_filesystem_is_separator>
200bb00: 91 3a 20 18 sra %o0, 0x18, %o0
200bb04: 80 a2 20 00 cmp %o0, 0
200bb08: 12 80 00 04 bne 200bb18 <IMFS_get_token+0x48>
200bb0c: 80 a4 00 19 cmp %l0, %i1
200bb10: 26 bf ff f4 bl,a 200bae0 <IMFS_get_token+0x10>
200bb14: e2 2e 80 10 stb %l1, [ %i2 + %l0 ]
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
200bb18: 80 a4 20 00 cmp %l0, 0
200bb1c: 12 80 00 0d bne 200bb50 <IMFS_get_token+0x80>
200bb20: 82 06 80 10 add %i2, %l0, %g1
token[i] = c;
200bb24: e2 2e 80 00 stb %l1, [ %i2 ]
if ( (token[i] != '\0') && pathlen ) {
200bb28: a3 2c 60 18 sll %l1, 0x18, %l1
200bb2c: 80 a4 60 00 cmp %l1, 0
200bb30: 02 80 00 0d be 200bb64 <IMFS_get_token+0x94>
200bb34: b0 10 20 00 clr %i0
200bb38: 80 a6 60 00 cmp %i1, 0
200bb3c: 02 80 00 0b be 200bb68 <IMFS_get_token+0x98>
200bb40: 80 a6 20 03 cmp %i0, 3
200bb44: b0 10 20 01 mov 1, %i0
200bb48: 10 80 00 07 b 200bb64 <IMFS_get_token+0x94>
200bb4c: a0 10 20 01 mov 1, %l0
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
200bb50: c2 48 7f ff ldsb [ %g1 + -1 ], %g1
200bb54: 80 a0 60 00 cmp %g1, 0
200bb58: 02 80 00 03 be 200bb64 <IMFS_get_token+0x94> <== NEVER TAKEN
200bb5c: b0 10 20 03 mov 3, %i0
token[i] = '\0';
200bb60: c0 2e 80 10 clrb [ %i2 + %l0 ]
/*
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == IMFS_NAME ) {
200bb64: 80 a6 20 03 cmp %i0, 3
200bb68: 12 80 00 11 bne 200bbac <IMFS_get_token+0xdc>
200bb6c: e0 26 c0 00 st %l0, [ %i3 ]
if ( strcmp( token, "..") == 0 )
200bb70: 90 10 00 1a mov %i2, %o0
200bb74: 13 00 80 72 sethi %hi(0x201c800), %o1
200bb78: 40 00 16 db call 20116e4 <strcmp>
200bb7c: 92 12 60 38 or %o1, 0x38, %o1 ! 201c838 <__FUNCTION__.5518+0x18>
200bb80: 80 a2 20 00 cmp %o0, 0
200bb84: 12 80 00 04 bne 200bb94 <IMFS_get_token+0xc4>
200bb88: 90 10 00 1a mov %i2, %o0
200bb8c: 81 c7 e0 08 ret
200bb90: 91 e8 20 02 restore %g0, 2, %o0
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
200bb94: 13 00 80 72 sethi %hi(0x201c800), %o1
200bb98: 40 00 16 d3 call 20116e4 <strcmp>
200bb9c: 92 12 60 40 or %o1, 0x40, %o1 ! 201c840 <__FUNCTION__.5518+0x20>
200bba0: 80 a2 20 00 cmp %o0, 0
200bba4: 22 80 00 02 be,a 200bbac <IMFS_get_token+0xdc>
200bba8: b0 10 20 01 mov 1, %i0
type = IMFS_CURRENT_DIR;
}
return type;
}
200bbac: 81 c7 e0 08 ret
200bbb0: 81 e8 00 00 restore
0200213c <IMFS_initialize_support>:
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *memfile_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers
)
{
200213c: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
2002140: 03 00 80 75 sethi %hi(0x201d400), %g1
2002144: c2 00 62 a8 ld [ %g1 + 0x2a8 ], %g1 ! 201d6a8 <imfs_rq_memfile_bytes_per_block>
2002148: 86 10 20 00 clr %g3
200214c: 84 10 20 10 mov 0x10, %g2
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
2002150: 80 a0 80 01 cmp %g2, %g1
2002154: 02 80 00 06 be 200216c <IMFS_initialize_support+0x30>
2002158: 86 00 e0 01 inc %g3
200215c: 80 a0 e0 06 cmp %g3, 6
2002160: 12 bf ff fc bne 2002150 <IMFS_initialize_support+0x14> <== ALWAYS TAKEN
2002164: 85 28 a0 01 sll %g2, 1, %g2
2002168: 84 10 20 80 mov 0x80, %g2 <== NOT EXECUTED
if (bit_mask == requested_bytes_per_block) {
is_valid = true;
}
}
*dest_bytes_per_block = ((is_valid)
200216c: 03 00 80 77 sethi %hi(0x201dc00), %g1
/*
* 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();
2002170: 40 00 22 b2 call 200ac38 <IMFS_create_root_node>
2002174: c4 20 62 28 st %g2, [ %g1 + 0x228 ] ! 201de28 <imfs_memfile_bytes_per_block>
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;
2002178: 94 10 20 30 mov 0x30, %o2
/*
* 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();
200217c: d0 26 20 1c st %o0, [ %i0 + 0x1c ]
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
temp_mt_entry->mt_fs_root.ops = op_table;
2002180: f2 26 20 28 st %i1, [ %i0 + 0x28 ]
* 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;
2002184: f6 26 20 24 st %i3, [ %i0 + 0x24 ]
temp_mt_entry->mt_fs_root.ops = op_table;
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
2002188: 13 00 80 71 sethi %hi(0x201c400), %o1
200218c: 90 06 20 38 add %i0, 0x38, %o0
2002190: 40 00 3c 2a call 2011238 <memcpy>
2002194: 92 12 62 5c or %o1, 0x25c, %o1
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
2002198: 90 10 20 01 mov 1, %o0
200219c: 40 00 01 c6 call 20028b4 <calloc>
20021a0: 92 10 20 10 mov 0x10, %o1
if ( !fs_info ) {
20021a4: 82 92 20 00 orcc %o0, 0, %g1
20021a8: 12 80 00 0a bne 20021d0 <IMFS_initialize_support+0x94> <== ALWAYS TAKEN
20021ac: d0 06 20 1c ld [ %i0 + 0x1c ], %o0
free(temp_mt_entry->mt_fs_root.node_access);
20021b0: 40 00 02 53 call 2002afc <free> <== NOT EXECUTED
20021b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
20021b8: 40 00 39 e4 call 2010948 <__errno> <== NOT EXECUTED
20021bc: 01 00 00 00 nop <== NOT EXECUTED
20021c0: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
20021c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20021c8: 81 c7 e0 08 ret <== NOT EXECUTED
20021cc: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
20021d0: 07 00 80 77 sethi %hi(0x201dc00), %g3
20021d4: c4 00 e2 2c ld [ %g3 + 0x22c ], %g2 ! 201de2c <imfs_instance.6029>
fs_info->ino_count = 1;
20021d8: 88 10 20 01 mov 1, %g4
20021dc: c8 20 60 04 st %g4, [ %g1 + 4 ]
fs_info->memfile_handlers = memfile_handlers;
fs_info->directory_handlers = directory_handlers;
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
20021e0: c8 22 20 38 st %g4, [ %o0 + 0x38 ]
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
20021e4: 88 00 a0 01 add %g2, 1, %g4
20021e8: c8 20 e2 2c st %g4, [ %g3 + 0x22c ]
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;
20021ec: c2 26 20 34 st %g1, [ %i0 + 0x34 ]
*/
fs_info->instance = imfs_instance++;
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
fs_info->directory_handlers = directory_handlers;
20021f0: f6 20 60 0c st %i3, [ %g1 + 0xc ]
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
fs_info->ino_count = 1;
fs_info->memfile_handlers = memfile_handlers;
20021f4: f4 20 60 08 st %i2, [ %g1 + 8 ]
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
20021f8: c4 20 40 00 st %g2, [ %g1 ]
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
/* Initialize POSIX FIFO/pipe module */
rtems_pipe_initialize();
20021fc: 40 00 1f f8 call 200a1dc <rtems_pipe_initialize>
2002200: b0 10 20 00 clr %i0
return 0;
}
2002204: 81 c7 e0 08 ret
2002208: 81 e8 00 00 restore
0200220c <IMFS_link>:
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
200220c: 9d e3 bf 50 save %sp, -176, %sp
int i;
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
2002210: c2 06 00 00 ld [ %i0 ], %g1
2002214: c2 27 bf d8 st %g1, [ %fp + -40 ]
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
2002218: c2 10 60 34 lduh [ %g1 + 0x34 ], %g1
200221c: 80 a0 60 07 cmp %g1, 7
2002220: 08 80 00 06 bleu 2002238 <IMFS_link+0x2c>
2002224: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EMLINK );
2002228: 40 00 39 c8 call 2010948 <__errno>
200222c: 01 00 00 00 nop
2002230: 10 80 00 17 b 200228c <IMFS_link+0x80>
2002234: 82 10 20 1f mov 0x1f, %g1 ! 1f <PROM_START+0x1f>
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
2002238: 40 00 3d 91 call 201187c <strlen>
200223c: 90 10 00 1a mov %i2, %o0
2002240: a0 07 bf b0 add %fp, -80, %l0
2002244: 92 10 00 08 mov %o0, %o1
2002248: 96 07 bf fc add %fp, -4, %o3
200224c: 94 10 00 10 mov %l0, %o2
2002250: 40 00 26 20 call 200bad0 <IMFS_get_token>
2002254: 90 10 00 1a mov %i2, %o0
* 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(
2002258: 90 10 00 19 mov %i1, %o0
200225c: 94 10 00 10 mov %l0, %o2
2002260: 92 10 20 03 mov 3, %o1
2002264: 17 00 00 28 sethi %hi(0xa000), %o3
2002268: 98 07 bf d8 add %fp, -40, %o4
200226c: 40 00 22 83 call 200ac78 <IMFS_create_node>
2002270: 96 12 e1 ff or %o3, 0x1ff, %o3
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
2002274: 80 a2 20 00 cmp %o0, 0
2002278: 12 80 00 08 bne 2002298 <IMFS_link+0x8c> <== ALWAYS TAKEN
200227c: c2 07 bf d8 ld [ %fp + -40 ], %g1
rtems_set_errno_and_return_minus_one( ENOMEM );
2002280: 40 00 39 b2 call 2010948 <__errno> <== NOT EXECUTED
2002284: 01 00 00 00 nop <== NOT EXECUTED
2002288: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
200228c: c2 22 00 00 st %g1, [ %o0 ]
2002290: 81 c7 e0 08 ret
2002294: 91 e8 3f ff restore %g0, -1, %o0
/*
* 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 );
2002298: 90 07 bf f4 add %fp, -12, %o0
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++;
200229c: c4 10 60 34 lduh [ %g1 + 0x34 ], %g2
IMFS_update_ctime( info.hard_link.link_node );
20022a0: 92 10 20 00 clr %o1
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++;
20022a4: 84 00 a0 01 inc %g2
IMFS_update_ctime( info.hard_link.link_node );
20022a8: 40 00 02 3f call 2002ba4 <gettimeofday>
20022ac: c4 30 60 34 sth %g2, [ %g1 + 0x34 ]
20022b0: c4 07 bf f4 ld [ %fp + -12 ], %g2
20022b4: c2 07 bf d8 ld [ %fp + -40 ], %g1
20022b8: c4 20 60 48 st %g2, [ %g1 + 0x48 ]
return 0;
}
20022bc: 81 c7 e0 08 ret
20022c0: 91 e8 20 00 restore %g0, 0, %o0
0200e570 <IMFS_memfile_addblock>:
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
200e570: 9d e3 bf a0 save %sp, -96, %sp
200e574: 90 10 00 18 mov %i0, %o0
block_p memory;
block_p *block_entry_ptr;
assert( the_jnode );
200e578: 80 a6 20 00 cmp %i0, 0
200e57c: 12 80 00 0a bne 200e5a4 <IMFS_memfile_addblock+0x34> <== ALWAYS TAKEN
200e580: 92 10 00 19 mov %i1, %o1
200e584: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e588: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e58c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e590: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e594: 94 12 a1 c0 or %o2, 0x1c0, %o2 <== NOT EXECUTED
200e598: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED
200e59c: 10 80 00 0c b 200e5cc <IMFS_memfile_addblock+0x5c> <== NOT EXECUTED
200e5a0: 92 10 21 69 mov 0x169, %o1 <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e5a4: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e5a8: 80 a0 60 05 cmp %g1, 5
200e5ac: 02 80 00 0a be 200e5d4 <IMFS_memfile_addblock+0x64> <== ALWAYS TAKEN
200e5b0: 15 00 80 73 sethi %hi(0x201cc00), %o2
200e5b4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e5b8: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e5bc: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e5c0: 94 12 a1 c0 or %o2, 0x1c0, %o2 <== NOT EXECUTED
200e5c4: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED
200e5c8: 92 10 21 6d mov 0x16d, %o1 <== NOT EXECUTED
200e5cc: 7f ff f5 e5 call 200bd60 <__assert_func> <== NOT EXECUTED
200e5d0: 01 00 00 00 nop <== NOT EXECUTED
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
200e5d4: 7f ff fe 6d call 200df88 <IMFS_memfile_get_block_pointer>
200e5d8: 94 10 20 01 mov 1, %o2 ! 1 <PROM_START+0x1>
if ( *block_entry_ptr )
200e5dc: c2 02 00 00 ld [ %o0 ], %g1
assert( the_jnode->type == IMFS_MEMORY_FILE );
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
200e5e0: a0 10 00 08 mov %o0, %l0
if ( *block_entry_ptr )
200e5e4: 80 a0 60 00 cmp %g1, 0
200e5e8: 12 80 00 09 bne 200e60c <IMFS_memfile_addblock+0x9c>
200e5ec: b0 10 20 00 clr %i0
#if 0
fprintf(stdout, "%d %p", block, block_entry_ptr );
fflush(stdout);
#endif
memory = memfile_alloc_block();
200e5f0: 7f ff fe 59 call 200df54 <memfile_alloc_block>
200e5f4: b0 10 20 01 mov 1, %i0
if ( !memory )
200e5f8: 80 a2 20 00 cmp %o0, 0
200e5fc: 02 80 00 04 be 200e60c <IMFS_memfile_addblock+0x9c> <== NEVER TAKEN
200e600: 01 00 00 00 nop
return 1;
*block_entry_ptr = memory;
200e604: d0 24 00 00 st %o0, [ %l0 ]
200e608: b0 10 20 00 clr %i0
return 0;
}
200e60c: 81 c7 e0 08 ret
200e610: 81 e8 00 00 restore
0200e614 <IMFS_memfile_extend>:
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
200e614: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e618: 80 a6 20 00 cmp %i0, 0
200e61c: 32 80 00 0a bne,a 200e644 <IMFS_memfile_extend+0x30> <== ALWAYS TAKEN
200e620: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e624: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e628: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e62c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e630: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e634: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED
200e638: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED
200e63c: 10 80 00 0c b 200e66c <IMFS_memfile_extend+0x58> <== NOT EXECUTED
200e640: 92 10 21 31 mov 0x131, %o1 <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e644: 80 a0 60 05 cmp %g1, 5
200e648: 02 80 00 0b be 200e674 <IMFS_memfile_extend+0x60> <== ALWAYS TAKEN
200e64c: 03 00 80 77 sethi %hi(0x201dc00), %g1
200e650: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e654: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e658: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e65c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e660: 94 12 a1 d8 or %o2, 0x1d8, %o2 <== NOT EXECUTED
200e664: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED
200e668: 92 10 21 35 mov 0x135, %o1 <== NOT EXECUTED
200e66c: 7f ff f5 bd call 200bd60 <__assert_func> <== NOT EXECUTED
200e670: 01 00 00 00 nop <== NOT EXECUTED
if ( the_jnode->type != IMFS_MEMORY_FILE )
rtems_set_errno_and_return_minus_one( EIO );
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
200e674: e0 00 62 28 ld [ %g1 + 0x228 ], %l0
200e678: a3 34 20 02 srl %l0, 2, %l1
200e67c: 92 10 00 11 mov %l1, %o1
200e680: 40 00 2d cb call 2019dac <.umul>
200e684: 90 04 60 01 add %l1, 1, %o0
200e688: 92 10 00 11 mov %l1, %o1
200e68c: 40 00 2d c8 call 2019dac <.umul>
200e690: 90 02 20 01 inc %o0
200e694: 92 10 00 10 mov %l0, %o1
200e698: 40 00 2d c5 call 2019dac <.umul>
200e69c: 90 02 3f ff add %o0, -1, %o0
200e6a0: 82 10 20 00 clr %g1
200e6a4: 80 a0 40 19 cmp %g1, %i1
200e6a8: 34 80 00 0b bg,a 200e6d4 <IMFS_memfile_extend+0xc0> <== NEVER TAKEN
200e6ac: e2 06 20 50 ld [ %i0 + 0x50 ], %l1 <== NOT EXECUTED
200e6b0: 80 a0 40 19 cmp %g1, %i1
200e6b4: 12 80 00 04 bne 200e6c4 <IMFS_memfile_extend+0xb0> <== NEVER TAKEN
200e6b8: 80 a2 00 1a cmp %o0, %i2
200e6bc: 38 80 00 06 bgu,a 200e6d4 <IMFS_memfile_extend+0xc0> <== ALWAYS TAKEN
200e6c0: e2 06 20 50 ld [ %i0 + 0x50 ], %l1
rtems_set_errno_and_return_minus_one( EINVAL );
200e6c4: 40 00 08 a1 call 2010948 <__errno> <== NOT EXECUTED
200e6c8: 01 00 00 00 nop <== NOT EXECUTED
200e6cc: 10 80 00 2b b 200e778 <IMFS_memfile_extend+0x164> <== NOT EXECUTED
200e6d0: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
if ( new_length <= the_jnode->info.file.size )
200e6d4: 80 a6 40 11 cmp %i1, %l1
200e6d8: 14 80 00 09 bg 200e6fc <IMFS_memfile_extend+0xe8> <== NEVER TAKEN
200e6dc: e6 06 20 54 ld [ %i0 + 0x54 ], %l3
200e6e0: 80 a6 40 11 cmp %i1, %l1
200e6e4: 12 80 00 04 bne 200e6f4 <IMFS_memfile_extend+0xe0> <== NEVER TAKEN
200e6e8: 80 a6 80 13 cmp %i2, %l3
200e6ec: 18 80 00 05 bgu 200e700 <IMFS_memfile_extend+0xec>
200e6f0: a5 3c 20 1f sra %l0, 0x1f, %l2
200e6f4: 81 c7 e0 08 ret
200e6f8: 91 e8 20 00 restore %g0, 0, %o0
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e6fc: a5 3c 20 1f sra %l0, 0x1f, %l2 <== NOT EXECUTED
200e700: 96 10 00 10 mov %l0, %o3
200e704: 94 10 00 12 mov %l2, %o2
200e708: 90 10 00 19 mov %i1, %o0
200e70c: 40 00 2f 3a call 201a3f4 <__divdi3>
200e710: 92 10 00 1a mov %i2, %o1
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e714: 90 10 00 11 mov %l1, %o0
200e718: 96 10 00 10 mov %l0, %o3
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e71c: a8 10 00 09 mov %o1, %l4
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e720: 94 10 00 12 mov %l2, %o2
200e724: 40 00 2f 34 call 201a3f4 <__divdi3>
200e728: 92 10 00 13 mov %l3, %o1
200e72c: a2 10 00 09 mov %o1, %l1
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
200e730: 10 80 00 15 b 200e784 <IMFS_memfile_extend+0x170>
200e734: a0 10 00 09 mov %o1, %l0
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
200e738: 7f ff ff 8e call 200e570 <IMFS_memfile_addblock>
200e73c: 92 10 00 10 mov %l0, %o1
200e740: 80 a2 20 00 cmp %o0, 0
200e744: 22 80 00 10 be,a 200e784 <IMFS_memfile_extend+0x170> <== ALWAYS TAKEN
200e748: a0 04 20 01 inc %l0
for ( ; block>=old_blocks ; block-- ) {
200e74c: 10 80 00 06 b 200e764 <IMFS_memfile_extend+0x150> <== NOT EXECUTED
200e750: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
200e754: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200e758: 7f ff fe d7 call 200e2b4 <IMFS_memfile_remove_block> <== NOT EXECUTED
200e75c: a0 04 3f ff add %l0, -1, %l0 <== 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-- ) {
200e760: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
200e764: 1a bf ff fc bcc 200e754 <IMFS_memfile_extend+0x140> <== NOT EXECUTED
200e768: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
200e76c: 40 00 08 77 call 2010948 <__errno> <== NOT EXECUTED
200e770: 01 00 00 00 nop <== NOT EXECUTED
200e774: 82 10 20 1c mov 0x1c, %g1 ! 1c <PROM_START+0x1c> <== NOT EXECUTED
200e778: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200e77c: 81 c7 e0 08 ret <== NOT EXECUTED
200e780: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
200e784: 80 a4 00 14 cmp %l0, %l4
200e788: 08 bf ff ec bleu 200e738 <IMFS_memfile_extend+0x124>
200e78c: 90 10 00 18 mov %i0, %o0
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
200e790: f4 26 20 54 st %i2, [ %i0 + 0x54 ]
200e794: f2 26 20 50 st %i1, [ %i0 + 0x50 ]
return 0;
}
200e798: 81 c7 e0 08 ret
200e79c: 91 e8 20 00 restore %g0, 0, %o0
0200df88 <IMFS_memfile_get_block_pointer>:
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
200df88: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200df8c: 80 a6 20 00 cmp %i0, 0
200df90: 32 80 00 0a bne,a 200dfb8 <IMFS_memfile_get_block_pointer+0x30><== ALWAYS TAKEN
200df94: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200df98: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200df9c: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200dfa0: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200dfa4: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200dfa8: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED
200dfac: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED
200dfb0: 10 80 00 0c b 200dfe0 <IMFS_memfile_get_block_pointer+0x58><== NOT EXECUTED
200dfb4: 92 10 23 88 mov 0x388, %o1 <== NOT EXECUTED
if ( !the_jnode )
return NULL;
assert( the_jnode->type == IMFS_MEMORY_FILE );
200dfb8: 80 a0 60 05 cmp %g1, 5
200dfbc: 02 80 00 0b be 200dfe8 <IMFS_memfile_get_block_pointer+0x60><== ALWAYS TAKEN
200dfc0: 03 00 80 77 sethi %hi(0x201dc00), %g1
200dfc4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200dfc8: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200dfcc: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200dfd0: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200dfd4: 94 12 a1 18 or %o2, 0x118, %o2 <== NOT EXECUTED
200dfd8: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED
200dfdc: 92 10 23 8c mov 0x38c, %o1 <== NOT EXECUTED
200dfe0: 7f ff f7 60 call 200bd60 <__assert_func> <== NOT EXECUTED
200dfe4: 01 00 00 00 nop <== NOT EXECUTED
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
200dfe8: e0 00 62 28 ld [ %g1 + 0x228 ], %l0
200dfec: a1 34 20 02 srl %l0, 2, %l0
200dff0: 82 04 3f ff add %l0, -1, %g1
200dff4: 80 a6 40 01 cmp %i1, %g1
200dff8: 18 80 00 16 bgu 200e050 <IMFS_memfile_get_block_pointer+0xc8><== NEVER TAKEN
200dffc: 90 04 20 01 add %l0, 1, %o0
fprintf(stdout, "(s %d) ", block );
fflush(stdout);
#endif
p = info->indirect;
if ( malloc_it ) {
200e000: 80 a6 a0 00 cmp %i2, 0
200e004: 02 80 00 0f be 200e040 <IMFS_memfile_get_block_pointer+0xb8>
200e008: c2 06 20 58 ld [ %i0 + 0x58 ], %g1
if ( !p ) {
200e00c: 80 a0 60 00 cmp %g1, 0
200e010: 32 80 00 09 bne,a 200e034 <IMFS_memfile_get_block_pointer+0xac>
200e014: f0 06 20 58 ld [ %i0 + 0x58 ], %i0
p = memfile_alloc_block();
200e018: 7f ff ff cf call 200df54 <memfile_alloc_block>
200e01c: 01 00 00 00 nop
if ( !p )
200e020: 80 a2 20 00 cmp %o0, 0
200e024: 22 80 00 85 be,a 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NEVER TAKEN
200e028: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->indirect = p;
200e02c: d0 26 20 58 st %o0, [ %i0 + 0x58 ]
}
return &info->indirect[ my_block ];
200e030: f0 06 20 58 ld [ %i0 + 0x58 ], %i0
200e034: b3 2e 60 02 sll %i1, 2, %i1
200e038: 81 c7 e0 08 ret
200e03c: 91 ee 00 19 restore %i0, %i1, %o0
}
if ( !p )
return 0;
return &info->indirect[ my_block ];
200e040: b3 2e 60 02 sll %i1, 2, %i1
info->indirect = p;
}
return &info->indirect[ my_block ];
}
if ( !p )
200e044: 80 a0 60 00 cmp %g1, 0
return 0;
return &info->indirect[ my_block ];
200e048: 10 80 00 79 b 200e22c <IMFS_memfile_get_block_pointer+0x2a4>
200e04c: b0 00 40 19 add %g1, %i1, %i0
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
200e050: 40 00 2f 57 call 2019dac <.umul> <== NOT EXECUTED
200e054: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e058: 82 02 3f ff add %o0, -1, %g1 <== NOT EXECUTED
200e05c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200e060: 18 80 00 2d bgu 200e114 <IMFS_memfile_get_block_pointer+0x18c><== NOT EXECUTED
200e064: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d) ", block );
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
200e068: b2 26 40 10 sub %i1, %l0, %i1 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e06c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e070: 40 00 30 35 call 201a144 <.urem> <== NOT EXECUTED
200e074: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e078: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
fflush(stdout);
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e07c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e080: 40 00 2f 85 call 2019e94 <.udiv> <== NOT EXECUTED
200e084: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
200e088: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
#endif
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e08c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
200e090: 02 80 00 18 be 200e0f0 <IMFS_memfile_get_block_pointer+0x168><== NOT EXECUTED
200e094: c2 06 20 5c ld [ %i0 + 0x5c ], %g1 <== NOT EXECUTED
if ( !p ) {
200e098: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e09c: 12 80 00 08 bne 200e0bc <IMFS_memfile_get_block_pointer+0x134><== NOT EXECUTED
200e0a0: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED
p = memfile_alloc_block();
200e0a4: 7f ff ff ac call 200df54 <memfile_alloc_block> <== NOT EXECUTED
200e0a8: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
200e0ac: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200e0b0: 22 80 00 62 be,a 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e0b4: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->doubly_indirect = p;
200e0b8: c2 26 20 5c st %g1, [ %i0 + 0x5c ] <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
200e0bc: d0 00 40 10 ld [ %g1 + %l0 ], %o0 <== NOT EXECUTED
if ( !p1 ) {
200e0c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e0c4: 12 80 00 08 bne 200e0e4 <IMFS_memfile_get_block_pointer+0x15c><== NOT EXECUTED
200e0c8: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED
p1 = memfile_alloc_block();
200e0cc: 7f ff ff a2 call 200df54 <memfile_alloc_block> <== NOT EXECUTED
200e0d0: 01 00 00 00 nop <== NOT EXECUTED
if ( !p1 )
200e0d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e0d8: 22 80 00 58 be,a 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e0dc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
200e0e0: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
200e0e4: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200e0e8: 81 c7 e0 08 ret <== NOT EXECUTED
200e0ec: 91 ea 00 11 restore %o0, %l1, %o0 <== NOT EXECUTED
}
if ( !p )
200e0f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e0f4: 22 80 00 51 be,a 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e0f8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
200e0fc: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED
200e100: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,
singly, p, &p[singly] );
fflush(stdout);
#endif
return (block_p *)&p[ singly ];
200e104: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
if ( !p )
return 0;
p = (block_p *)p[ doubly ];
if ( !p )
200e108: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
#if 0
fprintf(stdout, "(d %d %d %d %d %p %p) ", block, my_block, doubly,
singly, p, &p[singly] );
fflush(stdout);
#endif
return (block_p *)&p[ singly ];
200e10c: 10 80 00 48 b 200e22c <IMFS_memfile_get_block_pointer+0x2a4><== NOT EXECUTED
200e110: b0 00 40 11 add %g1, %l1, %i0 <== NOT EXECUTED
#endif
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
200e114: 90 02 20 01 inc %o0 <== NOT EXECUTED
200e118: 40 00 2f 25 call 2019dac <.umul> <== NOT EXECUTED
200e11c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e120: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
200e124: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED
200e128: 18 80 00 43 bgu 200e234 <IMFS_memfile_get_block_pointer+0x2ac><== NOT EXECUTED
200e12c: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e130: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e134: 40 00 30 04 call 201a144 <.urem> <== NOT EXECUTED
200e138: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e13c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
200e140: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
200e144: 40 00 2f 54 call 2019e94 <.udiv> <== NOT EXECUTED
200e148: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
200e14c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
200e150: 40 00 2f 51 call 2019e94 <.udiv> <== NOT EXECUTED
200e154: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
200e158: 92 10 00 10 mov %l0, %o1 <== 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;
200e15c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
200e160: 40 00 2f f9 call 201a144 <.urem> <== NOT EXECUTED
200e164: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
200e168: 80 a6 a0 00 cmp %i2, 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;
200e16c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
200e170: 02 80 00 23 be 200e1fc <IMFS_memfile_get_block_pointer+0x274><== NOT EXECUTED
200e174: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED
if ( !p ) {
200e178: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e17c: 12 80 00 08 bne 200e19c <IMFS_memfile_get_block_pointer+0x214><== NOT EXECUTED
200e180: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
p = memfile_alloc_block();
200e184: 7f ff ff 74 call 200df54 <memfile_alloc_block> <== NOT EXECUTED
200e188: 01 00 00 00 nop <== NOT EXECUTED
if ( !p )
200e18c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200e190: 22 80 00 2a be,a 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e194: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
info->triply_indirect = p;
200e198: c2 26 20 60 st %g1, [ %i0 + 0x60 ] <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
200e19c: c4 00 40 11 ld [ %g1 + %l1 ], %g2 <== NOT EXECUTED
if ( !p1 ) {
200e1a0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200e1a4: 12 80 00 08 bne 200e1c4 <IMFS_memfile_get_block_pointer+0x23c><== NOT EXECUTED
200e1a8: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
p1 = memfile_alloc_block();
200e1ac: 7f ff ff 6a call 200df54 <memfile_alloc_block> <== NOT EXECUTED
200e1b0: 01 00 00 00 nop <== NOT EXECUTED
if ( !p1 )
200e1b4: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED
200e1b8: 02 80 00 20 be 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e1bc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
200e1c0: c4 24 40 00 st %g2, [ %l1 ] <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
200e1c4: a1 2c 20 02 sll %l0, 2, %l0 <== NOT EXECUTED
200e1c8: d0 00 80 10 ld [ %g2 + %l0 ], %o0 <== NOT EXECUTED
if ( !p2 ) {
200e1cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e1d0: 12 80 00 08 bne 200e1f0 <IMFS_memfile_get_block_pointer+0x268><== NOT EXECUTED
200e1d4: a0 00 80 10 add %g2, %l0, %l0 <== NOT EXECUTED
p2 = memfile_alloc_block();
200e1d8: 7f ff ff 5f call 200df54 <memfile_alloc_block> <== NOT EXECUTED
200e1dc: 01 00 00 00 nop <== NOT EXECUTED
if ( !p2 )
200e1e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e1e4: 22 80 00 15 be,a 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e1e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
200e1ec: d0 24 00 00 st %o0, [ %l0 ] <== NOT EXECUTED
}
return (block_p *)&p2[ singly ];
200e1f0: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
200e1f4: 81 c7 e0 08 ret <== NOT EXECUTED
200e1f8: 91 ea 00 12 restore %o0, %l2, %o0 <== NOT EXECUTED
}
if ( !p )
200e1fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e200: 02 80 00 0e be 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e204: b0 10 20 00 clr %i0 <== NOT EXECUTED
#if 0
fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly );
fflush(stdout);
#endif
p1 = (block_p *) p[ triply ];
200e208: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
200e20c: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED
if ( !p1 )
200e210: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e214: 02 80 00 09 be 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== NOT EXECUTED
200e218: a1 2a 20 02 sll %o0, 2, %l0 <== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
200e21c: c2 00 40 10 ld [ %g1 + %l0 ], %g1 <== NOT EXECUTED
if ( !p2 )
return 0;
return (block_p *)&p2[ singly ];
200e220: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
p1 = (block_p *) p[ triply ];
if ( !p1 )
return 0;
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
200e224: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
return 0;
return (block_p *)&p2[ singly ];
200e228: b0 00 40 12 add %g1, %l2, %i0 <== NOT EXECUTED
p1 = (block_p *) p[ triply ];
if ( !p1 )
return 0;
p2 = (block_p *)p1[ doubly ];
if ( !p2 )
200e22c: 12 80 00 03 bne 200e238 <IMFS_memfile_get_block_pointer+0x2b0><== ALWAYS TAKEN
200e230: 01 00 00 00 nop
return 0;
return (block_p *)&p2[ singly ];
200e234: b0 10 20 00 clr %i0 ! 0 <PROM_START> <== NOT EXECUTED
/*
* This means the requested block number is out of range.
*/
return 0;
}
200e238: 81 c7 e0 08 ret
200e23c: 81 e8 00 00 restore
0200ec20 <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
200ec20: 9d e3 bf 98 save %sp, -104, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200ec24: a0 96 20 00 orcc %i0, 0, %l0
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
200ec28: a4 10 00 19 mov %i1, %l2
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200ec2c: 12 80 00 0a bne 200ec54 <IMFS_memfile_read+0x34> <== ALWAYS TAKEN
200ec30: a6 10 00 1a mov %i2, %l3
200ec34: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ec38: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ec3c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200ec40: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200ec44: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
200ec48: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED
200ec4c: 10 80 00 0e b 200ec84 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200ec50: 92 10 22 4c mov 0x24c, %o1 <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE ||
200ec54: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200ec58: 84 00 7f fb add %g1, -5, %g2
200ec5c: 80 a0 a0 01 cmp %g2, 1
200ec60: 08 80 00 0b bleu 200ec8c <IMFS_memfile_read+0x6c> <== ALWAYS TAKEN
200ec64: 80 a6 e0 00 cmp %i3, 0
200ec68: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ec6c: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ec70: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200ec74: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200ec78: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
200ec7c: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED
200ec80: 92 10 22 51 mov 0x251, %o1 <== NOT EXECUTED
200ec84: 7f ff f4 37 call 200bd60 <__assert_func> <== NOT EXECUTED
200ec88: 01 00 00 00 nop <== NOT EXECUTED
/*
* Error checks on arguments
*/
assert( dest );
200ec8c: 32 80 00 0a bne,a 200ecb4 <IMFS_memfile_read+0x94> <== ALWAYS TAKEN
200ec90: 80 a7 20 00 cmp %i4, 0
200ec94: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ec98: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ec9c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200eca0: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200eca4: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
200eca8: 96 12 e1 10 or %o3, 0x110, %o3 <== NOT EXECUTED
200ecac: 10 bf ff f6 b 200ec84 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200ecb0: 92 10 22 5a mov 0x25a, %o1 <== NOT EXECUTED
/*
* If there is nothing to read, then quick exit.
*/
my_length = length;
if ( !my_length )
200ecb4: 12 80 00 08 bne 200ecd4 <IMFS_memfile_read+0xb4> <== ALWAYS TAKEN
200ecb8: 80 a0 60 06 cmp %g1, 6
rtems_set_errno_and_return_minus_one( EINVAL );
200ecbc: 40 00 07 23 call 2010948 <__errno> <== NOT EXECUTED
200ecc0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200ecc4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200ecc8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200eccc: 81 c7 e0 08 ret <== NOT EXECUTED
200ecd0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
if (the_jnode->type == IMFS_LINEAR_FILE) {
200ecd4: 32 80 00 1c bne,a 200ed44 <IMFS_memfile_read+0x124> <== ALWAYS TAKEN
200ecd8: c6 04 20 50 ld [ %l0 + 0x50 ], %g3
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
200ecdc: d8 1c 20 50 ldd [ %l0 + 0x50 ], %o4 <== NOT EXECUTED
200ece0: 82 10 20 00 clr %g1 <== NOT EXECUTED
200ece4: 86 a3 40 1a subcc %o5, %i2, %g3 <== NOT EXECUTED
200ece8: 84 63 00 19 subx %o4, %i1, %g2 <== NOT EXECUTED
200ecec: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200ecf0: 14 80 00 09 bg 200ed14 <IMFS_memfile_read+0xf4> <== NOT EXECUTED
200ecf4: d2 04 20 58 ld [ %l0 + 0x58 ], %o1 <== NOT EXECUTED
200ecf8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200ecfc: 12 80 00 04 bne 200ed0c <IMFS_memfile_read+0xec> <== NOT EXECUTED
200ed00: 80 a7 00 03 cmp %i4, %g3 <== NOT EXECUTED
200ed04: 38 80 00 05 bgu,a 200ed18 <IMFS_memfile_read+0xf8> <== NOT EXECUTED
200ed08: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED
200ed0c: 10 80 00 03 b 200ed18 <IMFS_memfile_read+0xf8> <== NOT EXECUTED
200ed10: b0 10 00 1c mov %i4, %i0 <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
200ed14: b0 23 40 13 sub %o5, %l3, %i0 <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
200ed18: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
200ed1c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
200ed20: 40 00 09 46 call 2011238 <memcpy> <== NOT EXECUTED
200ed24: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
IMFS_update_atime( the_jnode );
200ed28: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
200ed2c: 7f ff cf 9e call 2002ba4 <gettimeofday> <== NOT EXECUTED
200ed30: 92 10 20 00 clr %o1 <== NOT EXECUTED
200ed34: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200ed38: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
return my_length;
200ed3c: 81 c7 e0 08 ret <== NOT EXECUTED
200ed40: 81 e8 00 00 restore <== NOT EXECUTED
* If the last byte we are supposed to read is past the end of this
* in memory file, then shorten the length to read.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size )
200ed44: 88 10 20 00 clr %g4
/*
* 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;
200ed48: 82 10 00 1a mov %i2, %g1
if ( last_byte > the_jnode->info.file.size )
200ed4c: 80 a1 00 03 cmp %g4, %g3
200ed50: c4 04 20 54 ld [ %l0 + 0x54 ], %g2
200ed54: 14 80 00 08 bg 200ed74 <IMFS_memfile_read+0x154> <== NEVER TAKEN
200ed58: 9a 07 00 1a add %i4, %i2, %o5
200ed5c: 80 a1 00 03 cmp %g4, %g3
200ed60: 32 80 00 07 bne,a 200ed7c <IMFS_memfile_read+0x15c> <== NEVER TAKEN
200ed64: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200ed68: 80 a3 40 02 cmp %o5, %g2
200ed6c: 28 80 00 04 bleu,a 200ed7c <IMFS_memfile_read+0x15c>
200ed70: 03 00 80 77 sethi %hi(0x201dc00), %g1
my_length = the_jnode->info.file.size - start;
200ed74: b8 20 80 01 sub %g2, %g1, %i4
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200ed78: 03 00 80 77 sethi %hi(0x201dc00), %g1
200ed7c: e2 00 62 28 ld [ %g1 + 0x228 ], %l1 ! 201de28 <imfs_memfile_bytes_per_block>
200ed80: 90 10 00 12 mov %l2, %o0
200ed84: ab 3c 60 1f sra %l1, 0x1f, %l5
200ed88: 96 10 00 11 mov %l1, %o3
200ed8c: 94 10 00 15 mov %l5, %o2
200ed90: 40 00 2e 80 call 201a790 <__moddi3>
200ed94: 92 10 00 13 mov %l3, %o1
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200ed98: 90 10 00 12 mov %l2, %o0
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200ed9c: a8 10 00 09 mov %o1, %l4
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200eda0: 94 10 00 15 mov %l5, %o2
200eda4: 92 10 00 13 mov %l3, %o1
200eda8: 40 00 2d 93 call 201a3f4 <__divdi3>
200edac: 96 10 00 11 mov %l1, %o3
if ( start_offset ) {
200edb0: 80 a5 20 00 cmp %l4, 0
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200edb4: a4 10 00 09 mov %o1, %l2
if ( start_offset ) {
200edb8: aa 10 00 1b mov %i3, %l5
200edbc: 02 80 00 1c be 200ee2c <IMFS_memfile_read+0x20c>
200edc0: b0 10 20 00 clr %i0
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 );
200edc4: 90 10 00 10 mov %l0, %o0
200edc8: 7f ff fc 70 call 200df88 <IMFS_memfile_get_block_pointer>
200edcc: 94 10 20 00 clr %o2
assert( block_ptr );
200edd0: 80 a2 20 00 cmp %o0, 0
200edd4: 32 80 00 0a bne,a 200edfc <IMFS_memfile_read+0x1dc> <== ALWAYS TAKEN
200edd8: a2 24 40 14 sub %l1, %l4, %l1
200eddc: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ede0: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ede4: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200ede8: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200edec: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
200edf0: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200edf4: 10 bf ff a4 b 200ec84 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200edf8: 92 10 22 96 mov 0x296, %o1 <== NOT EXECUTED
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
200edfc: 80 a7 00 11 cmp %i4, %l1
200ee00: 08 80 00 03 bleu 200ee0c <IMFS_memfile_read+0x1ec>
200ee04: 94 10 00 1c mov %i4, %o2
200ee08: 94 10 00 11 mov %l1, %o2
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
200ee0c: d2 02 00 00 ld [ %o0 ], %o1
dest += to_copy;
200ee10: aa 06 c0 0a add %i3, %o2, %l5
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
200ee14: 92 02 40 14 add %o1, %l4, %o1
dest += to_copy;
block++;
200ee18: a4 04 a0 01 inc %l2
my_length -= to_copy;
200ee1c: b8 27 00 0a sub %i4, %o2, %i4
200ee20: b0 10 00 0a mov %o2, %i0
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
200ee24: 40 00 09 05 call 2011238 <memcpy>
200ee28: 90 10 00 1b mov %i3, %o0
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
200ee2c: 03 00 80 77 sethi %hi(0x201dc00), %g1
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200ee30: a8 10 62 28 or %g1, 0x228, %l4 ! 201de28 <imfs_memfile_bytes_per_block>
200ee34: 10 80 00 17 b 200ee90 <IMFS_memfile_read+0x270>
200ee38: e2 00 62 28 ld [ %g1 + 0x228 ], %l1
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200ee3c: 92 10 00 12 mov %l2, %o1
200ee40: 7f ff fc 52 call 200df88 <IMFS_memfile_get_block_pointer>
200ee44: 94 10 20 00 clr %o2
assert( block_ptr );
200ee48: 80 a2 20 00 cmp %o0, 0
200ee4c: 32 80 00 0a bne,a 200ee74 <IMFS_memfile_read+0x254> <== ALWAYS TAKEN
200ee50: d2 02 00 00 ld [ %o0 ], %o1
200ee54: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ee58: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ee5c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200ee60: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200ee64: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
200ee68: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200ee6c: 10 bf ff 86 b 200ec84 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200ee70: 92 10 22 a7 mov 0x2a7, %o1 <== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
dest += to_copy;
block++;
200ee74: a4 04 a0 01 inc %l2
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
200ee78: 90 10 00 15 mov %l5, %o0
dest += to_copy;
block++;
my_length -= to_copy;
200ee7c: b8 27 00 11 sub %i4, %l1, %i4
copied += to_copy;
200ee80: b0 06 00 11 add %i0, %l1, %i0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
dest += to_copy;
200ee84: aa 05 40 11 add %l5, %l1, %l5
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
200ee88: 40 00 08 ec call 2011238 <memcpy>
200ee8c: 94 10 00 11 mov %l1, %o2
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200ee90: c2 05 00 00 ld [ %l4 ], %g1
200ee94: 80 a7 00 01 cmp %i4, %g1
200ee98: 1a bf ff e9 bcc 200ee3c <IMFS_memfile_read+0x21c>
200ee9c: 90 10 00 10 mov %l0, %o0
* Phase 3: possibly the first part of one block
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
200eea0: 80 a7 20 00 cmp %i4, 0
200eea4: 02 80 00 16 be 200eefc <IMFS_memfile_read+0x2dc>
200eea8: 90 07 bf f8 add %fp, -8, %o0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200eeac: 92 10 00 12 mov %l2, %o1
200eeb0: 90 10 00 10 mov %l0, %o0
200eeb4: 7f ff fc 35 call 200df88 <IMFS_memfile_get_block_pointer>
200eeb8: 94 10 20 00 clr %o2
assert( block_ptr );
200eebc: 80 a2 20 00 cmp %o0, 0
200eec0: 32 80 00 0a bne,a 200eee8 <IMFS_memfile_read+0x2c8> <== ALWAYS TAKEN
200eec4: d2 02 00 00 ld [ %o0 ], %o1
200eec8: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200eecc: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200eed0: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200eed4: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200eed8: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
200eedc: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200eee0: 10 bf ff 69 b 200ec84 <IMFS_memfile_read+0x64> <== NOT EXECUTED
200eee4: 92 10 22 b9 mov 0x2b9, %o1 <== NOT EXECUTED
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
copied += my_length;
200eee8: b0 07 00 18 add %i4, %i0, %i0
if ( my_length ) {
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
200eeec: 90 10 00 15 mov %l5, %o0
200eef0: 40 00 08 d2 call 2011238 <memcpy>
200eef4: 94 10 00 1c mov %i4, %o2
copied += my_length;
}
IMFS_update_atime( the_jnode );
200eef8: 90 07 bf f8 add %fp, -8, %o0
200eefc: 7f ff cf 2a call 2002ba4 <gettimeofday>
200ef00: 92 10 20 00 clr %o1
200ef04: c2 07 bf f8 ld [ %fp + -8 ], %g1
200ef08: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
return copied;
}
200ef0c: 81 c7 e0 08 ret
200ef10: 81 e8 00 00 restore
0200e308 <IMFS_memfile_remove>:
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
200e308: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e30c: 80 a6 20 00 cmp %i0, 0
200e310: 32 80 00 0a bne,a 200e338 <IMFS_memfile_remove+0x30> <== ALWAYS TAKEN
200e314: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e318: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e31c: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e320: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e324: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e328: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED
200e32c: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED
200e330: 10 80 00 0c b 200e360 <IMFS_memfile_remove+0x58> <== NOT EXECUTED
200e334: 92 10 21 ee mov 0x1ee, %o1 <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e338: 80 a0 60 05 cmp %g1, 5
200e33c: 02 80 00 0b be 200e368 <IMFS_memfile_remove+0x60> <== ALWAYS TAKEN
200e340: 03 00 80 77 sethi %hi(0x201dc00), %g1
200e344: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e348: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e34c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e350: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e354: 94 12 a1 68 or %o2, 0x168, %o2 <== NOT EXECUTED
200e358: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED
200e35c: 92 10 21 f2 mov 0x1f2, %o1 <== NOT EXECUTED
200e360: 7f ff f6 80 call 200bd60 <__assert_func> <== NOT EXECUTED
200e364: 01 00 00 00 nop <== 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;
200e368: e0 00 62 28 ld [ %g1 + 0x228 ], %l0
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e36c: c2 06 20 58 ld [ %i0 + 0x58 ], %g1
200e370: 80 a0 60 00 cmp %g1, 0
200e374: 02 80 00 05 be 200e388 <IMFS_memfile_remove+0x80>
200e378: a1 34 20 02 srl %l0, 2, %l0
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
200e37c: 90 06 20 58 add %i0, 0x58, %o0
200e380: 7f ff ff b0 call 200e240 <memfile_free_blocks_in_table>
200e384: 92 10 00 10 mov %l0, %o1
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e388: c2 06 20 5c ld [ %i0 + 0x5c ], %g1
200e38c: 80 a0 60 00 cmp %g1, 0
200e390: 22 80 00 17 be,a 200e3ec <IMFS_memfile_remove+0xe4> <== ALWAYS TAKEN
200e394: c2 06 20 60 ld [ %i0 + 0x60 ], %g1
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e398: 25 00 80 77 sethi %hi(0x201dc00), %l2 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e39c: a2 10 20 00 clr %l1 <== NOT EXECUTED
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e3a0: 10 80 00 0a b 200e3c8 <IMFS_memfile_remove+0xc0> <== NOT EXECUTED
200e3a4: a4 14 a2 28 or %l2, 0x228, %l2 <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
200e3a8: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
200e3ac: c4 02 00 01 ld [ %o0 + %g1 ], %g2 <== NOT EXECUTED
200e3b0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200e3b4: 02 80 00 04 be 200e3c4 <IMFS_memfile_remove+0xbc> <== NOT EXECUTED
200e3b8: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
memfile_free_blocks_in_table(
200e3bc: 7f ff ff a1 call 200e240 <memfile_free_blocks_in_table> <== NOT EXECUTED
200e3c0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e3c4: a2 04 60 01 inc %l1 <== NOT EXECUTED
200e3c8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200e3cc: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e3d0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200e3d4: 2a bf ff f5 bcs,a 200e3a8 <IMFS_memfile_remove+0xa0> <== NOT EXECUTED
200e3d8: d0 06 20 5c ld [ %i0 + 0x5c ], %o0 <== 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 );
200e3dc: 90 06 20 5c add %i0, 0x5c, %o0 <== NOT EXECUTED
200e3e0: 7f ff ff 98 call 200e240 <memfile_free_blocks_in_table> <== NOT EXECUTED
200e3e4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e3e8: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED
200e3ec: 80 a0 60 00 cmp %g1, 0
200e3f0: 02 80 00 25 be 200e484 <IMFS_memfile_remove+0x17c> <== ALWAYS TAKEN
200e3f4: 29 00 80 77 sethi %hi(0x201dc00), %l4
200e3f8: a2 10 20 00 clr %l1 <== NOT EXECUTED
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e3fc: 10 80 00 1a b 200e464 <IMFS_memfile_remove+0x15c> <== NOT EXECUTED
200e400: a8 15 22 28 or %l4, 0x228, %l4 <== NOT EXECUTED
* + indirect
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
200e404: ab 2c 60 02 sll %l1, 2, %l5 <== NOT EXECUTED
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
200e408: e4 00 40 15 ld [ %g1 + %l5 ], %l2 <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
200e40c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
200e410: 02 80 00 1b be 200e47c <IMFS_memfile_remove+0x174> <== NOT EXECUTED
200e414: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
200e418: 10 80 00 09 b 200e43c <IMFS_memfile_remove+0x134> <== NOT EXECUTED
200e41c: a6 10 20 00 clr %l3 <== NOT EXECUTED
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
200e420: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200e424: 02 80 00 04 be 200e434 <IMFS_memfile_remove+0x12c> <== NOT EXECUTED
200e428: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
200e42c: 7f ff ff 85 call 200e240 <memfile_free_blocks_in_table> <== NOT EXECUTED
200e430: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
if ( !p ) /* ensure we have a valid pointer */
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
200e434: a6 04 e0 01 inc %l3 <== NOT EXECUTED
200e438: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
200e43c: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
200e440: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e444: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
200e448: 2a bf ff f6 bcs,a 200e420 <IMFS_memfile_remove+0x118> <== NOT EXECUTED
200e44c: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
200e450: d0 06 20 60 ld [ %i0 + 0x60 ], %o0 <== NOT EXECUTED
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e454: a2 04 60 01 inc %l1 <== NOT EXECUTED
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
200e458: 90 02 00 15 add %o0, %l5, %o0 <== NOT EXECUTED
200e45c: 7f ff ff 79 call 200e240 <memfile_free_blocks_in_table> <== NOT EXECUTED
200e460: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
200e464: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
200e468: 83 30 60 02 srl %g1, 2, %g1 <== NOT EXECUTED
200e46c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200e470: 2a bf ff e5 bcs,a 200e404 <IMFS_memfile_remove+0xfc> <== NOT EXECUTED
200e474: c2 06 20 60 ld [ %i0 + 0x60 ], %g1 <== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
200e478: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
200e47c: 7f ff ff 71 call 200e240 <memfile_free_blocks_in_table> <== NOT EXECUTED
200e480: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
200e484: 81 c7 e0 08 ret
200e488: 91 e8 20 00 restore %g0, 0, %o0
0200e2b4 <IMFS_memfile_remove_block>:
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
200e2b4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200e2b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
200e2bc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200e2c0: 7f ff ff 32 call 200df88 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
200e2c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
assert( block_ptr );
200e2c8: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
200e2cc: 32 80 00 0a bne,a 200e2f4 <IMFS_memfile_remove_block+0x40><== NOT EXECUTED
200e2d0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
200e2d4: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e2d8: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e2dc: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e2e0: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e2e4: 94 12 a1 a0 or %o2, 0x1a0, %o2 <== NOT EXECUTED
200e2e8: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200e2ec: 7f ff f6 9d call 200bd60 <__assert_func> <== NOT EXECUTED
200e2f0: 92 10 21 96 mov 0x196, %o1 <== NOT EXECUTED
*block_ptr = 0;
memfile_free_block( ptr );
}
return 1;
}
200e2f4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
assert( block_ptr );
if ( block_ptr ) {
ptr = *block_ptr;
*block_ptr = 0;
memfile_free_block( ptr );
200e2f8: 7f ff ff 0e call 200df30 <memfile_free_block> <== NOT EXECUTED
200e2fc: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
}
return 1;
}
200e300: 81 c7 e0 08 ret <== NOT EXECUTED
200e304: 81 e8 00 00 restore <== NOT EXECUTED
0200e8bc <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
200e8bc: 9d e3 bf 98 save %sp, -104, %sp
/*
* Perform internal consistency checks
*/
assert( the_jnode );
200e8c0: a0 96 20 00 orcc %i0, 0, %l0
200e8c4: 32 80 00 0a bne,a 200e8ec <IMFS_memfile_write+0x30> <== ALWAYS TAKEN
200e8c8: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200e8cc: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e8d0: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e8d4: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e8d8: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e8dc: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED
200e8e0: 96 12 e0 30 or %o3, 0x30, %o3 <== NOT EXECUTED
200e8e4: 10 80 00 8c b 200eb14 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200e8e8: 92 10 22 e3 mov 0x2e3, %o1 <== NOT EXECUTED
if ( !the_jnode )
rtems_set_errno_and_return_minus_one( EIO );
assert( the_jnode->type == IMFS_MEMORY_FILE );
200e8ec: 80 a0 60 05 cmp %g1, 5
200e8f0: 02 80 00 0a be 200e918 <IMFS_memfile_write+0x5c> <== ALWAYS TAKEN
200e8f4: 80 a6 e0 00 cmp %i3, 0
200e8f8: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e8fc: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e900: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e904: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e908: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED
200e90c: 96 12 e0 40 or %o3, 0x40, %o3 <== NOT EXECUTED
200e910: 10 80 00 81 b 200eb14 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200e914: 92 10 22 e7 mov 0x2e7, %o1 <== NOT EXECUTED
/*
* Error check arguments
*/
assert( source );
200e918: 12 80 00 0a bne 200e940 <IMFS_memfile_write+0x84> <== ALWAYS TAKEN
200e91c: 80 a7 20 00 cmp %i4, 0
200e920: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e924: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e928: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e92c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e930: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED
200e934: 96 12 e0 88 or %o3, 0x88, %o3 <== NOT EXECUTED
200e938: 10 80 00 77 b 200eb14 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200e93c: 92 10 22 ef mov 0x2ef, %o1 <== NOT EXECUTED
/*
* If there is nothing to write, then quick exit.
*/
my_length = length;
if ( !my_length )
200e940: 32 80 00 06 bne,a 200e958 <IMFS_memfile_write+0x9c> <== ALWAYS TAKEN
200e944: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
rtems_set_errno_and_return_minus_one( EINVAL );
200e948: 40 00 08 00 call 2010948 <__errno> <== NOT EXECUTED
200e94c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200e950: 10 80 00 15 b 200e9a4 <IMFS_memfile_write+0xe8> <== NOT EXECUTED
200e954: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
* If the last byte we are supposed to write is past the end of this
* in memory file, then extend the length.
*/
last_byte = start + length;
if ( last_byte > the_jnode->info.file.size ) {
200e958: 80 a0 60 00 cmp %g1, 0
200e95c: 06 80 00 09 bl 200e980 <IMFS_memfile_write+0xc4> <== NEVER TAKEN
200e960: 94 07 00 1a add %i4, %i2, %o2
200e964: 80 a0 60 00 cmp %g1, 0
200e968: 12 80 00 12 bne 200e9b0 <IMFS_memfile_write+0xf4> <== NEVER TAKEN
200e96c: 03 00 80 77 sethi %hi(0x201dc00), %g1
200e970: c2 04 20 54 ld [ %l0 + 0x54 ], %g1
200e974: 80 a0 40 0a cmp %g1, %o2
200e978: 1a 80 00 0e bcc 200e9b0 <IMFS_memfile_write+0xf4> <== NEVER TAKEN
200e97c: 03 00 80 77 sethi %hi(0x201dc00), %g1
status = IMFS_memfile_extend( the_jnode, last_byte );
200e980: 90 10 00 10 mov %l0, %o0
200e984: 7f ff ff 24 call 200e614 <IMFS_memfile_extend>
200e988: 92 10 20 00 clr %o1
if ( status )
200e98c: 80 a2 20 00 cmp %o0, 0
200e990: 02 80 00 08 be 200e9b0 <IMFS_memfile_write+0xf4> <== ALWAYS TAKEN
200e994: 03 00 80 77 sethi %hi(0x201dc00), %g1
rtems_set_errno_and_return_minus_one( ENOSPC );
200e998: 40 00 07 ec call 2010948 <__errno> <== NOT EXECUTED
200e99c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200e9a0: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
200e9a4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200e9a8: 81 c7 e0 08 ret <== NOT EXECUTED
200e9ac: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9b0: e2 00 62 28 ld [ %g1 + 0x228 ], %l1
200e9b4: 92 10 00 1a mov %i2, %o1
200e9b8: a7 3c 60 1f sra %l1, 0x1f, %l3
200e9bc: 96 10 00 11 mov %l1, %o3
200e9c0: 94 10 00 13 mov %l3, %o2
200e9c4: 40 00 2f 73 call 201a790 <__moddi3>
200e9c8: 90 10 00 19 mov %i1, %o0
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9cc: 94 10 00 13 mov %l3, %o2
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9d0: a4 10 00 09 mov %o1, %l2
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9d4: 90 10 00 19 mov %i1, %o0
200e9d8: 92 10 00 1a mov %i2, %o1
200e9dc: 40 00 2e 86 call 201a3f4 <__divdi3>
200e9e0: 96 10 00 11 mov %l1, %o3
if ( start_offset ) {
200e9e4: b4 10 00 1b mov %i3, %i2
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
200e9e8: a6 10 00 09 mov %o1, %l3
if ( start_offset ) {
200e9ec: 80 a4 a0 00 cmp %l2, 0
200e9f0: 02 80 00 1b be 200ea5c <IMFS_memfile_write+0x1a0>
200e9f4: b0 10 20 00 clr %i0
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 );
200e9f8: 90 10 00 10 mov %l0, %o0
200e9fc: 7f ff fd 63 call 200df88 <IMFS_memfile_get_block_pointer>
200ea00: 94 10 20 00 clr %o2
assert( block_ptr );
200ea04: 80 a2 20 00 cmp %o0, 0
200ea08: 32 80 00 0a bne,a 200ea30 <IMFS_memfile_write+0x174> <== ALWAYS TAKEN
200ea0c: 94 24 40 12 sub %l1, %l2, %o2
200ea10: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ea14: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ea18: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200ea1c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200ea20: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED
200ea24: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200ea28: 10 80 00 3b b 200eb14 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200ea2c: 92 10 23 1c mov 0x31c, %o1 <== NOT EXECUTED
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
200ea30: 80 a2 80 1c cmp %o2, %i4
200ea34: 38 80 00 02 bgu,a 200ea3c <IMFS_memfile_write+0x180>
200ea38: 94 10 00 1c mov %i4, %o2
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
200ea3c: d0 02 00 00 ld [ %o0 ], %o0
src += to_copy;
200ea40: b4 06 c0 0a add %i3, %o2, %i2
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
200ea44: 90 02 00 12 add %o0, %l2, %o0
src += to_copy;
block++;
200ea48: a6 04 e0 01 inc %l3
my_length -= to_copy;
200ea4c: b8 27 00 0a sub %i4, %o2, %i4
copied += to_copy;
200ea50: b0 10 00 0a mov %o2, %i0
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
200ea54: 40 00 09 f9 call 2011238 <memcpy>
200ea58: 92 10 00 1b mov %i3, %o1
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
200ea5c: 03 00 80 77 sethi %hi(0x201dc00), %g1
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200ea60: a4 10 62 28 or %g1, 0x228, %l2 ! 201de28 <imfs_memfile_bytes_per_block>
200ea64: 10 80 00 17 b 200eac0 <IMFS_memfile_write+0x204>
200ea68: e2 00 62 28 ld [ %g1 + 0x228 ], %l1
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200ea6c: 92 10 00 13 mov %l3, %o1
200ea70: 7f ff fd 46 call 200df88 <IMFS_memfile_get_block_pointer>
200ea74: 94 10 20 00 clr %o2
assert( block_ptr );
200ea78: 80 a2 20 00 cmp %o0, 0
200ea7c: 32 80 00 0a bne,a 200eaa4 <IMFS_memfile_write+0x1e8> <== ALWAYS TAKEN
200ea80: d0 02 00 00 ld [ %o0 ], %o0
200ea84: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200ea88: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200ea8c: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200ea90: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200ea94: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED
200ea98: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200ea9c: 10 80 00 1e b 200eb14 <IMFS_memfile_write+0x258> <== NOT EXECUTED
200eaa0: 92 10 23 30 mov 0x330, %o1 <== NOT EXECUTED
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
200eaa4: 92 10 00 1a mov %i2, %o1
src += to_copy;
block++;
200eaa8: a6 04 e0 01 inc %l3
my_length -= to_copy;
200eaac: b8 27 00 11 sub %i4, %l1, %i4
*
* 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(
200eab0: b0 06 00 11 add %i0, %l1, %i0
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
src += to_copy;
200eab4: b4 06 80 11 add %i2, %l1, %i2
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
200eab8: 40 00 09 e0 call 2011238 <memcpy>
200eabc: 94 10 00 11 mov %l1, %o2
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
200eac0: c2 04 80 00 ld [ %l2 ], %g1
200eac4: 80 a7 00 01 cmp %i4, %g1
200eac8: 1a bf ff e9 bcc 200ea6c <IMFS_memfile_write+0x1b0>
200eacc: 90 10 00 10 mov %l0, %o0
*/
assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
200ead0: 80 a7 20 00 cmp %i4, 0
200ead4: 02 80 00 17 be 200eb30 <IMFS_memfile_write+0x274>
200ead8: 90 07 bf f8 add %fp, -8, %o0
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
200eadc: 92 10 00 13 mov %l3, %o1
200eae0: 90 10 00 10 mov %l0, %o0
200eae4: 7f ff fd 29 call 200df88 <IMFS_memfile_get_block_pointer>
200eae8: 94 10 20 00 clr %o2
assert( block_ptr );
200eaec: 80 a2 20 00 cmp %o0, 0
200eaf0: 32 80 00 0b bne,a 200eb1c <IMFS_memfile_write+0x260> <== ALWAYS TAKEN
200eaf4: d0 02 00 00 ld [ %o0 ], %o0
200eaf8: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200eafc: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200eb00: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200eb04: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200eb08: 94 12 a1 38 or %o2, 0x138, %o2 <== NOT EXECUTED
200eb0c: 96 12 e0 78 or %o3, 0x78, %o3 <== NOT EXECUTED
200eb10: 92 10 23 46 mov 0x346, %o1 <== NOT EXECUTED
200eb14: 7f ff f4 93 call 200bd60 <__assert_func> <== NOT EXECUTED
200eb18: 01 00 00 00 nop <== NOT EXECUTED
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, my_length );
my_length = 0;
copied += to_copy;
200eb1c: b0 06 00 1c add %i0, %i4, %i0
if ( !block_ptr )
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, my_length );
200eb20: 92 10 00 1a mov %i2, %o1
200eb24: 40 00 09 c5 call 2011238 <memcpy>
200eb28: 94 10 00 1c mov %i4, %o2
my_length = 0;
copied += to_copy;
}
IMFS_mtime_ctime_update( the_jnode );
200eb2c: 90 07 bf f8 add %fp, -8, %o0
200eb30: 7f ff d0 1d call 2002ba4 <gettimeofday>
200eb34: 92 10 20 00 clr %o1
200eb38: c2 07 bf f8 ld [ %fp + -8 ], %g1
200eb3c: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200eb40: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
return copied;
}
200eb44: 81 c7 e0 08 ret
200eb48: 81 e8 00 00 restore
020022c4 <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
20022c4: 9d e3 bf 58 save %sp, -168, %sp
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 );
20022c8: 40 00 3d 6d call 201187c <strlen>
20022cc: 90 10 00 18 mov %i0, %o0
20022d0: 96 07 bf fc add %fp, -4, %o3
20022d4: 92 10 00 08 mov %o0, %o1
20022d8: 94 07 bf b8 add %fp, -72, %o2
20022dc: 40 00 25 fd call 200bad0 <IMFS_get_token>
20022e0: 90 10 00 18 mov %i0, %o0
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
20022e4: 03 00 00 3c sethi %hi(0xf000), %g1
20022e8: 05 00 00 10 sethi %hi(0x4000), %g2
20022ec: 82 0e 40 01 and %i1, %g1, %g1
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
20022f0: 96 10 00 19 mov %i1, %o3
IMFS_get_token( token, strlen( token ), new_name, &result );
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
20022f4: 80 a0 40 02 cmp %g1, %g2
20022f8: 02 80 00 1a be 2002360 <IMFS_mknod+0x9c>
20022fc: 90 10 00 1c mov %i4, %o0
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
2002300: 05 00 00 20 sethi %hi(0x8000), %g2
2002304: 80 a0 40 02 cmp %g1, %g2
2002308: 02 80 00 17 be 2002364 <IMFS_mknod+0xa0>
200230c: 92 10 20 05 mov 5, %o1
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
2002310: 05 00 00 08 sethi %hi(0x2000), %g2
2002314: 80 a0 40 02 cmp %g1, %g2
2002318: 22 80 00 07 be,a 2002334 <IMFS_mknod+0x70>
200231c: f4 3f bf e0 std %i2, [ %fp + -32 ]
2002320: 05 00 00 18 sethi %hi(0x6000), %g2
2002324: 80 a0 40 02 cmp %g1, %g2
2002328: 12 80 00 05 bne 200233c <IMFS_mknod+0x78>
200232c: 05 00 00 04 sethi %hi(0x1000), %g2
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
2002330: f4 3f bf e0 std %i2, [ %fp + -32 ]
2002334: 10 80 00 0c b 2002364 <IMFS_mknod+0xa0>
2002338: 92 10 20 02 mov 2, %o1
}
else if (S_ISFIFO(mode))
200233c: 80 a0 40 02 cmp %g1, %g2
2002340: 02 80 00 09 be 2002364 <IMFS_mknod+0xa0> <== ALWAYS TAKEN
2002344: 92 10 20 07 mov 7, %o1
type = IMFS_FIFO;
else {
rtems_set_errno_and_return_minus_one( EINVAL );
2002348: 40 00 39 80 call 2010948 <__errno> <== NOT EXECUTED
200234c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002350: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2002354: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002358: 81 c7 e0 08 ret <== NOT EXECUTED
200235c: 81 e8 00 00 restore <== NOT EXECUTED
2002360: 92 10 20 01 mov 1, %o1
* 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(
2002364: 94 07 bf b8 add %fp, -72, %o2
2002368: 98 07 bf e0 add %fp, -32, %o4
200236c: 40 00 22 43 call 200ac78 <IMFS_create_node>
2002370: b0 10 20 00 clr %i0
new_name,
mode,
&info
);
if ( !new_node )
2002374: 80 a2 20 00 cmp %o0, 0
2002378: 12 80 00 06 bne 2002390 <IMFS_mknod+0xcc> <== ALWAYS TAKEN
200237c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOMEM );
2002380: 40 00 39 72 call 2010948 <__errno> <== NOT EXECUTED
2002384: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2002388: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
200238c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return 0;
}
2002390: 81 c7 e0 08 ret
2002394: 81 e8 00 00 restore
02002398 <IMFS_mount>:
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
2002398: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
200239c: c2 06 20 08 ld [ %i0 + 8 ], %g1
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
20023a0: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
20023a4: 80 a0 a0 01 cmp %g2, 1
20023a8: 22 80 00 08 be,a 20023c8 <IMFS_mount+0x30> <== ALWAYS TAKEN
20023ac: f0 20 60 5c st %i0, [ %g1 + 0x5c ]
rtems_set_errno_and_return_minus_one( ENOTDIR );
20023b0: 40 00 39 66 call 2010948 <__errno> <== NOT EXECUTED
20023b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20023b8: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
20023bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20023c0: 81 c7 e0 08 ret <== NOT EXECUTED
20023c4: 81 e8 00 00 restore <== NOT EXECUTED
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
return 0;
}
20023c8: 81 c7 e0 08 ret
20023cc: 91 e8 20 00 restore %g0, 0, %o0
020047d0 <IMFS_print_jnode>:
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
20047d0: 9d e3 bf a0 save %sp, -96, %sp
assert( the_jnode );
20047d4: 80 a6 20 00 cmp %i0, 0
20047d8: 12 80 00 0a bne 2004800 <IMFS_print_jnode+0x30> <== ALWAYS TAKEN
20047dc: 21 00 80 9c sethi %hi(0x2027000), %l0
20047e0: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
20047e4: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
20047e8: 17 00 80 93 sethi %hi(0x2024c00), %o3 <== NOT EXECUTED
20047ec: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED
20047f0: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED
20047f4: 96 12 e3 f0 or %o3, 0x3f0, %o3 <== NOT EXECUTED
20047f8: 10 80 00 3b b 20048e4 <IMFS_print_jnode+0x114> <== NOT EXECUTED
20047fc: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
fprintf(stdout, "%s", the_jnode->name );
2004800: c2 04 20 70 ld [ %l0 + 0x70 ], %g1
2004804: 90 06 20 0c add %i0, 0xc, %o0
2004808: 40 00 42 4c call 2015138 <fputs>
200480c: d2 00 60 08 ld [ %g1 + 8 ], %o1
switch( the_jnode->type ) {
2004810: d4 06 20 4c ld [ %i0 + 0x4c ], %o2
2004814: 82 02 bf ff add %o2, -1, %g1
2004818: 80 a0 60 06 cmp %g1, 6
200481c: 38 80 00 42 bgu,a 2004924 <IMFS_print_jnode+0x154> <== NEVER TAKEN
2004820: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED
2004824: 83 28 60 02 sll %g1, 2, %g1
2004828: 05 00 80 11 sethi %hi(0x2004400), %g2
200482c: 84 10 a3 78 or %g2, 0x378, %g2 ! 2004778 <console_inbyte_nonblocking+0xb0>
2004830: c2 00 80 01 ld [ %g2 + %g1 ], %g1
2004834: 81 c0 40 00 jmp %g1
2004838: 01 00 00 00 nop
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
200483c: c2 04 20 70 ld [ %l0 + 0x70 ], %g1
2004840: 90 10 20 2f mov 0x2f, %o0
2004844: 40 00 41 f9 call 2015028 <fputc>
2004848: d2 00 60 08 ld [ %g1 + 8 ], %o1
break;
200484c: 10 80 00 3c b 200493c <IMFS_print_jnode+0x16c>
2004850: 31 00 80 94 sethi %hi(0x2025000), %i0
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
2004854: c2 04 20 70 ld [ %l0 + 0x70 ], %g1
2004858: 13 00 80 94 sethi %hi(0x2025000), %o1
200485c: d6 06 20 54 ld [ %i0 + 0x54 ], %o3
2004860: d0 00 60 08 ld [ %g1 + 8 ], %o0
2004864: d4 06 20 50 ld [ %i0 + 0x50 ], %o2
2004868: 10 80 00 08 b 2004888 <IMFS_print_jnode+0xb8>
200486c: 92 12 60 00 mov %o1, %o1
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
2004870: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED
2004874: d6 06 20 58 ld [ %i0 + 0x58 ], %o3 <== NOT EXECUTED
2004878: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
200487c: d4 06 20 54 ld [ %i0 + 0x54 ], %o2 <== NOT EXECUTED
2004880: 13 00 80 94 sethi %hi(0x2025000), %o1 <== NOT EXECUTED
2004884: 92 12 60 18 or %o1, 0x18, %o1 ! 2025018 <rtems_filesystem_mount_table_size+0x1680><== NOT EXECUTED
2004888: 40 00 41 ce call 2014fc0 <fprintf>
200488c: 31 00 80 94 sethi %hi(0x2025000), %i0
(uint32_t)the_jnode->info.linearfile.size,
the_jnode->info.linearfile.direct
);
break;
2004890: 30 80 00 2b b,a 200493c <IMFS_print_jnode+0x16c>
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
2004894: c2 04 20 70 ld [ %l0 + 0x70 ], %g1
2004898: d4 06 20 54 ld [ %i0 + 0x54 ], %o2
200489c: d0 00 60 08 ld [ %g1 + 8 ], %o0
20048a0: 13 00 80 94 sethi %hi(0x2025000), %o1
20048a4: 40 00 41 c7 call 2014fc0 <fprintf>
20048a8: 92 12 60 28 or %o1, 0x28, %o1 ! 2025028 <rtems_filesystem_mount_table_size+0x1690>
(uint32_t)the_jnode->info.file.size );
#endif
break;
20048ac: 10 80 00 24 b 200493c <IMFS_print_jnode+0x16c>
20048b0: 31 00 80 94 sethi %hi(0x2025000), %i0
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
20048b4: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED
20048b8: 11 00 80 94 sethi %hi(0x2025000), %o0 <== NOT EXECUTED
20048bc: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED
20048c0: 40 00 42 1e call 2015138 <fputs> <== NOT EXECUTED
20048c4: 90 12 20 38 or %o0, 0x38, %o0 <== NOT EXECUTED
assert(0);
20048c8: 92 10 20 5d mov 0x5d, %o1 <== NOT EXECUTED
20048cc: 11 00 80 93 sethi %hi(0x2024c00), %o0 <== NOT EXECUTED
20048d0: 15 00 80 94 sethi %hi(0x2025000), %o2 <== NOT EXECUTED
20048d4: 17 00 80 94 sethi %hi(0x2025000), %o3 <== NOT EXECUTED
20048d8: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED
20048dc: 94 12 a1 b0 or %o2, 0x1b0, %o2 <== NOT EXECUTED
20048e0: 96 12 e0 50 or %o3, 0x50, %o3 <== NOT EXECUTED
20048e4: 40 00 02 57 call 2005240 <__assert_func> <== NOT EXECUTED
20048e8: 01 00 00 00 nop <== NOT EXECUTED
break;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
20048ec: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED
20048f0: 11 00 80 94 sethi %hi(0x2025000), %o0 <== NOT EXECUTED
20048f4: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED
20048f8: 40 00 42 10 call 2015138 <fputs> <== NOT EXECUTED
20048fc: 90 12 20 38 or %o0, 0x38, %o0 <== NOT EXECUTED
assert(0);
2004900: 10 bf ff f3 b 20048cc <IMFS_print_jnode+0xfc> <== NOT EXECUTED
2004904: 92 10 20 62 mov 0x62, %o1 <== NOT EXECUTED
break;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
2004908: c2 04 20 70 ld [ %l0 + 0x70 ], %g1 <== NOT EXECUTED
200490c: 11 00 80 94 sethi %hi(0x2025000), %o0 <== NOT EXECUTED
2004910: d2 00 60 08 ld [ %g1 + 8 ], %o1 <== NOT EXECUTED
2004914: 40 00 42 09 call 2015138 <fputs> <== NOT EXECUTED
2004918: 90 12 20 58 or %o0, 0x58, %o0 <== NOT EXECUTED
assert(0);
200491c: 10 bf ff ec b 20048cc <IMFS_print_jnode+0xfc> <== NOT EXECUTED
2004920: 92 10 20 67 mov 0x67, %o1 <== NOT EXECUTED
break;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
2004924: 13 00 80 94 sethi %hi(0x2025000), %o1 <== NOT EXECUTED
2004928: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
200492c: 40 00 41 a5 call 2014fc0 <fprintf> <== NOT EXECUTED
2004930: 92 12 60 70 or %o1, 0x70, %o1 <== NOT EXECUTED
assert(0);
2004934: 10 bf ff e6 b 20048cc <IMFS_print_jnode+0xfc> <== NOT EXECUTED
2004938: 92 10 20 6c mov 0x6c, %o1 <== NOT EXECUTED
break;
}
puts("");
200493c: 40 00 48 ef call 2016cf8 <puts>
2004940: 91 ee 20 80 restore %i0, 0x80, %o0
020023dc <IMFS_readlink>:
int IMFS_readlink(
rtems_filesystem_location_info_t *loc,
char *buf, /* OUT */
size_t bufsize
)
{
20023dc: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
int i;
node = loc->node_access;
20023e0: c2 06 00 00 ld [ %i0 ], %g1
if ( node->type != IMFS_SYM_LINK )
20023e4: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
20023e8: 80 a0 a0 04 cmp %g2, 4
20023ec: 02 80 00 0a be 2002414 <IMFS_readlink+0x38> <== ALWAYS TAKEN
20023f0: b0 10 20 00 clr %i0
rtems_set_errno_and_return_minus_one( EINVAL );
20023f4: 40 00 39 55 call 2010948 <__errno> <== NOT EXECUTED
20023f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20023fc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2002400: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002404: 81 c7 e0 08 ret <== NOT EXECUTED
2002408: 81 e8 00 00 restore <== NOT EXECUTED
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
buf[i] = node->info.sym_link.name[i];
200240c: c4 2e 40 18 stb %g2, [ %i1 + %i0 ]
node = loc->node_access;
if ( node->type != IMFS_SYM_LINK )
rtems_set_errno_and_return_minus_one( EINVAL );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
2002410: b0 06 20 01 inc %i0
2002414: 80 a6 00 1a cmp %i0, %i2
2002418: 1a 80 00 07 bcc 2002434 <IMFS_readlink+0x58>
200241c: 01 00 00 00 nop
2002420: c4 00 60 50 ld [ %g1 + 0x50 ], %g2
2002424: c6 48 80 18 ldsb [ %g2 + %i0 ], %g3
2002428: 80 a0 e0 00 cmp %g3, 0
200242c: 12 bf ff f8 bne 200240c <IMFS_readlink+0x30>
2002430: c4 08 80 18 ldub [ %g2 + %i0 ], %g2
buf[i] = node->info.sym_link.name[i];
return i;
}
2002434: 81 c7 e0 08 ret
2002438: 81 e8 00 00 restore
0200243c <IMFS_rename>:
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 */
)
{
200243c: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
2002440: e0 06 40 00 ld [ %i1 ], %l0
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
2002444: 92 10 00 1b mov %i3, %o1
2002448: 90 04 20 0c add %l0, 0xc, %o0
200244c: 40 00 3d 41 call 2011950 <strncpy>
2002450: 94 10 20 20 mov 0x20, %o2
if ( the_jnode->Parent != NULL )
2002454: c2 04 20 08 ld [ %l0 + 8 ], %g1
2002458: 80 a0 60 00 cmp %g1, 0
200245c: 22 80 00 05 be,a 2002470 <IMFS_rename+0x34> <== NEVER TAKEN
2002460: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
2002464: 40 00 12 3a call 2006d4c <_Chain_Extract>
2002468: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
200246c: c2 06 80 00 ld [ %i2 ], %g1
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
2002470: 92 10 00 10 mov %l0, %o1
2002474: 90 00 60 50 add %g1, 0x50, %o0
2002478: 40 00 12 29 call 2006d1c <_Chain_Append>
200247c: c2 24 20 08 st %g1, [ %l0 + 8 ]
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
2002480: 90 07 bf f8 add %fp, -8, %o0
2002484: 40 00 01 c8 call 2002ba4 <gettimeofday>
2002488: 92 10 20 00 clr %o1
200248c: c2 07 bf f8 ld [ %fp + -8 ], %g1
2002490: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
return 0;
}
2002494: 81 c7 e0 08 ret
2002498: 91 e8 20 00 restore %g0, 0, %o0
0200bbb4 <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200bbb4: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200bbb8: e0 06 40 00 ld [ %i1 ], %l0
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
200bbbc: c2 04 20 08 ld [ %l0 + 8 ], %g1
200bbc0: 80 a0 60 00 cmp %g1, 0
200bbc4: 22 80 00 06 be,a 200bbdc <IMFS_rmnod+0x28> <== NEVER TAKEN
200bbc8: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200bbcc: 7f ff ec 60 call 2006d4c <_Chain_Extract>
200bbd0: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200bbd4: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200bbd8: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200bbdc: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200bbe0: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200bbe4: 90 07 bf f8 add %fp, -8, %o0
200bbe8: 7f ff db ef call 2002ba4 <gettimeofday>
200bbec: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200bbf0: c2 07 bf f8 ld [ %fp + -8 ], %g1
/*
* The file cannot be open and the link must be less than 1 to free.
*/
if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
200bbf4: 90 10 00 10 mov %l0, %o0
200bbf8: 40 00 00 f9 call 200bfdc <rtems_libio_is_file_open>
200bbfc: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200bc00: 80 a2 20 00 cmp %o0, 0
200bc04: 12 80 00 18 bne 200bc64 <IMFS_rmnod+0xb0> <== NEVER TAKEN
200bc08: 01 00 00 00 nop
200bc0c: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200bc10: 80 a0 60 00 cmp %g1, 0
200bc14: 12 80 00 14 bne 200bc64 <IMFS_rmnod+0xb0> <== NEVER TAKEN
200bc18: 03 00 80 76 sethi %hi(0x201d800), %g1
/*
* Is rtems_filesystem_current this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
200bc1c: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 <rtems_current_user_env>
200bc20: c4 06 40 00 ld [ %i1 ], %g2
200bc24: c6 00 60 04 ld [ %g1 + 4 ], %g3
200bc28: 80 a0 c0 02 cmp %g3, %g2
200bc2c: 22 80 00 02 be,a 200bc34 <IMFS_rmnod+0x80> <== NEVER TAKEN
200bc30: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
if ( the_jnode->type == IMFS_SYM_LINK ) {
200bc34: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200bc38: 80 a0 60 04 cmp %g1, 4
200bc3c: 12 80 00 08 bne 200bc5c <IMFS_rmnod+0xa8>
200bc40: 01 00 00 00 nop
if ( the_jnode->info.sym_link.name )
200bc44: d0 04 20 50 ld [ %l0 + 0x50 ], %o0
200bc48: 80 a2 20 00 cmp %o0, 0
200bc4c: 02 80 00 04 be 200bc5c <IMFS_rmnod+0xa8> <== NEVER TAKEN
200bc50: 01 00 00 00 nop
free( (void*) the_jnode->info.sym_link.name );
200bc54: 7f ff db aa call 2002afc <free>
200bc58: 01 00 00 00 nop
}
free( the_jnode );
200bc5c: 7f ff db a8 call 2002afc <free>
200bc60: 90 10 00 10 mov %l0, %o0
}
return 0;
}
200bc64: 81 c7 e0 08 ret
200bc68: 91 e8 20 00 restore %g0, 0, %o0
0200bc84 <IMFS_stat>:
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
200bc84: 9d e3 bf a0 save %sp, -96, %sp
IMFS_fs_info_t *fs_info;
IMFS_jnode_t *the_jnode;
IMFS_device_t *io;
the_jnode = loc->node_access;
200bc88: c2 06 00 00 ld [ %i0 ], %g1
switch ( the_jnode->type ) {
200bc8c: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
200bc90: 84 00 bf fe add %g2, -2, %g2
200bc94: 80 a0 a0 05 cmp %g2, 5
200bc98: 18 80 00 10 bgu 200bcd8 <IMFS_stat+0x54> <== NEVER TAKEN
200bc9c: 85 28 a0 02 sll %g2, 2, %g2
200bca0: 07 00 80 2f sethi %hi(0x200bc00), %g3
200bca4: 86 10 e0 6c or %g3, 0x6c, %g3 ! 200bc6c <IMFS_rmnod+0xb8>
200bca8: c4 00 c0 02 ld [ %g3 + %g2 ], %g2
200bcac: 81 c0 80 00 jmp %g2
200bcb0: 01 00 00 00 nop
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
200bcb4: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
break;
200bcb8: 10 80 00 0e b 200bcf0 <IMFS_stat+0x6c>
200bcbc: c4 3e 60 18 std %g2, [ %i1 + 0x18 ]
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
200bcc0: c4 18 60 50 ldd [ %g1 + 0x50 ], %g2
break;
200bcc4: 10 80 00 0b b 200bcf0 <IMFS_stat+0x6c>
200bcc8: c4 3e 60 20 std %g2, [ %i1 + 0x20 ]
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
200bccc: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
break;
200bcd0: 10 80 00 08 b 200bcf0 <IMFS_stat+0x6c> <== NOT EXECUTED
200bcd4: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
200bcd8: 40 00 13 1c call 2010948 <__errno> <== NOT EXECUTED
200bcdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200bce0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200bce4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200bce8: 81 c7 e0 08 ret <== NOT EXECUTED
200bcec: 81 e8 00 00 restore <== NOT EXECUTED
*/
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
buf->st_mode = the_jnode->st_mode;
200bcf0: c6 00 60 30 ld [ %g1 + 0x30 ], %g3
buf->st_nlink = the_jnode->st_nlink;
200bcf4: c8 10 60 34 lduh [ %g1 + 0x34 ], %g4
*/
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
buf->st_mode = the_jnode->st_mode;
200bcf8: c6 26 60 0c st %g3, [ %i1 + 0xc ]
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
200bcfc: c6 00 60 38 ld [ %g1 + 0x38 ], %g3
* The device number of the IMFS is the major number and the minor is the
* instance.
*/
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
200bd00: c4 06 20 10 ld [ %i0 + 0x10 ], %g2
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
200bd04: c6 26 60 08 st %g3, [ %i1 + 8 ]
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
200bd08: c6 00 60 40 ld [ %g1 + 0x40 ], %g3
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
200bd0c: c8 36 60 10 sth %g4, [ %i1 + 0x10 ]
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;
200bd10: c6 26 60 28 st %g3, [ %i1 + 0x28 ]
* The device number of the IMFS is the major number and the minor is the
* instance.
*/
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
200bd14: c6 00 a0 34 ld [ %g2 + 0x34 ], %g3
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;
200bd18: c8 00 60 44 ld [ %g1 + 0x44 ], %g4
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
buf->st_uid = the_jnode->st_uid;
200bd1c: c4 10 60 3c lduh [ %g1 + 0x3c ], %g2
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
200bd20: c8 26 60 30 st %g4, [ %i1 + 0x30 ]
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
buf->st_uid = the_jnode->st_uid;
200bd24: c4 36 60 12 sth %g2, [ %i1 + 0x12 ]
* The device number of the IMFS is the major number and the minor is the
* instance.
*/
fs_info = loc->mt_entry->fs_info;
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
200bd28: c8 00 c0 00 ld [ %g3 ], %g4
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
200bd2c: c4 00 60 48 ld [ %g1 + 0x48 ], %g2
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
200bd30: 07 00 80 75 sethi %hi(0x201d400), %g3
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
200bd34: c2 10 60 3e lduh [ %g1 + 0x3e ], %g1
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
200bd38: c6 00 e2 a8 ld [ %g3 + 0x2a8 ], %g3
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
buf->st_ino = the_jnode->st_ino;
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
200bd3c: c2 36 60 14 sth %g1, [ %i1 + 0x14 ]
/*
* 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 =
200bd40: c8 26 60 04 st %g4, [ %i1 + 4 ]
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
200bd44: c6 26 60 40 st %g3, [ %i1 + 0x40 ]
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
200bd48: c4 26 60 38 st %g2, [ %i1 + 0x38 ]
200bd4c: 03 00 00 3f sethi %hi(0xfc00), %g1
200bd50: 82 10 63 fe or %g1, 0x3fe, %g1 ! fffe <PROM_START+0xfffe>
/*
* 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 =
200bd54: c2 26 40 00 st %g1, [ %i1 ]
buf->st_ctime = the_jnode->stat_ctime;
buf->st_blksize = imfs_rq_memfile_bytes_per_block;
return 0;
}
200bd58: 81 c7 e0 08 ret
200bd5c: 91 e8 20 00 restore %g0, 0, %o0
0200249c <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
200249c: 9d e3 bf 58 save %sp, -168, %sp
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
20024a0: 40 00 3c f7 call 201187c <strlen>
20024a4: 90 10 00 1a mov %i2, %o0
20024a8: 96 07 bf fc add %fp, -4, %o3
20024ac: 92 10 00 08 mov %o0, %o1
20024b0: a0 07 bf b8 add %fp, -72, %l0
20024b4: 90 10 00 1a mov %i2, %o0
20024b8: 40 00 25 86 call 200bad0 <IMFS_get_token>
20024bc: 94 10 00 10 mov %l0, %o2
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
20024c0: 40 00 3c da call 2011828 <strdup>
20024c4: 90 10 00 19 mov %i1, %o0
20024c8: d0 27 bf e0 st %o0, [ %fp + -32 ]
if (info.sym_link.name == NULL) {
20024cc: 80 a2 20 00 cmp %o0, 0
20024d0: 12 80 00 08 bne 20024f0 <IMFS_symlink+0x54> <== ALWAYS TAKEN
20024d4: 90 10 00 18 mov %i0, %o0
rtems_set_errno_and_return_minus_one(ENOMEM);
20024d8: 40 00 39 1c call 2010948 <__errno> <== NOT EXECUTED
20024dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20024e0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
20024e4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20024e8: 81 c7 e0 08 ret
20024ec: 81 e8 00 00 restore
* 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(
20024f0: 94 10 00 10 mov %l0, %o2
20024f4: 92 10 20 04 mov 4, %o1
20024f8: 17 00 00 28 sethi %hi(0xa000), %o3
20024fc: 98 07 bf e0 add %fp, -32, %o4
2002500: 96 12 e1 ff or %o3, 0x1ff, %o3
2002504: 40 00 21 dd call 200ac78 <IMFS_create_node>
2002508: b0 10 20 00 clr %i0
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
200250c: 80 a2 20 00 cmp %o0, 0
2002510: 12 bf ff f6 bne 20024e8 <IMFS_symlink+0x4c> <== ALWAYS TAKEN
2002514: d0 07 bf e0 ld [ %fp + -32 ], %o0
free(info.sym_link.name);
2002518: 40 00 01 79 call 2002afc <free> <== NOT EXECUTED
200251c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2002520: 40 00 39 0a call 2010948 <__errno> <== NOT EXECUTED
2002524: 01 00 00 00 nop <== NOT EXECUTED
2002528: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
200252c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return 0;
}
2002530: 81 c7 e0 08 ret <== NOT EXECUTED
2002534: 81 e8 00 00 restore <== NOT EXECUTED
02002538 <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
2002538: 9d e3 bf 80 save %sp, -128, %sp
IMFS_jnode_t *node;
rtems_filesystem_location_info_t the_link;
int result = 0;
node = loc->node_access;
200253c: e0 06 40 00 ld [ %i1 ], %l0
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
2002540: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
2002544: 80 a0 60 03 cmp %g1, 3
2002548: 12 80 00 29 bne 20025ec <IMFS_unlink+0xb4>
200254c: a4 10 00 18 mov %i0, %l2
if ( !node->info.hard_link.link_node )
2002550: e6 04 20 50 ld [ %l0 + 0x50 ], %l3
2002554: 80 a4 e0 00 cmp %l3, 0
2002558: 12 80 00 08 bne 2002578 <IMFS_unlink+0x40> <== ALWAYS TAKEN
200255c: a2 07 bf e4 add %fp, -28, %l1
rtems_set_errno_and_return_minus_one( EINVAL );
2002560: 40 00 38 fa call 2010948 <__errno> <== NOT EXECUTED
2002564: 01 00 00 00 nop <== NOT EXECUTED
2002568: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
200256c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002570: 10 80 00 24 b 2002600 <IMFS_unlink+0xc8> <== NOT EXECUTED
2002574: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
the_link = *loc;
2002578: 92 10 00 19 mov %i1, %o1
200257c: 94 10 20 14 mov 0x14, %o2
2002580: 40 00 3b 2e call 2011238 <memcpy>
2002584: 90 10 00 11 mov %l1, %o0
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
2002588: 90 10 00 11 mov %l1, %o0
200258c: 40 00 22 06 call 200ada4 <IMFS_Set_handlers>
2002590: e6 27 bf e4 st %l3, [ %fp + -28 ]
/*
* 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)
2002594: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
2002598: c6 10 60 34 lduh [ %g1 + 0x34 ], %g3
200259c: 80 a0 e0 01 cmp %g3, 1
20025a0: 12 80 00 0c bne 20025d0 <IMFS_unlink+0x98>
20025a4: 84 00 ff ff add %g3, -1, %g2
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
20025a8: c2 07 bf ec ld [ %fp + -20 ], %g1
20025ac: 92 10 00 11 mov %l1, %o1
20025b0: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
20025b4: 9f c0 40 00 call %g1
20025b8: 90 10 00 18 mov %i0, %o0
if ( result != 0 )
20025bc: 80 a2 20 00 cmp %o0, 0
20025c0: 02 80 00 0b be 20025ec <IMFS_unlink+0xb4>
20025c4: 90 10 3f ff mov -1, %o0
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
return result;
}
20025c8: 81 c7 e0 08 ret
20025cc: 91 e8 00 08 restore %g0, %o0, %o0
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
IMFS_update_ctime( node->info.hard_link.link_node );
20025d0: 90 07 bf f8 add %fp, -8, %o0
if ( result != 0 )
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
20025d4: c4 30 60 34 sth %g2, [ %g1 + 0x34 ]
IMFS_update_ctime( node->info.hard_link.link_node );
20025d8: 40 00 01 73 call 2002ba4 <gettimeofday>
20025dc: 92 10 20 00 clr %o1
20025e0: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
20025e4: c4 07 bf f8 ld [ %fp + -8 ], %g2
20025e8: c4 20 60 48 st %g2, [ %g1 + 0x48 ]
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
20025ec: c2 06 60 08 ld [ %i1 + 8 ], %g1
20025f0: 90 10 00 12 mov %l2, %o0
20025f4: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
20025f8: 9f c0 40 00 call %g1
20025fc: 92 10 00 19 mov %i1, %o1
return result;
}
2002600: b0 10 00 08 mov %o0, %i0
2002604: 81 c7 e0 08 ret
2002608: 81 e8 00 00 restore
0200260c <IMFS_unmount>:
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
200260c: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
2002610: c2 06 20 08 ld [ %i0 + 8 ], %g1
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
2002614: c4 00 60 4c ld [ %g1 + 0x4c ], %g2
2002618: 80 a0 a0 01 cmp %g2, 1
200261c: 22 80 00 06 be,a 2002634 <IMFS_unmount+0x28> <== ALWAYS TAKEN
2002620: c4 00 60 5c ld [ %g1 + 0x5c ], %g2
rtems_set_errno_and_return_minus_one( ENOTDIR );
2002624: 40 00 38 c9 call 2010948 <__errno> <== NOT EXECUTED
2002628: 01 00 00 00 nop <== NOT EXECUTED
200262c: 10 80 00 08 b 200264c <IMFS_unmount+0x40> <== NOT EXECUTED
2002630: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14> <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
2002634: 80 a0 a0 00 cmp %g2, 0
2002638: 32 80 00 08 bne,a 2002658 <IMFS_unmount+0x4c> <== ALWAYS TAKEN
200263c: c0 20 60 5c clr [ %g1 + 0x5c ]
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
2002640: 40 00 38 c2 call 2010948 <__errno> <== NOT EXECUTED
2002644: 01 00 00 00 nop <== NOT EXECUTED
2002648: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
200264c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002650: 81 c7 e0 08 ret <== NOT EXECUTED
2002654: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
*/
node->info.directory.mt_fs = NULL;
return 0;
}
2002658: 81 c7 e0 08 ret
200265c: 91 e8 20 00 restore %g0, 0, %o0
02002d88 <RTEMS_Malloc_Initialize>:
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
2002d88: 9d e3 bf a0 save %sp, -96, %sp
#endif
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
2002d8c: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002d90: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201ddd8 <rtems_malloc_statistics_helpers>
2002d94: 80 a0 60 00 cmp %g1, 0
2002d98: 02 80 00 05 be 2002dac <RTEMS_Malloc_Initialize+0x24>
2002d9c: 01 00 00 00 nop
(*rtems_malloc_statistics_helpers->initialize)();
2002da0: c2 00 40 00 ld [ %g1 ], %g1
2002da4: 9f c0 40 00 call %g1
2002da8: 01 00 00 00 nop
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
2002dac: 7f ff ff dc call 2002d1c <malloc_deferred_frees_initialize>
2002db0: 01 00 00 00 nop
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
2002db4: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002db8: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 201dddc <rtems_malloc_sbrk_helpers>
2002dbc: 80 a0 60 00 cmp %g1, 0
2002dc0: 02 80 00 08 be 2002de0 <RTEMS_Malloc_Initialize+0x58> <== ALWAYS TAKEN
2002dc4: 90 10 00 18 mov %i0, %o0
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
2002dc8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
2002dcc: b2 06 00 19 add %i0, %i1, %i1 <== NOT EXECUTED
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
2002dd0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002dd4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
2002dd8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2002ddc: b2 26 40 08 sub %i1, %o0, %i1 <== NOT EXECUTED
* of the time under UNIX because zero'ing memory when it is first
* given to a process eliminates the chance of a process seeing data
* left over from another process. This would be a security violation.
*/
if (
2002de0: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002de4: c2 08 61 d5 ldub [ %g1 + 0x1d5 ], %g1 ! 201ddd5 <rtems_unified_work_area>
2002de8: 80 a0 60 00 cmp %g1, 0
2002dec: 12 80 00 0c bne 2002e1c <RTEMS_Malloc_Initialize+0x94>
2002df0: 03 00 80 77 sethi %hi(0x201dc00), %g1
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
2002df4: 03 00 80 75 sethi %hi(0x201d400), %g1
2002df8: c2 08 63 80 ldub [ %g1 + 0x380 ], %g1 ! 201d780 <Configuration+0x28>
2002dfc: 80 a0 60 00 cmp %g1, 0
2002e00: 02 80 00 07 be 2002e1c <RTEMS_Malloc_Initialize+0x94>
2002e04: 03 00 80 77 sethi %hi(0x201dc00), %g1
) {
memset( heap_begin, 0, heap_size );
2002e08: 90 10 00 18 mov %i0, %o0
2002e0c: 92 10 20 00 clr %o1
2002e10: 40 00 39 49 call 2011334 <memset>
2002e14: 94 10 00 19 mov %i1, %o2
* Unfortunately we cannot use assert if this fails because if this
* has failed we do not have a heap and if we do not have a heap
* STDIO cannot work because there will be no buffers.
*/
if ( !rtems_unified_work_area ) {
2002e18: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002e1c: c2 08 61 d5 ldub [ %g1 + 0x1d5 ], %g1 ! 201ddd5 <rtems_unified_work_area>
2002e20: 80 a0 60 00 cmp %g1, 0
2002e24: 12 80 00 0c bne 2002e54 <RTEMS_Malloc_Initialize+0xcc>
2002e28: 03 00 80 75 sethi %hi(0x201d400), %g1
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
2002e2c: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0 ! 201d6b0 <RTEMS_Malloc_Heap>
2002e30: 92 10 00 18 mov %i0, %o1
2002e34: 94 10 00 19 mov %i1, %o2
2002e38: 40 00 11 26 call 20072d0 <_Heap_Initialize>
2002e3c: 96 10 20 08 mov 8, %o3
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
2002e40: 80 a2 20 00 cmp %o0, 0
2002e44: 12 80 00 05 bne 2002e58 <RTEMS_Malloc_Initialize+0xd0> <== ALWAYS TAKEN
2002e48: 33 00 80 78 sethi %hi(0x201e000), %i1
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
2002e4c: 40 00 0e d9 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002e50: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
2002e54: 33 00 80 78 sethi %hi(0x201e000), %i1
2002e58: 03 00 80 75 sethi %hi(0x201d400), %g1
2002e5c: f0 06 60 d0 ld [ %i1 + 0xd0 ], %i0
2002e60: 40 00 14 4f call 2007f9c <_Protected_heap_Get_size>
2002e64: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0
2002e68: 90 02 00 18 add %o0, %i0, %o0
2002e6c: d0 26 60 d0 st %o0, [ %i1 + 0xd0 ]
printk( "\n" );
rtems_print_buffer( (heap_begin + heap_size) - 48, 48 );
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
}
#endif
}
2002e70: 81 c7 e0 08 ret
2002e74: 81 e8 00 00 restore
02006570 <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
2006570: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
void *high_water_mark;
void *current;
Stack_Control *stack;
char name[5];
if ( !the_thread )
2006574: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2006578: 02 80 00 49 be 200669c <Stack_check_Dump_threads_usage+0x12c><== NOT EXECUTED
200657c: 03 00 81 b0 sethi %hi(0x206c000), %g1 <== NOT EXECUTED
return;
if ( !print_handler )
2006580: e4 00 60 30 ld [ %g1 + 0x30 ], %l2 ! 206c030 <print_handler><== NOT EXECUTED
2006584: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2006588: 02 80 00 45 be 200669c <Stack_check_Dump_threads_usage+0x12c><== NOT EXECUTED
200658c: 80 a6 3f ff cmp %i0, -1 <== NOT EXECUTED
/*
* Obtain interrupt stack information
*/
if (the_thread == (Thread_Control *) -1) {
2006590: 32 80 00 0a bne,a 20065b8 <Stack_check_Dump_threads_usage+0x48><== NOT EXECUTED
2006594: e8 06 21 50 ld [ %i0 + 0x150 ], %l4 <== NOT EXECUTED
if (Stack_check_Interrupt_stack.area) {
2006598: 23 00 81 ba sethi %hi(0x206e800), %l1 <== NOT EXECUTED
200659c: a2 14 63 98 or %l1, 0x398, %l1 ! 206eb98 <Stack_check_Interrupt_stack><== NOT EXECUTED
20065a0: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
20065a4: a8 10 20 00 clr %l4 <== NOT EXECUTED
20065a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20065ac: 12 80 00 04 bne 20065bc <Stack_check_Dump_threads_usage+0x4c><== NOT EXECUTED
20065b0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20065b4: 30 80 00 41 b,a 20066b8 <Stack_check_Dump_threads_usage+0x148><== NOT EXECUTED
current = 0;
}
else
return;
} else {
stack = &the_thread->Start.Initial_stack;
20065b8: a2 06 20 c4 add %i0, 0xc4, %l1 <== NOT EXECUTED
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
}
low = Stack_check_usable_stack_start(stack);
20065bc: ea 04 60 04 ld [ %l1 + 4 ], %l5 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
20065c0: e6 04 40 00 ld [ %l1 ], %l3 <== NOT EXECUTED
} else {
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
}
low = Stack_check_usable_stack_start(stack);
20065c4: aa 05 60 10 add %l5, 0x10, %l5 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
20065c8: a6 04 ff f0 add %l3, -16, %l3 <== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
20065cc: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
20065d0: 7f ff ff d8 call 2006530 <Stack_check_find_high_water_mark><== NOT EXECUTED
20065d4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if ( high_water_mark )
20065d8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
20065dc: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
20065e0: a0 05 40 13 add %l5, %l3, %l0 <== NOT EXECUTED
else
used = 0;
if ( the_thread ) {
20065e4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
high_water_mark = Stack_check_find_high_water_mark(low, size);
if ( high_water_mark )
used = Stack_check_Calculate_used( low, size, high_water_mark );
20065e8: a0 24 00 08 sub %l0, %o0, %l0 <== NOT EXECUTED
low = Stack_check_usable_stack_start(stack);
size = Stack_check_usable_stack_size(stack);
high_water_mark = Stack_check_find_high_water_mark(low, size);
if ( high_water_mark )
20065ec: a0 0c 00 01 and %l0, %g1, %l0 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
if ( the_thread ) {
20065f0: 02 80 00 10 be 2006630 <Stack_check_Dump_threads_usage+0xc0><== NOT EXECUTED
20065f4: 03 00 81 b0 sethi %hi(0x206c000), %g1 <== NOT EXECUTED
(*print_handler)(
20065f8: ea 06 20 08 ld [ %i0 + 8 ], %l5 <== NOT EXECUTED
20065fc: ec 00 60 2c ld [ %g1 + 0x2c ], %l6 <== NOT EXECUTED
2006600: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2006604: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2006608: 40 00 18 7b call 200c7f4 <rtems_object_get_name> <== NOT EXECUTED
200660c: 92 10 20 05 mov 5, %o1 <== NOT EXECUTED
2006610: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2006614: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2006618: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
200661c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2006620: 9f c4 80 00 call %l2 <== NOT EXECUTED
2006624: 92 12 61 58 or %o1, 0x158, %o1 <== NOT EXECUTED
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
(*print_handler)(
2006628: 10 80 00 08 b 2006648 <Stack_check_Dump_threads_usage+0xd8><== NOT EXECUTED
200662c: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED
"0x%08" PRIx32 " %4s",
the_thread->Object.id,
rtems_object_get_name( the_thread->Object.id, sizeof(name), name )
);
} else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
2006630: d0 00 60 2c ld [ %g1 + 0x2c ], %o0 <== NOT EXECUTED
2006634: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
2006638: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
200663c: 9f c4 80 00 call %l2 <== NOT EXECUTED
2006640: 92 12 61 68 or %o1, 0x168, %o1 <== NOT EXECUTED
}
(*print_handler)(
2006644: d6 04 40 00 ld [ %l1 ], %o3 <== NOT EXECUTED
2006648: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED
200664c: 25 00 81 b0 sethi %hi(0x206c000), %l2 <== NOT EXECUTED
2006650: 23 00 81 b0 sethi %hi(0x206c000), %l1 <== NOT EXECUTED
2006654: c2 04 a0 30 ld [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
2006658: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200665c: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED
2006660: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
2006664: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED
2006668: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED
200666c: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
2006670: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006674: 92 12 61 78 or %o1, 0x178, %o1 ! 205f978 <write_test_string.8866+0x438><== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
2006678: 03 00 81 b0 sethi %hi(0x206c000), %g1 <== NOT EXECUTED
200667c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 ! 206c028 <Stack_check_Initialized><== NOT EXECUTED
2006680: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2006684: 12 80 00 08 bne 20066a4 <Stack_check_Dump_threads_usage+0x134><== NOT EXECUTED
2006688: c2 04 a0 30 ld [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
200668c: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
2006690: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
2006694: 9f c0 40 00 call %g1 <== NOT EXECUTED
2006698: 92 12 61 98 or %o1, 0x198, %o1 ! 205f998 <write_test_string.8866+0x458><== NOT EXECUTED
200669c: 81 c7 e0 08 ret <== NOT EXECUTED
20066a0: 81 e8 00 00 restore <== NOT EXECUTED
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
20066a4: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
20066a8: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
20066ac: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
20066b0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20066b4: 92 12 61 a8 or %o1, 0x1a8, %o1 <== NOT EXECUTED
20066b8: 81 c7 e0 08 ret <== NOT EXECUTED
20066bc: 81 e8 00 00 restore <== NOT EXECUTED
020068d0 <Stack_check_Initialize>:
/*
* Stack_check_Initialize
*/
void Stack_check_Initialize( void )
{
20068d0: 9d e3 bf a0 save %sp, -96, %sp
static uint32_t pattern[ 4 ] = {
0xFEEDF00D, 0x0BAD0D06, /* FEED FOOD to BAD DOG */
0xDEADF00D, 0x600D0D06 /* DEAD FOOD but GOOD DOG */
};
if (Stack_check_Initialized)
20068d4: 03 00 81 b0 sethi %hi(0x206c000), %g1
20068d8: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 ! 206c028 <Stack_check_Initialized>
20068dc: 80 a0 60 00 cmp %g1, 0
20068e0: 12 80 00 21 bne 2006964 <Stack_check_Initialize+0x94>
20068e4: 07 00 81 ba sethi %hi(0x206e800), %g3
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
p[i] = pattern[ i%4 ];
20068e8: 05 00 81 7e sethi %hi(0x205f800), %g2
20068ec: 86 10 e3 88 or %g3, 0x388, %g3
20068f0: 84 10 a3 00 or %g2, 0x300, %g2
20068f4: 88 08 60 03 and %g1, 3, %g4
20068f8: 89 29 20 02 sll %g4, 2, %g4
20068fc: da 00 80 04 ld [ %g2 + %g4 ], %o5
2006900: 89 28 60 02 sll %g1, 2, %g4
/*
* Dope the pattern and fill areas
*/
p = Stack_check_Pattern.pattern;
for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {
2006904: 82 00 60 01 inc %g1
2006908: 80 a0 60 04 cmp %g1, 4
200690c: 12 bf ff fa bne 20068f4 <Stack_check_Initialize+0x24>
2006910: da 20 c0 04 st %o5, [ %g3 + %g4 ]
/*
* If appropriate, setup the interrupt stack for high water testing
* also.
*/
#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {
2006914: 03 00 81 bb sethi %hi(0x206ec00), %g1
2006918: c2 00 61 90 ld [ %g1 + 0x190 ], %g1 ! 206ed90 <_CPU_Interrupt_stack_low>
200691c: 80 a0 60 00 cmp %g1, 0
2006920: 02 80 00 0e be 2006958 <Stack_check_Initialize+0x88> <== NEVER TAKEN
2006924: 05 00 81 bb sethi %hi(0x206ec00), %g2
2006928: c6 00 a0 dc ld [ %g2 + 0xdc ], %g3 ! 206ecdc <_CPU_Interrupt_stack_high>
200692c: 80 a0 e0 00 cmp %g3, 0
2006930: 02 80 00 0a be 2006958 <Stack_check_Initialize+0x88> <== NEVER TAKEN
2006934: 86 20 c0 01 sub %g3, %g1, %g3
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
2006938: 05 00 81 ba sethi %hi(0x206e800), %g2
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
200693c: c6 20 a3 98 st %g3, [ %g2 + 0x398 ] ! 206eb98 <Stack_check_Interrupt_stack>
* If appropriate, setup the interrupt stack for high water testing
* also.
*/
#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
2006940: 84 10 a3 98 or %g2, 0x398, %g2
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
(char *) _CPU_Interrupt_stack_low;
Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
2006944: 90 10 00 01 mov %g1, %o0
2006948: 94 10 00 03 mov %g3, %o2
* If appropriate, setup the interrupt stack for high water testing
* also.
*/
#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
if (_CPU_Interrupt_stack_low && _CPU_Interrupt_stack_high) {
Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;
200694c: c2 20 a0 04 st %g1, [ %g2 + 4 ]
Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
(char *) _CPU_Interrupt_stack_low;
Stack_check_Dope_stack(&Stack_check_Interrupt_stack);
2006950: 40 01 04 30 call 2047a10 <memset>
2006954: 92 10 20 a5 mov 0xa5, %o1
}
#endif
Stack_check_Initialized = 1;
2006958: 84 10 20 01 mov 1, %g2
200695c: 03 00 81 b0 sethi %hi(0x206c000), %g1
2006960: c4 20 60 28 st %g2, [ %g1 + 0x28 ] ! 206c028 <Stack_check_Initialized>
2006964: 81 c7 e0 08 ret
2006968: 81 e8 00 00 restore
02006530 <Stack_check_find_high_water_mark>:
/*
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
2006530: 90 02 20 10 add %o0, 0x10, %o0 <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
2006534: 84 0a 7f fc and %o1, -4, %g2 <== NOT EXECUTED
if (*base != U32_PATTERN)
2006538: 03 29 69 69 sethi %hi(0xa5a5a400), %g1 <== NOT EXECUTED
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
200653c: 84 02 00 02 add %o0, %g2, %g2 <== NOT EXECUTED
2006540: 10 80 00 06 b 2006558 <Stack_check_find_high_water_mark+0x28><== NOT EXECUTED
2006544: 82 10 61 a5 or %g1, 0x1a5, %g1 <== NOT EXECUTED
if (*base != U32_PATTERN)
2006548: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
200654c: 12 80 00 07 bne 2006568 <Stack_check_find_high_water_mark+0x38><== NOT EXECUTED
2006550: 01 00 00 00 nop <== NOT EXECUTED
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
2006554: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED
2006558: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
200655c: 2a bf ff fb bcs,a 2006548 <Stack_check_find_high_water_mark+0x18><== NOT EXECUTED
2006560: c6 02 00 00 ld [ %o0 ], %g3 <== NOT EXECUTED
2006564: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (*base != U32_PATTERN)
return (void *) base;
#endif
return (void *)0;
}
2006568: 81 c3 e0 08 retl <== NOT EXECUTED
02006734 <Stack_check_report_blown_task>:
*
* NOTE: The system is in a questionable state... we may not get
* the following message out.
*/
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{
2006734: 9d e3 bf 80 save %sp, -128, %sp
Stack_Control *stack = &running->Start.Initial_stack;
void *pattern_area = Stack_check_Get_pattern_area(stack);
char name [32];
printk("BLOWN STACK!!!\n");
2006738: 11 00 81 7e sethi %hi(0x205f800), %o0
* the following message out.
*/
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{
Stack_Control *stack = &running->Start.Initial_stack;
void *pattern_area = Stack_check_Get_pattern_area(stack);
200673c: e0 06 20 c8 ld [ %i0 + 0xc8 ], %l0
char name [32];
printk("BLOWN STACK!!!\n");
2006740: 40 00 0b d6 call 2009698 <printk>
2006744: 90 12 22 18 or %o0, 0x218, %o0
printk("task control block: 0x%08" PRIxPTR "\n", running);
2006748: 92 10 00 18 mov %i0, %o1
200674c: 11 00 81 7e sethi %hi(0x205f800), %o0
2006750: 40 00 0b d2 call 2009698 <printk>
2006754: 90 12 22 28 or %o0, 0x228, %o0 ! 205fa28 <write_test_string.8866+0x4e8>
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
2006758: d2 06 20 08 ld [ %i0 + 8 ], %o1
200675c: 11 00 81 7e sethi %hi(0x205f800), %o0
2006760: 40 00 0b ce call 2009698 <printk>
2006764: 90 12 22 48 or %o0, 0x248, %o0 ! 205fa48 <write_test_string.8866+0x508>
printk(
2006768: d2 06 20 0c ld [ %i0 + 0xc ], %o1
200676c: 11 00 81 7e sethi %hi(0x205f800), %o0
2006770: 40 00 0b ca call 2009698 <printk>
2006774: 90 12 22 60 or %o0, 0x260, %o0 ! 205fa60 <write_test_string.8866+0x520>
"task name: 0x%08" PRIx32 "\n",
running->Object.name.name_u32
);
printk(
2006778: d0 06 20 08 ld [ %i0 + 8 ], %o0
200677c: 94 07 bf e0 add %fp, -32, %o2
2006780: 40 00 18 1d call 200c7f4 <rtems_object_get_name>
2006784: 92 10 20 20 mov 0x20, %o1
2006788: 92 10 00 08 mov %o0, %o1
200678c: 11 00 81 7e sethi %hi(0x205f800), %o0
2006790: 40 00 0b c2 call 2009698 <printk>
2006794: 90 12 22 78 or %o0, 0x278, %o0 ! 205fa78 <write_test_string.8866+0x538>
"task name string: %s\n",
rtems_object_get_name(running->Object.id, sizeof(name), name)
);
printk(
2006798: d2 06 20 c4 ld [ %i0 + 0xc4 ], %o1
200679c: d4 06 20 c8 ld [ %i0 + 0xc8 ], %o2
20067a0: 11 00 81 7e sethi %hi(0x205f800), %o0
20067a4: 96 02 80 09 add %o2, %o1, %o3
20067a8: 40 00 0b bc call 2009698 <printk>
20067ac: 90 12 22 90 or %o0, 0x290, %o0
"task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
(unsigned long) stack->size,
stack->area,
((char *) stack->area + stack->size)
);
if (!pattern_ok) {
20067b0: 80 8e 60 ff btst 0xff, %i1
20067b4: 12 80 00 07 bne 20067d0 <Stack_check_report_blown_task+0x9c><== NEVER TAKEN
20067b8: 11 00 81 7e sethi %hi(0x205f800), %o0
printk(
20067bc: 96 04 20 18 add %l0, 0x18, %o3
20067c0: 90 12 22 c8 or %o0, 0x2c8, %o0
20067c4: 92 10 20 10 mov 0x10, %o1
20067c8: 40 00 0b b4 call 2009698 <printk>
20067cc: 94 04 20 08 add %l0, 8, %o2
rtems_configuration_get_user_multiprocessing_table()->node
);
}
#endif
rtems_fatal_error_occurred(0x81);
20067d0: 40 00 1a b4 call 200d2a0 <rtems_fatal_error_occurred>
20067d4: 90 10 20 81 mov 0x81, %o0
02043784 <T.54>:
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
2043784: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_bitmap_element* map_bits;
int map_index;
int map_offset;
int rc;
*found = false;
2043788: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
/*
* Load the bitmap.
*/
rc = rtems_rfs_bitmap_load_map (control, &map);
204378c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2043790: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2043794: 7f ff fe f2 call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2043798: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
204379c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20437a0: 14 80 00 7a bg 2043988 <T.54+0x204> <== NOT EXECUTED
20437a4: a5 2e e0 0b sll %i3, 0xb, %l2 <== NOT EXECUTED
return rc;
/*
* Calculate the bit we are testing plus the end point we search over.
*/
test_bit = *bit;
20437a8: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
end_bit = test_bit + (window * direction);
if (end_bit < 0)
20437ac: a4 84 80 11 addcc %l2, %l1, %l2 <== NOT EXECUTED
20437b0: 3c 80 00 04 bpos,a 20437c0 <T.54+0x3c> <== NOT EXECUTED
20437b4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
20437b8: 10 80 00 05 b 20437cc <T.54+0x48> <== NOT EXECUTED
20437bc: a4 10 20 00 clr %l2 <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
20437c0: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
20437c4: 3a 80 00 02 bcc,a 20437cc <T.54+0x48> <== NOT EXECUTED
20437c8: a4 00 7f ff add %g1, -1, %l2 <== NOT EXECUTED
map_index = rtems_rfs_bitmap_map_index (test_bit);
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
search_bits = &control->search_bits[search_index];
20437cc: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
map_bits = &map[map_index];
20437d0: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
if (end_bit < 0)
end_bit = 0;
else if (end_bit >= control->size)
end_bit = control->size - 1;
map_index = rtems_rfs_bitmap_map_index (test_bit);
20437d4: a7 3c 60 05 sra %l1, 5, %l3 <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
search_bits = &control->search_bits[search_index];
20437d8: ad 3c 60 0a sra %l1, 0xa, %l6 <== NOT EXECUTED
20437dc: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED
20437e0: ac 00 40 16 add %g1, %l6, %l6 <== NOT EXECUTED
map_bits = &map[map_index];
20437e4: 83 2c e0 02 sll %l3, 2, %g1 <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
20437e8: af 3e e0 1f sra %i3, 0x1f, %l7 <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
search_bits = &control->search_bits[search_index];
map_bits = &map[map_index];
20437ec: aa 05 40 01 add %l5, %g1, %l5 <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
20437f0: ae 25 c0 1b sub %l7, %i3, %l7 <== NOT EXECUTED
end_bit = 0;
else if (end_bit >= control->size)
end_bit = control->size - 1;
map_index = rtems_rfs_bitmap_map_index (test_bit);
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
20437f4: a8 0c 60 1f and %l1, 0x1f, %l4 <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
20437f8: af 3d e0 1f sra %l7, 0x1f, %l7 <== NOT EXECUTED
end_bit = control->size - 1;
map_index = rtems_rfs_bitmap_map_index (test_bit);
map_offset = rtems_rfs_bitmap_map_offset (test_bit);
search_index = rtems_rfs_bitmap_map_index (map_index);
search_offset = rtems_rfs_bitmap_map_offset (map_index);
20437fc: 90 0c e0 1f and %l3, 0x1f, %o0 <== NOT EXECUTED
}
}
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
2043800: ae 0d ff e1 and %l7, -31, %l7 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
2043804: b9 2e e0 02 sll %i3, 2, %i4 <== NOT EXECUTED
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
2043808: ae 05 e0 1f add %l7, 0x1f, %l7 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
204380c: 83 2e e0 05 sll %i3, 5, %g1 <== NOT EXECUTED
*/
static bool
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_bit bit)
{
return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);
2043810: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
*/
rtems_rfs_bitmap_bit bits_skipped;
test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1);
if (direction > 0)
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
2043814: b0 10 20 20 mov 0x20, %i0 <== NOT EXECUTED
/*
* If any bit is clear find that bit and then search the map element. If
* all bits are set there are no map bits so move to the next search
* element.
*/
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
2043818: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
204381c: 84 04 c0 1b add %l3, %i3, %g2 <== NOT EXECUTED
/*
* If any bit is clear find that bit and then search the map element. If
* all bits are set there are no map bits so move to the next search
* element.
*/
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
2043820: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
2043824: 12 80 00 33 bne 20438f0 <T.54+0x16c> <== NOT EXECUTED
2043828: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
*
* Align test_bit either up or down depending on the direction to next 32
* bit boundary.
*/
rtems_rfs_bitmap_bit bits_skipped;
test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1);
204382c: 10 80 00 36 b 2043904 <T.54+0x180> <== NOT EXECUTED
2043830: a2 0c 7f e0 and %l1, -32, %l1 <== NOT EXECUTED
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
{
while ((search_offset >= 0)
&& (search_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*search_bits, search_offset))
2043834: 80 88 c0 0c btst %g3, %o4 <== NOT EXECUTED
2043838: 12 80 00 1c bne 20438a8 <T.54+0x124> <== NOT EXECUTED
204383c: 80 a5 20 1f cmp %l4, 0x1f <== NOT EXECUTED
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
2043840: 10 80 00 1d b 20438b4 <T.54+0x130> <== NOT EXECUTED
2043844: a2 05 c0 02 add %l7, %g2, %l1 <== NOT EXECUTED
*/
static bool
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_bit bit)
{
return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);
2043848: 9b 2f 40 14 sll %i5, %l4, %o5 <== NOT EXECUTED
* found. We may find none are spare if searching up from the seed.
*/
while ((map_offset >= 0)
&& (map_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*map_bits, map_offset))
204384c: 80 8b 40 04 btst %o5, %g4 <== NOT EXECUTED
2043850: 02 80 00 12 be 2043898 <T.54+0x114> <== NOT EXECUTED
2043854: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
*/
static rtems_rfs_bitmap_element
rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_element bits)
{
return RTEMS_RFS_BITMAP_SET_BITS (target, bits);
2043858: 82 29 00 0d andn %g4, %o5, %g1 <== NOT EXECUTED
&& (map_offset < rtems_rfs_bitmap_element_bits ()))
{
if (!rtems_rfs_bitmap_test (*map_bits, map_offset))
{
*map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
if (rtems_rfs_bitmap_match(*map_bits,
204385c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2043860: 12 80 00 05 bne 2043874 <T.54+0xf0> <== NOT EXECUTED
2043864: c2 25 40 00 st %g1, [ %l5 ] <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
2043868: c2 05 80 00 ld [ %l6 ], %g1 <== NOT EXECUTED
204386c: 86 28 40 03 andn %g1, %g3, %g3 <== NOT EXECUTED
2043870: c6 25 80 00 st %g3, [ %l6 ] <== NOT EXECUTED
1 << search_offset);
control->free--;
2043874: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
*bit = test_bit;
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
2043878: c6 04 00 00 ld [ %l0 ], %g3 <== NOT EXECUTED
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
1 << search_offset);
control->free--;
*bit = test_bit;
*found = true;
204387c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2043880: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
2043884: c2 28 c0 00 stb %g1, [ %g3 ] <== NOT EXECUTED
if (rtems_rfs_bitmap_match(*map_bits,
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
1 << search_offset);
control->free--;
*bit = test_bit;
2043888: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
*map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
if (rtems_rfs_bitmap_match(*map_bits,
RTEMS_RFS_BITMAP_ELEMENT_SET))
*search_bits = rtems_rfs_bitmap_set (*search_bits,
1 << search_offset);
control->free--;
204388c: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
2043890: 10 80 00 3d b 2043984 <T.54+0x200> <== NOT EXECUTED
2043894: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
*found = true;
rtems_rfs_buffer_mark_dirty (control->buffer);
return 0;
}
if (test_bit == end_bit)
2043898: 02 80 00 06 be 20438b0 <T.54+0x12c> <== NOT EXECUTED
204389c: a8 05 00 1b add %l4, %i3, %l4 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
20438a0: a2 04 40 1b add %l1, %i3, %l1 <== NOT EXECUTED
{
/*
* Find the clear bit in the map. Update the search map and map if
* found. We may find none are spare if searching up from the seed.
*/
while ((map_offset >= 0)
20438a4: 80 a5 20 1f cmp %l4, 0x1f <== NOT EXECUTED
20438a8: 28 bf ff e8 bleu,a 2043848 <T.54+0xc4> <== NOT EXECUTED
20438ac: c8 05 40 00 ld [ %l5 ], %g4 <== NOT EXECUTED
map_bits += direction;
map_index += direction;
map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
20438b0: a2 05 c0 02 add %l7, %g2, %l1 <== NOT EXECUTED
map_offset += direction;
test_bit += direction;
}
}
map_bits += direction;
20438b4: aa 05 40 1c add %l5, %i4, %l5 <== NOT EXECUTED
return 0;
}
static int
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
20438b8: a6 04 c0 1b add %l3, %i3, %l3 <== NOT EXECUTED
test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
search_offset += direction;
if (((direction < 0) && (test_bit <= end_bit))
20438bc: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
20438c0: 14 80 00 06 bg 20438d8 <T.54+0x154> <== NOT EXECUTED
20438c4: a8 10 00 17 mov %l7, %l4 <== NOT EXECUTED
20438c8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20438cc: 26 80 00 22 bl,a 2043954 <T.54+0x1d0> <== NOT EXECUTED
20438d0: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED
20438d4: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
20438d8: 06 80 00 05 bl 20438ec <T.54+0x168> <== NOT EXECUTED
20438dc: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
20438e0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20438e4: 34 80 00 1c bg,a 2043954 <T.54+0x1d0> <== NOT EXECUTED
20438e8: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED
20438ec: 90 02 00 1b add %o0, %i3, %o0 <== NOT EXECUTED
* all bits are set there are no map bits so move to the next search
* element.
*/
if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
{
while ((search_offset >= 0)
20438f0: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
20438f4: 28 bf ff d0 bleu,a 2043834 <T.54+0xb0> <== NOT EXECUTED
20438f8: 87 2f 40 08 sll %i5, %o0, %g3 <== NOT EXECUTED
}
map_bits += direction * bits_skipped;
map_index += direction * bits_skipped;
}
search_bits += direction;
20438fc: 10 80 00 16 b 2043954 <T.54+0x1d0> <== NOT EXECUTED
2043900: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED
* Align test_bit either up or down depending on the direction to next 32
* bit boundary.
*/
rtems_rfs_bitmap_bit bits_skipped;
test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1);
if (direction > 0)
2043904: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2043908: 04 80 00 06 ble 2043920 <T.54+0x19c> <== NOT EXECUTED
204390c: a8 10 20 00 clr %l4 <== NOT EXECUTED
{
bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
2043910: 90 26 00 08 sub %i0, %o0, %o0 <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
2043914: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED
2043918: 10 80 00 07 b 2043934 <T.54+0x1b0> <== NOT EXECUTED
204391c: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
bits_skipped = search_offset + 1;
/*
* Need to remove 1 for the rounding up. The above rounds down and
* adds 1. Remember the logic is for subtraction.
*/
test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
2043920: 85 2a 20 05 sll %o0, 5, %g2 <== NOT EXECUTED
2043924: a8 10 20 1f mov 0x1f, %l4 <== NOT EXECUTED
2043928: 84 38 00 02 xnor %g0, %g2, %g2 <== NOT EXECUTED
test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();
map_offset = 0;
}
else
{
bits_skipped = search_offset + 1;
204392c: 90 02 20 01 inc %o0 <== NOT EXECUTED
/*
* Need to remove 1 for the rounding up. The above rounds down and
* adds 1. Remember the logic is for subtraction.
*/
test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
2043930: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
map_offset = rtems_rfs_bitmap_element_bits () - 1;
}
map_bits += direction * bits_skipped;
2043934: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
2043938: 7f fe fc 30 call 20029f8 <.umul> <== NOT EXECUTED
204393c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2043940: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
map_index += direction * bits_skipped;
2043944: a6 04 c0 08 add %l3, %o0, %l3 <== NOT EXECUTED
* adds 1. Remember the logic is for subtraction.
*/
test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
map_offset = rtems_rfs_bitmap_element_bits () - 1;
}
map_bits += direction * bits_skipped;
2043948: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
204394c: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED
map_index += direction * bits_skipped;
}
search_bits += direction;
2043950: ac 05 80 1c add %l6, %i4, %l6 <== NOT EXECUTED
search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
}
while (((direction < 0) && (test_bit >= end_bit))
|| ((direction > 0) && (test_bit <= end_bit)));
2043954: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
2043958: 06 80 00 08 bl 2043978 <T.54+0x1f4> <== NOT EXECUTED
204395c: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2043960: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2043964: 26 bf ff ae bl,a 204381c <T.54+0x98> <== NOT EXECUTED
2043968: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED
204396c: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
2043970: 34 80 00 06 bg,a 2043988 <T.54+0x204> <== NOT EXECUTED
2043974: 90 10 20 00 clr %o0 <== NOT EXECUTED
2043978: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
204397c: 34 bf ff a8 bg,a 204381c <T.54+0x98> <== NOT EXECUTED
2043980: d8 05 80 00 ld [ %l6 ], %o4 <== NOT EXECUTED
2043984: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
2043988: 81 c7 e0 08 ret <== NOT EXECUTED
204398c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020012a8 <_Barrier_Manager_initialization>:
#include <rtems/score/object.h>
#include <rtems/rtems/barrier.h>
void _Barrier_Manager_initialization(void)
{
}
20012a8: 81 c3 e0 08 retl
020092e4 <_CORE_RWLock_Obtain_for_reading>:
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
20092e4: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
20092e8: 03 00 80 85 sethi %hi(0x2021400), %g1
* If unlocked, then OK to read.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
20092ec: 7f ff e8 be call 20035e4 <sparc_disable_interrupts>
20092f0: e0 00 62 60 ld [ %g1 + 0x260 ], %l0 ! 2021660 <_Thread_Executing>
20092f4: a2 10 00 08 mov %o0, %l1
switch ( the_rwlock->current_state ) {
20092f8: c2 06 20 44 ld [ %i0 + 0x44 ], %g1
20092fc: 80 a0 60 00 cmp %g1, 0
2009300: 22 80 00 06 be,a 2009318 <_CORE_RWLock_Obtain_for_reading+0x34>
2009304: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
2009308: 80 a0 60 01 cmp %g1, 1
200930c: 12 80 00 16 bne 2009364 <_CORE_RWLock_Obtain_for_reading+0x80>
2009310: 80 8e a0 ff btst 0xff, %i2
2009314: 30 80 00 06 b,a 200932c <_CORE_RWLock_Obtain_for_reading+0x48>
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
2009318: 84 10 20 01 mov 1, %g2
the_rwlock->number_of_readers += 1;
200931c: 82 00 60 01 inc %g1
*/
_ISR_Disable( level );
switch ( the_rwlock->current_state ) {
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
2009320: c4 26 20 44 st %g2, [ %i0 + 0x44 ]
the_rwlock->number_of_readers += 1;
2009324: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
_ISR_Enable( level );
2009328: 30 80 00 0a b,a 2009350 <_CORE_RWLock_Obtain_for_reading+0x6c>
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
return;
case CORE_RWLOCK_LOCKED_FOR_READING: {
Thread_Control *waiter;
waiter = _Thread_queue_First( &the_rwlock->Wait_queue );
200932c: 40 00 07 f8 call 200b30c <_Thread_queue_First>
2009330: 90 10 00 18 mov %i0, %o0
if ( !waiter ) {
2009334: 80 a2 20 00 cmp %o0, 0
2009338: 12 80 00 0b bne 2009364 <_CORE_RWLock_Obtain_for_reading+0x80><== NEVER TAKEN
200933c: 80 8e a0 ff btst 0xff, %i2
the_rwlock->number_of_readers += 1;
2009340: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
2009344: 82 00 60 01 inc %g1
2009348: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
_ISR_Enable( level );
200934c: 90 10 00 11 mov %l1, %o0
2009350: 7f ff e8 a9 call 20035f4 <sparc_enable_interrupts>
2009354: 01 00 00 00 nop
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
2009358: c0 24 20 34 clr [ %l0 + 0x34 ]
return;
200935c: 81 c7 e0 08 ret
2009360: 81 e8 00 00 restore
/*
* If the thread is not willing to wait, then return immediately.
*/
if ( !wait ) {
2009364: 32 80 00 08 bne,a 2009384 <_CORE_RWLock_Obtain_for_reading+0xa0>
2009368: f2 24 20 20 st %i1, [ %l0 + 0x20 ]
_ISR_Enable( level );
200936c: 7f ff e8 a2 call 20035f4 <sparc_enable_interrupts>
2009370: 90 10 00 11 mov %l1, %o0
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
2009374: 82 10 20 02 mov 2, %g1
2009378: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
200937c: 81 c7 e0 08 ret
2009380: 81 e8 00 00 restore
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
2009384: c0 24 20 34 clr [ %l0 + 0x34 ]
/*
* We need to wait to enter this critical section
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
2009388: f0 24 20 44 st %i0, [ %l0 + 0x44 ]
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
200938c: c0 24 20 30 clr [ %l0 + 0x30 ]
2009390: 82 10 20 01 mov 1, %g1
2009394: c2 26 20 30 st %g1, [ %i0 + 0x30 ]
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
2009398: 90 10 00 11 mov %l1, %o0
200939c: 7f ff e8 96 call 20035f4 <sparc_enable_interrupts>
20093a0: 35 00 80 25 sethi %hi(0x2009400), %i2
_Thread_queue_Enqueue_with_handler(
20093a4: b2 10 00 1b mov %i3, %i1
20093a8: 40 00 06 ff call 200afa4 <_Thread_queue_Enqueue_with_handler>
20093ac: 95 ee a1 34 restore %i2, 0x134, %o2
0200943c <_CORE_RWLock_Release>:
*/
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
200943c: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
2009440: 03 00 80 85 sethi %hi(0x2021400), %g1
* Otherwise, we have to block.
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
2009444: 7f ff e8 68 call 20035e4 <sparc_disable_interrupts>
2009448: e0 00 62 60 ld [ %g1 + 0x260 ], %l0 ! 2021660 <_Thread_Executing>
200944c: 84 10 00 08 mov %o0, %g2
if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){
2009450: c2 06 20 44 ld [ %i0 + 0x44 ], %g1
2009454: 80 a0 60 00 cmp %g1, 0
2009458: 12 80 00 08 bne 2009478 <_CORE_RWLock_Release+0x3c>
200945c: 80 a0 60 01 cmp %g1, 1
_ISR_Enable( level );
2009460: 7f ff e8 65 call 20035f4 <sparc_enable_interrupts>
2009464: b0 10 20 00 clr %i0
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
2009468: 82 10 20 02 mov 2, %g1
200946c: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
2009470: 81 c7 e0 08 ret
2009474: 81 e8 00 00 restore
return CORE_RWLOCK_SUCCESSFUL;
}
if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
2009478: 32 80 00 0b bne,a 20094a4 <_CORE_RWLock_Release+0x68>
200947c: c0 24 20 34 clr [ %l0 + 0x34 ]
the_rwlock->number_of_readers -= 1;
2009480: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
2009484: 82 00 7f ff add %g1, -1, %g1
if ( the_rwlock->number_of_readers != 0 ) {
2009488: 80 a0 60 00 cmp %g1, 0
200948c: 02 80 00 05 be 20094a0 <_CORE_RWLock_Release+0x64>
2009490: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
/* must be unlocked again */
_ISR_Enable( level );
2009494: 7f ff e8 58 call 20035f4 <sparc_enable_interrupts>
2009498: b0 10 20 00 clr %i0
return CORE_RWLOCK_SUCCESSFUL;
200949c: 30 80 00 24 b,a 200952c <_CORE_RWLock_Release+0xf0>
}
}
/* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
20094a0: c0 24 20 34 clr [ %l0 + 0x34 ]
/*
* Implicitly transition to "unlocked" and find another thread interested
* in obtaining this rwlock.
*/
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
20094a4: c0 26 20 44 clr [ %i0 + 0x44 ]
_ISR_Enable( level );
20094a8: 7f ff e8 53 call 20035f4 <sparc_enable_interrupts>
20094ac: 90 10 00 02 mov %g2, %o0
next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );
20094b0: 40 00 06 5a call 200ae18 <_Thread_queue_Dequeue>
20094b4: 90 10 00 18 mov %i0, %o0
if ( next ) {
20094b8: 80 a2 20 00 cmp %o0, 0
20094bc: 22 80 00 1c be,a 200952c <_CORE_RWLock_Release+0xf0>
20094c0: b0 10 20 00 clr %i0
if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
20094c4: c2 02 20 30 ld [ %o0 + 0x30 ], %g1
20094c8: 80 a0 60 01 cmp %g1, 1
20094cc: 32 80 00 05 bne,a 20094e0 <_CORE_RWLock_Release+0xa4>
20094d0: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;
20094d4: 82 10 20 02 mov 2, %g1
return CORE_RWLOCK_SUCCESSFUL;
20094d8: 10 80 00 14 b 2009528 <_CORE_RWLock_Release+0xec>
20094dc: c2 26 20 44 st %g1, [ %i0 + 0x44 ]
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
20094e0: 84 10 20 01 mov 1, %g2
}
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
20094e4: 82 00 60 01 inc %g1
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
20094e8: c4 26 20 44 st %g2, [ %i0 + 0x44 ]
}
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
20094ec: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
/*
* Now see if more readers can be let go.
*/
while ( 1 ) {
next = _Thread_queue_First( &the_rwlock->Wait_queue );
20094f0: 40 00 07 87 call 200b30c <_Thread_queue_First>
20094f4: 90 10 00 18 mov %i0, %o0
if ( !next ||
20094f8: 92 92 20 00 orcc %o0, 0, %o1
20094fc: 22 80 00 0c be,a 200952c <_CORE_RWLock_Release+0xf0>
2009500: b0 10 20 00 clr %i0
next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
2009504: c2 02 60 30 ld [ %o1 + 0x30 ], %g1
2009508: 80 a0 60 01 cmp %g1, 1
200950c: 02 80 00 07 be 2009528 <_CORE_RWLock_Release+0xec> <== NEVER TAKEN
2009510: 90 10 00 18 mov %i0, %o0
return CORE_RWLOCK_SUCCESSFUL;
the_rwlock->number_of_readers += 1;
2009514: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
2009518: 82 00 60 01 inc %g1
_Thread_queue_Extract( &the_rwlock->Wait_queue, next );
200951c: 40 00 07 2d call 200b1d0 <_Thread_queue_Extract>
2009520: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
}
2009524: 30 bf ff f3 b,a 20094f0 <_CORE_RWLock_Release+0xb4>
}
/* indentation is to match _ISR_Disable at top */
return CORE_RWLOCK_SUCCESSFUL;
}
2009528: b0 10 20 00 clr %i0
200952c: 81 c7 e0 08 ret
2009530: 81 e8 00 00 restore
02009534 <_CORE_RWLock_Timeout>:
void _CORE_RWLock_Timeout(
Objects_Id id,
void *ignored
)
{
2009534: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
2009538: 90 10 00 18 mov %i0, %o0
200953c: 40 00 05 42 call 200aa44 <_Thread_Get>
2009540: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2009544: c2 07 bf fc ld [ %fp + -4 ], %g1
2009548: 80 a0 60 00 cmp %g1, 0
200954c: 12 80 00 08 bne 200956c <_CORE_RWLock_Timeout+0x38> <== NEVER TAKEN
2009550: 01 00 00 00 nop
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
2009554: 40 00 07 aa call 200b3fc <_Thread_queue_Process_timeout>
2009558: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
200955c: 03 00 80 85 sethi %hi(0x2021400), %g1
2009560: c4 00 61 a0 ld [ %g1 + 0x1a0 ], %g2 ! 20215a0 <_Thread_Dispatch_disable_level>
2009564: 84 00 bf ff add %g2, -1, %g2
2009568: c4 20 61 a0 st %g2, [ %g1 + 0x1a0 ]
200956c: 81 c7 e0 08 ret
2009570: 81 e8 00 00 restore
020168fc <_CORE_message_queue_Broadcast>:
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
20168fc: 9d e3 bf a0 save %sp, -96, %sp
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
2016900: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
2016904: a0 10 00 18 mov %i0, %l0
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
2016908: 80 a6 80 01 cmp %i2, %g1
201690c: 18 80 00 17 bgu 2016968 <_CORE_message_queue_Broadcast+0x6c><== NEVER TAKEN
2016910: b0 10 20 01 mov 1, %i0
* NOTE: This check is critical because threads can block on
* send and receive and this ensures that we are broadcasting
* the message to threads waiting to receive -- not to send.
*/
if ( the_message_queue->number_of_pending_messages != 0 ) {
2016914: c2 04 20 48 ld [ %l0 + 0x48 ], %g1
2016918: 80 a0 60 00 cmp %g1, 0
201691c: 02 80 00 0a be 2016944 <_CORE_message_queue_Broadcast+0x48>
2016920: a2 10 20 00 clr %l1
*count = 0;
2016924: c0 27 40 00 clr [ %i5 ]
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
2016928: 81 c7 e0 08 ret
201692c: 91 e8 20 00 restore %g0, 0, %o0
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
2016930: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0
2016934: 40 00 2c fc call 2021d24 <memcpy>
2016938: a2 04 60 01 inc %l1
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
201693c: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1
2016940: f4 20 40 00 st %i2, [ %g1 ]
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
2016944: 40 00 0a 74 call 2019314 <_Thread_queue_Dequeue>
2016948: 90 10 00 10 mov %l0, %o0
201694c: 92 10 00 19 mov %i1, %o1
2016950: a4 10 00 08 mov %o0, %l2
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
2016954: 80 a2 20 00 cmp %o0, 0
2016958: 12 bf ff f6 bne 2016930 <_CORE_message_queue_Broadcast+0x34>
201695c: 94 10 00 1a mov %i2, %o2
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
2016960: e2 27 40 00 st %l1, [ %i5 ]
2016964: b0 10 20 00 clr %i0
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
2016968: 81 c7 e0 08 ret
201696c: 81 e8 00 00 restore
02010170 <_CORE_message_queue_Initialize>:
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Attributes *the_message_queue_attributes,
uint32_t maximum_pending_messages,
size_t maximum_message_size
)
{
2010170: 9d e3 bf a0 save %sp, -96, %sp
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
the_message_queue->number_of_pending_messages = 0;
2010174: c0 26 20 48 clr [ %i0 + 0x48 ]
)
{
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
2010178: f4 26 20 44 st %i2, [ %i0 + 0x44 ]
the_message_queue->number_of_pending_messages = 0;
the_message_queue->maximum_message_size = maximum_message_size;
201017c: f6 26 20 4c st %i3, [ %i0 + 0x4c ]
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
2010180: c0 26 20 60 clr [ %i0 + 0x60 ]
the_message_queue->notify_argument = the_argument;
2010184: c0 26 20 64 clr [ %i0 + 0x64 ]
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
2010188: 80 8e e0 03 btst 3, %i3
201018c: 02 80 00 07 be 20101a8 <_CORE_message_queue_Initialize+0x38>
2010190: a2 10 00 1b mov %i3, %l1
allocated_message_size += sizeof(uint32_t);
2010194: a2 06 e0 04 add %i3, 4, %l1
allocated_message_size &= ~(sizeof(uint32_t) - 1);
2010198: a2 0c 7f fc and %l1, -4, %l1
}
if (allocated_message_size < maximum_message_size)
201019c: 80 a4 40 1b cmp %l1, %i3
20101a0: 0a 80 00 23 bcs 201022c <_CORE_message_queue_Initialize+0xbc><== NEVER TAKEN
20101a4: 01 00 00 00 nop
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
20101a8: a0 04 60 14 add %l1, 0x14, %l0
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
20101ac: 92 10 00 1a mov %i2, %o1
20101b0: 40 00 56 1f call 2025a2c <.umul>
20101b4: 90 10 00 10 mov %l0, %o0
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
20101b8: 80 a2 00 11 cmp %o0, %l1
20101bc: 0a 80 00 1c bcs 201022c <_CORE_message_queue_Initialize+0xbc><== NEVER TAKEN
20101c0: 01 00 00 00 nop
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
20101c4: 40 00 0c 1c call 2013234 <_Workspace_Allocate>
20101c8: 01 00 00 00 nop
20101cc: d0 26 20 5c st %o0, [ %i0 + 0x5c ]
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
20101d0: 80 a2 20 00 cmp %o0, 0
20101d4: 02 80 00 16 be 201022c <_CORE_message_queue_Initialize+0xbc>
20101d8: 92 10 00 08 mov %o0, %o1
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
20101dc: 90 06 20 68 add %i0, 0x68, %o0
20101e0: 94 10 00 1a mov %i2, %o2
20101e4: 40 00 1a a0 call 2016c64 <_Chain_Initialize>
20101e8: 96 10 00 10 mov %l0, %o3
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
_Thread_queue_Initialize(
20101ec: c2 06 40 00 ld [ %i1 ], %g1
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
20101f0: c0 26 20 54 clr [ %i0 + 0x54 ]
20101f4: 82 18 60 01 xor %g1, 1, %g1
20101f8: 80 a0 00 01 cmp %g0, %g1
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
20101fc: 82 06 20 54 add %i0, 0x54, %g1
2010200: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2010204: 82 06 20 50 add %i0, 0x50, %g1
2010208: 90 10 00 18 mov %i0, %o0
201020c: c2 26 20 58 st %g1, [ %i0 + 0x58 ]
2010210: 92 60 3f ff subx %g0, -1, %o1
2010214: 94 10 20 80 mov 0x80, %o2
2010218: 96 10 20 06 mov 6, %o3
201021c: 40 00 08 e2 call 20125a4 <_Thread_queue_Initialize>
2010220: b0 10 20 01 mov 1, %i0
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
2010224: 81 c7 e0 08 ret
2010228: 81 e8 00 00 restore
}
201022c: 81 c7 e0 08 ret
2010230: 91 e8 20 00 restore %g0, 0, %o0
02010234 <_CORE_message_queue_Seize>:
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
2010234: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
2010238: 23 00 80 b2 sethi %hi(0x202c800), %l1
201023c: e0 04 61 10 ld [ %l1 + 0x110 ], %l0 ! 202c910 <_Thread_Executing>
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
2010240: a4 10 00 19 mov %i1, %l2
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
2010244: c0 24 20 34 clr [ %l0 + 0x34 ]
_ISR_Disable( level );
2010248: 7f ff dc c0 call 2007548 <sparc_disable_interrupts>
201024c: a6 10 00 18 mov %i0, %l3
2010250: 82 10 00 08 mov %o0, %g1
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
2010254: f2 06 20 50 ld [ %i0 + 0x50 ], %i1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2010258: 84 06 20 54 add %i0, 0x54, %g2
201025c: 80 a6 40 02 cmp %i1, %g2
2010260: 02 80 00 24 be 20102f0 <_CORE_message_queue_Seize+0xbc>
2010264: 86 06 20 50 add %i0, 0x50, %g3
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
2010268: c4 06 40 00 ld [ %i1 ], %g2
the_chain->first = new_first;
201026c: c4 26 20 50 st %g2, [ %i0 + 0x50 ]
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
2010270: 80 a6 60 00 cmp %i1, 0
2010274: 02 80 00 1f be 20102f0 <_CORE_message_queue_Seize+0xbc> <== NEVER TAKEN
2010278: c6 20 a0 04 st %g3, [ %g2 + 4 ]
the_message_queue->number_of_pending_messages -= 1;
201027c: c2 06 20 48 ld [ %i0 + 0x48 ], %g1
2010280: 82 00 7f ff add %g1, -1, %g1
2010284: c2 26 20 48 st %g1, [ %i0 + 0x48 ]
_ISR_Enable( level );
2010288: 7f ff dc b4 call 2007558 <sparc_enable_interrupts>
201028c: a0 06 60 10 add %i1, 0x10, %l0
*size_p = the_message->Contents.size;
2010290: d4 06 60 0c ld [ %i1 + 0xc ], %o2
_Thread_Executing->Wait.count =
2010294: c2 04 61 10 ld [ %l1 + 0x110 ], %g1
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
the_message_queue->number_of_pending_messages -= 1;
_ISR_Enable( level );
*size_p = the_message->Contents.size;
2010298: d4 26 c0 00 st %o2, [ %i3 ]
_Thread_Executing->Wait.count =
201029c: c4 06 60 08 ld [ %i1 + 8 ], %g2
20102a0: c4 20 60 24 st %g2, [ %g1 + 0x24 ]
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
20102a4: 92 10 00 10 mov %l0, %o1
20102a8: 40 00 29 b9 call 201a98c <memcpy>
20102ac: 90 10 00 1a mov %i2, %o0
* is not, then we can go ahead and free the buffer.
*
* NOTE: If we note that the queue was not full before this receive,
* then we can avoid this dequeue.
*/
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
20102b0: 40 00 07 ba call 2012198 <_Thread_queue_Dequeue>
20102b4: 90 10 00 18 mov %i0, %o0
if ( !the_thread ) {
20102b8: 80 a2 20 00 cmp %o0, 0
20102bc: 32 80 00 04 bne,a 20102cc <_CORE_message_queue_Seize+0x98>
20102c0: d4 02 20 30 ld [ %o0 + 0x30 ], %o2
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message
)
{
_Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
20102c4: 7f ff ff 7a call 20100ac <_Chain_Append>
20102c8: 91 ee 20 68 restore %i0, 0x68, %o0
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
20102cc: c2 02 20 24 ld [ %o0 + 0x24 ], %g1
*/
_CORE_message_queue_Set_message_priority(
the_message,
the_thread->Wait.count
);
the_message->Contents.size = (size_t) the_thread->Wait.option;
20102d0: d4 26 60 0c st %o2, [ %i1 + 0xc ]
20102d4: c2 26 60 08 st %g1, [ %i1 + 8 ]
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
20102d8: d2 02 20 2c ld [ %o0 + 0x2c ], %o1
20102dc: 40 00 29 ac call 201a98c <memcpy>
20102e0: 90 10 00 10 mov %l0, %o0
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
20102e4: f4 06 60 08 ld [ %i1 + 8 ], %i2
20102e8: 40 00 1a a7 call 2016d84 <_CORE_message_queue_Insert_message>
20102ec: 81 e8 00 00 restore
return;
}
#endif
}
if ( !wait ) {
20102f0: 80 8f 20 ff btst 0xff, %i4
20102f4: 12 80 00 08 bne 2010314 <_CORE_message_queue_Seize+0xe0>
20102f8: 84 10 20 01 mov 1, %g2
_ISR_Enable( level );
20102fc: 7f ff dc 97 call 2007558 <sparc_enable_interrupts>
2010300: 90 10 00 01 mov %g1, %o0
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
2010304: 82 10 20 04 mov 4, %g1
2010308: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
201030c: 81 c7 e0 08 ret
2010310: 81 e8 00 00 restore
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2010314: c4 24 e0 30 st %g2, [ %l3 + 0x30 ]
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
executing->Wait.id = id;
executing->Wait.return_argument_second.mutable_object = buffer;
executing->Wait.return_argument = size_p;
2010318: f6 24 20 28 st %i3, [ %l0 + 0x28 ]
return;
}
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
executing->Wait.id = id;
201031c: e4 24 20 20 st %l2, [ %l0 + 0x20 ]
executing->Wait.return_argument_second.mutable_object = buffer;
2010320: f4 24 20 2c st %i2, [ %l0 + 0x2c ]
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
return;
}
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
2010324: e6 24 20 44 st %l3, [ %l0 + 0x44 ]
executing->Wait.id = id;
executing->Wait.return_argument_second.mutable_object = buffer;
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
2010328: 90 10 00 01 mov %g1, %o0
201032c: 7f ff dc 8b call 2007558 <sparc_enable_interrupts>
2010330: 35 00 80 49 sethi %hi(0x2012400), %i2
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
2010334: b0 10 00 13 mov %l3, %i0
2010338: b2 10 00 1d mov %i5, %i1
201033c: 40 00 07 fa call 2012324 <_Thread_queue_Enqueue_with_handler>
2010340: 95 ee a2 70 restore %i2, 0x270, %o2
02006edc <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
2006edc: 9d e3 bf a0 save %sp, -96, %sp
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
2006ee0: 03 00 80 78 sethi %hi(0x201e000), %g1
2006ee4: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 201e290 <_Thread_Dispatch_disable_level>
2006ee8: 80 a0 60 00 cmp %g1, 0
2006eec: 02 80 00 0d be 2006f20 <_CORE_mutex_Seize+0x44>
2006ef0: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
2006ef4: 80 8e a0 ff btst 0xff, %i2
2006ef8: 02 80 00 0b be 2006f24 <_CORE_mutex_Seize+0x48> <== NEVER TAKEN
2006efc: 90 10 00 18 mov %i0, %o0
2006f00: 03 00 80 79 sethi %hi(0x201e400), %g1
2006f04: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current>
2006f08: 80 a0 60 01 cmp %g1, 1
2006f0c: 08 80 00 05 bleu 2006f20 <_CORE_mutex_Seize+0x44>
2006f10: 90 10 20 00 clr %o0
2006f14: 92 10 20 00 clr %o1
2006f18: 40 00 01 d3 call 2007664 <_Internal_error_Occurred>
2006f1c: 94 10 20 13 mov 0x13, %o2
2006f20: 90 10 00 18 mov %i0, %o0
2006f24: 40 00 19 4d call 200d458 <_CORE_mutex_Seize_interrupt_trylock>
2006f28: 92 07 a0 54 add %fp, 0x54, %o1
2006f2c: 80 a2 20 00 cmp %o0, 0
2006f30: 02 80 00 09 be 2006f54 <_CORE_mutex_Seize+0x78>
2006f34: 80 8e a0 ff btst 0xff, %i2
2006f38: 12 80 00 09 bne 2006f5c <_CORE_mutex_Seize+0x80>
2006f3c: 35 00 80 78 sethi %hi(0x201e000), %i2
2006f40: 7f ff ec 25 call 2001fd4 <sparc_enable_interrupts>
2006f44: d0 07 a0 54 ld [ %fp + 0x54 ], %o0
2006f48: c2 06 a3 50 ld [ %i2 + 0x350 ], %g1
2006f4c: 84 10 20 01 mov 1, %g2
2006f50: c4 20 60 34 st %g2, [ %g1 + 0x34 ]
2006f54: 81 c7 e0 08 ret
2006f58: 81 e8 00 00 restore
2006f5c: c4 06 a3 50 ld [ %i2 + 0x350 ], %g2
2006f60: 03 00 80 78 sethi %hi(0x201e000), %g1
2006f64: c6 00 62 90 ld [ %g1 + 0x290 ], %g3 ! 201e290 <_Thread_Dispatch_disable_level>
2006f68: f2 20 a0 20 st %i1, [ %g2 + 0x20 ]
2006f6c: f0 20 a0 44 st %i0, [ %g2 + 0x44 ]
2006f70: 84 00 e0 01 add %g3, 1, %g2
2006f74: c4 20 62 90 st %g2, [ %g1 + 0x290 ]
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2006f78: 82 10 20 01 mov 1, %g1
2006f7c: c2 26 20 30 st %g1, [ %i0 + 0x30 ]
2006f80: 7f ff ec 15 call 2001fd4 <sparc_enable_interrupts>
2006f84: d0 07 a0 54 ld [ %fp + 0x54 ], %o0
2006f88: 90 10 00 18 mov %i0, %o0
2006f8c: 7f ff ff bb call 2006e78 <_CORE_mutex_Seize_interrupt_blocking>
2006f90: 92 10 00 1b mov %i3, %o1
2006f94: 81 c7 e0 08 ret
2006f98: 81 e8 00 00 restore
02007140 <_CORE_semaphore_Surrender>:
CORE_semaphore_Status _CORE_semaphore_Surrender(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
CORE_semaphore_API_mp_support_callout api_semaphore_mp_support
)
{
2007140: 9d e3 bf a0 save %sp, -96, %sp
2007144: a0 10 00 18 mov %i0, %l0
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
2007148: b0 10 20 00 clr %i0
200714c: 40 00 06 38 call 2008a2c <_Thread_queue_Dequeue>
2007150: 90 10 00 10 mov %l0, %o0
2007154: 80 a2 20 00 cmp %o0, 0
2007158: 12 80 00 0e bne 2007190 <_CORE_semaphore_Surrender+0x50>
200715c: 01 00 00 00 nop
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
2007160: 7f ff eb 99 call 2001fc4 <sparc_disable_interrupts>
2007164: 01 00 00 00 nop
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
2007168: c2 04 20 48 ld [ %l0 + 0x48 ], %g1
200716c: c4 04 20 40 ld [ %l0 + 0x40 ], %g2
2007170: 80 a0 40 02 cmp %g1, %g2
2007174: 1a 80 00 05 bcc 2007188 <_CORE_semaphore_Surrender+0x48> <== NEVER TAKEN
2007178: b0 10 20 04 mov 4, %i0
the_semaphore->count += 1;
200717c: 82 00 60 01 inc %g1
2007180: b0 10 20 00 clr %i0
2007184: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
2007188: 7f ff eb 93 call 2001fd4 <sparc_enable_interrupts>
200718c: 01 00 00 00 nop
}
return status;
}
2007190: 81 c7 e0 08 ret
2007194: 81 e8 00 00 restore
020012b0 <_Dual_ported_memory_Manager_initialization>:
#include <rtems/rtems/types.h>
#include <rtems/rtems/dpmem.h>
void _Dual_ported_memory_Manager_initialization(void)
{
}
20012b0: 81 c3 e0 08 retl
020012b8 <_Event_Manager_initialization>:
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
void _Event_Manager_initialization(void)
{
}
20012b8: 81 c3 e0 08 retl
02005d38 <_Event_Seize>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
2005d38: 9d e3 bf a0 save %sp, -96, %sp
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
2005d3c: 03 00 80 78 sethi %hi(0x201e000), %g1
2005d40: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing>
executing->Wait.return_code = RTEMS_SUCCESSFUL;
2005d44: c0 24 20 34 clr [ %l0 + 0x34 ]
api = executing->API_Extensions[ THREAD_API_RTEMS ];
_ISR_Disable( level );
2005d48: 7f ff f0 9f call 2001fc4 <sparc_disable_interrupts>
2005d4c: e4 04 21 68 ld [ %l0 + 0x168 ], %l2
pending_events = api->pending_events;
2005d50: c2 04 80 00 ld [ %l2 ], %g1
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
2005d54: a2 8e 00 01 andcc %i0, %g1, %l1
2005d58: 02 80 00 0e be 2005d90 <_Event_Seize+0x58>
2005d5c: 80 8e 60 01 btst 1, %i1
2005d60: 80 a4 40 18 cmp %l1, %i0
2005d64: 02 80 00 04 be 2005d74 <_Event_Seize+0x3c>
2005d68: 80 8e 60 02 btst 2, %i1
2005d6c: 02 80 00 09 be 2005d90 <_Event_Seize+0x58> <== NEVER TAKEN
2005d70: 80 8e 60 01 btst 1, %i1
(seized_events == event_in || _Options_Is_any( option_set )) ) {
api->pending_events =
2005d74: 82 28 40 11 andn %g1, %l1, %g1
2005d78: c2 24 80 00 st %g1, [ %l2 ]
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
2005d7c: 7f ff f0 96 call 2001fd4 <sparc_enable_interrupts>
2005d80: 01 00 00 00 nop
2005d84: e2 26 c0 00 st %l1, [ %i3 ]
2005d88: 81 c7 e0 08 ret
2005d8c: 81 e8 00 00 restore
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
2005d90: 22 80 00 09 be,a 2005db4 <_Event_Seize+0x7c>
2005d94: f2 24 20 30 st %i1, [ %l0 + 0x30 ]
_ISR_Enable( level );
2005d98: 7f ff f0 8f call 2001fd4 <sparc_enable_interrupts>
2005d9c: 01 00 00 00 nop
executing->Wait.return_code = RTEMS_UNSATISFIED;
2005da0: 82 10 20 0d mov 0xd, %g1 ! d <PROM_START+0xd>
2005da4: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
*event_out = seized_events;
2005da8: e2 26 c0 00 st %l1, [ %i3 ]
2005dac: 81 c7 e0 08 ret
2005db0: 81 e8 00 00 restore
*
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = (uint32_t) option_set;
executing->Wait.count = (uint32_t) event_in;
2005db4: f0 24 20 24 st %i0, [ %l0 + 0x24 ]
executing->Wait.return_argument = event_out;
2005db8: f6 24 20 28 st %i3, [ %l0 + 0x28 ]
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2005dbc: 84 10 20 01 mov 1, %g2
2005dc0: 03 00 80 7a sethi %hi(0x201e800), %g1
2005dc4: c4 20 63 f8 st %g2, [ %g1 + 0x3f8 ] ! 201ebf8 <_Event_Sync_state>
_ISR_Enable( level );
2005dc8: 7f ff f0 83 call 2001fd4 <sparc_enable_interrupts>
2005dcc: 01 00 00 00 nop
if ( ticks ) {
2005dd0: 80 a6 a0 00 cmp %i2, 0
2005dd4: 02 80 00 0f be 2005e10 <_Event_Seize+0xd8>
2005dd8: 90 10 00 10 mov %l0, %o0
_Watchdog_Initialize(
2005ddc: c2 04 20 08 ld [ %l0 + 8 ], %g1
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2005de0: 11 00 80 78 sethi %hi(0x201e000), %o0
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
2005de4: c2 24 20 68 st %g1, [ %l0 + 0x68 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2005de8: 03 00 80 17 sethi %hi(0x2005c00), %g1
2005dec: 82 10 63 e0 or %g1, 0x3e0, %g1 ! 2005fe0 <_Event_Timeout>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2005df0: f4 24 20 54 st %i2, [ %l0 + 0x54 ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2005df4: c0 24 20 50 clr [ %l0 + 0x50 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
2005df8: c0 24 20 6c clr [ %l0 + 0x6c ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2005dfc: c2 24 20 64 st %g1, [ %l0 + 0x64 ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2005e00: 90 12 23 70 or %o0, 0x370, %o0
2005e04: 40 00 0e 74 call 20097d4 <_Watchdog_Insert>
2005e08: 92 04 20 48 add %l0, 0x48, %o1
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
2005e0c: 90 10 00 10 mov %l0, %o0
2005e10: 40 00 0c 67 call 2008fac <_Thread_Set_state>
2005e14: 92 10 21 00 mov 0x100, %o1
_ISR_Disable( level );
2005e18: 7f ff f0 6b call 2001fc4 <sparc_disable_interrupts>
2005e1c: 01 00 00 00 nop
sync_state = _Event_Sync_state;
2005e20: 03 00 80 7a sethi %hi(0x201e800), %g1
2005e24: f0 00 63 f8 ld [ %g1 + 0x3f8 ], %i0 ! 201ebf8 <_Event_Sync_state>
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
2005e28: c0 20 63 f8 clr [ %g1 + 0x3f8 ]
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
2005e2c: 80 a6 20 01 cmp %i0, 1
2005e30: 12 80 00 04 bne 2005e40 <_Event_Seize+0x108>
2005e34: b2 10 00 10 mov %l0, %i1
_ISR_Enable( level );
2005e38: 7f ff f0 67 call 2001fd4 <sparc_enable_interrupts>
2005e3c: 91 e8 00 08 restore %g0, %o0, %o0
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
2005e40: 40 00 08 59 call 2007fa4 <_Thread_blocking_operation_Cancel>
2005e44: 95 e8 00 08 restore %g0, %o0, %o2
02005ea4 <_Event_Surrender>:
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
2005ea4: 9d e3 bf a0 save %sp, -96, %sp
rtems_event_set event_condition;
rtems_event_set seized_events;
rtems_option option_set;
RTEMS_API_Control *api;
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
2005ea8: e2 06 21 68 ld [ %i0 + 0x168 ], %l1
option_set = (rtems_option) the_thread->Wait.option;
2005eac: e4 06 20 30 ld [ %i0 + 0x30 ], %l2
_ISR_Disable( level );
2005eb0: 7f ff f0 45 call 2001fc4 <sparc_disable_interrupts>
2005eb4: a0 10 00 18 mov %i0, %l0
2005eb8: b0 10 00 08 mov %o0, %i0
pending_events = api->pending_events;
2005ebc: c4 04 40 00 ld [ %l1 ], %g2
event_condition = (rtems_event_set) the_thread->Wait.count;
2005ec0: c6 04 20 24 ld [ %l0 + 0x24 ], %g3
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
2005ec4: 82 88 c0 02 andcc %g3, %g2, %g1
2005ec8: 02 80 00 43 be 2005fd4 <_Event_Surrender+0x130>
2005ecc: 09 00 80 78 sethi %hi(0x201e000), %g4
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
2005ed0: c8 01 23 2c ld [ %g4 + 0x32c ], %g4 ! 201e32c <_ISR_Nest_level>
2005ed4: 80 a1 20 00 cmp %g4, 0
2005ed8: 22 80 00 1e be,a 2005f50 <_Event_Surrender+0xac>
2005edc: c8 04 20 10 ld [ %l0 + 0x10 ], %g4
2005ee0: 09 00 80 78 sethi %hi(0x201e000), %g4
2005ee4: c8 01 23 50 ld [ %g4 + 0x350 ], %g4 ! 201e350 <_Thread_Executing>
2005ee8: 80 a4 00 04 cmp %l0, %g4
2005eec: 32 80 00 19 bne,a 2005f50 <_Event_Surrender+0xac>
2005ef0: c8 04 20 10 ld [ %l0 + 0x10 ], %g4
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
2005ef4: 09 00 80 7a sethi %hi(0x201e800), %g4
2005ef8: da 01 23 f8 ld [ %g4 + 0x3f8 ], %o5 ! 201ebf8 <_Event_Sync_state>
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
2005efc: 80 a3 60 02 cmp %o5, 2
2005f00: 02 80 00 07 be 2005f1c <_Event_Surrender+0x78> <== NEVER TAKEN
2005f04: 80 a0 40 03 cmp %g1, %g3
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
2005f08: c8 01 23 f8 ld [ %g4 + 0x3f8 ], %g4
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
2005f0c: 80 a1 20 01 cmp %g4, 1
2005f10: 32 80 00 10 bne,a 2005f50 <_Event_Surrender+0xac>
2005f14: c8 04 20 10 ld [ %l0 + 0x10 ], %g4
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
2005f18: 80 a0 40 03 cmp %g1, %g3
2005f1c: 02 80 00 04 be 2005f2c <_Event_Surrender+0x88>
2005f20: 80 8c a0 02 btst 2, %l2
2005f24: 02 80 00 2c be 2005fd4 <_Event_Surrender+0x130> <== NEVER TAKEN
2005f28: 01 00 00 00 nop
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
2005f2c: 84 28 80 01 andn %g2, %g1, %g2
2005f30: c4 24 40 00 st %g2, [ %l1 ]
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2005f34: c4 04 20 28 ld [ %l0 + 0x28 ], %g2
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
2005f38: c0 24 20 24 clr [ %l0 + 0x24 ]
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2005f3c: c2 20 80 00 st %g1, [ %g2 ]
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
2005f40: 84 10 20 03 mov 3, %g2
2005f44: 03 00 80 7a sethi %hi(0x201e800), %g1
2005f48: c4 20 63 f8 st %g2, [ %g1 + 0x3f8 ] ! 201ebf8 <_Event_Sync_state>
2005f4c: 30 80 00 22 b,a 2005fd4 <_Event_Surrender+0x130>
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
2005f50: 80 89 21 00 btst 0x100, %g4
2005f54: 02 80 00 20 be 2005fd4 <_Event_Surrender+0x130>
2005f58: 80 a0 40 03 cmp %g1, %g3
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
2005f5c: 02 80 00 04 be 2005f6c <_Event_Surrender+0xc8>
2005f60: 80 8c a0 02 btst 2, %l2
2005f64: 02 80 00 1c be 2005fd4 <_Event_Surrender+0x130> <== NEVER TAKEN
2005f68: 01 00 00 00 nop
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
2005f6c: 84 28 80 01 andn %g2, %g1, %g2
2005f70: c4 24 40 00 st %g2, [ %l1 ]
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2005f74: c4 04 20 28 ld [ %l0 + 0x28 ], %g2
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
the_thread->Wait.count = 0;
2005f78: c0 24 20 24 clr [ %l0 + 0x24 ]
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
2005f7c: c2 20 80 00 st %g1, [ %g2 ]
_ISR_Flash( level );
2005f80: 7f ff f0 15 call 2001fd4 <sparc_enable_interrupts>
2005f84: 90 10 00 18 mov %i0, %o0
2005f88: 7f ff f0 0f call 2001fc4 <sparc_disable_interrupts>
2005f8c: 01 00 00 00 nop
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
2005f90: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
2005f94: 80 a0 60 02 cmp %g1, 2
2005f98: 02 80 00 06 be 2005fb0 <_Event_Surrender+0x10c>
2005f9c: 82 10 20 03 mov 3, %g1
_ISR_Enable( level );
2005fa0: 7f ff f0 0d call 2001fd4 <sparc_enable_interrupts>
2005fa4: 90 10 00 18 mov %i0, %o0
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
2005fa8: 10 80 00 08 b 2005fc8 <_Event_Surrender+0x124>
2005fac: 33 04 00 ff sethi %hi(0x1003fc00), %i1
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
2005fb0: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
2005fb4: 7f ff f0 08 call 2001fd4 <sparc_enable_interrupts>
2005fb8: 90 10 00 18 mov %i0, %o0
(void) _Watchdog_Remove( &the_thread->Timer );
2005fbc: 40 00 0e 62 call 2009944 <_Watchdog_Remove>
2005fc0: 90 04 20 48 add %l0, 0x48, %o0
2005fc4: 33 04 00 ff sethi %hi(0x1003fc00), %i1
2005fc8: b2 16 63 f8 or %i1, 0x3f8, %i1 ! 1003fff8 <RAM_END+0xdc3fff8>
2005fcc: 40 00 08 84 call 20081dc <_Thread_Clear_state>
2005fd0: 91 e8 00 10 restore %g0, %l0, %o0
_Thread_Unblock( the_thread );
}
return;
}
}
_ISR_Enable( level );
2005fd4: 7f ff f0 00 call 2001fd4 <sparc_enable_interrupts>
2005fd8: 81 e8 00 00 restore
02005fe0 <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
2005fe0: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
2005fe4: 90 10 00 18 mov %i0, %o0
2005fe8: 40 00 09 9c call 2008658 <_Thread_Get>
2005fec: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2005ff0: c2 07 bf fc ld [ %fp + -4 ], %g1
2005ff4: 80 a0 60 00 cmp %g1, 0
2005ff8: 12 80 00 1c bne 2006068 <_Event_Timeout+0x88> <== NEVER TAKEN
2005ffc: a0 10 00 08 mov %o0, %l0
*
* If it is not satisfied, then it is "nothing happened" and
* this is the "timeout" transition. After a request is satisfied,
* a timeout is not allowed to occur.
*/
_ISR_Disable( level );
2006000: 7f ff ef f1 call 2001fc4 <sparc_disable_interrupts>
2006004: 01 00 00 00 nop
return;
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
2006008: 03 00 80 78 sethi %hi(0x201e000), %g1
200600c: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
2006010: 80 a4 00 01 cmp %l0, %g1
2006014: 12 80 00 09 bne 2006038 <_Event_Timeout+0x58>
2006018: c0 24 20 24 clr [ %l0 + 0x24 ]
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
200601c: 03 00 80 7a sethi %hi(0x201e800), %g1
2006020: c4 00 63 f8 ld [ %g1 + 0x3f8 ], %g2 ! 201ebf8 <_Event_Sync_state>
2006024: 80 a0 a0 01 cmp %g2, 1
2006028: 32 80 00 05 bne,a 200603c <_Event_Timeout+0x5c>
200602c: 82 10 20 06 mov 6, %g1
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
2006030: 84 10 20 02 mov 2, %g2
2006034: c4 20 63 f8 st %g2, [ %g1 + 0x3f8 ]
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
2006038: 82 10 20 06 mov 6, %g1
200603c: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
_ISR_Enable( level );
2006040: 7f ff ef e5 call 2001fd4 <sparc_enable_interrupts>
2006044: 01 00 00 00 nop
2006048: 90 10 00 10 mov %l0, %o0
200604c: 13 04 00 ff sethi %hi(0x1003fc00), %o1
2006050: 40 00 08 63 call 20081dc <_Thread_Clear_state>
2006054: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 <RAM_END+0xdc3fff8>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
2006058: 03 00 80 78 sethi %hi(0x201e000), %g1
200605c: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level>
2006060: 84 00 bf ff add %g2, -1, %g2
2006064: c4 20 62 90 st %g2, [ %g1 + 0x290 ]
2006068: 81 c7 e0 08 ret
200606c: 81 e8 00 00 restore
020012f0 <_Extension_Manager_initialization>:
#include <rtems/extension.h>
#include <rtems/score/interr.h>
void _Extension_Manager_initialization(void)
{
}
20012f0: 81 c3 e0 08 retl
0200d5fc <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
200d5fc: 9d e3 bf 90 save %sp, -112, %sp
Heap_Statistics *const stats = &heap->stats;
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
Heap_Block *block = _Heap_Free_list_first( heap );
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_BLOCK_SIZE_OFFSET;
200d600: ac 06 60 04 add %i1, 4, %l6
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
200d604: e4 06 20 08 ld [ %i0 + 8 ], %l2
uintptr_t const page_size = heap->page_size;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
200d608: 80 a5 80 19 cmp %l6, %i1
200d60c: 0a 80 00 6d bcs 200d7c0 <_Heap_Allocate_aligned_with_boundary+0x1c4>
200d610: e8 06 20 10 ld [ %i0 + 0x10 ], %l4
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
200d614: 80 a6 e0 00 cmp %i3, 0
200d618: 02 80 00 08 be 200d638 <_Heap_Allocate_aligned_with_boundary+0x3c>
200d61c: 82 10 20 04 mov 4, %g1
if ( boundary < alloc_size ) {
200d620: 80 a6 c0 19 cmp %i3, %i1
200d624: 0a 80 00 67 bcs 200d7c0 <_Heap_Allocate_aligned_with_boundary+0x1c4>
200d628: 80 a6 a0 00 cmp %i2, 0
return NULL;
}
if ( alignment == 0 ) {
200d62c: 22 80 00 03 be,a 200d638 <_Heap_Allocate_aligned_with_boundary+0x3c>
200d630: b4 10 00 14 mov %l4, %i2
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
200d634: 82 10 20 04 mov 4, %g1
200d638: 82 20 40 19 sub %g1, %i1, %g1
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
}
if ( alignment == 0 ) {
200d63c: a2 10 20 00 clr %l1
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
200d640: c2 27 bf f4 st %g1, [ %fp + -12 ]
/* Ensure that the we have a valid new block at the beginning */
if ( alloc_begin >= alloc_begin_floor ) {
uintptr_t const alloc_block_begin =
(uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
uintptr_t const free_size = alloc_block_begin - block_begin;
200d644: b8 10 3f f8 mov -8, %i4
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
200d648: 82 05 20 07 add %l4, 7, %g1
200d64c: 10 80 00 4b b 200d778 <_Heap_Allocate_aligned_with_boundary+0x17c>
200d650: c2 27 bf f8 st %g1, [ %fp + -8 ]
/*
* The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
* field. Thus the value is about one unit larger than the real block
* size. The greater than operator takes this into account.
*/
if ( block->size_and_flag > block_size_floor ) {
200d654: 80 a4 c0 16 cmp %l3, %l6
200d658: 08 80 00 47 bleu 200d774 <_Heap_Allocate_aligned_with_boundary+0x178>
200d65c: a2 04 60 01 inc %l1
if ( alignment == 0 ) {
200d660: 80 a6 a0 00 cmp %i2, 0
200d664: 12 80 00 04 bne 200d674 <_Heap_Allocate_aligned_with_boundary+0x78>
200d668: aa 04 a0 08 add %l2, 8, %l5
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
200d66c: 10 80 00 3f b 200d768 <_Heap_Allocate_aligned_with_boundary+0x16c>
200d670: a0 10 00 15 mov %l5, %l0
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
200d674: c4 07 bf f4 ld [ %fp + -12 ], %g2
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
200d678: ee 06 20 14 ld [ %i0 + 0x14 ], %l7
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
200d67c: a6 0c ff fe and %l3, -2, %l3
200d680: a6 04 80 13 add %l2, %l3, %l3
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
200d684: a0 00 80 13 add %g2, %l3, %l0
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
200d688: c4 07 bf f8 ld [ %fp + -8 ], %g2
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
200d68c: 90 10 00 10 mov %l0, %o0
200d690: 82 20 80 17 sub %g2, %l7, %g1
200d694: 92 10 00 1a mov %i2, %o1
200d698: 40 00 32 ab call 201a144 <.urem>
200d69c: a6 00 40 13 add %g1, %l3, %l3
200d6a0: a0 24 00 08 sub %l0, %o0, %l0
uintptr_t alloc_begin = alloc_end - alloc_size;
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
200d6a4: 80 a4 00 13 cmp %l0, %l3
200d6a8: 08 80 00 07 bleu 200d6c4 <_Heap_Allocate_aligned_with_boundary+0xc8>
200d6ac: 80 a6 e0 00 cmp %i3, 0
200d6b0: 90 10 00 13 mov %l3, %o0
200d6b4: 40 00 32 a4 call 201a144 <.urem>
200d6b8: 92 10 00 1a mov %i2, %o1
200d6bc: a0 24 c0 08 sub %l3, %o0, %l0
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
200d6c0: 80 a6 e0 00 cmp %i3, 0
200d6c4: 02 80 00 1d be 200d738 <_Heap_Allocate_aligned_with_boundary+0x13c>
200d6c8: 80 a4 00 15 cmp %l0, %l5
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment );
}
alloc_end = alloc_begin + alloc_size;
200d6cc: a6 04 00 19 add %l0, %i1, %l3
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
200d6d0: 82 05 40 19 add %l5, %i1, %g1
200d6d4: 92 10 00 1b mov %i3, %o1
200d6d8: 90 10 00 13 mov %l3, %o0
200d6dc: 10 80 00 0b b 200d708 <_Heap_Allocate_aligned_with_boundary+0x10c>
200d6e0: c2 27 bf fc st %g1, [ %fp + -4 ]
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
200d6e4: 80 a0 40 02 cmp %g1, %g2
200d6e8: 2a 80 00 24 bcs,a 200d778 <_Heap_Allocate_aligned_with_boundary+0x17c>
200d6ec: e4 04 a0 08 ld [ %l2 + 8 ], %l2
200d6f0: 40 00 32 95 call 201a144 <.urem>
200d6f4: 01 00 00 00 nop
200d6f8: 92 10 00 1b mov %i3, %o1
200d6fc: a0 27 40 08 sub %i5, %o0, %l0
return 0;
}
alloc_begin = boundary_line - alloc_size;
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
200d700: a6 04 00 19 add %l0, %i1, %l3
200d704: 90 10 00 13 mov %l3, %o0
200d708: 40 00 32 8f call 201a144 <.urem>
200d70c: 01 00 00 00 nop
200d710: 92 10 00 1a mov %i2, %o1
200d714: 82 24 c0 08 sub %l3, %o0, %g1
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
return 0;
}
alloc_begin = boundary_line - alloc_size;
200d718: ba 20 40 19 sub %g1, %i1, %i5
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
200d71c: 80 a0 40 13 cmp %g1, %l3
200d720: 1a 80 00 05 bcc 200d734 <_Heap_Allocate_aligned_with_boundary+0x138>
200d724: 90 10 00 1d mov %i5, %o0
200d728: 80 a4 00 01 cmp %l0, %g1
200d72c: 0a bf ff ee bcs 200d6e4 <_Heap_Allocate_aligned_with_boundary+0xe8>
200d730: c4 07 bf fc ld [ %fp + -4 ], %g2
boundary_line = _Heap_Align_down( alloc_end, boundary );
}
}
/* Ensure that the we have a valid new block at the beginning */
if ( alloc_begin >= alloc_begin_floor ) {
200d734: 80 a4 00 15 cmp %l0, %l5
200d738: 0a 80 00 0f bcs 200d774 <_Heap_Allocate_aligned_with_boundary+0x178>
200d73c: a6 27 00 12 sub %i4, %l2, %l3
uintptr_t const alloc_block_begin =
(uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
uintptr_t const free_size = alloc_block_begin - block_begin;
200d740: 90 10 00 10 mov %l0, %o0
200d744: a6 04 c0 10 add %l3, %l0, %l3
200d748: 40 00 32 7f call 201a144 <.urem>
200d74c: 92 10 00 14 mov %l4, %o1
if ( free_size >= min_block_size || free_size == 0 ) {
200d750: 90 a4 c0 08 subcc %l3, %o0, %o0
200d754: 02 80 00 06 be 200d76c <_Heap_Allocate_aligned_with_boundary+0x170>
200d758: 80 a4 20 00 cmp %l0, 0
200d75c: 80 a2 00 17 cmp %o0, %l7
200d760: 2a 80 00 06 bcs,a 200d778 <_Heap_Allocate_aligned_with_boundary+0x17c>
200d764: e4 04 a0 08 ld [ %l2 + 8 ], %l2
boundary
);
}
}
if ( alloc_begin != 0 ) {
200d768: 80 a4 20 00 cmp %l0, 0
200d76c: 32 80 00 08 bne,a 200d78c <_Heap_Allocate_aligned_with_boundary+0x190><== ALWAYS TAKEN
200d770: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
break;
}
block = block->next;
200d774: e4 04 a0 08 ld [ %l2 + 8 ], %l2
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
200d778: 80 a4 80 18 cmp %l2, %i0
200d77c: 32 bf ff b6 bne,a 200d654 <_Heap_Allocate_aligned_with_boundary+0x58>
200d780: e6 04 a0 04 ld [ %l2 + 4 ], %l3
200d784: 10 80 00 09 b 200d7a8 <_Heap_Allocate_aligned_with_boundary+0x1ac>
200d788: a0 10 20 00 clr %l0
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200d78c: 92 10 00 12 mov %l2, %o1
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200d790: 82 00 40 11 add %g1, %l1, %g1
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200d794: 96 10 00 19 mov %i1, %o3
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
200d798: c2 26 20 4c st %g1, [ %i0 + 0x4c ]
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
200d79c: 90 10 00 18 mov %i0, %o0
200d7a0: 7f ff e7 60 call 2007520 <_Heap_Block_allocate>
200d7a4: 94 10 00 10 mov %l0, %o2
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
200d7a8: c2 06 20 44 ld [ %i0 + 0x44 ], %g1
200d7ac: 80 a0 40 11 cmp %g1, %l1
200d7b0: 2a 80 00 02 bcs,a 200d7b8 <_Heap_Allocate_aligned_with_boundary+0x1bc>
200d7b4: e2 26 20 44 st %l1, [ %i0 + 0x44 ]
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
200d7b8: 81 c7 e0 08 ret
200d7bc: 91 e8 00 10 restore %g0, %l0, %o0
}
200d7c0: 81 c7 e0 08 ret
200d7c4: 91 e8 20 00 restore %g0, 0, %o0
02011e64 <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
2011e64: 9d e3 bf a0 save %sp, -96, %sp
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
uintptr_t const heap_area_end = heap->area_end;
2011e68: c2 06 20 1c ld [ %i0 + 0x1c ], %g1
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
2011e6c: a0 10 00 18 mov %i0, %l0
* 5. non-contiguous higher address (NOT SUPPORTED)
*
* As noted, this code only supports (4).
*/
if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
2011e70: 80 a6 40 01 cmp %i1, %g1
2011e74: 1a 80 00 07 bcc 2011e90 <_Heap_Extend+0x2c>
2011e78: e2 06 20 24 ld [ %i0 + 0x24 ], %l1
uintptr_t *amount_extended
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
2011e7c: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
2011e80: 80 a6 40 02 cmp %i1, %g2
2011e84: 1a 80 00 28 bcc 2011f24 <_Heap_Extend+0xc0>
2011e88: b0 10 20 01 mov 1, %i0
* As noted, this code only supports (4).
*/
if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
return HEAP_EXTEND_ERROR; /* case 3 */
} else if ( area_begin != heap_area_end ) {
2011e8c: 80 a6 40 01 cmp %i1, %g1
2011e90: 12 80 00 25 bne 2011f24 <_Heap_Extend+0xc0>
2011e94: b0 10 20 02 mov 2, %i0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
2011e98: d2 04 20 10 ld [ %l0 + 0x10 ], %o1
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
uintptr_t const heap_area_end = heap->area_end;
uintptr_t const new_heap_area_end = heap_area_end + area_size;
2011e9c: b4 06 40 1a add %i1, %i2, %i2
* block and free it.
*/
heap->area_end = new_heap_area_end;
extend_size = new_heap_area_end
2011ea0: b2 26 80 11 sub %i2, %l1, %i1
* Currently only case 4 should make it to this point.
* The basic trick is to make the extend area look like a used
* block and free it.
*/
heap->area_end = new_heap_area_end;
2011ea4: f4 24 20 1c st %i2, [ %l0 + 0x1c ]
extend_size = new_heap_area_end
2011ea8: b2 06 7f f8 add %i1, -8, %i1
2011eac: 7f ff c8 bd call 20041a0 <.urem>
2011eb0: 90 10 00 19 mov %i1, %o0
2011eb4: 90 26 40 08 sub %i1, %o0, %o0
- (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE;
extend_size = _Heap_Align_down( extend_size, heap->page_size );
*amount_extended = extend_size;
2011eb8: d0 26 c0 00 st %o0, [ %i3 ]
if( extend_size >= heap->min_block_size ) {
2011ebc: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
2011ec0: 80 a2 00 01 cmp %o0, %g1
2011ec4: 0a 80 00 18 bcs 2011f24 <_Heap_Extend+0xc0> <== NEVER TAKEN
2011ec8: b0 10 20 00 clr %i0
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
2011ecc: c2 04 60 04 ld [ %l1 + 4 ], %g1
Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size );
_Heap_Block_set_size( last_block, extend_size );
new_last_block->size_and_flag =
2011ed0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
2011ed4: 82 08 60 01 and %g1, 1, %g1
2011ed8: 82 12 00 01 or %o0, %g1, %g1
2011edc: c2 24 60 04 st %g1, [ %l1 + 4 ]
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
2011ee0: 82 02 00 11 add %o0, %l1, %g1
2011ee4: 84 20 80 01 sub %g2, %g1, %g2
2011ee8: 84 10 a0 01 or %g2, 1, %g2
2011eec: c4 20 60 04 st %g2, [ %g1 + 4 ]
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
2011ef0: c6 04 20 40 ld [ %l0 + 0x40 ], %g3
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
2011ef4: f2 04 20 2c ld [ %l0 + 0x2c ], %i1
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
2011ef8: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
new_last_block->size_and_flag =
((uintptr_t) heap->first_block - (uintptr_t) new_last_block)
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
2011efc: c2 24 20 24 st %g1, [ %l0 + 0x24 ]
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
2011f00: 82 00 e0 01 add %g3, 1, %g1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
2011f04: 90 06 40 08 add %i1, %o0, %o0
++stats->used_blocks;
2011f08: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
--stats->frees; /* Do not count subsequent call as actual free() */
2011f0c: 82 00 bf ff add %g2, -1, %g1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
2011f10: d0 24 20 2c st %o0, [ %l0 + 0x2c ]
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
2011f14: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
2011f18: 90 10 00 10 mov %l0, %o0
2011f1c: 7f ff e4 4b call 200b048 <_Heap_Free>
2011f20: 92 04 60 08 add %l1, 8, %o1
}
return HEAP_EXTEND_SUCCESSFUL;
}
2011f24: 81 c7 e0 08 ret
2011f28: 81 e8 00 00 restore
0200d7c8 <_Heap_Free>:
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
200d7c8: 9d e3 bf a0 save %sp, -96, %sp
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
200d7cc: d2 06 20 10 ld [ %i0 + 0x10 ], %o1
200d7d0: 40 00 32 5d call 201a144 <.urem>
200d7d4: 90 10 00 19 mov %i1, %o0
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
200d7d8: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
200d7dc: b2 06 7f f8 add %i1, -8, %i1
200d7e0: 90 26 40 08 sub %i1, %o0, %o0
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
200d7e4: 80 a2 00 01 cmp %o0, %g1
200d7e8: 0a 80 00 05 bcs 200d7fc <_Heap_Free+0x34>
200d7ec: 84 10 20 00 clr %g2
200d7f0: c4 06 20 24 ld [ %i0 + 0x24 ], %g2
200d7f4: 80 a0 80 08 cmp %g2, %o0
200d7f8: 84 60 3f ff subx %g0, -1, %g2
Heap_Block *next_block = NULL;
uintptr_t block_size = 0;
uintptr_t next_block_size = 0;
bool next_is_free = false;
if ( !_Heap_Is_block_in_heap( heap, block ) ) {
200d7fc: 80 a0 a0 00 cmp %g2, 0
200d800: 02 80 00 6a be 200d9a8 <_Heap_Free+0x1e0>
200d804: 01 00 00 00 nop
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
200d808: c8 02 20 04 ld [ %o0 + 4 ], %g4
200d80c: 86 09 3f fe and %g4, -2, %g3
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
200d810: 84 02 00 03 add %o0, %g3, %g2
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
200d814: 80 a0 80 01 cmp %g2, %g1
200d818: 0a 80 00 05 bcs 200d82c <_Heap_Free+0x64> <== NEVER TAKEN
200d81c: 9a 10 20 00 clr %o5
200d820: da 06 20 24 ld [ %i0 + 0x24 ], %o5
200d824: 80 a3 40 02 cmp %o5, %g2
200d828: 9a 60 3f ff subx %g0, -1, %o5
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
200d82c: 80 a3 60 00 cmp %o5, 0
200d830: 02 80 00 5e be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN
200d834: 01 00 00 00 nop
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
200d838: da 00 a0 04 ld [ %g2 + 4 ], %o5
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
200d83c: 80 8b 60 01 btst 1, %o5
200d840: 02 80 00 5a be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN
200d844: 9a 0b 7f fe and %o5, -2, %o5
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
200d848: d2 06 20 24 ld [ %i0 + 0x24 ], %o1
_HAssert( false );
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
200d84c: 80 a0 80 09 cmp %g2, %o1
200d850: 02 80 00 06 be 200d868 <_Heap_Free+0xa0>
200d854: 96 10 20 00 clr %o3
200d858: 98 00 80 0d add %g2, %o5, %o4
200d85c: d6 03 20 04 ld [ %o4 + 4 ], %o3
200d860: 96 0a e0 01 and %o3, 1, %o3
200d864: 96 1a e0 01 xor %o3, 1, %o3
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
200d868: 80 89 20 01 btst 1, %g4
200d86c: 12 80 00 26 bne 200d904 <_Heap_Free+0x13c>
200d870: 80 a2 e0 00 cmp %o3, 0
uintptr_t const prev_size = block->prev_size;
200d874: d8 02 00 00 ld [ %o0 ], %o4
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
200d878: 88 22 00 0c sub %o0, %o4, %g4
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
200d87c: 80 a1 00 01 cmp %g4, %g1
200d880: 0a 80 00 04 bcs 200d890 <_Heap_Free+0xc8> <== NEVER TAKEN
200d884: 94 10 20 00 clr %o2
200d888: 80 a2 40 04 cmp %o1, %g4
200d88c: 94 60 3f ff subx %g0, -1, %o2
Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {
200d890: 80 a2 a0 00 cmp %o2, 0
200d894: 02 80 00 45 be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN
200d898: 01 00 00 00 nop
return( false );
}
/* As we always coalesce free blocks, the block that preceedes prev_block
must have been used. */
if ( !_Heap_Is_prev_used ( prev_block) ) {
200d89c: c2 01 20 04 ld [ %g4 + 4 ], %g1
200d8a0: 80 88 60 01 btst 1, %g1
200d8a4: 02 80 00 41 be 200d9a8 <_Heap_Free+0x1e0> <== NEVER TAKEN
200d8a8: 80 a2 e0 00 cmp %o3, 0
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
200d8ac: 22 80 00 0f be,a 200d8e8 <_Heap_Free+0x120>
200d8b0: 98 00 c0 0c add %g3, %o4, %o4
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
200d8b4: c2 06 20 38 ld [ %i0 + 0x38 ], %g1
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
200d8b8: d6 00 a0 0c ld [ %g2 + 0xc ], %o3
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
200d8bc: c4 00 a0 08 ld [ %g2 + 8 ], %g2
200d8c0: 82 00 7f ff add %g1, -1, %g1
200d8c4: c2 26 20 38 st %g1, [ %i0 + 0x38 ]
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
200d8c8: 9a 00 c0 0d add %g3, %o5, %o5
Heap_Block *prev = block->prev;
prev->next = next;
next->prev = prev;
200d8cc: d6 20 a0 0c st %o3, [ %g2 + 0xc ]
200d8d0: 98 03 40 0c add %o5, %o4, %o4
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
prev->next = next;
200d8d4: c4 22 e0 08 st %g2, [ %o3 + 8 ]
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
200d8d8: d8 21 00 0c st %o4, [ %g4 + %o4 ]
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
200d8dc: 98 13 20 01 or %o4, 1, %o4
200d8e0: 10 80 00 27 b 200d97c <_Heap_Free+0x1b4>
200d8e4: d8 21 20 04 st %o4, [ %g4 + 4 ]
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
200d8e8: 82 13 20 01 or %o4, 1, %g1
200d8ec: c2 21 20 04 st %g1, [ %g4 + 4 ]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200d8f0: c2 00 a0 04 ld [ %g2 + 4 ], %g1
next_block->prev_size = size;
200d8f4: d8 22 00 03 st %o4, [ %o0 + %g3 ]
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200d8f8: 82 08 7f fe and %g1, -2, %g1
200d8fc: 10 80 00 20 b 200d97c <_Heap_Free+0x1b4>
200d900: c2 20 a0 04 st %g1, [ %g2 + 4 ]
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
200d904: 02 80 00 0d be 200d938 <_Heap_Free+0x170>
200d908: 82 10 e0 01 or %g3, 1, %g1
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
200d90c: c2 00 a0 0c ld [ %g2 + 0xc ], %g1
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
200d910: c4 00 a0 08 ld [ %g2 + 8 ], %g2
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
200d914: c2 22 20 0c st %g1, [ %o0 + 0xc ]
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
new_block->next = next;
200d918: c4 22 20 08 st %g2, [ %o0 + 8 ]
new_block->prev = prev;
next->prev = new_block;
prev->next = new_block;
200d91c: d0 20 60 08 st %o0, [ %g1 + 8 ]
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
next->prev = new_block;
200d920: d0 20 a0 0c st %o0, [ %g2 + 0xc ]
uintptr_t const size = block_size + next_block_size;
200d924: 82 03 40 03 add %o5, %g3, %g1
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
200d928: c2 22 00 01 st %g1, [ %o0 + %g1 ]
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
uintptr_t const size = block_size + next_block_size;
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
200d92c: 82 10 60 01 or %g1, 1, %g1
200d930: 10 80 00 13 b 200d97c <_Heap_Free+0x1b4>
200d934: c2 22 20 04 st %g1, [ %o0 + 4 ]
next_block->prev_size = size;
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
200d938: c2 22 20 04 st %g1, [ %o0 + 4 ]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200d93c: c2 00 a0 04 ld [ %g2 + 4 ], %g1
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
200d940: c8 06 20 08 ld [ %i0 + 8 ], %g4
200d944: 82 08 7f fe and %g1, -2, %g1
next_block->prev_size = block_size;
200d948: c6 22 00 03 st %g3, [ %o0 + %g3 ]
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
200d94c: c2 20 a0 04 st %g1, [ %g2 + 4 ]
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
200d950: c2 06 20 38 ld [ %i0 + 0x38 ], %g1
new_block->next = next;
200d954: c8 22 20 08 st %g4, [ %o0 + 8 ]
new_block->prev = block_before;
200d958: f0 22 20 0c st %i0, [ %o0 + 0xc ]
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
Heap_Statistics *const stats = &heap->stats;
200d95c: c4 06 20 3c ld [ %i0 + 0x3c ], %g2
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
200d960: 82 00 60 01 inc %g1
block_before->next = new_block;
next->prev = new_block;
200d964: d0 21 20 0c st %o0, [ %g4 + 0xc ]
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
200d968: d0 26 20 08 st %o0, [ %i0 + 8 ]
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
Heap_Statistics *const stats = &heap->stats;
200d96c: 80 a0 80 01 cmp %g2, %g1
200d970: 1a 80 00 03 bcc 200d97c <_Heap_Free+0x1b4>
200d974: c2 26 20 38 st %g1, [ %i0 + 0x38 ]
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
if ( stats->max_free_blocks < stats->free_blocks ) {
stats->max_free_blocks = stats->free_blocks;
200d978: c2 26 20 3c st %g1, [ %i0 + 0x3c ]
}
}
/* Statistics */
--stats->used_blocks;
200d97c: c4 06 20 40 ld [ %i0 + 0x40 ], %g2
++stats->frees;
200d980: c2 06 20 50 ld [ %i0 + 0x50 ], %g1
stats->free_size += block_size;
200d984: c8 06 20 30 ld [ %i0 + 0x30 ], %g4
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200d988: 84 00 bf ff add %g2, -1, %g2
++stats->frees;
stats->free_size += block_size;
200d98c: 86 01 00 03 add %g4, %g3, %g3
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
200d990: c4 26 20 40 st %g2, [ %i0 + 0x40 ]
++stats->frees;
stats->free_size += block_size;
200d994: c6 26 20 30 st %g3, [ %i0 + 0x30 ]
}
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
200d998: 82 00 60 01 inc %g1
200d99c: c2 26 20 50 st %g1, [ %i0 + 0x50 ]
stats->free_size += block_size;
return( true );
200d9a0: 81 c7 e0 08 ret
200d9a4: 91 e8 20 01 restore %g0, 1, %o0
}
200d9a8: 81 c7 e0 08 ret
200d9ac: 91 e8 20 00 restore %g0, 0, %o0
0201babc <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
201babc: 9d e3 bf a0 save %sp, -96, %sp
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
201bac0: d2 06 20 10 ld [ %i0 + 0x10 ], %o1
201bac4: 7f ff f9 a0 call 201a144 <.urem>
201bac8: 90 10 00 19 mov %i1, %o0
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
201bacc: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
201bad0: 84 06 7f f8 add %i1, -8, %g2
201bad4: 90 20 80 08 sub %g2, %o0, %o0
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
201bad8: 80 a2 00 01 cmp %o0, %g1
201badc: 0a 80 00 05 bcs 201baf0 <_Heap_Size_of_alloc_area+0x34>
201bae0: 84 10 20 00 clr %g2
201bae4: c4 06 20 24 ld [ %i0 + 0x24 ], %g2
201bae8: 80 a0 80 08 cmp %g2, %o0
201baec: 84 60 3f ff subx %g0, -1, %g2
uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;
Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
Heap_Block *next_block = NULL;
uintptr_t block_size = 0;
if ( !_Heap_Is_block_in_heap( heap, block ) ) {
201baf0: 80 a0 a0 00 cmp %g2, 0
201baf4: 02 80 00 16 be 201bb4c <_Heap_Size_of_alloc_area+0x90>
201baf8: 01 00 00 00 nop
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
201bafc: c4 02 20 04 ld [ %o0 + 4 ], %g2
201bb00: 84 08 bf fe and %g2, -2, %g2
201bb04: 84 02 00 02 add %o0, %g2, %g2
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
201bb08: 80 a0 80 01 cmp %g2, %g1
201bb0c: 0a 80 00 05 bcs 201bb20 <_Heap_Size_of_alloc_area+0x64> <== NEVER TAKEN
201bb10: 86 10 20 00 clr %g3
201bb14: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
201bb18: 80 a0 40 02 cmp %g1, %g2
201bb1c: 86 60 3f ff subx %g0, -1, %g3
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
201bb20: 80 a0 e0 00 cmp %g3, 0
201bb24: 02 80 00 0a be 201bb4c <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN
201bb28: 01 00 00 00 nop
201bb2c: c2 00 a0 04 ld [ %g2 + 4 ], %g1
201bb30: 80 88 60 01 btst 1, %g1
201bb34: 02 80 00 06 be 201bb4c <_Heap_Size_of_alloc_area+0x90> <== NEVER TAKEN
201bb38: 84 20 80 19 sub %g2, %i1, %g2
|| !_Heap_Is_prev_used( next_block )
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
201bb3c: 84 00 a0 04 add %g2, 4, %g2
201bb40: c4 26 80 00 st %g2, [ %i2 ]
return true;
201bb44: 81 c7 e0 08 ret
201bb48: 91 e8 20 01 restore %g0, 1, %o0
}
201bb4c: 81 c7 e0 08 ret
201bb50: 91 e8 20 00 restore %g0, 0, %o0
02008488 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
2008488: 9d e3 bf 88 save %sp, -120, %sp
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
200848c: 23 00 80 22 sethi %hi(0x2008800), %l1
2008490: 80 8e a0 ff btst 0xff, %i2
2008494: a2 14 61 60 or %l1, 0x160, %l1
Heap_Control *heap,
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
2008498: e4 06 20 10 ld [ %i0 + 0x10 ], %l2
uintptr_t const min_block_size = heap->min_block_size;
200849c: e6 06 20 14 ld [ %i0 + 0x14 ], %l3
Heap_Block *const last_block = heap->last_block;
20084a0: e8 06 20 24 ld [ %i0 + 0x24 ], %l4
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
20084a4: 12 80 00 04 bne 20084b4 <_Heap_Walk+0x2c>
20084a8: e0 06 20 20 ld [ %i0 + 0x20 ], %l0
20084ac: 23 00 80 21 sethi %hi(0x2008400), %l1
20084b0: a2 14 60 80 or %l1, 0x80, %l1 ! 2008480 <_Heap_Walk_print_nothing>
if ( !_System_state_Is_up( _System_state_Get() ) ) {
20084b4: 03 00 80 83 sethi %hi(0x2020c00), %g1
20084b8: c2 00 60 80 ld [ %g1 + 0x80 ], %g1 ! 2020c80 <_System_state_Current>
20084bc: 80 a0 60 03 cmp %g1, 3
20084c0: 12 80 01 1e bne 2008938 <_Heap_Walk+0x4b0>
20084c4: 90 10 00 19 mov %i1, %o0
Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
(*printer)(
20084c8: da 06 20 18 ld [ %i0 + 0x18 ], %o5
20084cc: c6 06 20 1c ld [ %i0 + 0x1c ], %g3
20084d0: c4 06 20 08 ld [ %i0 + 8 ], %g2
20084d4: c2 06 20 0c ld [ %i0 + 0xc ], %g1
20084d8: c6 23 a0 5c st %g3, [ %sp + 0x5c ]
20084dc: c4 23 a0 68 st %g2, [ %sp + 0x68 ]
20084e0: c2 23 a0 6c st %g1, [ %sp + 0x6c ]
20084e4: e0 23 a0 60 st %l0, [ %sp + 0x60 ]
20084e8: e8 23 a0 64 st %l4, [ %sp + 0x64 ]
20084ec: 92 10 20 00 clr %o1
20084f0: 15 00 80 76 sethi %hi(0x201d800), %o2
20084f4: 96 10 00 12 mov %l2, %o3
20084f8: 94 12 a1 a0 or %o2, 0x1a0, %o2
20084fc: 9f c4 40 00 call %l1
2008500: 98 10 00 13 mov %l3, %o4
heap->area_begin, heap->area_end,
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
2008504: 80 a4 a0 00 cmp %l2, 0
2008508: 12 80 00 07 bne 2008524 <_Heap_Walk+0x9c>
200850c: 80 8c a0 07 btst 7, %l2
(*printer)( source, true, "page size is zero\n" );
2008510: 15 00 80 76 sethi %hi(0x201d800), %o2
2008514: 90 10 00 19 mov %i1, %o0
2008518: 92 10 20 01 mov 1, %o1
200851c: 10 80 00 27 b 20085b8 <_Heap_Walk+0x130>
2008520: 94 12 a2 38 or %o2, 0x238, %o2
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
2008524: 22 80 00 08 be,a 2008544 <_Heap_Walk+0xbc>
2008528: 90 10 00 13 mov %l3, %o0
(*printer)(
200852c: 15 00 80 76 sethi %hi(0x201d800), %o2
2008530: 90 10 00 19 mov %i1, %o0
2008534: 96 10 00 12 mov %l2, %o3
2008538: 92 10 20 01 mov 1, %o1
200853c: 10 80 01 05 b 2008950 <_Heap_Walk+0x4c8>
2008540: 94 12 a2 50 or %o2, 0x250, %o2
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
2008544: 7f ff e5 65 call 2001ad8 <.urem>
2008548: 92 10 00 12 mov %l2, %o1
200854c: 80 a2 20 00 cmp %o0, 0
2008550: 22 80 00 08 be,a 2008570 <_Heap_Walk+0xe8>
2008554: 90 04 20 08 add %l0, 8, %o0
(*printer)(
2008558: 15 00 80 76 sethi %hi(0x201d800), %o2
200855c: 90 10 00 19 mov %i1, %o0
2008560: 96 10 00 13 mov %l3, %o3
2008564: 92 10 20 01 mov 1, %o1
2008568: 10 80 00 fa b 2008950 <_Heap_Walk+0x4c8>
200856c: 94 12 a2 70 or %o2, 0x270, %o2
);
return false;
}
if (
2008570: 7f ff e5 5a call 2001ad8 <.urem>
2008574: 92 10 00 12 mov %l2, %o1
2008578: 80 a2 20 00 cmp %o0, 0
200857c: 22 80 00 08 be,a 200859c <_Heap_Walk+0x114>
2008580: c2 04 20 04 ld [ %l0 + 4 ], %g1
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
2008584: 15 00 80 76 sethi %hi(0x201d800), %o2
2008588: 90 10 00 19 mov %i1, %o0
200858c: 96 10 00 10 mov %l0, %o3
2008590: 92 10 20 01 mov 1, %o1
2008594: 10 80 00 ef b 2008950 <_Heap_Walk+0x4c8>
2008598: 94 12 a2 98 or %o2, 0x298, %o2
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
200859c: 80 88 60 01 btst 1, %g1
20085a0: 32 80 00 09 bne,a 20085c4 <_Heap_Walk+0x13c>
20085a4: ea 04 00 00 ld [ %l0 ], %l5
(*printer)(
20085a8: 15 00 80 76 sethi %hi(0x201d800), %o2
20085ac: 90 10 00 19 mov %i1, %o0
20085b0: 92 10 20 01 mov 1, %o1
20085b4: 94 12 a2 d0 or %o2, 0x2d0, %o2
20085b8: 9f c4 40 00 call %l1
20085bc: b0 10 20 00 clr %i0
20085c0: 30 80 00 e6 b,a 2008958 <_Heap_Walk+0x4d0>
);
return false;
}
if ( first_block->prev_size != page_size ) {
20085c4: 80 a5 40 12 cmp %l5, %l2
20085c8: 22 80 00 09 be,a 20085ec <_Heap_Walk+0x164>
20085cc: c2 05 20 04 ld [ %l4 + 4 ], %g1
(*printer)(
20085d0: 15 00 80 76 sethi %hi(0x201d800), %o2
20085d4: 90 10 00 19 mov %i1, %o0
20085d8: 96 10 00 15 mov %l5, %o3
20085dc: 98 10 00 12 mov %l2, %o4
20085e0: 92 10 20 01 mov 1, %o1
20085e4: 10 80 00 88 b 2008804 <_Heap_Walk+0x37c>
20085e8: 94 12 a3 00 or %o2, 0x300, %o2
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
20085ec: 82 08 7f fe and %g1, -2, %g1
20085f0: 82 05 00 01 add %l4, %g1, %g1
20085f4: c2 00 60 04 ld [ %g1 + 4 ], %g1
20085f8: 80 88 60 01 btst 1, %g1
20085fc: 32 80 00 07 bne,a 2008618 <_Heap_Walk+0x190>
2008600: d6 06 20 08 ld [ %i0 + 8 ], %o3
(*printer)(
2008604: 15 00 80 76 sethi %hi(0x201d800), %o2
2008608: 90 10 00 19 mov %i1, %o0
200860c: 92 10 20 01 mov 1, %o1
2008610: 10 bf ff ea b 20085b8 <_Heap_Walk+0x130>
2008614: 94 12 a3 30 or %o2, 0x330, %o2
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
2008618: ec 06 20 10 ld [ %i0 + 0x10 ], %l6
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
200861c: a4 10 00 18 mov %i0, %l2
2008620: 10 80 00 32 b 20086e8 <_Heap_Walk+0x260>
2008624: ae 10 00 0b mov %o3, %l7
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
2008628: 80 a0 80 17 cmp %g2, %l7
200862c: 18 80 00 05 bgu 2008640 <_Heap_Walk+0x1b8>
2008630: 82 10 20 00 clr %g1
2008634: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
2008638: 80 a0 40 17 cmp %g1, %l7
200863c: 82 60 3f ff subx %g0, -1, %g1
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
2008640: 80 a0 60 00 cmp %g1, 0
2008644: 32 80 00 08 bne,a 2008664 <_Heap_Walk+0x1dc>
2008648: 90 05 e0 08 add %l7, 8, %o0
(*printer)(
200864c: 15 00 80 76 sethi %hi(0x201d800), %o2
2008650: 96 10 00 17 mov %l7, %o3
2008654: 90 10 00 19 mov %i1, %o0
2008658: 92 10 20 01 mov 1, %o1
200865c: 10 80 00 bd b 2008950 <_Heap_Walk+0x4c8>
2008660: 94 12 a3 48 or %o2, 0x348, %o2
);
return false;
}
if (
2008664: 7f ff e5 1d call 2001ad8 <.urem>
2008668: 92 10 00 16 mov %l6, %o1
200866c: 80 a2 20 00 cmp %o0, 0
2008670: 22 80 00 08 be,a 2008690 <_Heap_Walk+0x208>
2008674: c2 05 e0 04 ld [ %l7 + 4 ], %g1
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
2008678: 15 00 80 76 sethi %hi(0x201d800), %o2
200867c: 96 10 00 17 mov %l7, %o3
2008680: 90 10 00 19 mov %i1, %o0
2008684: 92 10 20 01 mov 1, %o1
2008688: 10 80 00 b2 b 2008950 <_Heap_Walk+0x4c8>
200868c: 94 12 a3 68 or %o2, 0x368, %o2
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
2008690: 82 08 7f fe and %g1, -2, %g1
2008694: 82 05 c0 01 add %l7, %g1, %g1
2008698: c2 00 60 04 ld [ %g1 + 4 ], %g1
200869c: 80 88 60 01 btst 1, %g1
20086a0: 22 80 00 08 be,a 20086c0 <_Heap_Walk+0x238>
20086a4: d8 05 e0 0c ld [ %l7 + 0xc ], %o4
(*printer)(
20086a8: 15 00 80 76 sethi %hi(0x201d800), %o2
20086ac: 96 10 00 17 mov %l7, %o3
20086b0: 90 10 00 19 mov %i1, %o0
20086b4: 92 10 20 01 mov 1, %o1
20086b8: 10 80 00 a6 b 2008950 <_Heap_Walk+0x4c8>
20086bc: 94 12 a3 98 or %o2, 0x398, %o2
);
return false;
}
if ( free_block->prev != prev_block ) {
20086c0: 80 a3 00 12 cmp %o4, %l2
20086c4: 02 80 00 08 be 20086e4 <_Heap_Walk+0x25c>
20086c8: a4 10 00 17 mov %l7, %l2
(*printer)(
20086cc: 15 00 80 76 sethi %hi(0x201d800), %o2
20086d0: 96 10 00 17 mov %l7, %o3
20086d4: 90 10 00 19 mov %i1, %o0
20086d8: 92 10 20 01 mov 1, %o1
20086dc: 10 80 00 4a b 2008804 <_Heap_Walk+0x37c>
20086e0: 94 12 a3 b8 or %o2, 0x3b8, %o2
return false;
}
prev_block = free_block;
free_block = free_block->next;
20086e4: ee 05 e0 08 ld [ %l7 + 8 ], %l7
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
20086e8: 80 a5 c0 18 cmp %l7, %i0
20086ec: 32 bf ff cf bne,a 2008628 <_Heap_Walk+0x1a0>
20086f0: c4 06 20 20 ld [ %i0 + 0x20 ], %g2
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
20086f4: 10 80 00 89 b 2008918 <_Heap_Walk+0x490>
20086f8: 37 00 80 77 sethi %hi(0x201dc00), %i3
uintptr_t const block_size = _Heap_Block_size( block );
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
20086fc: 80 8d a0 01 btst 1, %l6
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
2008700: ac 0d bf fe and %l6, -2, %l6
2008704: 02 80 00 0a be 200872c <_Heap_Walk+0x2a4>
2008708: a4 04 00 16 add %l0, %l6, %l2
(*printer)(
200870c: 90 10 00 19 mov %i1, %o0
2008710: 92 10 20 00 clr %o1
2008714: 94 10 00 1a mov %i2, %o2
2008718: 96 10 00 10 mov %l0, %o3
200871c: 9f c4 40 00 call %l1
2008720: 98 10 00 16 mov %l6, %o4
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
2008724: 10 80 00 0a b 200874c <_Heap_Walk+0x2c4>
2008728: c4 06 20 20 ld [ %i0 + 0x20 ], %g2
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
200872c: da 04 00 00 ld [ %l0 ], %o5
2008730: 90 10 00 19 mov %i1, %o0
2008734: 92 10 20 00 clr %o1
2008738: 94 10 00 1b mov %i3, %o2
200873c: 96 10 00 10 mov %l0, %o3
2008740: 9f c4 40 00 call %l1
2008744: 98 10 00 16 mov %l6, %o4
2008748: c4 06 20 20 ld [ %i0 + 0x20 ], %g2
200874c: 80 a0 80 12 cmp %g2, %l2
2008750: 18 80 00 05 bgu 2008764 <_Heap_Walk+0x2dc> <== NEVER TAKEN
2008754: 82 10 20 00 clr %g1
2008758: c2 06 20 24 ld [ %i0 + 0x24 ], %g1
200875c: 80 a0 40 12 cmp %g1, %l2
2008760: 82 60 3f ff subx %g0, -1, %g1
block_size,
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
2008764: 80 a0 60 00 cmp %g1, 0
2008768: 32 80 00 09 bne,a 200878c <_Heap_Walk+0x304>
200876c: 90 10 00 16 mov %l6, %o0
(*printer)(
2008770: 15 00 80 77 sethi %hi(0x201dc00), %o2
2008774: 90 10 00 19 mov %i1, %o0
2008778: 96 10 00 10 mov %l0, %o3
200877c: 98 10 00 12 mov %l2, %o4
2008780: 92 10 20 01 mov 1, %o1
2008784: 10 80 00 20 b 2008804 <_Heap_Walk+0x37c>
2008788: 94 12 a0 30 or %o2, 0x30, %o2
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
200878c: 7f ff e4 d3 call 2001ad8 <.urem>
2008790: 92 10 00 15 mov %l5, %o1
2008794: 80 a2 20 00 cmp %o0, 0
2008798: 02 80 00 09 be 20087bc <_Heap_Walk+0x334>
200879c: 80 a5 80 13 cmp %l6, %l3
(*printer)(
20087a0: 15 00 80 77 sethi %hi(0x201dc00), %o2
20087a4: 90 10 00 19 mov %i1, %o0
20087a8: 96 10 00 10 mov %l0, %o3
20087ac: 98 10 00 16 mov %l6, %o4
20087b0: 92 10 20 01 mov 1, %o1
20087b4: 10 80 00 14 b 2008804 <_Heap_Walk+0x37c>
20087b8: 94 12 a0 60 or %o2, 0x60, %o2
);
return false;
}
if ( block_size < min_block_size ) {
20087bc: 1a 80 00 0a bcc 20087e4 <_Heap_Walk+0x35c>
20087c0: 80 a4 80 10 cmp %l2, %l0
(*printer)(
20087c4: 15 00 80 77 sethi %hi(0x201dc00), %o2
20087c8: 90 10 00 19 mov %i1, %o0
20087cc: 96 10 00 10 mov %l0, %o3
20087d0: 98 10 00 16 mov %l6, %o4
20087d4: 9a 10 00 13 mov %l3, %o5
20087d8: 92 10 20 01 mov 1, %o1
20087dc: 10 80 00 3b b 20088c8 <_Heap_Walk+0x440>
20087e0: 94 12 a0 90 or %o2, 0x90, %o2
);
return false;
}
if ( next_block_begin <= block_begin ) {
20087e4: 38 80 00 0b bgu,a 2008810 <_Heap_Walk+0x388>
20087e8: c2 04 a0 04 ld [ %l2 + 4 ], %g1
(*printer)(
20087ec: 15 00 80 77 sethi %hi(0x201dc00), %o2
20087f0: 90 10 00 19 mov %i1, %o0
20087f4: 96 10 00 10 mov %l0, %o3
20087f8: 98 10 00 12 mov %l2, %o4
20087fc: 92 10 20 01 mov 1, %o1
2008800: 94 12 a0 c0 or %o2, 0xc0, %o2
2008804: 9f c4 40 00 call %l1
2008808: b0 10 20 00 clr %i0
200880c: 30 80 00 53 b,a 2008958 <_Heap_Walk+0x4d0>
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
2008810: 80 88 60 01 btst 1, %g1
2008814: 32 80 00 46 bne,a 200892c <_Heap_Walk+0x4a4>
2008818: a0 10 00 12 mov %l2, %l0
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
200881c: fa 04 20 04 ld [ %l0 + 4 ], %i5
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
2008820: d8 04 20 0c ld [ %l0 + 0xc ], %o4
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
2008824: c2 06 20 08 ld [ %i0 + 8 ], %g1
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
2008828: ac 0f 7f fe and %i5, -2, %l6
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
200882c: 1b 00 80 77 sethi %hi(0x201dc00), %o5
2008830: 80 a3 00 01 cmp %o4, %g1
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
2008834: c6 06 20 0c ld [ %i0 + 0xc ], %g3
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
2008838: ae 04 00 16 add %l0, %l6, %l7
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
200883c: 02 80 00 07 be 2008858 <_Heap_Walk+0x3d0>
2008840: 9a 13 60 f8 or %o5, 0xf8, %o5
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
2008844: 1b 00 80 77 sethi %hi(0x201dc00), %o5
2008848: 80 a3 00 18 cmp %o4, %i0
200884c: 02 80 00 03 be 2008858 <_Heap_Walk+0x3d0>
2008850: 9a 13 61 10 or %o5, 0x110, %o5
2008854: 9a 10 00 1c mov %i4, %o5
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
2008858: c4 04 20 08 ld [ %l0 + 8 ], %g2
200885c: 03 00 80 77 sethi %hi(0x201dc00), %g1
2008860: 80 a0 80 03 cmp %g2, %g3
2008864: 02 80 00 07 be 2008880 <_Heap_Walk+0x3f8>
2008868: 82 10 61 20 or %g1, 0x120, %g1
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
200886c: 03 00 80 77 sethi %hi(0x201dc00), %g1
2008870: 80 a0 80 18 cmp %g2, %i0
2008874: 02 80 00 03 be 2008880 <_Heap_Walk+0x3f8>
2008878: 82 10 61 30 or %g1, 0x130, %g1
200887c: 82 10 00 1c mov %i4, %g1
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
2008880: c4 23 a0 5c st %g2, [ %sp + 0x5c ]
2008884: c2 23 a0 60 st %g1, [ %sp + 0x60 ]
2008888: 90 10 00 19 mov %i1, %o0
200888c: 92 10 20 00 clr %o1
2008890: 15 00 80 77 sethi %hi(0x201dc00), %o2
2008894: 96 10 00 10 mov %l0, %o3
2008898: 9f c4 40 00 call %l1
200889c: 94 12 a1 40 or %o2, 0x140, %o2
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
20088a0: da 05 c0 00 ld [ %l7 ], %o5
20088a4: 80 a5 80 0d cmp %l6, %o5
20088a8: 02 80 00 0b be 20088d4 <_Heap_Walk+0x44c>
20088ac: 15 00 80 77 sethi %hi(0x201dc00), %o2
(*printer)(
20088b0: ee 23 a0 5c st %l7, [ %sp + 0x5c ]
20088b4: 90 10 00 19 mov %i1, %o0
20088b8: 96 10 00 10 mov %l0, %o3
20088bc: 98 10 00 16 mov %l6, %o4
20088c0: 92 10 20 01 mov 1, %o1
20088c4: 94 12 a1 70 or %o2, 0x170, %o2
20088c8: 9f c4 40 00 call %l1
20088cc: b0 10 20 00 clr %i0
20088d0: 30 80 00 22 b,a 2008958 <_Heap_Walk+0x4d0>
);
return false;
}
if ( !prev_used ) {
20088d4: 80 8f 60 01 btst 1, %i5
20088d8: 32 80 00 0b bne,a 2008904 <_Heap_Walk+0x47c>
20088dc: c2 06 20 08 ld [ %i0 + 8 ], %g1
(*printer)(
20088e0: 15 00 80 77 sethi %hi(0x201dc00), %o2
20088e4: 90 10 00 19 mov %i1, %o0
20088e8: 96 10 00 10 mov %l0, %o3
20088ec: 92 10 20 01 mov 1, %o1
20088f0: 10 80 00 18 b 2008950 <_Heap_Walk+0x4c8>
20088f4: 94 12 a1 b0 or %o2, 0x1b0, %o2
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
if ( free_block == block ) {
20088f8: 22 80 00 0d be,a 200892c <_Heap_Walk+0x4a4>
20088fc: a0 10 00 12 mov %l2, %l0
return true;
}
free_block = free_block->next;
2008900: c2 00 60 08 ld [ %g1 + 8 ], %g1
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
2008904: 80 a0 40 18 cmp %g1, %i0
2008908: 12 bf ff fc bne 20088f8 <_Heap_Walk+0x470>
200890c: 80 a0 40 10 cmp %g1, %l0
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
2008910: 10 80 00 0c b 2008940 <_Heap_Walk+0x4b8>
2008914: 15 00 80 77 sethi %hi(0x201dc00), %o2
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
(*printer)(
2008918: 35 00 80 76 sethi %hi(0x201d800), %i2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
200891c: 39 00 80 77 sethi %hi(0x201dc00), %i4
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
2008920: b6 16 e0 08 or %i3, 8, %i3
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
(*printer)(
2008924: b4 16 a3 f0 or %i2, 0x3f0, %i2
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
2008928: b8 17 21 08 or %i4, 0x108, %i4
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
200892c: 80 a4 00 14 cmp %l0, %l4
2008930: 32 bf ff 73 bne,a 20086fc <_Heap_Walk+0x274>
2008934: ec 04 20 04 ld [ %l0 + 4 ], %l6
block = next_block;
}
return true;
}
2008938: 81 c7 e0 08 ret
200893c: 91 e8 20 01 restore %g0, 1, %o0
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
2008940: 90 10 00 19 mov %i1, %o0
2008944: 96 10 00 10 mov %l0, %o3
2008948: 92 10 20 01 mov 1, %o1
200894c: 94 12 a1 e0 or %o2, 0x1e0, %o2
2008950: 9f c4 40 00 call %l1
2008954: b0 10 20 00 clr %i0
2008958: 81 c7 e0 08 ret
200895c: 81 e8 00 00 restore
020012c0 <_Message_queue_Manager_initialization>:
#include <rtems/score/wkspace.h>
#include <rtems/score/interr.h>
void _Message_queue_Manager_initialization(void)
{
}
20012c0: 81 c3 e0 08 retl
0200771c <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
200771c: 9d e3 bf a0 save %sp, -96, %sp
* If the application is using the optional manager stubs and
* still attempts to create the object, the information block
* should be all zeroed out because it is in the BSS. So let's
* check that code for this manager is even present.
*/
if ( information->size == 0 )
2007720: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
2007724: a0 10 00 18 mov %i0, %l0
* If the application is using the optional manager stubs and
* still attempts to create the object, the information block
* should be all zeroed out because it is in the BSS. So let's
* check that code for this manager is even present.
*/
if ( information->size == 0 )
2007728: 80 a0 60 00 cmp %g1, 0
200772c: 02 80 00 20 be 20077ac <_Objects_Allocate+0x90> <== NEVER TAKEN
2007730: b0 10 20 00 clr %i0
/*
* OK. The manager should be initialized and configured to have objects.
* With any luck, it is safe to attempt to allocate an object.
*/
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
2007734: a2 04 20 20 add %l0, 0x20, %l1
2007738: 7f ff fd 8f call 2006d74 <_Chain_Get>
200773c: 90 10 00 11 mov %l1, %o0
if ( information->auto_extend ) {
2007740: c2 0c 20 12 ldub [ %l0 + 0x12 ], %g1
2007744: 80 a0 60 00 cmp %g1, 0
2007748: 02 80 00 19 be 20077ac <_Objects_Allocate+0x90>
200774c: b0 10 00 08 mov %o0, %i0
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
2007750: 80 a2 20 00 cmp %o0, 0
2007754: 32 80 00 0a bne,a 200777c <_Objects_Allocate+0x60>
2007758: c2 14 20 0a lduh [ %l0 + 0xa ], %g1
_Objects_Extend_information( information );
200775c: 40 00 00 1e call 20077d4 <_Objects_Extend_information>
2007760: 90 10 00 10 mov %l0, %o0
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
2007764: 7f ff fd 84 call 2006d74 <_Chain_Get>
2007768: 90 10 00 11 mov %l1, %o0
}
if ( the_object ) {
200776c: b0 92 20 00 orcc %o0, 0, %i0
2007770: 02 80 00 0f be 20077ac <_Objects_Allocate+0x90>
2007774: 01 00 00 00 nop
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
2007778: c2 14 20 0a lduh [ %l0 + 0xa ], %g1
200777c: d0 16 20 0a lduh [ %i0 + 0xa ], %o0
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
2007780: d2 14 20 14 lduh [ %l0 + 0x14 ], %o1
2007784: 40 00 49 c4 call 2019e94 <.udiv>
2007788: 90 22 00 01 sub %o0, %g1, %o0
200778c: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
2007790: 91 2a 20 02 sll %o0, 2, %o0
information->inactive--;
2007794: c6 14 20 2c lduh [ %l0 + 0x2c ], %g3
block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
2007798: c4 00 40 08 ld [ %g1 + %o0 ], %g2
information->inactive--;
200779c: 86 00 ff ff add %g3, -1, %g3
block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
20077a0: 84 00 bf ff add %g2, -1, %g2
information->inactive--;
20077a4: c6 34 20 2c sth %g3, [ %l0 + 0x2c ]
block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
20077a8: c4 20 40 08 st %g2, [ %g1 + %o0 ]
information->inactive--;
}
}
return the_object;
}
20077ac: 81 c7 e0 08 ret
20077b0: 81 e8 00 00 restore
020077d4 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
20077d4: 9d e3 bf 90 save %sp, -112, %sp
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
20077d8: e4 06 20 34 ld [ %i0 + 0x34 ], %l2
20077dc: 80 a4 a0 00 cmp %l2, 0
20077e0: 12 80 00 06 bne 20077f8 <_Objects_Extend_information+0x24>
20077e4: e6 16 20 0a lduh [ %i0 + 0xa ], %l3
20077e8: a0 10 00 13 mov %l3, %l0
20077ec: a2 10 20 00 clr %l1
20077f0: 10 80 00 15 b 2007844 <_Objects_Extend_information+0x70>
20077f4: a8 10 20 00 clr %l4
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
20077f8: e2 16 20 14 lduh [ %i0 + 0x14 ], %l1
20077fc: d0 16 20 10 lduh [ %i0 + 0x10 ], %o0
2007800: 40 00 49 a5 call 2019e94 <.udiv>
2007804: 92 10 00 11 mov %l1, %o1
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL )
2007808: 82 10 00 11 mov %l1, %g1
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
200780c: 91 2a 20 10 sll %o0, 0x10, %o0
2007810: a0 10 00 13 mov %l3, %l0
2007814: a9 32 20 10 srl %o0, 0x10, %l4
for ( ; block < block_count; block++ ) {
2007818: 10 80 00 08 b 2007838 <_Objects_Extend_information+0x64>
200781c: a2 10 20 00 clr %l1
if ( information->object_blocks[ block ] == NULL )
2007820: c4 04 80 02 ld [ %l2 + %g2 ], %g2
2007824: 80 a0 a0 00 cmp %g2, 0
2007828: 22 80 00 08 be,a 2007848 <_Objects_Extend_information+0x74>
200782c: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0
2007830: a0 04 00 01 add %l0, %g1, %l0
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
2007834: a2 04 60 01 inc %l1
2007838: 80 a4 40 14 cmp %l1, %l4
200783c: 0a bf ff f9 bcs 2007820 <_Objects_Extend_information+0x4c>
2007840: 85 2c 60 02 sll %l1, 2, %g2
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
2007844: d0 16 20 14 lduh [ %i0 + 0x14 ], %o0
2007848: ec 16 20 10 lduh [ %i0 + 0x10 ], %l6
/*
* We need to limit the number of objects to the maximum number
* representable in the index portion of the object Id. In the
* case of 16-bit Ids, this is only 256 object instances.
*/
if ( maximum > OBJECTS_ID_FINAL_INDEX ) {
200784c: 03 00 00 3f sethi %hi(0xfc00), %g1
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
2007850: ac 02 00 16 add %o0, %l6, %l6
/*
* We need to limit the number of objects to the maximum number
* representable in the index portion of the object Id. In the
* case of 16-bit Ids, this is only 256 object instances.
*/
if ( maximum > OBJECTS_ID_FINAL_INDEX ) {
2007854: 82 10 63 ff or %g1, 0x3ff, %g1
2007858: 80 a5 80 01 cmp %l6, %g1
200785c: 18 80 00 88 bgu 2007a7c <_Objects_Extend_information+0x2a8><== NEVER TAKEN
2007860: 01 00 00 00 nop
/*
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
2007864: 40 00 49 52 call 2019dac <.umul>
2007868: d2 06 20 18 ld [ %i0 + 0x18 ], %o1
if ( information->auto_extend ) {
200786c: c2 0e 20 12 ldub [ %i0 + 0x12 ], %g1
2007870: 80 a0 60 00 cmp %g1, 0
2007874: 02 80 00 09 be 2007898 <_Objects_Extend_information+0xc4>
2007878: 01 00 00 00 nop
new_object_block = _Workspace_Allocate( block_size );
200787c: 40 00 08 93 call 2009ac8 <_Workspace_Allocate>
2007880: 01 00 00 00 nop
if ( !new_object_block )
2007884: a4 92 20 00 orcc %o0, 0, %l2
2007888: 32 80 00 08 bne,a 20078a8 <_Objects_Extend_information+0xd4>
200788c: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007890: 81 c7 e0 08 ret
2007894: 81 e8 00 00 restore
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
2007898: 40 00 08 7e call 2009a90 <_Workspace_Allocate_or_fatal_error>
200789c: 01 00 00 00 nop
20078a0: a4 10 00 08 mov %o0, %l2
}
/*
* If the index_base is the maximum we need to grow the tables.
*/
if (index_base >= information->maximum ) {
20078a4: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
20078a8: 80 a4 00 01 cmp %l0, %g1
20078ac: 2a 80 00 53 bcs,a 20079f8 <_Objects_Extend_information+0x224>
20078b0: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
20078b4: 82 05 80 13 add %l6, %l3, %g1
*/
/*
* Up the block count and maximum
*/
block_count++;
20078b8: ae 05 20 01 add %l4, 1, %l7
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
20078bc: 91 2d e0 01 sll %l7, 1, %o0
20078c0: 90 02 00 17 add %o0, %l7, %o0
20078c4: 90 00 40 08 add %g1, %o0, %o0
20078c8: 40 00 08 80 call 2009ac8 <_Workspace_Allocate>
20078cc: 91 2a 20 02 sll %o0, 2, %o0
if ( !object_blocks ) {
20078d0: aa 92 20 00 orcc %o0, 0, %l5
20078d4: 32 80 00 06 bne,a 20078ec <_Objects_Extend_information+0x118>
20078d8: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
_Workspace_Free( new_object_block );
20078dc: 40 00 08 84 call 2009aec <_Workspace_Free>
20078e0: 90 10 00 12 mov %l2, %o0
return;
20078e4: 81 c7 e0 08 ret
20078e8: 81 e8 00 00 restore
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
20078ec: af 2d e0 02 sll %l7, 2, %l7
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
20078f0: 80 a0 40 13 cmp %g1, %l3
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
20078f4: ba 05 40 17 add %l5, %l7, %i5
20078f8: 82 10 20 00 clr %g1
20078fc: 08 80 00 14 bleu 200794c <_Objects_Extend_information+0x178>
2007900: ae 07 40 17 add %i5, %l7, %l7
/*
* Copy each section of the table over. This has to be performed as
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
2007904: d2 06 20 34 ld [ %i0 + 0x34 ], %o1
information->object_blocks,
block_count * sizeof(void*) );
2007908: b9 2d 20 02 sll %l4, 2, %i4
/*
* Copy each section of the table over. This has to be performed as
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
200790c: 40 00 26 4b call 2011238 <memcpy>
2007910: 94 10 00 1c mov %i4, %o2
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
2007914: d2 06 20 30 ld [ %i0 + 0x30 ], %o1
2007918: 94 10 00 1c mov %i4, %o2
200791c: 40 00 26 47 call 2011238 <memcpy>
2007920: 90 10 00 1d mov %i5, %o0
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
2007924: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007928: d2 06 20 1c ld [ %i0 + 0x1c ], %o1
200792c: a6 04 c0 01 add %l3, %g1, %l3
2007930: 90 10 00 17 mov %l7, %o0
2007934: 40 00 26 41 call 2011238 <memcpy>
2007938: 95 2c e0 02 sll %l3, 2, %o2
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
200793c: 10 80 00 08 b 200795c <_Objects_Extend_information+0x188>
2007940: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
2007944: 82 00 60 01 inc %g1
local_table[ index ] = NULL;
2007948: c0 20 80 17 clr [ %g2 + %l7 ]
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
200794c: 80 a0 40 13 cmp %g1, %l3
2007950: 2a bf ff fd bcs,a 2007944 <_Objects_Extend_information+0x170>
2007954: 85 28 60 02 sll %g1, 2, %g2
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
2007958: c6 16 20 14 lduh [ %i0 + 0x14 ], %g3
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
200795c: a9 2d 20 02 sll %l4, 2, %l4
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
2007960: 85 2c 20 02 sll %l0, 2, %g2
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
2007964: c0 27 40 14 clr [ %i5 + %l4 ]
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
2007968: c0 25 40 14 clr [ %l5 + %l4 ]
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
200796c: 86 04 00 03 add %l0, %g3, %g3
2007970: 84 05 c0 02 add %l7, %g2, %g2
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
2007974: 10 80 00 04 b 2007984 <_Objects_Extend_information+0x1b0>
2007978: 82 10 00 10 mov %l0, %g1
index < ( information->allocation_size + index_base );
index++ ) {
200797c: 82 00 60 01 inc %g1
2007980: 84 00 a0 04 add %g2, 4, %g2
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
2007984: 80 a0 40 03 cmp %g1, %g3
2007988: 2a bf ff fd bcs,a 200797c <_Objects_Extend_information+0x1a8>
200798c: c0 20 80 00 clr [ %g2 ]
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
}
_ISR_Disable( level );
2007990: 7f ff e9 8d call 2001fc4 <sparc_disable_interrupts>
2007994: 01 00 00 00 nop
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
2007998: c8 06 00 00 ld [ %i0 ], %g4
200799c: c4 16 20 04 lduh [ %i0 + 4 ], %g2
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
20079a0: ec 36 20 10 sth %l6, [ %i0 + 0x10 ]
information->maximum_id = _Objects_Build_id(
20079a4: ad 2d a0 10 sll %l6, 0x10, %l6
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
20079a8: e6 06 20 34 ld [ %i0 + 0x34 ], %l3
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
20079ac: 83 35 a0 10 srl %l6, 0x10, %g1
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
20079b0: fa 26 20 30 st %i5, [ %i0 + 0x30 ]
information->local_table = local_table;
20079b4: ee 26 20 1c st %l7, [ %i0 + 0x1c ]
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
20079b8: 89 29 20 18 sll %g4, 0x18, %g4
20079bc: 85 28 a0 1b sll %g2, 0x1b, %g2
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
20079c0: ea 26 20 34 st %l5, [ %i0 + 0x34 ]
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
20079c4: 07 00 00 40 sethi %hi(0x10000), %g3
20079c8: ac 11 00 03 or %g4, %g3, %l6
20079cc: ac 15 80 02 or %l6, %g2, %l6
20079d0: ac 15 80 01 or %l6, %g1, %l6
20079d4: ec 26 20 0c st %l6, [ %i0 + 0xc ]
information->the_class,
_Objects_Local_node,
information->maximum
);
_ISR_Enable( level );
20079d8: 7f ff e9 7f call 2001fd4 <sparc_enable_interrupts>
20079dc: 01 00 00 00 nop
if ( old_tables )
20079e0: 80 a4 e0 00 cmp %l3, 0
20079e4: 22 80 00 05 be,a 20079f8 <_Objects_Extend_information+0x224>
20079e8: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
_Workspace_Free( old_tables );
20079ec: 40 00 08 40 call 2009aec <_Workspace_Free>
20079f0: 90 10 00 13 mov %l3, %o0
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
20079f4: c2 06 20 34 ld [ %i0 + 0x34 ], %g1
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
20079f8: d4 16 20 14 lduh [ %i0 + 0x14 ], %o2
20079fc: d6 06 20 18 ld [ %i0 + 0x18 ], %o3
2007a00: 92 10 00 12 mov %l2, %o1
2007a04: 90 07 bf f4 add %fp, -12, %o0
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
2007a08: a3 2c 60 02 sll %l1, 2, %l1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2007a0c: a8 06 20 20 add %i0, 0x20, %l4
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
2007a10: e4 20 40 11 st %l2, [ %g1 + %l1 ]
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
the_object->id = _Objects_Build_id(
2007a14: 27 00 00 40 sethi %hi(0x10000), %l3
information->object_blocks[ block ] = new_object_block;
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
2007a18: 40 00 16 48 call 200d338 <_Chain_Initialize>
2007a1c: a4 10 00 08 mov %o0, %l2
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
2007a20: 30 80 00 0c b,a 2007a50 <_Objects_Extend_information+0x27c>
the_object->id = _Objects_Build_id(
2007a24: c4 16 20 04 lduh [ %i0 + 4 ], %g2
2007a28: 83 28 60 18 sll %g1, 0x18, %g1
2007a2c: 85 28 a0 1b sll %g2, 0x1b, %g2
2007a30: 82 10 40 13 or %g1, %l3, %g1
2007a34: 82 10 40 02 or %g1, %g2, %g1
2007a38: 82 10 40 10 or %g1, %l0, %g1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2007a3c: 92 10 00 08 mov %o0, %o1
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
the_object->id = _Objects_Build_id(
2007a40: c2 22 20 08 st %g1, [ %o0 + 8 ]
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
2007a44: a0 04 20 01 inc %l0
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
2007a48: 7f ff fc b5 call 2006d1c <_Chain_Append>
2007a4c: 90 10 00 14 mov %l4, %o0
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
2007a50: 7f ff fc c9 call 2006d74 <_Chain_Get>
2007a54: 90 10 00 12 mov %l2, %o0
2007a58: 80 a2 20 00 cmp %o0, 0
2007a5c: 32 bf ff f2 bne,a 2007a24 <_Objects_Extend_information+0x250>
2007a60: c2 06 00 00 ld [ %i0 ], %g1
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
2007a64: c2 16 20 2c lduh [ %i0 + 0x2c ], %g1
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
2007a68: c8 16 20 14 lduh [ %i0 + 0x14 ], %g4
2007a6c: c4 06 20 30 ld [ %i0 + 0x30 ], %g2
information->inactive =
2007a70: 82 01 00 01 add %g4, %g1, %g1
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
2007a74: c8 20 80 11 st %g4, [ %g2 + %l1 ]
information->inactive =
2007a78: c2 36 20 2c sth %g1, [ %i0 + 0x2c ]
2007a7c: 81 c7 e0 08 ret
2007a80: 81 e8 00 00 restore
02007b2c <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
2007b2c: 9d e3 bf a0 save %sp, -96, %sp
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
2007b30: 80 a6 60 00 cmp %i1, 0
2007b34: 22 80 00 1a be,a 2007b9c <_Objects_Get_information+0x70>
2007b38: b0 10 20 00 clr %i0
/*
* This call implicitly validates the_api so we do not call
* _Objects_Is_api_valid above here.
*/
the_class_api_maximum = _Objects_API_maximum_class( the_api );
2007b3c: 40 00 17 9d call 200d9b0 <_Objects_API_maximum_class>
2007b40: 90 10 00 18 mov %i0, %o0
if ( the_class_api_maximum == 0 )
2007b44: 80 a2 20 00 cmp %o0, 0
2007b48: 22 80 00 15 be,a 2007b9c <_Objects_Get_information+0x70>
2007b4c: b0 10 20 00 clr %i0
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
2007b50: 80 a6 40 08 cmp %i1, %o0
2007b54: 38 80 00 12 bgu,a 2007b9c <_Objects_Get_information+0x70>
2007b58: b0 10 20 00 clr %i0
return NULL;
if ( !_Objects_Information_table[ the_api ] )
2007b5c: b1 2e 20 02 sll %i0, 2, %i0
2007b60: 03 00 80 78 sethi %hi(0x201e000), %g1
2007b64: 82 10 61 f0 or %g1, 0x1f0, %g1 ! 201e1f0 <_Objects_Information_table>
2007b68: c2 00 40 18 ld [ %g1 + %i0 ], %g1
2007b6c: 80 a0 60 00 cmp %g1, 0
2007b70: 02 80 00 0b be 2007b9c <_Objects_Get_information+0x70> <== NEVER TAKEN
2007b74: b0 10 20 00 clr %i0
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
2007b78: b3 2e 60 02 sll %i1, 2, %i1
2007b7c: f0 00 40 19 ld [ %g1 + %i1 ], %i0
if ( !info )
2007b80: 80 a6 20 00 cmp %i0, 0
2007b84: 02 80 00 06 be 2007b9c <_Objects_Get_information+0x70> <== NEVER TAKEN
2007b88: 01 00 00 00 nop
* In a multprocessing configuration, we may access remote objects.
* Thus we may have 0 local instances and still have a valid object
* pointer.
*/
#if !defined(RTEMS_MULTIPROCESSING)
if ( info->maximum == 0 )
2007b8c: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1
2007b90: 80 a0 60 00 cmp %g1, 0
2007b94: 22 80 00 02 be,a 2007b9c <_Objects_Get_information+0x70>
2007b98: b0 10 20 00 clr %i0
return NULL;
#endif
return info;
}
2007b9c: 81 c7 e0 08 ret
2007ba0: 81 e8 00 00 restore
020183b4 <_Objects_Get_no_protection>:
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
20183b4: c4 02 20 08 ld [ %o0 + 8 ], %g2
if ( information->maximum >= index ) {
20183b8: c2 12 20 10 lduh [ %o0 + 0x10 ], %g1
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
20183bc: 84 22 40 02 sub %o1, %g2, %g2
20183c0: 84 00 a0 01 inc %g2
if ( information->maximum >= index ) {
20183c4: 80 a0 40 02 cmp %g1, %g2
20183c8: 0a 80 00 09 bcs 20183ec <_Objects_Get_no_protection+0x38>
20183cc: 85 28 a0 02 sll %g2, 2, %g2
if ( (the_object = information->local_table[ index ]) != NULL ) {
20183d0: c2 02 20 1c ld [ %o0 + 0x1c ], %g1
20183d4: d0 00 40 02 ld [ %g1 + %g2 ], %o0
20183d8: 80 a2 20 00 cmp %o0, 0
20183dc: 02 80 00 05 be 20183f0 <_Objects_Get_no_protection+0x3c> <== NEVER TAKEN
20183e0: 82 10 20 01 mov 1, %g1
*location = OBJECTS_LOCAL;
return the_object;
20183e4: 81 c3 e0 08 retl
20183e8: c0 22 80 00 clr [ %o2 ]
/*
* This isn't supported or required yet for Global objects so
* if it isn't local, we don't find it.
*/
*location = OBJECTS_ERROR;
20183ec: 82 10 20 01 mov 1, %g1
20183f0: 90 10 20 00 clr %o0
return NULL;
}
20183f4: 81 c3 e0 08 retl
20183f8: c2 22 80 00 st %g1, [ %o2 ]
0200c500 <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
200c500: 9d e3 bf 98 save %sp, -104, %sp
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
200c504: 92 96 20 00 orcc %i0, 0, %o1
200c508: 12 80 00 06 bne 200c520 <_Objects_Id_to_name+0x20>
200c50c: 83 32 60 18 srl %o1, 0x18, %g1
200c510: 03 00 80 bc sethi %hi(0x202f000), %g1
200c514: c2 00 61 00 ld [ %g1 + 0x100 ], %g1 ! 202f100 <_Thread_Executing>
200c518: d2 00 60 08 ld [ %g1 + 8 ], %o1
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
200c51c: 83 32 60 18 srl %o1, 0x18, %g1
200c520: 82 08 60 07 and %g1, 7, %g1
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
200c524: 84 00 7f ff add %g1, -1, %g2
200c528: 80 a0 a0 03 cmp %g2, 3
200c52c: 18 80 00 18 bgu 200c58c <_Objects_Id_to_name+0x8c>
200c530: 83 28 60 02 sll %g1, 2, %g1
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
200c534: 10 80 00 18 b 200c594 <_Objects_Id_to_name+0x94>
200c538: 05 00 80 bb sethi %hi(0x202ec00), %g2
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
200c53c: 85 28 a0 02 sll %g2, 2, %g2
200c540: d0 00 40 02 ld [ %g1 + %g2 ], %o0
if ( !information )
200c544: 80 a2 20 00 cmp %o0, 0
200c548: 02 80 00 11 be 200c58c <_Objects_Id_to_name+0x8c> <== NEVER TAKEN
200c54c: 01 00 00 00 nop
return OBJECTS_INVALID_ID;
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
200c550: c2 0a 20 38 ldub [ %o0 + 0x38 ], %g1
200c554: 80 a0 60 00 cmp %g1, 0
200c558: 12 80 00 0d bne 200c58c <_Objects_Id_to_name+0x8c> <== NEVER TAKEN
200c55c: 01 00 00 00 nop
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
200c560: 7f ff ff cb call 200c48c <_Objects_Get>
200c564: 94 07 bf fc add %fp, -4, %o2
if ( !the_object )
200c568: 80 a2 20 00 cmp %o0, 0
200c56c: 02 80 00 08 be 200c58c <_Objects_Id_to_name+0x8c>
200c570: 01 00 00 00 nop
return OBJECTS_INVALID_ID;
*name = the_object->name;
200c574: c2 02 20 0c ld [ %o0 + 0xc ], %g1
_Thread_Enable_dispatch();
200c578: b0 10 20 00 clr %i0
200c57c: 40 00 02 72 call 200cf44 <_Thread_Enable_dispatch>
200c580: c2 26 40 00 st %g1, [ %i1 ]
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
200c584: 81 c7 e0 08 ret
200c588: 81 e8 00 00 restore
}
200c58c: 81 c7 e0 08 ret
200c590: 91 e8 20 03 restore %g0, 3, %o0
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
200c594: 84 10 a3 a0 or %g2, 0x3a0, %g2
200c598: c2 00 80 01 ld [ %g2 + %g1 ], %g1
200c59c: 80 a0 60 00 cmp %g1, 0
200c5a0: 12 bf ff e7 bne 200c53c <_Objects_Id_to_name+0x3c>
200c5a4: 85 32 60 1b srl %o1, 0x1b, %g2
200c5a8: 30 bf ff f9 b,a 200c58c <_Objects_Id_to_name+0x8c>
020084b0 <_Objects_Set_name>:
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
20084b0: 9d e3 bf a0 save %sp, -96, %sp
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
20084b4: d2 16 20 3a lduh [ %i0 + 0x3a ], %o1
20084b8: 40 00 2a 89 call 2012edc <strnlen>
20084bc: 90 10 00 1a mov %i2, %o0
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
20084c0: c2 0e 20 38 ldub [ %i0 + 0x38 ], %g1
20084c4: 80 a0 60 00 cmp %g1, 0
20084c8: 02 80 00 17 be 2008524 <_Objects_Set_name+0x74>
20084cc: a0 10 00 08 mov %o0, %l0
char *d;
d = _Workspace_Allocate( length + 1 );
20084d0: 90 02 20 01 inc %o0
20084d4: 40 00 07 42 call 200a1dc <_Workspace_Allocate>
20084d8: b0 10 20 00 clr %i0
if ( !d )
20084dc: a2 92 20 00 orcc %o0, 0, %l1
20084e0: 02 80 00 24 be 2008570 <_Objects_Set_name+0xc0> <== NEVER TAKEN
20084e4: 01 00 00 00 nop
return false;
if ( the_object->name.name_p ) {
20084e8: d0 06 60 0c ld [ %i1 + 0xc ], %o0
20084ec: 80 a2 20 00 cmp %o0, 0
20084f0: 02 80 00 06 be 2008508 <_Objects_Set_name+0x58>
20084f4: 92 10 00 1a mov %i2, %o1
_Workspace_Free( (void *)the_object->name.name_p );
20084f8: 40 00 07 42 call 200a200 <_Workspace_Free>
20084fc: 01 00 00 00 nop
the_object->name.name_p = NULL;
2008500: c0 26 60 0c clr [ %i1 + 0xc ]
}
strncpy( d, name, length );
2008504: 92 10 00 1a mov %i2, %o1
2008508: 90 10 00 11 mov %l1, %o0
200850c: 40 00 2a 39 call 2012df0 <strncpy>
2008510: 94 10 00 10 mov %l0, %o2
d[length] = '\0';
2008514: c0 2c 40 10 clrb [ %l1 + %l0 ]
the_object->name.name_p = d;
2008518: e2 26 60 0c st %l1, [ %i1 + 0xc ]
200851c: 81 c7 e0 08 ret
2008520: 91 e8 20 01 restore %g0, 1, %o0
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
2008524: 80 a2 20 01 cmp %o0, 1
2008528: 08 80 00 14 bleu 2008578 <_Objects_Set_name+0xc8>
200852c: c8 0e 80 00 ldub [ %i2 ], %g4
2008530: c6 4e a0 01 ldsb [ %i2 + 1 ], %g3
2008534: 80 a2 20 02 cmp %o0, 2
2008538: 08 80 00 11 bleu 200857c <_Objects_Set_name+0xcc>
200853c: 87 28 e0 10 sll %g3, 0x10, %g3
2008540: c4 4e a0 02 ldsb [ %i2 + 2 ], %g2
2008544: 80 a2 20 03 cmp %o0, 3
2008548: 85 28 a0 08 sll %g2, 8, %g2
200854c: 08 80 00 03 bleu 2008558 <_Objects_Set_name+0xa8>
2008550: 82 10 20 20 mov 0x20, %g1
2008554: c2 4e a0 03 ldsb [ %i2 + 3 ], %g1
2008558: 89 29 20 18 sll %g4, 0x18, %g4
200855c: b0 10 20 01 mov 1, %i0
2008560: 86 10 c0 04 or %g3, %g4, %g3
2008564: 84 10 c0 02 or %g3, %g2, %g2
2008568: 82 10 80 01 or %g2, %g1, %g1
200856c: c2 26 60 0c st %g1, [ %i1 + 0xc ]
);
}
return true;
}
2008570: 81 c7 e0 08 ret
2008574: 81 e8 00 00 restore
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
2008578: 07 00 08 00 sethi %hi(0x200000), %g3
200857c: 05 00 00 08 sethi %hi(0x2000), %g2
2008580: 10 bf ff f6 b 2008558 <_Objects_Set_name+0xa8>
2008584: 82 10 20 20 mov 0x20, %g1
020072ac <_POSIX_Condition_variables_Wait_support>:
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
20072ac: 9d e3 bf 98 save %sp, -104, %sp
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
20072b0: a0 07 bf fc add %fp, -4, %l0
20072b4: 90 10 00 19 mov %i1, %o0
20072b8: 40 00 00 7e call 20074b0 <_POSIX_Mutex_Get>
20072bc: 92 10 00 10 mov %l0, %o1
20072c0: 80 a2 20 00 cmp %o0, 0
20072c4: 22 80 00 18 be,a 2007324 <_POSIX_Condition_variables_Wait_support+0x78>
20072c8: b0 10 20 16 mov 0x16, %i0
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
20072cc: 03 00 80 84 sethi %hi(0x2021000), %g1
20072d0: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 ! 2021050 <_Thread_Dispatch_disable_level>
return EINVAL;
}
_Thread_Unnest_dispatch();
the_cond = _POSIX_Condition_variables_Get( cond, &location );
20072d4: 92 10 00 10 mov %l0, %o1
20072d8: 84 00 bf ff add %g2, -1, %g2
20072dc: 90 10 00 18 mov %i0, %o0
20072e0: c4 20 60 50 st %g2, [ %g1 + 0x50 ]
20072e4: 7f ff ff 74 call 20070b4 <_POSIX_Condition_variables_Get>
20072e8: 01 00 00 00 nop
switch ( location ) {
20072ec: c2 07 bf fc ld [ %fp + -4 ], %g1
20072f0: 80 a0 60 00 cmp %g1, 0
20072f4: 12 80 00 34 bne 20073c4 <_POSIX_Condition_variables_Wait_support+0x118>
20072f8: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {
20072fc: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
2007300: 80 a0 60 00 cmp %g1, 0
2007304: 02 80 00 0a be 200732c <_POSIX_Condition_variables_Wait_support+0x80>
2007308: 01 00 00 00 nop
200730c: c4 06 40 00 ld [ %i1 ], %g2
2007310: 80 a0 40 02 cmp %g1, %g2
2007314: 02 80 00 06 be 200732c <_POSIX_Condition_variables_Wait_support+0x80>
2007318: 01 00 00 00 nop
_Thread_Enable_dispatch();
200731c: 40 00 0d 0d call 200a750 <_Thread_Enable_dispatch>
2007320: b0 10 20 16 mov 0x16, %i0 ! 16 <PROM_START+0x16>
return EINVAL;
2007324: 81 c7 e0 08 ret
2007328: 81 e8 00 00 restore
}
(void) pthread_mutex_unlock( mutex );
200732c: 40 00 00 f2 call 20076f4 <pthread_mutex_unlock>
2007330: 90 10 00 19 mov %i1, %o0
_Thread_Enable_dispatch();
return EINVAL;
}
*/
if ( !already_timedout ) {
2007334: 80 8e e0 ff btst 0xff, %i3
2007338: 12 80 00 1c bne 20073a8 <_POSIX_Condition_variables_Wait_support+0xfc>
200733c: 23 00 80 84 sethi %hi(0x2021000), %l1
the_cond->Mutex = *mutex;
2007340: c4 06 40 00 ld [ %i1 ], %g2
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
2007344: c2 04 61 10 ld [ %l1 + 0x110 ], %g1
return EINVAL;
}
*/
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
2007348: c4 24 20 14 st %g2, [ %l0 + 0x14 ]
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
200734c: c0 20 60 34 clr [ %g1 + 0x34 ]
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
_Thread_Executing->Wait.id = *cond;
2007350: c6 06 00 00 ld [ %i0 ], %g3
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
2007354: 84 04 20 18 add %l0, 0x18, %g2
_Thread_Executing->Wait.id = *cond;
2007358: c6 20 60 20 st %g3, [ %g1 + 0x20 ]
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
200735c: c4 20 60 44 st %g2, [ %g1 + 0x44 ]
_Thread_Executing->Wait.id = *cond;
_Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );
2007360: 92 10 00 1a mov %i2, %o1
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2007364: 82 10 20 01 mov 1, %g1
2007368: 90 10 00 02 mov %g2, %o0
200736c: 15 00 80 2c sethi %hi(0x200b000), %o2
2007370: 94 12 a0 a8 or %o2, 0xa8, %o2 ! 200b0a8 <_Thread_queue_Timeout>
2007374: 40 00 0e 5c call 200ace4 <_Thread_queue_Enqueue_with_handler>
2007378: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
_Thread_Enable_dispatch();
200737c: 40 00 0c f5 call 200a750 <_Thread_Enable_dispatch>
2007380: 01 00 00 00 nop
/*
* Switch ourself out because we blocked as a result of the
* _Thread_queue_Enqueue.
*/
status = _Thread_Executing->Wait.return_code;
2007384: c2 04 61 10 ld [ %l1 + 0x110 ], %g1
2007388: f0 00 60 34 ld [ %g1 + 0x34 ], %i0
if ( status && status != ETIMEDOUT )
200738c: 80 a6 20 74 cmp %i0, 0x74
2007390: 02 80 00 08 be 20073b0 <_POSIX_Condition_variables_Wait_support+0x104>
2007394: 80 a6 20 00 cmp %i0, 0
2007398: 02 80 00 06 be 20073b0 <_POSIX_Condition_variables_Wait_support+0x104><== ALWAYS TAKEN
200739c: 01 00 00 00 nop
20073a0: 81 c7 e0 08 ret <== NOT EXECUTED
20073a4: 81 e8 00 00 restore <== NOT EXECUTED
return status;
} else {
_Thread_Enable_dispatch();
20073a8: 40 00 0c ea call 200a750 <_Thread_Enable_dispatch>
20073ac: b0 10 20 74 mov 0x74, %i0
/*
* When we get here the dispatch disable level is 0.
*/
mutex_status = pthread_mutex_lock( mutex );
20073b0: 40 00 00 b0 call 2007670 <pthread_mutex_lock>
20073b4: 90 10 00 19 mov %i1, %o0
if ( mutex_status )
20073b8: 80 a2 20 00 cmp %o0, 0
20073bc: 02 80 00 03 be 20073c8 <_POSIX_Condition_variables_Wait_support+0x11c>
20073c0: 01 00 00 00 nop
20073c4: b0 10 20 16 mov 0x16, %i0 ! 16 <PROM_START+0x16>
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
20073c8: 81 c7 e0 08 ret
20073cc: 81 e8 00 00 restore
0200fa0c <_POSIX_Keys_Run_destructors>:
*/
void _POSIX_Keys_Run_destructors(
Thread_Control *thread
)
{
200fa0c: 9d e3 bf a0 save %sp, -96, %sp
Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id );
200fa10: e6 06 20 08 ld [ %i0 + 8 ], %l3
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
200fa14: 25 00 80 79 sethi %hi(0x201e400), %l2
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
void *value = key->Values [ thread_api ][ thread_index ];
200fa18: a3 2c e0 10 sll %l3, 0x10, %l1
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
200fa1c: a4 14 a2 f8 or %l2, 0x2f8, %l2
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
200fa20: a7 34 e0 18 srl %l3, 0x18, %l3
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
void *value = key->Values [ thread_api ][ thread_index ];
200fa24: a3 34 60 0e srl %l1, 0xe, %l1
200fa28: a6 0c e0 07 and %l3, 7, %l3
200fa2c: a6 04 e0 04 add %l3, 4, %l3
200fa30: a7 2c e0 02 sll %l3, 2, %l3
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
200fa34: a0 10 20 01 mov 1, %l0
200fa38: 84 10 20 01 mov 1, %g2
done = true;
for ( index = 1 ; index <= max ; ++index ) {
200fa3c: 10 80 00 15 b 200fa90 <_POSIX_Keys_Run_destructors+0x84>
200fa40: e8 14 a0 10 lduh [ %l2 + 0x10 ], %l4
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
200fa44: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3
200fa48: 83 28 60 02 sll %g1, 2, %g1
200fa4c: c2 00 c0 01 ld [ %g3 + %g1 ], %g1
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
200fa50: a0 04 20 01 inc %l0
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
200fa54: 80 a0 60 00 cmp %g1, 0
200fa58: 02 80 00 0e be 200fa90 <_POSIX_Keys_Run_destructors+0x84>
200fa5c: 86 00 40 13 add %g1, %l3, %g3
200fa60: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
200fa64: 80 a0 60 00 cmp %g1, 0
200fa68: 22 80 00 0b be,a 200fa94 <_POSIX_Keys_Run_destructors+0x88>
200fa6c: 83 2c 20 10 sll %l0, 0x10, %g1
void *value = key->Values [ thread_api ][ thread_index ];
200fa70: c6 00 e0 04 ld [ %g3 + 4 ], %g3
200fa74: d0 00 c0 11 ld [ %g3 + %l1 ], %o0
if ( value != NULL ) {
200fa78: 80 a2 20 00 cmp %o0, 0
200fa7c: 22 80 00 06 be,a 200fa94 <_POSIX_Keys_Run_destructors+0x88><== ALWAYS TAKEN
200fa80: 83 2c 20 10 sll %l0, 0x10, %g1
key->Values [ thread_api ][ thread_index ] = NULL;
(*key->destructor)( value );
200fa84: 9f c0 40 00 call %g1 <== NOT EXECUTED
200fa88: c0 20 c0 11 clr [ %g3 + %l1 ] <== NOT EXECUTED
200fa8c: 84 10 20 00 clr %g2 <== NOT EXECUTED
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
200fa90: 83 2c 20 10 sll %l0, 0x10, %g1
200fa94: 83 30 60 10 srl %g1, 0x10, %g1
200fa98: 80 a0 40 14 cmp %g1, %l4
200fa9c: 08 bf ff ea bleu 200fa44 <_POSIX_Keys_Run_destructors+0x38>
200faa0: 80 88 a0 ff btst 0xff, %g2
* number of iterations. An infinite loop may happen if destructors set
* thread specific data. This can be considered dubious.
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
200faa4: 02 bf ff e5 be 200fa38 <_POSIX_Keys_Run_destructors+0x2c> <== NEVER TAKEN
200faa8: a0 10 20 01 mov 1, %l0
done = false;
}
}
}
}
}
200faac: 81 c7 e0 08 ret
200fab0: 81 e8 00 00 restore
0200b054 <_POSIX_Message_queue_Receive_support>:
size_t msg_len,
unsigned int *msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
200b054: 9d e3 bf 98 save %sp, -104, %sp
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
200b058: 11 00 80 a1 sethi %hi(0x2028400), %o0
200b05c: 94 07 bf fc add %fp, -4, %o2
200b060: 90 12 21 3c or %o0, 0x13c, %o0
200b064: 40 00 0c 9d call 200e2d8 <_Objects_Get>
200b068: 92 10 00 18 mov %i0, %o1
Objects_Locations location;
size_t length_out;
bool do_wait;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
200b06c: c2 07 bf fc ld [ %fp + -4 ], %g1
size_t msg_len,
unsigned int *msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
200b070: 94 10 00 19 mov %i1, %o2
Objects_Locations location;
size_t length_out;
bool do_wait;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
200b074: 80 a0 60 00 cmp %g1, 0
200b078: 12 80 00 41 bne 200b17c <_POSIX_Message_queue_Receive_support+0x128>
200b07c: 9a 10 00 1d mov %i5, %o5
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
200b080: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
200b084: 84 08 60 03 and %g1, 3, %g2
200b088: 80 a0 a0 01 cmp %g2, 1
200b08c: 32 80 00 08 bne,a 200b0ac <_POSIX_Message_queue_Receive_support+0x58>
200b090: d0 02 20 10 ld [ %o0 + 0x10 ], %o0
_Thread_Enable_dispatch();
200b094: 40 00 0e f8 call 200ec74 <_Thread_Enable_dispatch>
200b098: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EBADF );
200b09c: 40 00 31 00 call 201749c <__errno>
200b0a0: 01 00 00 00 nop
200b0a4: 10 80 00 0b b 200b0d0 <_POSIX_Message_queue_Receive_support+0x7c>
200b0a8: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
}
the_mq = the_mq_fd->Queue;
if ( msg_len < the_mq->Message_queue.maximum_message_size ) {
200b0ac: c4 02 20 68 ld [ %o0 + 0x68 ], %g2
200b0b0: 80 a6 80 02 cmp %i2, %g2
200b0b4: 1a 80 00 09 bcc 200b0d8 <_POSIX_Message_queue_Receive_support+0x84>
200b0b8: 80 8f 20 ff btst 0xff, %i4
_Thread_Enable_dispatch();
200b0bc: 40 00 0e ee call 200ec74 <_Thread_Enable_dispatch>
200b0c0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EMSGSIZE );
200b0c4: 40 00 30 f6 call 201749c <__errno>
200b0c8: 01 00 00 00 nop
200b0cc: 82 10 20 7a mov 0x7a, %g1 ! 7a <PROM_START+0x7a>
200b0d0: 10 80 00 29 b 200b174 <_POSIX_Message_queue_Receive_support+0x120>
200b0d4: c2 22 00 00 st %g1, [ %o0 ]
length_out = -1;
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
200b0d8: 02 80 00 05 be 200b0ec <_POSIX_Message_queue_Receive_support+0x98><== NEVER TAKEN
200b0dc: 98 10 20 00 clr %o4
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
200b0e0: 99 30 60 0e srl %g1, 0xe, %o4
200b0e4: 98 1b 20 01 xor %o4, 1, %o4
200b0e8: 98 0b 20 01 and %o4, 1, %o4
/*
* Now if something goes wrong, we return a "length" of -1
* to indicate an error.
*/
length_out = -1;
200b0ec: 82 10 3f ff mov -1, %g1
do_wait = wait;
/*
* Now perform the actual message receive
*/
_CORE_message_queue_Seize(
200b0f0: 90 02 20 1c add %o0, 0x1c, %o0
200b0f4: 92 10 00 18 mov %i0, %o1
200b0f8: 98 0b 20 01 and %o4, 1, %o4
200b0fc: 96 07 bf f8 add %fp, -8, %o3
200b100: 40 00 08 4d call 200d234 <_CORE_message_queue_Seize>
200b104: c2 27 bf f8 st %g1, [ %fp + -8 ]
&length_out,
do_wait,
timeout
);
_Thread_Enable_dispatch();
200b108: 40 00 0e db call 200ec74 <_Thread_Enable_dispatch>
200b10c: 01 00 00 00 nop
if (msg_prio) {
200b110: 80 a6 e0 00 cmp %i3, 0
200b114: 02 80 00 08 be 200b134 <_POSIX_Message_queue_Receive_support+0xe0><== NEVER TAKEN
200b118: 03 00 80 a0 sethi %hi(0x2028000), %g1
*msg_prio = _POSIX_Message_queue_Priority_from_core(
200b11c: c2 00 60 e0 ld [ %g1 + 0xe0 ], %g1 ! 20280e0 <_Thread_Executing>
200b120: c4 00 60 24 ld [ %g1 + 0x24 ], %g2
200b124: 83 38 a0 1f sra %g2, 0x1f, %g1
200b128: 84 18 40 02 xor %g1, %g2, %g2
200b12c: 82 20 80 01 sub %g2, %g1, %g1
200b130: c2 26 c0 00 st %g1, [ %i3 ]
_Thread_Executing->Wait.count
);
}
if ( !_Thread_Executing->Wait.return_code )
200b134: 37 00 80 a0 sethi %hi(0x2028000), %i3
200b138: c2 06 e0 e0 ld [ %i3 + 0xe0 ], %g1 ! 20280e0 <_Thread_Executing>
200b13c: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
200b140: 80 a0 60 00 cmp %g1, 0
200b144: 12 80 00 05 bne 200b158 <_POSIX_Message_queue_Receive_support+0x104>
200b148: 01 00 00 00 nop
return length_out;
200b14c: f0 07 bf f8 ld [ %fp + -8 ], %i0
200b150: 81 c7 e0 08 ret
200b154: 81 e8 00 00 restore
rtems_set_errno_and_return_minus_one(
200b158: 40 00 30 d1 call 201749c <__errno>
200b15c: 01 00 00 00 nop
200b160: c2 06 e0 e0 ld [ %i3 + 0xe0 ], %g1
200b164: b4 10 00 08 mov %o0, %i2
200b168: 40 00 00 9b call 200b3d4 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
200b16c: d0 00 60 34 ld [ %g1 + 0x34 ], %o0
200b170: d0 26 80 00 st %o0, [ %i2 ]
200b174: 81 c7 e0 08 ret
200b178: 91 e8 3f ff restore %g0, -1, %o0
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
200b17c: 40 00 30 c8 call 201749c <__errno>
200b180: b0 10 3f ff mov -1, %i0
200b184: 82 10 20 09 mov 9, %g1
200b188: c2 22 00 00 st %g1, [ %o0 ]
}
200b18c: 81 c7 e0 08 ret
200b190: 81 e8 00 00 restore
0200ca24 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>:
Thread_Control *the_thread
)
{
POSIX_API_Control *thread_support;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
200ca24: c2 02 21 6c ld [ %o0 + 0x16c ], %g1
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
200ca28: c4 00 60 d4 ld [ %g1 + 0xd4 ], %g2
200ca2c: 80 a0 a0 00 cmp %g2, 0
200ca30: 12 80 00 12 bne 200ca78 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54><== NEVER TAKEN
200ca34: 01 00 00 00 nop
thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
200ca38: c4 00 60 d8 ld [ %g1 + 0xd8 ], %g2
200ca3c: 80 a0 a0 01 cmp %g2, 1
200ca40: 12 80 00 0e bne 200ca78 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54>
200ca44: 01 00 00 00 nop
thread_support->cancelation_requested ) {
200ca48: c2 00 60 dc ld [ %g1 + 0xdc ], %g1
200ca4c: 80 a0 60 00 cmp %g1, 0
200ca50: 02 80 00 0a be 200ca78 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x54>
200ca54: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
200ca58: 03 00 80 7e sethi %hi(0x201f800), %g1
200ca5c: c4 00 60 90 ld [ %g1 + 0x90 ], %g2 ! 201f890 <_Thread_Dispatch_disable_level>
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
200ca60: 92 10 3f ff mov -1, %o1
200ca64: 84 00 bf ff add %g2, -1, %g2
200ca68: c4 20 60 90 st %g2, [ %g1 + 0x90 ]
200ca6c: 82 13 c0 00 mov %o7, %g1
200ca70: 40 00 01 b9 call 200d154 <_POSIX_Thread_Exit>
200ca74: 9e 10 40 00 mov %g1, %o7
} else
_Thread_Enable_dispatch();
200ca78: 82 13 c0 00 mov %o7, %g1
200ca7c: 7f ff ef c1 call 2008980 <_Thread_Enable_dispatch>
200ca80: 9e 10 40 00 mov %g1, %o7
0200de44 <_POSIX_Thread_Translate_sched_param>:
int policy,
struct sched_param *param,
Thread_CPU_budget_algorithms *budget_algorithm,
Thread_CPU_budget_algorithm_callout *budget_callout
)
{
200de44: 9d e3 bf a0 save %sp, -96, %sp
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
200de48: 7f ff ff f4 call 200de18 <_POSIX_Priority_Is_valid>
200de4c: d0 06 40 00 ld [ %i1 ], %o0
200de50: 80 8a 20 ff btst 0xff, %o0
200de54: 02 80 00 37 be 200df30 <_POSIX_Thread_Translate_sched_param+0xec><== NEVER TAKEN
200de58: 80 a6 20 00 cmp %i0, 0
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
200de5c: c0 26 80 00 clr [ %i2 ]
*budget_callout = NULL;
if ( policy == SCHED_OTHER ) {
200de60: 12 80 00 06 bne 200de78 <_POSIX_Thread_Translate_sched_param+0x34>
200de64: c0 26 c0 00 clr [ %i3 ]
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
200de68: 82 10 20 01 mov 1, %g1
200de6c: c2 26 80 00 st %g1, [ %i2 ]
return 0;
200de70: 81 c7 e0 08 ret
200de74: 81 e8 00 00 restore
}
if ( policy == SCHED_FIFO ) {
200de78: 80 a6 20 01 cmp %i0, 1
200de7c: 12 80 00 04 bne 200de8c <_POSIX_Thread_Translate_sched_param+0x48>
200de80: 80 a6 20 02 cmp %i0, 2
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
200de84: 10 80 00 29 b 200df28 <_POSIX_Thread_Translate_sched_param+0xe4>
200de88: c0 26 80 00 clr [ %i2 ]
return 0;
}
if ( policy == SCHED_RR ) {
200de8c: 12 80 00 04 bne 200de9c <_POSIX_Thread_Translate_sched_param+0x58>
200de90: 80 a6 20 04 cmp %i0, 4
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
200de94: 10 80 00 25 b 200df28 <_POSIX_Thread_Translate_sched_param+0xe4>
200de98: f0 26 80 00 st %i0, [ %i2 ]
return 0;
}
if ( policy == SCHED_SPORADIC ) {
200de9c: 12 80 00 25 bne 200df30 <_POSIX_Thread_Translate_sched_param+0xec>
200dea0: 01 00 00 00 nop
if ( (param->sched_ss_repl_period.tv_sec == 0) &&
200dea4: c2 06 60 08 ld [ %i1 + 8 ], %g1
200dea8: 80 a0 60 00 cmp %g1, 0
200deac: 32 80 00 07 bne,a 200dec8 <_POSIX_Thread_Translate_sched_param+0x84>
200deb0: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
(param->sched_ss_repl_period.tv_nsec == 0) )
200deb4: c2 06 60 0c ld [ %i1 + 0xc ], %g1
200deb8: 80 a0 60 00 cmp %g1, 0
200debc: 02 80 00 1d be 200df30 <_POSIX_Thread_Translate_sched_param+0xec>
200dec0: 01 00 00 00 nop
return EINVAL;
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
200dec4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
200dec8: 80 a0 60 00 cmp %g1, 0
200decc: 12 80 00 06 bne 200dee4 <_POSIX_Thread_Translate_sched_param+0xa0>
200ded0: 01 00 00 00 nop
(param->sched_ss_init_budget.tv_nsec == 0) )
200ded4: c2 06 60 14 ld [ %i1 + 0x14 ], %g1
200ded8: 80 a0 60 00 cmp %g1, 0
200dedc: 02 80 00 15 be 200df30 <_POSIX_Thread_Translate_sched_param+0xec>
200dee0: 01 00 00 00 nop
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
200dee4: 7f ff f1 fa call 200a6cc <_Timespec_To_ticks>
200dee8: 90 06 60 08 add %i1, 8, %o0
200deec: b0 10 00 08 mov %o0, %i0
200def0: 7f ff f1 f7 call 200a6cc <_Timespec_To_ticks>
200def4: 90 06 60 10 add %i1, 0x10, %o0
200def8: 80 a6 00 08 cmp %i0, %o0
200defc: 0a 80 00 0d bcs 200df30 <_POSIX_Thread_Translate_sched_param+0xec>
200df00: 01 00 00 00 nop
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
200df04: 7f ff ff c5 call 200de18 <_POSIX_Priority_Is_valid>
200df08: d0 06 60 04 ld [ %i1 + 4 ], %o0
200df0c: 80 8a 20 ff btst 0xff, %o0
200df10: 02 80 00 08 be 200df30 <_POSIX_Thread_Translate_sched_param+0xec>
200df14: 82 10 20 03 mov 3, %g1
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;
200df18: c2 26 80 00 st %g1, [ %i2 ]
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
200df1c: 03 00 80 1a sethi %hi(0x2006800), %g1
200df20: 82 10 62 dc or %g1, 0x2dc, %g1 ! 2006adc <_POSIX_Threads_Sporadic_budget_callout>
200df24: c2 26 c0 00 st %g1, [ %i3 ]
return 0;
200df28: 81 c7 e0 08 ret
200df2c: 91 e8 20 00 restore %g0, 0, %o0
}
return EINVAL;
}
200df30: 81 c7 e0 08 ret
200df34: 91 e8 20 16 restore %g0, 0x16, %o0
0200cb3c <_POSIX_Threads_Delete_extension>:
*/
void _POSIX_Threads_Delete_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *deleted
)
{
200cb3c: 9d e3 bf a0 save %sp, -96, %sp
Thread_Control *the_thread;
POSIX_API_Control *api;
void **value_ptr;
api = deleted->API_Extensions[ THREAD_API_POSIX ];
200cb40: f0 06 61 6c ld [ %i1 + 0x16c ], %i0
/*
* Run the POSIX cancellation handlers
*/
_POSIX_Threads_cancel_run( deleted );
200cb44: 40 00 0b 98 call 200f9a4 <_POSIX_Threads_cancel_run>
200cb48: 90 10 00 19 mov %i1, %o0
/*
* Run all the key destructors
*/
_POSIX_Keys_Run_destructors( deleted );
200cb4c: 90 10 00 19 mov %i1, %o0
200cb50: 40 00 0b af call 200fa0c <_POSIX_Keys_Run_destructors>
200cb54: a2 06 20 40 add %i0, 0x40, %l1
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
200cb58: 10 80 00 03 b 200cb64 <_POSIX_Threads_Delete_extension+0x28>
200cb5c: e0 06 60 28 ld [ %i1 + 0x28 ], %l0
*(void **)the_thread->Wait.return_argument = value_ptr;
200cb60: e0 20 40 00 st %l0, [ %g1 ] <== NOT EXECUTED
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
200cb64: 7f ff ef b2 call 2008a2c <_Thread_queue_Dequeue>
200cb68: 90 10 00 11 mov %l1, %o0
200cb6c: 80 a2 20 00 cmp %o0, 0
200cb70: 32 bf ff fc bne,a 200cb60 <_POSIX_Threads_Delete_extension+0x24><== NEVER TAKEN
200cb74: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
*(void **)the_thread->Wait.return_argument = value_ptr;
if ( api->schedpolicy == SCHED_SPORADIC )
200cb78: c2 06 20 80 ld [ %i0 + 0x80 ], %g1
200cb7c: 80 a0 60 04 cmp %g1, 4
200cb80: 32 80 00 05 bne,a 200cb94 <_POSIX_Threads_Delete_extension+0x58>
200cb84: c0 26 61 6c clr [ %i1 + 0x16c ]
(void) _Watchdog_Remove( &api->Sporadic_timer );
200cb88: 7f ff f3 6f call 2009944 <_Watchdog_Remove>
200cb8c: 90 06 20 a4 add %i0, 0xa4, %o0
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
200cb90: c0 26 61 6c clr [ %i1 + 0x16c ]
(void) _Workspace_Free( api );
200cb94: 7f ff f3 d6 call 2009aec <_Workspace_Free>
200cb98: 81 e8 00 00 restore
02006840 <_POSIX_Threads_Initialize_user_threads_body>:
*
* Output parameters: NONE
*/
void _POSIX_Threads_Initialize_user_threads_body(void)
{
2006840: 9d e3 bf 60 save %sp, -160, %sp
uint32_t maximum;
posix_initialization_threads_table *user_threads;
pthread_t thread_id;
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
2006844: 03 00 80 7b sethi %hi(0x201ec00), %g1
2006848: 82 10 60 2c or %g1, 0x2c, %g1 ! 201ec2c <Configuration_POSIX_API>
maximum = Configuration_POSIX_API.number_of_initialization_threads;
200684c: e6 00 60 30 ld [ %g1 + 0x30 ], %l3
if ( !user_threads || maximum == 0 )
2006850: 80 a4 e0 00 cmp %l3, 0
2006854: 02 80 00 1d be 20068c8 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
2006858: e2 00 60 34 ld [ %g1 + 0x34 ], %l1
200685c: 80 a4 60 00 cmp %l1, 0
2006860: 02 80 00 1a be 20068c8 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
2006864: a4 10 20 00 clr %l2
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
2006868: a0 07 bf c0 add %fp, -64, %l0
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
status = pthread_create(
200686c: a8 07 bf fc add %fp, -4, %l4
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
2006870: 40 00 1d b2 call 200df38 <pthread_attr_init>
2006874: 90 10 00 10 mov %l0, %o0
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
2006878: 92 10 20 02 mov 2, %o1
200687c: 40 00 1d ba call 200df64 <pthread_attr_setinheritsched>
2006880: 90 10 00 10 mov %l0, %o0
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
2006884: d2 04 60 04 ld [ %l1 + 4 ], %o1
2006888: 40 00 1d c7 call 200dfa4 <pthread_attr_setstacksize>
200688c: 90 10 00 10 mov %l0, %o0
status = pthread_create(
2006890: d4 04 40 00 ld [ %l1 ], %o2
2006894: 90 10 00 14 mov %l4, %o0
2006898: 92 10 00 10 mov %l0, %o1
200689c: 7f ff ff 14 call 20064ec <pthread_create>
20068a0: 96 10 20 00 clr %o3
&thread_id,
&attr,
user_threads[ index ].thread_entry,
NULL
);
if ( status )
20068a4: 94 92 20 00 orcc %o0, 0, %o2
20068a8: 22 80 00 05 be,a 20068bc <_POSIX_Threads_Initialize_user_threads_body+0x7c>
20068ac: a4 04 a0 01 inc %l2
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
20068b0: 90 10 20 02 mov 2, %o0
20068b4: 40 00 07 de call 200882c <_Internal_error_Occurred>
20068b8: 92 10 20 01 mov 1, %o1
*
* Setting the attributes explicitly is critical, since we don't want
* to inherit the idle tasks attributes.
*/
for ( index=0 ; index < maximum ; index++ ) {
20068bc: 80 a4 80 13 cmp %l2, %l3
20068c0: 0a bf ff ec bcs 2006870 <_POSIX_Threads_Initialize_user_threads_body+0x30><== NEVER TAKEN
20068c4: a2 04 60 08 add %l1, 8, %l1
20068c8: 81 c7 e0 08 ret
20068cc: 81 e8 00 00 restore
0200ccf8 <_POSIX_Threads_Sporadic_budget_TSR>:
*/
void _POSIX_Threads_Sporadic_budget_TSR(
Objects_Id id __attribute__((unused)),
void *argument
)
{
200ccf8: 9d e3 bf a0 save %sp, -96, %sp
Thread_Control *the_thread;
POSIX_API_Control *api;
the_thread = argument;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
200ccfc: e0 06 61 6c ld [ %i1 + 0x16c ], %l0
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
200cd00: 40 00 04 5a call 200de68 <_Timespec_To_ticks>
200cd04: 90 04 20 94 add %l0, 0x94, %o0
200cd08: 03 00 80 75 sethi %hi(0x201d400), %g1
200cd0c: c4 04 20 84 ld [ %l0 + 0x84 ], %g2
200cd10: d2 08 63 54 ldub [ %g1 + 0x354 ], %o1
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
200cd14: c2 06 60 1c ld [ %i1 + 0x1c ], %g1
200cd18: 92 22 40 02 sub %o1, %g2, %o1
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
the_thread->cpu_time_budget = ticks;
200cd1c: d0 26 60 78 st %o0, [ %i1 + 0x78 ]
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
200cd20: 80 a0 60 00 cmp %g1, 0
200cd24: 12 80 00 08 bne 200cd44 <_POSIX_Threads_Sporadic_budget_TSR+0x4c><== NEVER TAKEN
200cd28: d2 26 60 18 st %o1, [ %i1 + 0x18 ]
/*
* If this would make them less important, then do not change it.
*/
if ( the_thread->current_priority > new_priority ) {
200cd2c: c2 06 60 14 ld [ %i1 + 0x14 ], %g1
200cd30: 80 a0 40 09 cmp %g1, %o1
200cd34: 08 80 00 04 bleu 200cd44 <_POSIX_Threads_Sporadic_budget_TSR+0x4c>
200cd38: 90 10 00 19 mov %i1, %o0
_Thread_Change_priority( the_thread, new_priority, true );
200cd3c: 7f ff ec af call 2007ff8 <_Thread_Change_priority>
200cd40: 94 10 20 01 mov 1, %o2
#endif
}
}
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
200cd44: 40 00 04 49 call 200de68 <_Timespec_To_ticks>
200cd48: 90 04 20 8c add %l0, 0x8c, %o0
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
200cd4c: 31 00 80 78 sethi %hi(0x201e000), %i0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
200cd50: d0 24 20 b0 st %o0, [ %l0 + 0xb0 ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
200cd54: b2 04 20 a4 add %l0, 0xa4, %i1
200cd58: 7f ff f2 9f call 20097d4 <_Watchdog_Insert>
200cd5c: 91 ee 23 70 restore %i0, 0x370, %o0
0200cca8 <_POSIX_Threads_Sporadic_budget_callout>:
)
{
POSIX_API_Control *api;
uint32_t new_priority;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
200cca8: c4 02 21 6c ld [ %o0 + 0x16c ], %g2
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
200ccac: c6 00 a0 88 ld [ %g2 + 0x88 ], %g3
200ccb0: 05 00 80 75 sethi %hi(0x201d400), %g2
200ccb4: d2 08 a3 54 ldub [ %g2 + 0x354 ], %o1 ! 201d754 <rtems_maximum_priority>
*/
#if 0
printk( "callout %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
200ccb8: c4 02 20 1c ld [ %o0 + 0x1c ], %g2
200ccbc: 92 22 40 03 sub %o1, %g3, %o1
/*
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
200ccc0: 86 10 3f ff mov -1, %g3
new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
the_thread->real_priority = new_priority;
200ccc4: d2 22 20 18 st %o1, [ %o0 + 0x18 ]
*/
#if 0
printk( "callout %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
200ccc8: 80 a0 a0 00 cmp %g2, 0
200cccc: 12 80 00 09 bne 200ccf0 <_POSIX_Threads_Sporadic_budget_callout+0x48><== NEVER TAKEN
200ccd0: c6 22 20 78 st %g3, [ %o0 + 0x78 ]
/*
* Make sure we are actually lowering it. If they have lowered it
* to logically lower than sched_ss_low_priority, then we do not want to
* change it.
*/
if ( the_thread->current_priority < new_priority ) {
200ccd4: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
200ccd8: 80 a0 40 09 cmp %g1, %o1
200ccdc: 1a 80 00 05 bcc 200ccf0 <_POSIX_Threads_Sporadic_budget_callout+0x48><== NEVER TAKEN
200cce0: 94 10 20 01 mov 1, %o2
_Thread_Change_priority( the_thread, new_priority, true );
200cce4: 82 13 c0 00 mov %o7, %g1
200cce8: 7f ff ec c4 call 2007ff8 <_Thread_Change_priority>
200ccec: 9e 10 40 00 mov %g1, %o7
200ccf0: 81 c3 e0 08 retl <== NOT EXECUTED
020064cc <_POSIX_Timer_TSR>:
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
20064cc: 9d e3 bf a0 save %sp, -96, %sp
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
20064d0: c4 06 60 68 ld [ %i1 + 0x68 ], %g2
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
20064d4: c2 06 60 54 ld [ %i1 + 0x54 ], %g1
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
20064d8: 84 00 a0 01 inc %g2
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
20064dc: 80 a0 60 00 cmp %g1, 0
20064e0: 12 80 00 06 bne 20064f8 <_POSIX_Timer_TSR+0x2c>
20064e4: c4 26 60 68 st %g2, [ %i1 + 0x68 ]
( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {
20064e8: c2 06 60 58 ld [ %i1 + 0x58 ], %g1
20064ec: 80 a0 60 00 cmp %g1, 0
20064f0: 02 80 00 0f be 200652c <_POSIX_Timer_TSR+0x60> <== NEVER TAKEN
20064f4: 82 10 20 04 mov 4, %g1
activated = _POSIX_Timer_Insert_helper(
20064f8: d2 06 60 64 ld [ %i1 + 0x64 ], %o1
20064fc: d4 06 60 08 ld [ %i1 + 8 ], %o2
2006500: 90 06 60 10 add %i1, 0x10, %o0
2006504: 17 00 80 19 sethi %hi(0x2006400), %o3
2006508: 98 10 00 19 mov %i1, %o4
200650c: 40 00 1d 49 call 200da30 <_POSIX_Timer_Insert_helper>
2006510: 96 12 e0 cc or %o3, 0xcc, %o3
ptimer->ticks,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated )
2006514: 80 8a 20 ff btst 0xff, %o0
2006518: 02 80 00 0a be 2006540 <_POSIX_Timer_TSR+0x74> <== NEVER TAKEN
200651c: 01 00 00 00 nop
return;
/* Store the time when the timer was started again */
_TOD_Get( &ptimer->time );
2006520: 40 00 05 c5 call 2007c34 <_TOD_Get>
2006524: 90 06 60 6c add %i1, 0x6c, %o0
2006528: 82 10 20 03 mov 3, %g1
/*
* The sending of the signal to the process running the handling function
* specified for that signal is simulated
*/
if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
200652c: d0 06 60 38 ld [ %i1 + 0x38 ], %o0
2006530: d2 06 60 44 ld [ %i1 + 0x44 ], %o1
2006534: 40 00 1c 2a call 200d5dc <pthread_kill>
2006538: c2 2e 60 3c stb %g1, [ %i1 + 0x3c ]
}
/* After the signal handler returns, the count of expirations of the
* timer must be set to 0.
*/
ptimer->overrun = 0;
200653c: c0 26 60 68 clr [ %i1 + 0x68 ]
2006540: 81 c7 e0 08 ret
2006544: 81 e8 00 00 restore
0200fd94 <_POSIX_signals_Check_signal>:
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
200fd94: 9d e3 bf 90 save %sp, -112, %sp
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
200fd98: 98 10 20 01 mov 1, %o4
200fd9c: 96 0e a0 ff and %i2, 0xff, %o3
200fda0: a0 07 bf f4 add %fp, -12, %l0
200fda4: 90 10 00 18 mov %i0, %o0
200fda8: 92 10 00 19 mov %i1, %o1
200fdac: 40 00 00 22 call 200fe34 <_POSIX_signals_Clear_signals>
200fdb0: 94 10 00 10 mov %l0, %o2
200fdb4: 80 8a 20 ff btst 0xff, %o0
200fdb8: 02 80 00 1d be 200fe2c <_POSIX_signals_Check_signal+0x98>
200fdbc: 83 2e 60 02 sll %i1, 2, %g1
#endif
/*
* Just to prevent sending a signal which is currently being ignored.
*/
if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )
200fdc0: 07 00 80 7a sethi %hi(0x201e800), %g3
200fdc4: 85 2e 60 04 sll %i1, 4, %g2
200fdc8: 86 10 e0 18 or %g3, 0x18, %g3
200fdcc: 84 20 80 01 sub %g2, %g1, %g2
200fdd0: 88 00 c0 02 add %g3, %g2, %g4
200fdd4: c2 01 20 08 ld [ %g4 + 8 ], %g1
200fdd8: 80 a0 60 01 cmp %g1, 1
200fddc: 02 80 00 14 be 200fe2c <_POSIX_signals_Check_signal+0x98> <== NEVER TAKEN
200fde0: 01 00 00 00 nop
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
200fde4: c8 01 20 04 ld [ %g4 + 4 ], %g4
return false;
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
200fde8: e2 06 20 cc ld [ %i0 + 0xcc ], %l1
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
/*
* Here, the signal handler function executes
*/
switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {
200fdec: c4 00 c0 02 ld [ %g3 + %g2 ], %g2
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
200fdf0: 86 11 00 11 or %g4, %l1, %g3
/*
* Here, the signal handler function executes
*/
switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {
200fdf4: 80 a0 a0 02 cmp %g2, 2
200fdf8: 12 80 00 08 bne 200fe18 <_POSIX_signals_Check_signal+0x84>
200fdfc: c6 26 20 cc st %g3, [ %i0 + 0xcc ]
case SA_SIGINFO:
(*_POSIX_signals_Vectors[ signo ].sa_sigaction)(
200fe00: 90 10 00 19 mov %i1, %o0
200fe04: 92 10 00 10 mov %l0, %o1
200fe08: 9f c0 40 00 call %g1
200fe0c: 94 10 20 00 clr %o2
signo,
&siginfo_struct,
NULL /* context is undefined per 1003.1b-1993, p. 66 */
);
break;
200fe10: 10 80 00 05 b 200fe24 <_POSIX_signals_Check_signal+0x90>
200fe14: e2 26 20 cc st %l1, [ %i0 + 0xcc ]
default:
(*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );
200fe18: 9f c0 40 00 call %g1
200fe1c: 90 10 00 19 mov %i1, %o0
}
/*
* Restore the previous set of blocked signals
*/
api->signals_blocked = saved_signals_blocked;
200fe20: e2 26 20 cc st %l1, [ %i0 + 0xcc ]
return true;
200fe24: 81 c7 e0 08 ret
200fe28: 91 e8 20 01 restore %g0, 1, %o0
}
200fe2c: 81 c7 e0 08 ret
200fe30: 91 e8 20 00 restore %g0, 0, %o0
0201083c <_POSIX_signals_Clear_process_signals>:
*/
void _POSIX_signals_Clear_process_signals(
int signo
)
{
201083c: 9d e3 bf a0 save %sp, -96, %sp
clear_signal = true;
mask = signo_to_mask( signo );
ISR_Level level;
_ISR_Disable( level );
2010840: 7f ff c5 e1 call 2001fc4 <sparc_disable_interrupts>
2010844: 01 00 00 00 nop
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
2010848: 85 2e 20 04 sll %i0, 4, %g2
201084c: 83 2e 20 02 sll %i0, 2, %g1
2010850: 82 20 80 01 sub %g2, %g1, %g1
2010854: 05 00 80 7a sethi %hi(0x201e800), %g2
2010858: 84 10 a0 18 or %g2, 0x18, %g2 ! 201e818 <_POSIX_signals_Vectors>
201085c: c4 00 80 01 ld [ %g2 + %g1 ], %g2
2010860: 80 a0 a0 02 cmp %g2, 2
2010864: 12 80 00 0a bne 201088c <_POSIX_signals_Clear_process_signals+0x50>
2010868: 05 00 80 7a sethi %hi(0x201e800), %g2
if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )
201086c: 05 00 80 7a sethi %hi(0x201e800), %g2
2010870: 84 10 a2 10 or %g2, 0x210, %g2 ! 201ea10 <_POSIX_signals_Siginfo>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2010874: c6 00 40 02 ld [ %g1 + %g2 ], %g3
2010878: 82 00 40 02 add %g1, %g2, %g1
201087c: 82 00 60 04 add %g1, 4, %g1
2010880: 80 a0 c0 01 cmp %g3, %g1
2010884: 12 80 00 0e bne 20108bc <_POSIX_signals_Clear_process_signals+0x80><== NEVER TAKEN
2010888: 05 00 80 7a sethi %hi(0x201e800), %g2
clear_signal = false;
}
if ( clear_signal ) {
_POSIX_signals_Pending &= ~mask;
201088c: c6 00 a2 0c ld [ %g2 + 0x20c ], %g3 ! 201ea0c <_POSIX_signals_Pending>
2010890: b0 06 3f ff add %i0, -1, %i0
2010894: 82 10 20 01 mov 1, %g1
2010898: 83 28 40 18 sll %g1, %i0, %g1
201089c: 82 28 c0 01 andn %g3, %g1, %g1
if ( !_POSIX_signals_Pending )
20108a0: 80 a0 60 00 cmp %g1, 0
20108a4: 12 80 00 06 bne 20108bc <_POSIX_signals_Clear_process_signals+0x80><== NEVER TAKEN
20108a8: c2 20 a2 0c st %g1, [ %g2 + 0x20c ]
_Thread_Do_post_task_switch_extension--;
20108ac: 03 00 80 78 sethi %hi(0x201e000), %g1
20108b0: c4 00 63 34 ld [ %g1 + 0x334 ], %g2 ! 201e334 <_Thread_Do_post_task_switch_extension>
20108b4: 84 00 bf ff add %g2, -1, %g2
20108b8: c4 20 63 34 st %g2, [ %g1 + 0x334 ]
}
_ISR_Enable( level );
20108bc: 7f ff c5 c6 call 2001fd4 <sparc_enable_interrupts>
20108c0: 91 e8 00 08 restore %g0, %o0, %o0
02006fe4 <_POSIX_signals_Get_highest>:
#include <rtems/score/isr.h>
int _POSIX_signals_Get_highest(
sigset_t set
)
{
2006fe4: 82 10 20 1b mov 0x1b, %g1 ! 1b <PROM_START+0x1b>
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
2006fe8: 84 10 20 01 mov 1, %g2
2006fec: 86 00 7f ff add %g1, -1, %g3
2006ff0: 87 28 80 03 sll %g2, %g3, %g3
2006ff4: 80 88 c0 08 btst %g3, %o0
2006ff8: 12 80 00 11 bne 200703c <_POSIX_signals_Get_highest+0x58> <== NEVER TAKEN
2006ffc: 01 00 00 00 nop
sigset_t set
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
2007000: 82 00 60 01 inc %g1
2007004: 80 a0 60 20 cmp %g1, 0x20
2007008: 12 bf ff fa bne 2006ff0 <_POSIX_signals_Get_highest+0xc>
200700c: 86 00 7f ff add %g1, -1, %g3
2007010: 82 10 20 01 mov 1, %g1
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
2007014: 84 10 20 01 mov 1, %g2
2007018: 86 00 7f ff add %g1, -1, %g3
200701c: 87 28 80 03 sll %g2, %g3, %g3
2007020: 80 88 c0 08 btst %g3, %o0
2007024: 12 80 00 06 bne 200703c <_POSIX_signals_Get_highest+0x58>
2007028: 01 00 00 00 nop
*/
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
200702c: 82 00 60 01 inc %g1
2007030: 80 a0 60 1b cmp %g1, 0x1b
2007034: 12 bf ff fa bne 200701c <_POSIX_signals_Get_highest+0x38> <== ALWAYS TAKEN
2007038: 86 00 7f ff add %g1, -1, %g3
* a return 0. This routine will NOT be called unless a signal
* is pending in the set passed in.
*/
found_it:
return signo;
}
200703c: 81 c3 e0 08 retl
2007040: 90 10 00 01 mov %g1, %o0
0200c980 <_POSIX_signals_Post_switch_extension>:
*/
void _POSIX_signals_Post_switch_extension(
Thread_Control *the_thread
)
{
200c980: 9d e3 bf a0 save %sp, -96, %sp
/*
* We need to ensure that if the signal handler executes a call
* which overwrites the unblocking status, we restore it.
*/
hold_errno = _Thread_Executing->Wait.return_code;
200c984: 03 00 80 78 sethi %hi(0x201e000), %g1
POSIX_API_Control *api;
int signo;
ISR_Level level;
int hold_errno;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
200c988: e0 06 21 6c ld [ %i0 + 0x16c ], %l0
/*
* We need to ensure that if the signal handler executes a call
* which overwrites the unblocking status, we restore it.
*/
hold_errno = _Thread_Executing->Wait.return_code;
200c98c: c2 00 63 50 ld [ %g1 + 0x350 ], %g1
/*
* api may be NULL in case of a thread close in progress
*/
if ( !api )
200c990: 80 a4 20 00 cmp %l0, 0
200c994: 02 80 00 12 be 200c9dc <_POSIX_signals_Post_switch_extension+0x5c><== NEVER TAKEN
200c998: e4 00 60 34 ld [ %g1 + 0x34 ], %l2
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
200c99c: 27 00 80 7a sethi %hi(0x201e800), %l3
200c9a0: a6 14 e2 0c or %l3, 0x20c, %l3 ! 201ea0c <_POSIX_signals_Pending>
*
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
200c9a4: 7f ff d5 88 call 2001fc4 <sparc_disable_interrupts>
200c9a8: 01 00 00 00 nop
if ( !(~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending)) ) {
200c9ac: c6 04 c0 00 ld [ %l3 ], %g3
200c9b0: c2 04 20 d0 ld [ %l0 + 0xd0 ], %g1
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
200c9b4: c4 04 20 cc ld [ %l0 + 0xcc ], %g2
(api->signals_pending | _POSIX_signals_Pending)) ) {
200c9b8: 82 10 c0 01 or %g3, %g1, %g1
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
200c9bc: 80 a8 40 02 andncc %g1, %g2, %g0
200c9c0: 12 80 00 09 bne 200c9e4 <_POSIX_signals_Post_switch_extension+0x64>
200c9c4: 01 00 00 00 nop
(api->signals_pending | _POSIX_signals_Pending)) ) {
_ISR_Enable( level );
200c9c8: 7f ff d5 83 call 2001fd4 <sparc_enable_interrupts>
200c9cc: 01 00 00 00 nop
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
}
_Thread_Executing->Wait.return_code = hold_errno;
200c9d0: 03 00 80 78 sethi %hi(0x201e000), %g1
200c9d4: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
200c9d8: e4 20 60 34 st %l2, [ %g1 + 0x34 ]
200c9dc: 81 c7 e0 08 ret
200c9e0: 81 e8 00 00 restore
if ( !(~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending)) ) {
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
200c9e4: 7f ff d5 7c call 2001fd4 <sparc_enable_interrupts>
200c9e8: a2 10 20 1b mov 0x1b, %l1
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
200c9ec: 92 10 00 11 mov %l1, %o1
200c9f0: 94 10 20 00 clr %o2
200c9f4: 40 00 0c e8 call 200fd94 <_POSIX_signals_Check_signal>
200c9f8: 90 10 00 10 mov %l0, %o0
_POSIX_signals_Check_signal( api, signo, true );
200c9fc: 92 10 00 11 mov %l1, %o1
200ca00: 90 10 00 10 mov %l0, %o0
200ca04: 40 00 0c e4 call 200fd94 <_POSIX_signals_Check_signal>
200ca08: 94 10 20 01 mov 1, %o2
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
200ca0c: a2 04 60 01 inc %l1
200ca10: 80 a4 60 20 cmp %l1, 0x20
200ca14: 12 bf ff f7 bne 200c9f0 <_POSIX_signals_Post_switch_extension+0x70>
200ca18: 92 10 00 11 mov %l1, %o1
200ca1c: a2 10 20 01 mov 1, %l1
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
200ca20: 92 10 00 11 mov %l1, %o1
200ca24: 94 10 20 00 clr %o2
200ca28: 40 00 0c db call 200fd94 <_POSIX_signals_Check_signal>
200ca2c: 90 10 00 10 mov %l0, %o0
_POSIX_signals_Check_signal( api, signo, true );
200ca30: 92 10 00 11 mov %l1, %o1
200ca34: 90 10 00 10 mov %l0, %o0
200ca38: 40 00 0c d7 call 200fd94 <_POSIX_signals_Check_signal>
200ca3c: 94 10 20 01 mov 1, %o2
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
200ca40: a2 04 60 01 inc %l1
200ca44: 80 a4 60 1b cmp %l1, 0x1b
200ca48: 12 bf ff f7 bne 200ca24 <_POSIX_signals_Post_switch_extension+0xa4>
200ca4c: 92 10 00 11 mov %l1, %o1
200ca50: 30 bf ff d5 b,a 200c9a4 <_POSIX_signals_Post_switch_extension+0x24>
0200ff98 <_POSIX_signals_Unblock_thread>:
bool _POSIX_signals_Unblock_thread(
Thread_Control *the_thread,
int signo,
siginfo_t *info
)
{
200ff98: 9d e3 bf a0 save %sp, -96, %sp
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
200ff9c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1
200ffa0: 09 04 00 20 sethi %hi(0x10008000), %g4
200ffa4: 86 06 7f ff add %i1, -1, %g3
200ffa8: 9a 08 40 04 and %g1, %g4, %o5
200ffac: 84 10 20 01 mov 1, %g2
200ffb0: 80 a3 40 04 cmp %o5, %g4
bool _POSIX_signals_Unblock_thread(
Thread_Control *the_thread,
int signo,
siginfo_t *info
)
{
200ffb4: 92 10 00 1a mov %i2, %o1
200ffb8: 87 28 80 03 sll %g2, %g3, %g3
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
200ffbc: 12 80 00 1a bne 2010024 <_POSIX_signals_Unblock_thread+0x8c>
200ffc0: c8 06 21 6c ld [ %i0 + 0x16c ], %g4
if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
200ffc4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
200ffc8: 80 88 c0 01 btst %g3, %g1
200ffcc: 12 80 00 06 bne 200ffe4 <_POSIX_signals_Unblock_thread+0x4c>
200ffd0: 82 10 20 04 mov 4, %g1
200ffd4: c2 01 20 cc ld [ %g4 + 0xcc ], %g1
200ffd8: 80 a8 c0 01 andncc %g3, %g1, %g0
200ffdc: 02 80 00 3d be 20100d0 <_POSIX_signals_Unblock_thread+0x138>
200ffe0: 82 10 20 04 mov 4, %g1
the_thread->Wait.return_code = EINTR;
200ffe4: c2 26 20 34 st %g1, [ %i0 + 0x34 ]
the_info = (siginfo_t *) the_thread->Wait.return_argument;
if ( !info ) {
200ffe8: 80 a2 60 00 cmp %o1, 0
200ffec: 12 80 00 07 bne 2010008 <_POSIX_signals_Unblock_thread+0x70>
200fff0: d0 06 20 28 ld [ %i0 + 0x28 ], %o0
the_info->si_signo = signo;
the_info->si_code = SI_USER;
200fff4: 82 10 20 01 mov 1, %g1
the_thread->Wait.return_code = EINTR;
the_info = (siginfo_t *) the_thread->Wait.return_argument;
if ( !info ) {
the_info->si_signo = signo;
200fff8: f2 22 00 00 st %i1, [ %o0 ]
the_info->si_code = SI_USER;
the_info->si_value.sival_int = 0;
200fffc: c0 22 20 08 clr [ %o0 + 8 ]
the_info = (siginfo_t *) the_thread->Wait.return_argument;
if ( !info ) {
the_info->si_signo = signo;
the_info->si_code = SI_USER;
2010000: 10 80 00 04 b 2010010 <_POSIX_signals_Unblock_thread+0x78>
2010004: c2 22 20 04 st %g1, [ %o0 + 4 ]
the_info->si_value.sival_int = 0;
} else {
*the_info = *info;
2010008: 40 00 04 8c call 2011238 <memcpy>
201000c: 94 10 20 0c mov 0xc, %o2
}
_Thread_queue_Extract_with_proxy( the_thread );
2010010: 90 10 00 18 mov %i0, %o0
2010014: 7f ff e3 74 call 2008de4 <_Thread_queue_Extract_with_proxy>
2010018: b0 10 20 01 mov 1, %i0
return true;
201001c: 81 c7 e0 08 ret
2010020: 81 e8 00 00 restore
}
/*
* Thread is not waiting due to a sigwait.
*/
if ( ~api->signals_blocked & mask ) {
2010024: c8 01 20 cc ld [ %g4 + 0xcc ], %g4
2010028: 80 a8 c0 04 andncc %g3, %g4, %g0
201002c: 02 80 00 29 be 20100d0 <_POSIX_signals_Unblock_thread+0x138>
2010030: 07 04 00 00 sethi %hi(0x10000000), %g3
* + Any other combination, do nothing.
*/
the_thread->do_post_task_switch_extension = true;
if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
2010034: 80 88 40 03 btst %g1, %g3
2010038: 02 80 00 17 be 2010094 <_POSIX_signals_Unblock_thread+0xfc>
201003c: c4 2e 20 74 stb %g2, [ %i0 + 0x74 ]
the_thread->Wait.return_code = EINTR;
2010040: 84 10 20 04 mov 4, %g2
2010044: c4 26 20 34 st %g2, [ %i0 + 0x34 ]
/*
* In pthread_cond_wait, a thread will be blocking on a thread
* queue, but is also interruptible by a POSIX signal.
*/
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
2010048: 05 00 00 ef sethi %hi(0x3bc00), %g2
201004c: 84 10 a2 e0 or %g2, 0x2e0, %g2 ! 3bee0 <PROM_START+0x3bee0>
2010050: 80 88 40 02 btst %g1, %g2
2010054: 02 80 00 06 be 201006c <_POSIX_signals_Unblock_thread+0xd4>
2010058: 80 88 60 08 btst 8, %g1
_Thread_queue_Extract_with_proxy( the_thread );
201005c: 7f ff e3 62 call 2008de4 <_Thread_queue_Extract_with_proxy>
2010060: 90 10 00 18 mov %i0, %o0
_Thread_Unblock( the_thread );
}
} else if ( the_thread->current_state == STATES_READY ) {
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_ISR_Signals_to_thread_executing = true;
2010064: 81 c7 e0 08 ret
2010068: 91 e8 20 00 restore %g0, 0, %o0
* In pthread_cond_wait, a thread will be blocking on a thread
* queue, but is also interruptible by a POSIX signal.
*/
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
_Thread_queue_Extract_with_proxy( the_thread );
else if ( _States_Is_delaying(the_thread->current_state) ){
201006c: 22 bf ff ec be,a 201001c <_POSIX_signals_Unblock_thread+0x84><== NEVER TAKEN
2010070: b0 10 20 00 clr %i0 <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
2010074: 7f ff e6 34 call 2009944 <_Watchdog_Remove>
2010078: 90 06 20 48 add %i0, 0x48, %o0
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
201007c: 90 10 00 18 mov %i0, %o0
2010080: 13 04 00 ff sethi %hi(0x1003fc00), %o1
2010084: 7f ff e0 56 call 20081dc <_Thread_Clear_state>
2010088: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 <RAM_END+0xdc3fff8>
_Thread_Unblock( the_thread );
}
} else if ( the_thread->current_state == STATES_READY ) {
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_ISR_Signals_to_thread_executing = true;
201008c: 81 c7 e0 08 ret
2010090: 91 e8 20 00 restore %g0, 0, %o0
else if ( _States_Is_delaying(the_thread->current_state) ){
(void) _Watchdog_Remove( &the_thread->Timer );
_Thread_Unblock( the_thread );
}
} else if ( the_thread->current_state == STATES_READY ) {
2010094: 80 a0 60 00 cmp %g1, 0
2010098: 12 80 00 0e bne 20100d0 <_POSIX_signals_Unblock_thread+0x138><== NEVER TAKEN
201009c: 03 00 80 78 sethi %hi(0x201e000), %g1
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
20100a0: c2 00 63 2c ld [ %g1 + 0x32c ], %g1 ! 201e32c <_ISR_Nest_level>
20100a4: 80 a0 60 00 cmp %g1, 0
20100a8: 02 80 00 0a be 20100d0 <_POSIX_signals_Unblock_thread+0x138>
20100ac: 03 00 80 78 sethi %hi(0x201e000), %g1
20100b0: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
20100b4: 80 a6 00 01 cmp %i0, %g1
20100b8: 12 bf ff d9 bne 201001c <_POSIX_signals_Unblock_thread+0x84><== NEVER TAKEN
20100bc: b0 10 20 00 clr %i0
_ISR_Signals_to_thread_executing = true;
20100c0: 03 00 80 78 sethi %hi(0x201e000), %g1
20100c4: c4 28 63 e8 stb %g2, [ %g1 + 0x3e8 ] ! 201e3e8 <_ISR_Signals_to_thread_executing>
20100c8: 81 c7 e0 08 ret
20100cc: 81 e8 00 00 restore
20100d0: b0 10 20 00 clr %i0
}
}
return false;
}
20100d4: 81 c7 e0 08 ret
20100d8: 81 e8 00 00 restore
020012c8 <_Partition_Manager_initialization>:
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
void _Partition_Manager_initialization(void)
{
}
20012c8: 81 c3 e0 08 retl
0200d0f8 <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
200d0f8: 9d e3 bf 98 save %sp, -104, %sp
RTEMS_API_Control *api;
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
200d0fc: e0 06 21 68 ld [ %i0 + 0x168 ], %l0
if ( !api )
200d100: 80 a4 20 00 cmp %l0, 0
200d104: 02 80 00 1d be 200d178 <_RTEMS_tasks_Post_switch_extension+0x80><== NEVER TAKEN
200d108: 01 00 00 00 nop
* Signal Processing
*/
asr = &api->Signal;
_ISR_Disable( level );
200d10c: 7f ff d3 ae call 2001fc4 <sparc_disable_interrupts>
200d110: 01 00 00 00 nop
signal_set = asr->signals_posted;
200d114: e6 04 20 14 ld [ %l0 + 0x14 ], %l3
asr->signals_posted = 0;
200d118: c0 24 20 14 clr [ %l0 + 0x14 ]
_ISR_Enable( level );
200d11c: 7f ff d3 ae call 2001fd4 <sparc_enable_interrupts>
200d120: 01 00 00 00 nop
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
200d124: 80 a4 e0 00 cmp %l3, 0
200d128: 02 80 00 14 be 200d178 <_RTEMS_tasks_Post_switch_extension+0x80>
200d12c: a2 07 bf fc add %fp, -4, %l1
return;
asr->nest_level += 1;
200d130: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d134: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
200d138: 82 00 60 01 inc %g1
200d13c: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d140: 94 10 00 11 mov %l1, %o2
200d144: 25 00 00 3f sethi %hi(0xfc00), %l2
200d148: 40 00 0c 68 call 20102e8 <rtems_task_mode>
200d14c: 92 14 a3 ff or %l2, 0x3ff, %o1 ! ffff <PROM_START+0xffff>
(*asr->handler)( signal_set );
200d150: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200d154: 9f c0 40 00 call %g1
200d158: 90 10 00 13 mov %l3, %o0
asr->nest_level -= 1;
200d15c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d160: d0 07 bf fc ld [ %fp + -4 ], %o0
asr->nest_level += 1;
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
(*asr->handler)( signal_set );
asr->nest_level -= 1;
200d164: 82 00 7f ff add %g1, -1, %g1
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d168: 92 14 a3 ff or %l2, 0x3ff, %o1
asr->nest_level += 1;
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
(*asr->handler)( signal_set );
asr->nest_level -= 1;
200d16c: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
200d170: 40 00 0c 5e call 20102e8 <rtems_task_mode>
200d174: 94 10 00 11 mov %l1, %o2
200d178: 81 c7 e0 08 ret
200d17c: 81 e8 00 00 restore
020012e8 <_Rate_monotonic_Manager_initialization>:
#include <rtems/rtems/types.h>
#include <rtems/rtems/ratemon.h>
void _Rate_monotonic_Manager_initialization(void)
{
}
20012e8: 81 c3 e0 08 retl
020412c4 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
20412c4: 9d e3 bf 98 save %sp, -104, %sp
20412c8: 11 00 81 be sethi %hi(0x206f800), %o0
20412cc: 92 10 00 18 mov %i0, %o1
20412d0: 90 12 20 a8 or %o0, 0xa8, %o0
20412d4: 7f ff 35 60 call 200e854 <_Objects_Get>
20412d8: 94 07 bf fc add %fp, -4, %o2
/*
* When we get here, the Timer is already off the chain so we do not
* have to worry about that -- hence no _Watchdog_Remove().
*/
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
20412dc: c2 07 bf fc ld [ %fp + -4 ], %g1
20412e0: 80 a0 60 00 cmp %g1, 0
20412e4: 12 80 00 26 bne 204137c <_Rate_monotonic_Timeout+0xb8> <== NEVER TAKEN
20412e8: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
the_thread = the_period->owner;
20412ec: d0 02 20 40 ld [ %o0 + 0x40 ], %o0
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
20412f0: 03 00 00 10 sethi %hi(0x4000), %g1
20412f4: c4 02 20 10 ld [ %o0 + 0x10 ], %g2
20412f8: 80 88 80 01 btst %g2, %g1
20412fc: 22 80 00 0c be,a 204132c <_Rate_monotonic_Timeout+0x68>
2041300: c2 04 20 38 ld [ %l0 + 0x38 ], %g1
the_thread->Wait.id == the_period->Object.id ) {
2041304: c4 02 20 20 ld [ %o0 + 0x20 ], %g2
2041308: c2 04 20 08 ld [ %l0 + 8 ], %g1
204130c: 80 a0 80 01 cmp %g2, %g1
2041310: 32 80 00 07 bne,a 204132c <_Rate_monotonic_Timeout+0x68>
2041314: c2 04 20 38 ld [ %l0 + 0x38 ], %g1
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
2041318: 13 04 00 ff sethi %hi(0x1003fc00), %o1
204131c: 7f ff 36 bb call 200ee08 <_Thread_Clear_state>
2041320: 92 12 63 f8 or %o1, 0x3f8, %o1 ! 1003fff8 <RAM_END+0xdc3fff8>
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
2041324: 10 80 00 08 b 2041344 <_Rate_monotonic_Timeout+0x80>
2041328: 90 10 00 10 mov %l0, %o0
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
204132c: 80 a0 60 01 cmp %g1, 1
2041330: 12 80 00 0e bne 2041368 <_Rate_monotonic_Timeout+0xa4>
2041334: 82 10 20 04 mov 4, %g1
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
2041338: 82 10 20 03 mov 3, %g1
_Rate_monotonic_Initiate_statistics( the_period );
204133c: 90 10 00 10 mov %l0, %o0
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
2041340: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
_Rate_monotonic_Initiate_statistics( the_period );
2041344: 7f ff fe ef call 2040f00 <_Rate_monotonic_Initiate_statistics>
2041348: 01 00 00 00 nop
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
204134c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2041350: 92 04 20 10 add %l0, 0x10, %o1
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2041354: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2041358: 11 00 81 bb sethi %hi(0x206ec00), %o0
204135c: 7f ff 3c 3f call 2010458 <_Watchdog_Insert>
2041360: 90 12 22 60 or %o0, 0x260, %o0 ! 206ee60 <_Watchdog_Ticks_chain>
2041364: 30 80 00 02 b,a 204136c <_Rate_monotonic_Timeout+0xa8>
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
2041368: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
204136c: 03 00 81 bb sethi %hi(0x206ec00), %g1
2041370: c4 00 61 80 ld [ %g1 + 0x180 ], %g2 ! 206ed80 <_Thread_Dispatch_disable_level>
2041374: 84 00 bf ff add %g2, -1, %g2
2041378: c4 20 61 80 st %g2, [ %g1 + 0x180 ]
204137c: 81 c7 e0 08 ret
2041380: 81 e8 00 00 restore
020012d0 <_Region_Manager_initialization>:
#include <rtems/score/thread.h>
#include <rtems/score/interr.h>
void _Region_Manager_initialization(void)
{
}
20012d0: 81 c3 e0 08 retl
020073b8 <_TOD_Validate>:
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
20073b8: 9d e3 bf a0 save %sp, -96, %sp
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
20073bc: 03 00 80 8f sethi %hi(0x2023c00), %g1
if ((!the_tod) ||
20073c0: 80 a6 20 00 cmp %i0, 0
20073c4: 02 80 00 2d be 2007478 <_TOD_Validate+0xc0> <== NEVER TAKEN
20073c8: d2 00 62 d4 ld [ %g1 + 0x2d4 ], %o1
(the_tod->ticks >= ticks_per_second) ||
20073cc: 11 00 03 d0 sethi %hi(0xf4000), %o0
20073d0: 40 00 5f cb call 201f2fc <.udiv>
20073d4: 90 12 22 40 or %o0, 0x240, %o0 ! f4240 <PROM_START+0xf4240>
20073d8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
20073dc: 80 a0 40 08 cmp %g1, %o0
20073e0: 1a 80 00 26 bcc 2007478 <_TOD_Validate+0xc0>
20073e4: 01 00 00 00 nop
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
20073e8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1
20073ec: 80 a0 60 3b cmp %g1, 0x3b
20073f0: 18 80 00 22 bgu 2007478 <_TOD_Validate+0xc0>
20073f4: 01 00 00 00 nop
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
20073f8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1
20073fc: 80 a0 60 3b cmp %g1, 0x3b
2007400: 18 80 00 1e bgu 2007478 <_TOD_Validate+0xc0>
2007404: 01 00 00 00 nop
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
2007408: c2 06 20 0c ld [ %i0 + 0xc ], %g1
200740c: 80 a0 60 17 cmp %g1, 0x17
2007410: 18 80 00 1a bgu 2007478 <_TOD_Validate+0xc0>
2007414: 01 00 00 00 nop
(the_tod->month == 0) ||
2007418: c2 06 20 04 ld [ %i0 + 4 ], %g1
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
200741c: 80 a0 60 00 cmp %g1, 0
2007420: 02 80 00 16 be 2007478 <_TOD_Validate+0xc0> <== NEVER TAKEN
2007424: 80 a0 60 0c cmp %g1, 0xc
2007428: 18 80 00 14 bgu 2007478 <_TOD_Validate+0xc0>
200742c: 01 00 00 00 nop
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
2007430: c6 06 00 00 ld [ %i0 ], %g3
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
2007434: 80 a0 e7 c3 cmp %g3, 0x7c3
2007438: 08 80 00 10 bleu 2007478 <_TOD_Validate+0xc0>
200743c: 01 00 00 00 nop
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
2007440: c4 06 20 08 ld [ %i0 + 8 ], %g2
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
2007444: 80 a0 a0 00 cmp %g2, 0
2007448: 02 80 00 0c be 2007478 <_TOD_Validate+0xc0> <== NEVER TAKEN
200744c: 80 88 e0 03 btst 3, %g3
2007450: 07 00 80 88 sethi %hi(0x2022000), %g3
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
2007454: 12 80 00 03 bne 2007460 <_TOD_Validate+0xa8>
2007458: 86 10 e3 d4 or %g3, 0x3d4, %g3 ! 20223d4 <_TOD_Days_per_month>
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
200745c: 82 00 60 0d add %g1, 0xd, %g1
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
2007460: 83 28 60 02 sll %g1, 2, %g1
2007464: c2 00 c0 01 ld [ %g3 + %g1 ], %g1
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
2007468: 80 a0 40 02 cmp %g1, %g2
200746c: b0 60 3f ff subx %g0, -1, %i0
2007470: 81 c7 e0 08 ret
2007474: 81 e8 00 00 restore
if ( the_tod->day > days_in_month )
return false;
return true;
}
2007478: 81 c7 e0 08 ret
200747c: 91 e8 20 00 restore %g0, 0, %o0
02007ff8 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
2007ff8: 9d e3 bf a0 save %sp, -96, %sp
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
2007ffc: e2 06 20 10 ld [ %i0 + 0x10 ], %l1
/*
* Set a transient state for the thread so it is pulled off the Ready chains.
* This will prevent it from being scheduled no matter what happens in an
* ISR.
*/
_Thread_Set_transient( the_thread );
2008000: 40 00 04 4e call 2009138 <_Thread_Set_transient>
2008004: 90 10 00 18 mov %i0, %o0
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.
*/
if ( the_thread->current_priority != new_priority )
2008008: c2 06 20 14 ld [ %i0 + 0x14 ], %g1
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
200800c: a0 10 00 18 mov %i0, %l0
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.
*/
if ( the_thread->current_priority != new_priority )
2008010: 80 a0 40 19 cmp %g1, %i1
2008014: 02 80 00 04 be 2008024 <_Thread_Change_priority+0x2c>
2008018: 92 10 00 19 mov %i1, %o1
_Thread_Set_priority( the_thread, new_priority );
200801c: 40 00 03 ca call 2008f44 <_Thread_Set_priority>
2008020: 90 10 00 18 mov %i0, %o0
_ISR_Disable( level );
2008024: 7f ff e7 e8 call 2001fc4 <sparc_disable_interrupts>
2008028: 01 00 00 00 nop
200802c: b0 10 00 08 mov %o0, %i0
/*
* If the thread has more than STATES_TRANSIENT set, then it is blocked,
* If it is blocked on a thread queue, then we need to requeue it.
*/
state = the_thread->current_state;
2008030: e4 04 20 10 ld [ %l0 + 0x10 ], %l2
if ( state != STATES_TRANSIENT ) {
2008034: 80 a4 a0 04 cmp %l2, 4
2008038: 02 80 00 10 be 2008078 <_Thread_Change_priority+0x80>
200803c: a2 0c 60 04 and %l1, 4, %l1
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
2008040: 80 a4 60 00 cmp %l1, 0
2008044: 12 80 00 03 bne 2008050 <_Thread_Change_priority+0x58> <== NEVER TAKEN
2008048: 82 0c bf fb and %l2, -5, %g1
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
200804c: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
_ISR_Enable( level );
2008050: 7f ff e7 e1 call 2001fd4 <sparc_enable_interrupts>
2008054: 90 10 00 18 mov %i0, %o0
if ( _States_Is_waiting_on_thread_queue( state ) ) {
2008058: 03 00 00 ef sethi %hi(0x3bc00), %g1
200805c: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0>
2008060: 80 8c 80 01 btst %l2, %g1
2008064: 02 80 00 5c be 20081d4 <_Thread_Change_priority+0x1dc>
2008068: 01 00 00 00 nop
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
200806c: f0 04 20 44 ld [ %l0 + 0x44 ], %i0
2008070: 40 00 03 88 call 2008e90 <_Thread_queue_Requeue>
2008074: 93 e8 00 10 restore %g0, %l0, %o1
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
2008078: 80 a4 60 00 cmp %l1, 0
200807c: 12 80 00 1c bne 20080ec <_Thread_Change_priority+0xf4> <== NEVER TAKEN
2008080: 01 00 00 00 nop
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
2008084: c4 04 20 90 ld [ %l0 + 0x90 ], %g2
2008088: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
200808c: c8 10 80 00 lduh [ %g2 ], %g4
_Priority_Major_bit_map |= the_priority_map->ready_major;
2008090: 03 00 80 78 sethi %hi(0x201e000), %g1
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
2008094: 86 11 00 03 or %g4, %g3, %g3
2008098: c6 30 80 00 sth %g3, [ %g2 ]
_Priority_Major_bit_map |= the_priority_map->ready_major;
200809c: c4 10 63 44 lduh [ %g1 + 0x344 ], %g2
20080a0: c6 14 20 94 lduh [ %l0 + 0x94 ], %g3
* Interrupts are STILL disabled.
* We now know the thread will be in the READY state when we remove
* the TRANSIENT state. So we have to place it on the appropriate
* Ready Queue with interrupts off.
*/
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
20080a4: c0 24 20 10 clr [ %l0 + 0x10 ]
20080a8: 84 10 c0 02 or %g3, %g2, %g2
20080ac: c4 30 63 44 sth %g2, [ %g1 + 0x344 ]
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
20080b0: 80 8e a0 ff btst 0xff, %i2
20080b4: 02 80 00 08 be 20080d4 <_Thread_Change_priority+0xdc>
20080b8: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
20080bc: c4 00 40 00 ld [ %g1 ], %g2
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
20080c0: c2 24 20 04 st %g1, [ %l0 + 4 ]
before_node = after_node->next;
after_node->next = the_node;
20080c4: e0 20 40 00 st %l0, [ %g1 ]
the_node->next = before_node;
before_node->previous = the_node;
20080c8: e0 20 a0 04 st %l0, [ %g2 + 4 ]
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
20080cc: 10 80 00 08 b 20080ec <_Thread_Change_priority+0xf4>
20080d0: c4 24 00 00 st %g2, [ %l0 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
20080d4: 84 00 60 04 add %g1, 4, %g2
20080d8: c4 24 00 00 st %g2, [ %l0 ]
old_last_node = the_chain->last;
20080dc: c4 00 60 08 ld [ %g1 + 8 ], %g2
the_chain->last = the_node;
20080e0: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
20080e4: c4 24 20 04 st %g2, [ %l0 + 4 ]
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
20080e8: e0 20 80 00 st %l0, [ %g2 ]
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
}
_ISR_Flash( level );
20080ec: 7f ff e7 ba call 2001fd4 <sparc_enable_interrupts>
20080f0: 90 10 00 18 mov %i0, %o0
20080f4: 7f ff e7 b4 call 2001fc4 <sparc_disable_interrupts>
20080f8: 01 00 00 00 nop
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
{
Priority_Bit_map_control minor;
Priority_Bit_map_control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
20080fc: 03 00 80 78 sethi %hi(0x201e000), %g1
2008100: c4 10 63 44 lduh [ %g1 + 0x344 ], %g2 ! 201e344 <_Priority_Major_bit_map>
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_Get_highest() ].first;
2008104: 03 00 80 78 sethi %hi(0x201e000), %g1
2008108: 85 28 a0 10 sll %g2, 0x10, %g2
200810c: da 00 61 e4 ld [ %g1 + 0x1e4 ], %o5
2008110: 87 30 a0 10 srl %g2, 0x10, %g3
2008114: 03 00 80 71 sethi %hi(0x201c400), %g1
2008118: 80 a0 e0 ff cmp %g3, 0xff
200811c: 18 80 00 05 bgu 2008130 <_Thread_Change_priority+0x138>
2008120: 82 10 60 d8 or %g1, 0xd8, %g1
2008124: c4 08 40 03 ldub [ %g1 + %g3 ], %g2
2008128: 10 80 00 04 b 2008138 <_Thread_Change_priority+0x140>
200812c: 84 00 a0 08 add %g2, 8, %g2
2008130: 85 30 a0 18 srl %g2, 0x18, %g2
2008134: c4 08 40 02 ldub [ %g1 + %g2 ], %g2
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
2008138: 83 28 a0 10 sll %g2, 0x10, %g1
200813c: 07 00 80 78 sethi %hi(0x201e000), %g3
2008140: 83 30 60 0f srl %g1, 0xf, %g1
2008144: 86 10 e3 c0 or %g3, 0x3c0, %g3
2008148: c6 10 c0 01 lduh [ %g3 + %g1 ], %g3
200814c: 03 00 80 71 sethi %hi(0x201c400), %g1
2008150: 87 28 e0 10 sll %g3, 0x10, %g3
2008154: 89 30 e0 10 srl %g3, 0x10, %g4
2008158: 80 a1 20 ff cmp %g4, 0xff
200815c: 18 80 00 05 bgu 2008170 <_Thread_Change_priority+0x178>
2008160: 82 10 60 d8 or %g1, 0xd8, %g1
2008164: c2 08 40 04 ldub [ %g1 + %g4 ], %g1
2008168: 10 80 00 04 b 2008178 <_Thread_Change_priority+0x180>
200816c: 82 00 60 08 add %g1, 8, %g1
2008170: 87 30 e0 18 srl %g3, 0x18, %g3
2008174: c2 08 40 03 ldub [ %g1 + %g3 ], %g1
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
2008178: 83 28 60 10 sll %g1, 0x10, %g1
200817c: 83 30 60 10 srl %g1, 0x10, %g1
2008180: 85 28 a0 10 sll %g2, 0x10, %g2
2008184: 85 30 a0 0c srl %g2, 0xc, %g2
2008188: 84 00 40 02 add %g1, %g2, %g2
200818c: 83 28 a0 04 sll %g2, 4, %g1
2008190: 85 28 a0 02 sll %g2, 2, %g2
2008194: 84 20 40 02 sub %g1, %g2, %g2
2008198: c4 03 40 02 ld [ %o5 + %g2 ], %g2
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
200819c: 03 00 80 78 sethi %hi(0x201e000), %g1
20081a0: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
20081a4: 07 00 80 78 sethi %hi(0x201e000), %g3
* We altered the set of thread priorities. So let's figure out
* who is the heir and if we need to switch to them.
*/
_Thread_Calculate_heir();
if ( !_Thread_Is_executing_also_the_heir() &&
20081a8: 80 a0 40 02 cmp %g1, %g2
20081ac: 02 80 00 08 be 20081cc <_Thread_Change_priority+0x1d4>
20081b0: c4 20 e3 20 st %g2, [ %g3 + 0x320 ]
_Thread_Executing->is_preemptible )
20081b4: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1
20081b8: 80 a0 60 00 cmp %g1, 0
20081bc: 02 80 00 04 be 20081cc <_Thread_Change_priority+0x1d4>
20081c0: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
20081c4: 03 00 80 78 sethi %hi(0x201e000), %g1
20081c8: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] ! 201e360 <_Context_Switch_necessary>
_ISR_Enable( level );
20081cc: 7f ff e7 82 call 2001fd4 <sparc_enable_interrupts>
20081d0: 81 e8 00 00 restore
20081d4: 81 c7 e0 08 ret
20081d8: 81 e8 00 00 restore
020081dc <_Thread_Clear_state>:
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
20081dc: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
20081e0: 7f ff e7 79 call 2001fc4 <sparc_disable_interrupts>
20081e4: a0 10 00 18 mov %i0, %l0
20081e8: b0 10 00 08 mov %o0, %i0
current_state = the_thread->current_state;
20081ec: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
if ( current_state & state ) {
20081f0: 80 8e 40 01 btst %i1, %g1
20081f4: 02 80 00 2d be 20082a8 <_Thread_Clear_state+0xcc>
20081f8: 01 00 00 00 nop
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
20081fc: b2 28 40 19 andn %g1, %i1, %i1
current_state =
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
2008200: 80 a6 60 00 cmp %i1, 0
2008204: 12 80 00 29 bne 20082a8 <_Thread_Clear_state+0xcc>
2008208: f2 24 20 10 st %i1, [ %l0 + 0x10 ]
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
200820c: c4 04 20 90 ld [ %l0 + 0x90 ], %g2
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
2008210: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
2008214: c8 10 80 00 lduh [ %g2 ], %g4
2008218: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
200821c: 86 11 00 03 or %g4, %g3, %g3
2008220: c6 30 80 00 sth %g3, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
2008224: 84 00 60 04 add %g1, 4, %g2
_Priority_Major_bit_map |= the_priority_map->ready_major;
2008228: da 14 20 94 lduh [ %l0 + 0x94 ], %o5
200822c: c4 24 00 00 st %g2, [ %l0 ]
2008230: 07 00 80 78 sethi %hi(0x201e000), %g3
old_last_node = the_chain->last;
2008234: c4 00 60 08 ld [ %g1 + 8 ], %g2
2008238: c8 10 e3 44 lduh [ %g3 + 0x344 ], %g4
the_chain->last = the_node;
200823c: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
2008240: c4 24 20 04 st %g2, [ %l0 + 4 ]
2008244: 82 13 40 04 or %o5, %g4, %g1
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
2008248: e0 20 80 00 st %l0, [ %g2 ]
200824c: c2 30 e3 44 sth %g1, [ %g3 + 0x344 ]
_ISR_Flash( level );
2008250: 7f ff e7 61 call 2001fd4 <sparc_enable_interrupts>
2008254: 01 00 00 00 nop
2008258: 7f ff e7 5b call 2001fc4 <sparc_disable_interrupts>
200825c: 01 00 00 00 nop
* a context switch.
* Pseudo-ISR case:
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
2008260: 05 00 80 78 sethi %hi(0x201e000), %g2
2008264: c6 00 a3 20 ld [ %g2 + 0x320 ], %g3 ! 201e320 <_Thread_Heir>
2008268: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
200826c: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
2008270: 80 a0 40 03 cmp %g1, %g3
2008274: 1a 80 00 0d bcc 20082a8 <_Thread_Clear_state+0xcc>
2008278: 07 00 80 78 sethi %hi(0x201e000), %g3
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
200827c: c6 00 e3 50 ld [ %g3 + 0x350 ], %g3 ! 201e350 <_Thread_Executing>
* Pseudo-ISR case:
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
2008280: e0 20 a3 20 st %l0, [ %g2 + 0x320 ]
if ( _Thread_Executing->is_preemptible ||
2008284: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2
2008288: 80 a0 a0 00 cmp %g2, 0
200828c: 12 80 00 05 bne 20082a0 <_Thread_Clear_state+0xc4>
2008290: 84 10 20 01 mov 1, %g2
2008294: 80 a0 60 00 cmp %g1, 0
2008298: 12 80 00 04 bne 20082a8 <_Thread_Clear_state+0xcc> <== ALWAYS TAKEN
200829c: 01 00 00 00 nop
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
20082a0: 03 00 80 78 sethi %hi(0x201e000), %g1
20082a4: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] ! 201e360 <_Context_Switch_necessary>
}
}
}
_ISR_Enable( level );
20082a8: 7f ff e7 4b call 2001fd4 <sparc_enable_interrupts>
20082ac: 81 e8 00 00 restore
02008460 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
2008460: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
2008464: 90 10 00 18 mov %i0, %o0
2008468: 40 00 00 7c call 2008658 <_Thread_Get>
200846c: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2008470: c2 07 bf fc ld [ %fp + -4 ], %g1
2008474: 80 a0 60 00 cmp %g1, 0
2008478: 12 80 00 08 bne 2008498 <_Thread_Delay_ended+0x38> <== NEVER TAKEN
200847c: 13 04 00 00 sethi %hi(0x10000000), %o1
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
2008480: 7f ff ff 57 call 20081dc <_Thread_Clear_state>
2008484: 92 12 60 18 or %o1, 0x18, %o1 ! 10000018 <RAM_END+0xdc00018>
2008488: 03 00 80 78 sethi %hi(0x201e000), %g1
200848c: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level>
2008490: 84 00 bf ff add %g2, -1, %g2
2008494: c4 20 62 90 st %g2, [ %g1 + 0x290 ]
2008498: 81 c7 e0 08 ret
200849c: 81 e8 00 00 restore
020084a0 <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
20084a0: 9d e3 bf 90 save %sp, -112, %sp
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
20084a4: 2f 00 80 78 sethi %hi(0x201e000), %l7
_ISR_Disable( level );
20084a8: 7f ff e6 c7 call 2001fc4 <sparc_disable_interrupts>
20084ac: e0 05 e3 50 ld [ %l7 + 0x350 ], %l0 ! 201e350 <_Thread_Executing>
while ( _Context_Switch_necessary == true ) {
20084b0: 2d 00 80 78 sethi %hi(0x201e000), %l6
20084b4: 33 00 80 78 sethi %hi(0x201e000), %i1
heir = _Thread_Heir;
20084b8: 35 00 80 78 sethi %hi(0x201e000), %i2
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
20084bc: 37 00 80 78 sethi %hi(0x201e000), %i3
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
20084c0: 25 00 80 78 sethi %hi(0x201e000), %l2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
20084c4: 39 00 80 78 sethi %hi(0x201e000), %i4
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Allocated_fp );
20084c8: 2b 00 80 78 sethi %hi(0x201e000), %l5
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Context_Switch_necessary = false;
_Thread_Executing = heir;
20084cc: ae 15 e3 50 or %l7, 0x350, %l7
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
20084d0: ac 15 a3 60 or %l6, 0x360, %l6
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
20084d4: b2 16 62 90 or %i1, 0x290, %i1
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
20084d8: b4 16 a3 20 or %i2, 0x320, %i2
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
20084dc: b6 16 e1 e8 or %i3, 0x1e8, %i3
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract(
20084e0: a4 14 a3 58 or %l2, 0x358, %l2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
20084e4: b8 17 23 1c or %i4, 0x31c, %i4
20084e8: aa 15 63 18 or %l5, 0x318, %l5
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
20084ec: ba 10 20 01 mov 1, %i5
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
20084f0: a8 07 bf f8 add %fp, -8, %l4
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
20084f4: 10 80 00 37 b 20085d0 <_Thread_Dispatch+0x130>
20084f8: a6 07 bf f0 add %fp, -16, %l3
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
20084fc: fa 26 40 00 st %i5, [ %i1 ]
_Thread_Executing = heir;
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
2008500: c2 04 60 7c ld [ %l1 + 0x7c ], %g1
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Context_Switch_necessary = false;
2008504: c0 2d 80 00 clrb [ %l6 ]
_Thread_Executing = heir;
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
2008508: 80 a0 60 01 cmp %g1, 1
200850c: 12 80 00 04 bne 200851c <_Thread_Dispatch+0x7c>
2008510: e2 25 c0 00 st %l1, [ %l7 ]
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
2008514: c2 06 c0 00 ld [ %i3 ], %g1
2008518: c2 24 60 78 st %g1, [ %l1 + 0x78 ]
_ISR_Enable( level );
200851c: 7f ff e6 ae call 2001fd4 <sparc_enable_interrupts>
2008520: 01 00 00 00 nop
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
2008524: 40 00 14 17 call 200d580 <_TOD_Get_uptime>
2008528: 90 10 00 14 mov %l4, %o0
_Timestamp_Subtract(
200852c: 90 10 00 12 mov %l2, %o0
2008530: 92 10 00 14 mov %l4, %o1
2008534: 40 00 03 e3 call 20094c0 <_Timespec_Subtract>
2008538: 94 10 00 13 mov %l3, %o2
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
200853c: 90 04 20 84 add %l0, 0x84, %o0
2008540: 40 00 03 c6 call 2009458 <_Timespec_Add_to>
2008544: 92 10 00 13 mov %l3, %o1
_Thread_Time_of_last_context_switch = uptime;
2008548: c4 07 bf f8 ld [ %fp + -8 ], %g2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
200854c: c2 07 00 00 ld [ %i4 ], %g1
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
2008550: c4 24 80 00 st %g2, [ %l2 ]
2008554: c4 07 bf fc ld [ %fp + -4 ], %g2
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
2008558: 80 a0 60 00 cmp %g1, 0
200855c: 02 80 00 06 be 2008574 <_Thread_Dispatch+0xd4> <== NEVER TAKEN
2008560: c4 24 a0 04 st %g2, [ %l2 + 4 ]
executing->libc_reent = *_Thread_libc_reent;
2008564: c4 00 40 00 ld [ %g1 ], %g2
2008568: c4 24 21 64 st %g2, [ %l0 + 0x164 ]
*_Thread_libc_reent = heir->libc_reent;
200856c: c4 04 61 64 ld [ %l1 + 0x164 ], %g2
2008570: c4 20 40 00 st %g2, [ %g1 ]
}
_User_extensions_Thread_switch( executing, heir );
2008574: 90 10 00 10 mov %l0, %o0
2008578: 40 00 04 87 call 2009794 <_User_extensions_Thread_switch>
200857c: 92 10 00 11 mov %l1, %o1
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
2008580: 92 04 60 d8 add %l1, 0xd8, %o1
2008584: 40 00 05 b4 call 2009c54 <_CPU_Context_switch>
2008588: 90 04 20 d8 add %l0, 0xd8, %o0
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
200858c: c2 04 21 60 ld [ %l0 + 0x160 ], %g1
2008590: 80 a0 60 00 cmp %g1, 0
2008594: 02 80 00 0d be 20085c8 <_Thread_Dispatch+0x128>
2008598: 01 00 00 00 nop
200859c: d0 05 40 00 ld [ %l5 ], %o0
20085a0: 80 a4 00 08 cmp %l0, %o0
20085a4: 02 80 00 09 be 20085c8 <_Thread_Dispatch+0x128>
20085a8: 80 a2 20 00 cmp %o0, 0
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
20085ac: 02 80 00 04 be 20085bc <_Thread_Dispatch+0x11c>
20085b0: 01 00 00 00 nop
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
20085b4: 40 00 05 6e call 2009b6c <_CPU_Context_save_fp>
20085b8: 90 02 21 60 add %o0, 0x160, %o0
_Context_Restore_fp( &executing->fp_context );
20085bc: 40 00 05 89 call 2009be0 <_CPU_Context_restore_fp>
20085c0: 90 04 21 60 add %l0, 0x160, %o0
_Thread_Allocated_fp = executing;
20085c4: e0 25 40 00 st %l0, [ %l5 ]
#endif
#endif
executing = _Thread_Executing;
_ISR_Disable( level );
20085c8: 7f ff e6 7f call 2001fc4 <sparc_disable_interrupts>
20085cc: e0 05 c0 00 ld [ %l7 ], %l0
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
20085d0: c2 0d 80 00 ldub [ %l6 ], %g1
20085d4: 80 a0 60 00 cmp %g1, 0
20085d8: 32 bf ff c9 bne,a 20084fc <_Thread_Dispatch+0x5c>
20085dc: e2 06 80 00 ld [ %i2 ], %l1
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
20085e0: 03 00 80 78 sethi %hi(0x201e000), %g1
20085e4: c0 20 62 90 clr [ %g1 + 0x290 ] ! 201e290 <_Thread_Dispatch_disable_level>
_ISR_Enable( level );
20085e8: 7f ff e6 7b call 2001fd4 <sparc_enable_interrupts>
20085ec: 01 00 00 00 nop
if ( _Thread_Do_post_task_switch_extension ||
20085f0: 03 00 80 78 sethi %hi(0x201e000), %g1
20085f4: c2 00 63 34 ld [ %g1 + 0x334 ], %g1 ! 201e334 <_Thread_Do_post_task_switch_extension>
20085f8: 80 a0 60 00 cmp %g1, 0
20085fc: 12 80 00 06 bne 2008614 <_Thread_Dispatch+0x174>
2008600: 01 00 00 00 nop
executing->do_post_task_switch_extension ) {
2008604: c2 0c 20 74 ldub [ %l0 + 0x74 ], %g1
2008608: 80 a0 60 00 cmp %g1, 0
200860c: 02 80 00 04 be 200861c <_Thread_Dispatch+0x17c>
2008610: 01 00 00 00 nop
executing->do_post_task_switch_extension = false;
_API_extensions_Run_postswitch();
2008614: 7f ff f9 70 call 2006bd4 <_API_extensions_Run_postswitch>
2008618: c0 2c 20 74 clrb [ %l0 + 0x74 ]
200861c: 81 c7 e0 08 ret
2008620: 81 e8 00 00 restore
02010620 <_Thread_Evaluate_mode>:
bool _Thread_Evaluate_mode( void )
{
Thread_Control *executing;
executing = _Thread_Executing;
2010620: 03 00 80 78 sethi %hi(0x201e000), %g1
2010624: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
if ( !_States_Is_ready( executing->current_state ) ||
2010628: c4 00 60 10 ld [ %g1 + 0x10 ], %g2
201062c: 80 a0 a0 00 cmp %g2, 0
2010630: 12 80 00 0b bne 201065c <_Thread_Evaluate_mode+0x3c> <== NEVER TAKEN
2010634: 84 10 20 01 mov 1, %g2
2010638: 05 00 80 78 sethi %hi(0x201e000), %g2
201063c: c4 00 a3 20 ld [ %g2 + 0x320 ], %g2 ! 201e320 <_Thread_Heir>
2010640: 80 a0 40 02 cmp %g1, %g2
2010644: 02 80 00 0b be 2010670 <_Thread_Evaluate_mode+0x50>
2010648: 01 00 00 00 nop
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
201064c: c2 08 60 75 ldub [ %g1 + 0x75 ], %g1
2010650: 80 a0 60 00 cmp %g1, 0
2010654: 02 80 00 07 be 2010670 <_Thread_Evaluate_mode+0x50> <== NEVER TAKEN
2010658: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
201065c: 03 00 80 78 sethi %hi(0x201e000), %g1
2010660: 90 10 20 01 mov 1, %o0
2010664: c4 28 63 60 stb %g2, [ %g1 + 0x360 ]
return true;
2010668: 81 c3 e0 08 retl
201066c: 01 00 00 00 nop
}
return false;
}
2010670: 81 c3 e0 08 retl
2010674: 90 10 20 00 clr %o0 ! 0 <PROM_START>
02010678 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
2010678: 9d e3 bf a0 save %sp, -96, %sp
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
201067c: 03 00 80 78 sethi %hi(0x201e000), %g1
2010680: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing>
/*
* Some CPUs need to tinker with the call frame or registers when the
* thread actually begins to execute for the first time. This is a
* hook point where the port gets a shot at doing whatever it requires.
*/
_Context_Initialization_at_thread_begin();
2010684: 3f 00 80 41 sethi %hi(0x2010400), %i7
2010688: be 17 e2 78 or %i7, 0x278, %i7 ! 2010678 <_Thread_Handler>
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
201068c: d0 04 20 b8 ld [ %l0 + 0xb8 ], %o0
_ISR_Set_level(level);
2010690: 7f ff c6 51 call 2001fd4 <sparc_enable_interrupts>
2010694: 91 2a 20 08 sll %o0, 8, %o0
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
2010698: 03 00 80 77 sethi %hi(0x201dc00), %g1
doneConstructors = 1;
201069c: 84 10 20 01 mov 1, %g2
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
20106a0: e2 08 63 42 ldub [ %g1 + 0x342 ], %l1
doneConstructors = 1;
20106a4: c4 28 63 42 stb %g2, [ %g1 + 0x342 ]
#endif
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( (executing->fp_context != NULL) &&
20106a8: c2 04 21 60 ld [ %l0 + 0x160 ], %g1
20106ac: 80 a0 60 00 cmp %g1, 0
20106b0: 02 80 00 0c be 20106e0 <_Thread_Handler+0x68>
20106b4: 03 00 80 78 sethi %hi(0x201e000), %g1
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Allocated_fp );
20106b8: d0 00 63 18 ld [ %g1 + 0x318 ], %o0 ! 201e318 <_Thread_Allocated_fp>
20106bc: 80 a4 00 08 cmp %l0, %o0
20106c0: 02 80 00 08 be 20106e0 <_Thread_Handler+0x68>
20106c4: 80 a2 20 00 cmp %o0, 0
!_Thread_Is_allocated_fp( executing ) ) {
if ( _Thread_Allocated_fp != NULL )
20106c8: 22 80 00 06 be,a 20106e0 <_Thread_Handler+0x68>
20106cc: e0 20 63 18 st %l0, [ %g1 + 0x318 ]
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
20106d0: 7f ff e5 27 call 2009b6c <_CPU_Context_save_fp>
20106d4: 90 02 21 60 add %o0, 0x160, %o0
_Thread_Allocated_fp = executing;
20106d8: 03 00 80 78 sethi %hi(0x201e000), %g1
20106dc: e0 20 63 18 st %l0, [ %g1 + 0x318 ] ! 201e318 <_Thread_Allocated_fp>
/*
* Take care that 'begin' extensions get to complete before
* 'switch' extensions can run. This means must keep dispatch
* disabled until all 'begin' extensions complete.
*/
_User_extensions_Thread_begin( executing );
20106e0: 7f ff e3 ba call 20095c8 <_User_extensions_Thread_begin>
20106e4: 90 10 00 10 mov %l0, %o0
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
20106e8: 7f ff df cf call 2008624 <_Thread_Enable_dispatch>
20106ec: a3 2c 60 18 sll %l1, 0x18, %l1
/*
* _init could be a weak symbol and we SHOULD test it but it isn't
* in any configuration I know of and it generates a warning on every
* RTEMS target configuration. --joel (12 May 2007)
*/
if (!doneCons) /* && (volatile void *)_init) */ {
20106f0: 80 a4 60 00 cmp %l1, 0
20106f4: 32 80 00 05 bne,a 2010708 <_Thread_Handler+0x90>
20106f8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
INIT_NAME ();
20106fc: 40 00 33 d7 call 201d658 <_init>
2010700: 01 00 00 00 nop
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
2010704: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
2010708: 80 a0 60 00 cmp %g1, 0
201070c: 12 80 00 05 bne 2010720 <_Thread_Handler+0xa8>
2010710: 80 a0 60 01 cmp %g1, 1
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
2010714: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
2010718: 10 80 00 06 b 2010730 <_Thread_Handler+0xb8>
201071c: d0 04 20 a8 ld [ %l0 + 0xa8 ], %o0
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
2010720: 12 80 00 07 bne 201073c <_Thread_Handler+0xc4> <== NEVER TAKEN
2010724: 01 00 00 00 nop
executing->Wait.return_argument =
(*(Thread_Entry_pointer) executing->Start.entry_point)(
2010728: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
201072c: d0 04 20 a4 ld [ %l0 + 0xa4 ], %o0
2010730: 9f c0 40 00 call %g1
2010734: 01 00 00 00 nop
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
executing->Wait.return_argument =
2010738: d0 24 20 28 st %o0, [ %l0 + 0x28 ]
* was placed in return_argument. This assumed that if it returned
* anything (which is not supporting in all APIs), then it would be
* able to fit in a (void *).
*/
_User_extensions_Thread_exitted( executing );
201073c: 7f ff e3 b4 call 200960c <_User_extensions_Thread_exitted>
2010740: 90 10 00 10 mov %l0, %o0
_Internal_error_Occurred(
2010744: 90 10 20 00 clr %o0
2010748: 92 10 20 01 mov 1, %o1
201074c: 7f ff db c6 call 2007664 <_Internal_error_Occurred>
2010750: 94 10 20 06 mov 6, %o2
02008704 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
2008704: 9d e3 bf a0 save %sp, -96, %sp
2008708: c2 07 a0 6c ld [ %fp + 0x6c ], %g1
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
200870c: c0 26 61 68 clr [ %i1 + 0x168 ]
2008710: c0 26 61 6c clr [ %i1 + 0x16c ]
2008714: c0 26 61 70 clr [ %i1 + 0x170 ]
extensions_area = NULL;
the_thread->libc_reent = NULL;
2008718: c0 26 61 64 clr [ %i1 + 0x164 ]
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
200871c: e0 00 40 00 ld [ %g1 ], %l0
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
2008720: 80 a6 a0 00 cmp %i2, 0
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
2008724: e2 07 a0 60 ld [ %fp + 0x60 ], %l1
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
2008728: 12 80 00 0f bne 2008764 <_Thread_Initialize+0x60>
200872c: e4 0f a0 5f ldub [ %fp + 0x5f ], %l2
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
2008730: 90 10 00 19 mov %i1, %o0
2008734: 40 00 02 a6 call 20091cc <_Thread_Stack_Allocate>
2008738: 92 10 00 1b mov %i3, %o1
if ( !actual_stack_size || actual_stack_size < stack_size )
200873c: 80 a2 00 1b cmp %o0, %i3
2008740: 0a 80 00 04 bcs 2008750 <_Thread_Initialize+0x4c>
2008744: 80 a2 20 00 cmp %o0, 0
2008748: 12 80 00 04 bne 2008758 <_Thread_Initialize+0x54> <== ALWAYS TAKEN
200874c: 82 10 20 01 mov 1, %g1
2008750: 81 c7 e0 08 ret
2008754: 91 e8 20 00 restore %g0, 0, %o0
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
2008758: f4 06 60 d0 ld [ %i1 + 0xd0 ], %i2
the_thread->Start.core_allocated_stack = true;
200875c: 10 80 00 04 b 200876c <_Thread_Initialize+0x68>
2008760: c2 2e 60 c0 stb %g1, [ %i1 + 0xc0 ]
} else {
stack = stack_area;
actual_stack_size = stack_size;
the_thread->Start.core_allocated_stack = false;
2008764: c0 2e 60 c0 clrb [ %i1 + 0xc0 ]
2008768: 90 10 00 1b mov %i3, %o0
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
200876c: f4 26 60 c8 st %i2, [ %i1 + 0xc8 ]
the_stack->size = size;
2008770: d0 26 60 c4 st %o0, [ %i1 + 0xc4 ]
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
2008774: 80 8f 20 ff btst 0xff, %i4
2008778: 02 80 00 08 be 2008798 <_Thread_Initialize+0x94>
200877c: b4 10 20 00 clr %i2
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
2008780: 90 10 20 88 mov 0x88, %o0
2008784: 40 00 04 d1 call 2009ac8 <_Workspace_Allocate>
2008788: b6 10 20 00 clr %i3
if ( !fp_area )
200878c: b4 92 20 00 orcc %o0, 0, %i2
2008790: 22 80 00 42 be,a 2008898 <_Thread_Initialize+0x194>
2008794: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
2008798: 03 00 80 78 sethi %hi(0x201e000), %g1
200879c: d0 00 63 30 ld [ %g1 + 0x330 ], %o0 ! 201e330 <_Thread_Maximum_extensions>
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
20087a0: f4 26 61 60 st %i2, [ %i1 + 0x160 ]
the_thread->Start.fp_context = fp_area;
20087a4: f4 26 60 cc st %i2, [ %i1 + 0xcc ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
20087a8: c0 26 60 50 clr [ %i1 + 0x50 ]
the_watchdog->routine = routine;
20087ac: c0 26 60 64 clr [ %i1 + 0x64 ]
the_watchdog->id = id;
20087b0: c0 26 60 68 clr [ %i1 + 0x68 ]
the_watchdog->user_data = user_data;
20087b4: c0 26 60 6c clr [ %i1 + 0x6c ]
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
20087b8: 80 a2 20 00 cmp %o0, 0
20087bc: 02 80 00 08 be 20087dc <_Thread_Initialize+0xd8>
20087c0: b6 10 20 00 clr %i3
extensions_area = _Workspace_Allocate(
20087c4: 90 02 20 01 inc %o0
20087c8: 40 00 04 c0 call 2009ac8 <_Workspace_Allocate>
20087cc: 91 2a 20 02 sll %o0, 2, %o0
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
20087d0: b6 92 20 00 orcc %o0, 0, %i3
20087d4: 22 80 00 31 be,a 2008898 <_Thread_Initialize+0x194>
20087d8: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
* if they are linked to the thread. An extension user may
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
20087dc: 80 a6 e0 00 cmp %i3, 0
20087e0: 02 80 00 0c be 2008810 <_Thread_Initialize+0x10c>
20087e4: f6 26 61 74 st %i3, [ %i1 + 0x174 ]
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
20087e8: 03 00 80 78 sethi %hi(0x201e000), %g1
20087ec: c4 00 63 30 ld [ %g1 + 0x330 ], %g2 ! 201e330 <_Thread_Maximum_extensions>
20087f0: 10 80 00 05 b 2008804 <_Thread_Initialize+0x100>
20087f4: 82 10 20 00 clr %g1
the_thread->extensions[i] = NULL;
20087f8: 87 28 60 02 sll %g1, 2, %g3
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
20087fc: 82 00 60 01 inc %g1
the_thread->extensions[i] = NULL;
2008800: c0 21 00 03 clr [ %g4 + %g3 ]
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
2008804: 80 a0 40 02 cmp %g1, %g2
2008808: 28 bf ff fc bleu,a 20087f8 <_Thread_Initialize+0xf4>
200880c: c8 06 61 74 ld [ %i1 + 0x174 ], %g4
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
2008810: c2 07 a0 64 ld [ %fp + 0x64 ], %g1
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
2008814: e4 2e 60 ac stb %l2, [ %i1 + 0xac ]
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
2008818: c2 26 60 b4 st %g1, [ %i1 + 0xb4 ]
switch ( budget_algorithm ) {
200881c: 80 a4 60 02 cmp %l1, 2
2008820: 12 80 00 05 bne 2008834 <_Thread_Initialize+0x130>
2008824: e2 26 60 b0 st %l1, [ %i1 + 0xb0 ]
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
2008828: 03 00 80 78 sethi %hi(0x201e000), %g1
200882c: c2 00 61 e8 ld [ %g1 + 0x1e8 ], %g1 ! 201e1e8 <_Thread_Ticks_per_timeslice>
2008830: c2 26 60 78 st %g1, [ %i1 + 0x78 ]
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
2008834: c2 07 a0 68 ld [ %fp + 0x68 ], %g1
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
2008838: 92 10 00 1d mov %i5, %o1
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
200883c: c2 26 60 b8 st %g1, [ %i1 + 0xb8 ]
the_thread->current_state = STATES_DORMANT;
2008840: 82 10 20 01 mov 1, %g1
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
2008844: 90 10 00 19 mov %i1, %o0
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
2008848: c2 26 60 10 st %g1, [ %i1 + 0x10 ]
the_thread->Wait.queue = NULL;
200884c: c0 26 60 44 clr [ %i1 + 0x44 ]
the_thread->resource_count = 0;
2008850: c0 26 60 1c clr [ %i1 + 0x1c ]
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
2008854: fa 26 60 18 st %i5, [ %i1 + 0x18 ]
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
2008858: 40 00 01 bb call 2008f44 <_Thread_Set_priority>
200885c: fa 26 60 bc st %i5, [ %i1 + 0xbc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2008860: c2 16 60 0a lduh [ %i1 + 0xa ], %g1
2008864: c4 06 20 1c ld [ %i0 + 0x1c ], %g2
2008868: 83 28 60 02 sll %g1, 2, %g1
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
200886c: e0 26 60 0c st %l0, [ %i1 + 0xc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2008870: f2 20 80 01 st %i1, [ %g2 + %g1 ]
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
2008874: c0 26 60 84 clr [ %i1 + 0x84 ]
2008878: c0 26 60 88 clr [ %i1 + 0x88 ]
* enabled when we get here. We want to be able to run the
* user extensions with dispatching enabled. The Allocator
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
200887c: 90 10 00 19 mov %i1, %o0
2008880: 40 00 03 87 call 200969c <_User_extensions_Thread_create>
2008884: b0 10 20 01 mov 1, %i0
if ( extension_status )
2008888: 80 8a 20 ff btst 0xff, %o0
200888c: 12 80 00 27 bne 2008928 <_Thread_Initialize+0x224>
2008890: 01 00 00 00 nop
return true;
failed:
if ( the_thread->libc_reent )
2008894: d0 06 61 64 ld [ %i1 + 0x164 ], %o0
2008898: 80 a2 20 00 cmp %o0, 0
200889c: 22 80 00 05 be,a 20088b0 <_Thread_Initialize+0x1ac>
20088a0: d0 06 61 68 ld [ %i1 + 0x168 ], %o0
_Workspace_Free( the_thread->libc_reent );
20088a4: 40 00 04 92 call 2009aec <_Workspace_Free>
20088a8: 01 00 00 00 nop
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
20088ac: d0 06 61 68 ld [ %i1 + 0x168 ], %o0
20088b0: 80 a2 20 00 cmp %o0, 0
20088b4: 22 80 00 05 be,a 20088c8 <_Thread_Initialize+0x1c4>
20088b8: d0 06 61 6c ld [ %i1 + 0x16c ], %o0
_Workspace_Free( the_thread->API_Extensions[i] );
20088bc: 40 00 04 8c call 2009aec <_Workspace_Free>
20088c0: 01 00 00 00 nop
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
20088c4: d0 06 61 6c ld [ %i1 + 0x16c ], %o0
20088c8: 80 a2 20 00 cmp %o0, 0
20088cc: 22 80 00 05 be,a 20088e0 <_Thread_Initialize+0x1dc>
20088d0: d0 06 61 70 ld [ %i1 + 0x170 ], %o0
_Workspace_Free( the_thread->API_Extensions[i] );
20088d4: 40 00 04 86 call 2009aec <_Workspace_Free>
20088d8: 01 00 00 00 nop
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
20088dc: d0 06 61 70 ld [ %i1 + 0x170 ], %o0
20088e0: 80 a2 20 00 cmp %o0, 0
20088e4: 02 80 00 05 be 20088f8 <_Thread_Initialize+0x1f4> <== ALWAYS TAKEN
20088e8: 80 a6 e0 00 cmp %i3, 0
_Workspace_Free( the_thread->API_Extensions[i] );
20088ec: 40 00 04 80 call 2009aec <_Workspace_Free> <== NOT EXECUTED
20088f0: 01 00 00 00 nop <== NOT EXECUTED
if ( extensions_area )
20088f4: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20088f8: 02 80 00 05 be 200890c <_Thread_Initialize+0x208>
20088fc: 80 a6 a0 00 cmp %i2, 0
(void) _Workspace_Free( extensions_area );
2008900: 40 00 04 7b call 2009aec <_Workspace_Free>
2008904: 90 10 00 1b mov %i3, %o0
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
2008908: 80 a6 a0 00 cmp %i2, 0
200890c: 02 80 00 05 be 2008920 <_Thread_Initialize+0x21c>
2008910: 90 10 00 19 mov %i1, %o0
(void) _Workspace_Free( fp_area );
2008914: 40 00 04 76 call 2009aec <_Workspace_Free>
2008918: 90 10 00 1a mov %i2, %o0
#endif
_Thread_Stack_Free( the_thread );
200891c: 90 10 00 19 mov %i1, %o0
2008920: 40 00 02 42 call 2009228 <_Thread_Stack_Free>
2008924: b0 10 20 00 clr %i0
return false;
}
2008928: 81 c7 e0 08 ret
200892c: 81 e8 00 00 restore
0200c6ac <_Thread_Resume>:
void _Thread_Resume(
Thread_Control *the_thread,
bool force
)
{
200c6ac: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
200c6b0: 7f ff d6 95 call 2002104 <sparc_disable_interrupts>
200c6b4: a0 10 00 18 mov %i0, %l0
200c6b8: b0 10 00 08 mov %o0, %i0
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
200c6bc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
if ( current_state & STATES_SUSPENDED ) {
200c6c0: 80 88 60 02 btst 2, %g1
200c6c4: 02 80 00 2c be 200c774 <_Thread_Resume+0xc8> <== NEVER TAKEN
200c6c8: 82 08 7f fd and %g1, -3, %g1
current_state =
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
if ( _States_Is_ready( current_state ) ) {
200c6cc: 80 a0 60 00 cmp %g1, 0
200c6d0: 12 80 00 29 bne 200c774 <_Thread_Resume+0xc8>
200c6d4: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
200c6d8: c4 04 20 90 ld [ %l0 + 0x90 ], %g2
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
200c6dc: c2 04 20 8c ld [ %l0 + 0x8c ], %g1
200c6e0: c8 10 80 00 lduh [ %g2 ], %g4
200c6e4: c6 14 20 96 lduh [ %l0 + 0x96 ], %g3
200c6e8: 86 11 00 03 or %g4, %g3, %g3
200c6ec: c6 30 80 00 sth %g3, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
200c6f0: 84 00 60 04 add %g1, 4, %g2
_Priority_Major_bit_map |= the_priority_map->ready_major;
200c6f4: da 14 20 94 lduh [ %l0 + 0x94 ], %o5
200c6f8: c4 24 00 00 st %g2, [ %l0 ]
200c6fc: 07 00 80 87 sethi %hi(0x2021c00), %g3
old_last_node = the_chain->last;
200c700: c4 00 60 08 ld [ %g1 + 8 ], %g2
200c704: c8 10 e1 f4 lduh [ %g3 + 0x1f4 ], %g4
the_chain->last = the_node;
200c708: e0 20 60 08 st %l0, [ %g1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
200c70c: c4 24 20 04 st %g2, [ %l0 + 4 ]
200c710: 82 13 40 04 or %o5, %g4, %g1
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
200c714: e0 20 80 00 st %l0, [ %g2 ]
200c718: c2 30 e1 f4 sth %g1, [ %g3 + 0x1f4 ]
_ISR_Flash( level );
200c71c: 7f ff d6 7e call 2002114 <sparc_enable_interrupts>
200c720: 01 00 00 00 nop
200c724: 7f ff d6 78 call 2002104 <sparc_disable_interrupts>
200c728: 01 00 00 00 nop
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
200c72c: 05 00 80 87 sethi %hi(0x2021c00), %g2
200c730: c6 00 a1 d0 ld [ %g2 + 0x1d0 ], %g3 ! 2021dd0 <_Thread_Heir>
200c734: c2 04 20 14 ld [ %l0 + 0x14 ], %g1
200c738: c6 00 e0 14 ld [ %g3 + 0x14 ], %g3
200c73c: 80 a0 40 03 cmp %g1, %g3
200c740: 1a 80 00 0d bcc 200c774 <_Thread_Resume+0xc8>
200c744: 07 00 80 87 sethi %hi(0x2021c00), %g3
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
200c748: c6 00 e2 00 ld [ %g3 + 0x200 ], %g3 ! 2021e00 <_Thread_Executing>
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
_ISR_Flash( level );
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
200c74c: e0 20 a1 d0 st %l0, [ %g2 + 0x1d0 ]
if ( _Thread_Executing->is_preemptible ||
200c750: c4 08 e0 75 ldub [ %g3 + 0x75 ], %g2
200c754: 80 a0 a0 00 cmp %g2, 0
200c758: 12 80 00 05 bne 200c76c <_Thread_Resume+0xc0>
200c75c: 84 10 20 01 mov 1, %g2
200c760: 80 a0 60 00 cmp %g1, 0
200c764: 12 80 00 04 bne 200c774 <_Thread_Resume+0xc8> <== ALWAYS TAKEN
200c768: 01 00 00 00 nop
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
200c76c: 03 00 80 87 sethi %hi(0x2021c00), %g1
200c770: c4 28 62 10 stb %g2, [ %g1 + 0x210 ] ! 2021e10 <_Context_Switch_necessary>
}
}
}
_ISR_Enable( level );
200c774: 7f ff d6 68 call 2002114 <sparc_enable_interrupts>
200c778: 81 e8 00 00 restore
02009228 <_Thread_Stack_Free>:
*/
void _Thread_Stack_Free(
Thread_Control *the_thread
)
{
2009228: 9d e3 bf a0 save %sp, -96, %sp
#if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
/*
* If the API provided the stack space, then don't free it.
*/
if ( !the_thread->Start.core_allocated_stack )
200922c: c2 0e 20 c0 ldub [ %i0 + 0xc0 ], %g1
2009230: 80 a0 60 00 cmp %g1, 0
2009234: 02 80 00 08 be 2009254 <_Thread_Stack_Free+0x2c> <== NEVER TAKEN
2009238: 03 00 80 75 sethi %hi(0x201d400), %g1
* Call ONLY the CPU table stack free hook, or the
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
200923c: c2 00 63 7c ld [ %g1 + 0x37c ], %g1 ! 201d77c <Configuration+0x24>
2009240: 80 a0 60 00 cmp %g1, 0
2009244: 02 80 00 06 be 200925c <_Thread_Stack_Free+0x34>
2009248: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
200924c: 9f c0 40 00 call %g1
2009250: 01 00 00 00 nop
2009254: 81 c7 e0 08 ret
2009258: 81 e8 00 00 restore
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
200925c: 40 00 02 24 call 2009aec <_Workspace_Free>
2009260: 91 e8 00 08 restore %g0, %o0, %o0
0200930c <_Thread_Tickle_timeslice>:
*
* Output parameters: NONE
*/
void _Thread_Tickle_timeslice( void )
{
200930c: 9d e3 bf a0 save %sp, -96, %sp
Thread_Control *executing;
executing = _Thread_Executing;
2009310: 03 00 80 78 sethi %hi(0x201e000), %g1
2009314: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing>
/*
* If the thread is not preemptible or is not ready, then
* just return.
*/
if ( !executing->is_preemptible )
2009318: c2 0c 20 75 ldub [ %l0 + 0x75 ], %g1
200931c: 80 a0 60 00 cmp %g1, 0
2009320: 02 80 00 23 be 20093ac <_Thread_Tickle_timeslice+0xa0>
2009324: 01 00 00 00 nop
return;
if ( !_States_Is_ready( executing->current_state ) )
2009328: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
200932c: 80 a0 60 00 cmp %g1, 0
2009330: 12 80 00 1f bne 20093ac <_Thread_Tickle_timeslice+0xa0>
2009334: 01 00 00 00 nop
/*
* The cpu budget algorithm determines what happens next.
*/
switch ( executing->budget_algorithm ) {
2009338: c2 04 20 7c ld [ %l0 + 0x7c ], %g1
200933c: 80 a0 60 01 cmp %g1, 1
2009340: 0a 80 00 12 bcs 2009388 <_Thread_Tickle_timeslice+0x7c>
2009344: 80 a0 60 02 cmp %g1, 2
2009348: 28 80 00 07 bleu,a 2009364 <_Thread_Tickle_timeslice+0x58>
200934c: c2 04 20 78 ld [ %l0 + 0x78 ], %g1
2009350: 80 a0 60 03 cmp %g1, 3
2009354: 12 80 00 16 bne 20093ac <_Thread_Tickle_timeslice+0xa0> <== NEVER TAKEN
2009358: 01 00 00 00 nop
}
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
if ( --executing->cpu_time_budget == 0 )
200935c: 10 80 00 0d b 2009390 <_Thread_Tickle_timeslice+0x84>
2009360: c2 04 20 78 ld [ %l0 + 0x78 ], %g1
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
#endif
if ( (int)(--executing->cpu_time_budget) <= 0 ) {
2009364: 82 00 7f ff add %g1, -1, %g1
2009368: 80 a0 60 00 cmp %g1, 0
200936c: 14 80 00 07 bg 2009388 <_Thread_Tickle_timeslice+0x7c>
2009370: c2 24 20 78 st %g1, [ %l0 + 0x78 ]
_Thread_Reset_timeslice();
2009374: 40 00 12 98 call 200ddd4 <_Thread_Reset_timeslice>
2009378: 01 00 00 00 nop
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
200937c: 03 00 80 78 sethi %hi(0x201e000), %g1
2009380: c2 00 61 e8 ld [ %g1 + 0x1e8 ], %g1 ! 201e1e8 <_Thread_Ticks_per_timeslice>
2009384: c2 24 20 78 st %g1, [ %l0 + 0x78 ]
2009388: 81 c7 e0 08 ret
200938c: 81 e8 00 00 restore
}
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
if ( --executing->cpu_time_budget == 0 )
2009390: 82 00 7f ff add %g1, -1, %g1
2009394: 80 a0 60 00 cmp %g1, 0
2009398: 12 bf ff fc bne 2009388 <_Thread_Tickle_timeslice+0x7c>
200939c: c2 24 20 78 st %g1, [ %l0 + 0x78 ]
(*executing->budget_callout)( executing );
20093a0: c2 04 20 80 ld [ %l0 + 0x80 ], %g1
20093a4: 9f c0 40 00 call %g1
20093a8: 90 10 00 10 mov %l0, %o0
20093ac: 81 c7 e0 08 ret
20093b0: 81 e8 00 00 restore
020093b4 <_Thread_Yield_processor>:
* ready chain
* select heir
*/
void _Thread_Yield_processor( void )
{
20093b4: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
20093b8: 03 00 80 78 sethi %hi(0x201e000), %g1
20093bc: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing>
ready = executing->ready;
_ISR_Disable( level );
20093c0: 7f ff e3 01 call 2001fc4 <sparc_disable_interrupts>
20093c4: e2 04 20 8c ld [ %l0 + 0x8c ], %l1
20093c8: b0 10 00 08 mov %o0, %i0
if ( !_Chain_Has_only_one_node( ready ) ) {
20093cc: c4 04 40 00 ld [ %l1 ], %g2
20093d0: c2 04 60 08 ld [ %l1 + 8 ], %g1
20093d4: 80 a0 80 01 cmp %g2, %g1
20093d8: 02 80 00 17 be 2009434 <_Thread_Yield_processor+0x80>
20093dc: 25 00 80 78 sethi %hi(0x201e000), %l2
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
20093e0: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
20093e4: c4 04 20 04 ld [ %l0 + 4 ], %g2
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
20093e8: 86 04 60 04 add %l1, 4, %g3
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
previous->next = next;
20093ec: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
20093f0: c6 24 00 00 st %g3, [ %l0 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
20093f4: c4 20 60 04 st %g2, [ %g1 + 4 ]
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
20093f8: c2 04 60 08 ld [ %l1 + 8 ], %g1
the_chain->last = the_node;
20093fc: e0 24 60 08 st %l0, [ %l1 + 8 ]
old_last_node->next = the_node;
the_node->previous = old_last_node;
2009400: c2 24 20 04 st %g1, [ %l0 + 4 ]
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
2009404: e0 20 40 00 st %l0, [ %g1 ]
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
2009408: 7f ff e2 f3 call 2001fd4 <sparc_enable_interrupts>
200940c: 01 00 00 00 nop
2009410: 7f ff e2 ed call 2001fc4 <sparc_disable_interrupts>
2009414: 01 00 00 00 nop
if ( _Thread_Is_heir( executing ) )
2009418: c2 04 a3 20 ld [ %l2 + 0x320 ], %g1
200941c: 80 a4 00 01 cmp %l0, %g1
2009420: 12 80 00 09 bne 2009444 <_Thread_Yield_processor+0x90> <== NEVER TAKEN
2009424: 84 10 20 01 mov 1, %g2
_Thread_Heir = (Thread_Control *) ready->first;
2009428: c2 04 40 00 ld [ %l1 ], %g1
200942c: 10 80 00 06 b 2009444 <_Thread_Yield_processor+0x90>
2009430: c2 24 a3 20 st %g1, [ %l2 + 0x320 ]
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
2009434: c2 04 a3 20 ld [ %l2 + 0x320 ], %g1
2009438: 80 a4 00 01 cmp %l0, %g1
200943c: 02 80 00 04 be 200944c <_Thread_Yield_processor+0x98> <== ALWAYS TAKEN
2009440: 84 10 20 01 mov 1, %g2
_Context_Switch_necessary = true;
2009444: 03 00 80 78 sethi %hi(0x201e000), %g1
2009448: c4 28 63 60 stb %g2, [ %g1 + 0x360 ] ! 201e360 <_Context_Switch_necessary>
_ISR_Enable( level );
200944c: 7f ff e2 e2 call 2001fd4 <sparc_enable_interrupts>
2009450: 81 e8 00 00 restore
02008c4c <_Thread_queue_Enqueue_priority>:
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
2008c4c: 9d e3 bf a0 save %sp, -96, %sp
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
2008c50: e0 06 60 14 ld [ %i1 + 0x14 ], %l0
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2008c54: 82 06 60 3c add %i1, 0x3c, %g1
the_chain->permanent_null = NULL;
2008c58: c0 26 60 3c clr [ %i1 + 0x3c ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2008c5c: c2 26 60 38 st %g1, [ %i1 + 0x38 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2008c60: 82 06 60 38 add %i1, 0x38, %g1
2008c64: c2 26 60 40 st %g1, [ %i1 + 0x40 ]
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
2008c68: 2d 00 80 75 sethi %hi(0x201d400), %l6
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
2008c6c: 83 34 20 06 srl %l0, 6, %g1
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
2008c70: 80 8c 20 20 btst 0x20, %l0
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
2008c74: a7 28 60 04 sll %g1, 4, %l3
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
2008c78: ac 15 a3 54 or %l6, 0x354, %l6
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
2008c7c: 83 28 60 02 sll %g1, 2, %g1
block_state = the_thread_queue->state;
2008c80: ea 06 20 38 ld [ %i0 + 0x38 ], %l5
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
2008c84: a6 24 c0 01 sub %l3, %g1, %l3
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
2008c88: 12 80 00 23 bne 2008d14 <_Thread_queue_Enqueue_priority+0xc8>
2008c8c: a6 06 00 13 add %i0, %l3, %l3
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2008c90: ac 04 e0 04 add %l3, 4, %l6
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
2008c94: 7f ff e4 cc call 2001fc4 <sparc_disable_interrupts>
2008c98: 01 00 00 00 nop
2008c9c: a4 10 00 08 mov %o0, %l2
search_thread = (Thread_Control *) header->first;
2008ca0: a8 10 3f ff mov -1, %l4
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
2008ca4: 10 80 00 10 b 2008ce4 <_Thread_queue_Enqueue_priority+0x98>
2008ca8: e2 04 c0 00 ld [ %l3 ], %l1
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
2008cac: 80 a4 00 14 cmp %l0, %l4
2008cb0: 28 80 00 11 bleu,a 2008cf4 <_Thread_queue_Enqueue_priority+0xa8>
2008cb4: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
break;
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
2008cb8: 7f ff e4 c7 call 2001fd4 <sparc_enable_interrupts>
2008cbc: 90 10 00 12 mov %l2, %o0
2008cc0: 7f ff e4 c1 call 2001fc4 <sparc_disable_interrupts>
2008cc4: 01 00 00 00 nop
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
2008cc8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
2008ccc: 80 8d 40 01 btst %l5, %g1
2008cd0: 32 80 00 05 bne,a 2008ce4 <_Thread_queue_Enqueue_priority+0x98><== ALWAYS TAKEN
2008cd4: e2 04 40 00 ld [ %l1 ], %l1
_ISR_Enable( level );
2008cd8: 7f ff e4 bf call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2008cdc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
goto restart_forward_search;
2008ce0: 30 bf ff ed b,a 2008c94 <_Thread_queue_Enqueue_priority+0x48><== NOT EXECUTED
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
2008ce4: 80 a4 40 16 cmp %l1, %l6
2008ce8: 32 bf ff f1 bne,a 2008cac <_Thread_queue_Enqueue_priority+0x60>
2008cec: e8 04 60 14 ld [ %l1 + 0x14 ], %l4
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
2008cf0: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
2008cf4: 80 a0 60 01 cmp %g1, 1
2008cf8: 12 80 00 37 bne 2008dd4 <_Thread_queue_Enqueue_priority+0x188>
2008cfc: 90 10 00 12 mov %l2, %o0
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
2008d00: 80 a4 00 14 cmp %l0, %l4
2008d04: 12 80 00 2a bne 2008dac <_Thread_queue_Enqueue_priority+0x160>
2008d08: c0 26 20 30 clr [ %i0 + 0x30 ]
2008d0c: 10 80 00 28 b 2008dac <_Thread_queue_Enqueue_priority+0x160>
2008d10: a2 04 60 3c add %l1, 0x3c, %l1
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
2008d14: 7f ff e4 ac call 2001fc4 <sparc_disable_interrupts>
2008d18: e8 0d 80 00 ldub [ %l6 ], %l4
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
2008d1c: a8 05 20 01 inc %l4
_ISR_Disable( level );
2008d20: a4 10 00 08 mov %o0, %l2
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
2008d24: 10 80 00 10 b 2008d64 <_Thread_queue_Enqueue_priority+0x118>
2008d28: e2 04 e0 08 ld [ %l3 + 8 ], %l1
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
2008d2c: 80 a4 00 14 cmp %l0, %l4
2008d30: 3a 80 00 11 bcc,a 2008d74 <_Thread_queue_Enqueue_priority+0x128>
2008d34: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
break;
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
2008d38: 7f ff e4 a7 call 2001fd4 <sparc_enable_interrupts>
2008d3c: 90 10 00 12 mov %l2, %o0
2008d40: 7f ff e4 a1 call 2001fc4 <sparc_disable_interrupts>
2008d44: 01 00 00 00 nop
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
2008d48: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
2008d4c: 80 8d 40 01 btst %l5, %g1
2008d50: 32 80 00 05 bne,a 2008d64 <_Thread_queue_Enqueue_priority+0x118>
2008d54: e2 04 60 04 ld [ %l1 + 4 ], %l1
_ISR_Enable( level );
2008d58: 7f ff e4 9f call 2001fd4 <sparc_enable_interrupts>
2008d5c: 90 10 00 12 mov %l2, %o0
goto restart_reverse_search;
2008d60: 30 bf ff ed b,a 2008d14 <_Thread_queue_Enqueue_priority+0xc8>
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
2008d64: 80 a4 40 13 cmp %l1, %l3
2008d68: 32 bf ff f1 bne,a 2008d2c <_Thread_queue_Enqueue_priority+0xe0>
2008d6c: e8 04 60 14 ld [ %l1 + 0x14 ], %l4
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
2008d70: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
2008d74: 80 a0 60 01 cmp %g1, 1
2008d78: 12 80 00 17 bne 2008dd4 <_Thread_queue_Enqueue_priority+0x188>
2008d7c: 90 10 00 12 mov %l2, %o0
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
2008d80: 80 a4 00 14 cmp %l0, %l4
2008d84: 02 80 00 09 be 2008da8 <_Thread_queue_Enqueue_priority+0x15c>
2008d88: c0 26 20 30 clr [ %i0 + 0x30 ]
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
2008d8c: c2 04 40 00 ld [ %l1 ], %g1
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
2008d90: e2 26 60 04 st %l1, [ %i1 + 4 ]
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
2008d94: c2 26 40 00 st %g1, [ %i1 ]
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
2008d98: f0 26 60 44 st %i0, [ %i1 + 0x44 ]
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
search_node->next = the_node;
2008d9c: f2 24 40 00 st %i1, [ %l1 ]
next_node->previous = the_node;
2008da0: 10 80 00 09 b 2008dc4 <_Thread_queue_Enqueue_priority+0x178>
2008da4: f2 20 60 04 st %i1, [ %g1 + 4 ]
2008da8: a2 04 60 3c add %l1, 0x3c, %l1
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
equal_priority: /* add at end of priority group */
search_node = _Chain_Tail( &search_thread->Wait.Block2n );
previous_node = search_node->previous;
2008dac: c2 04 60 04 ld [ %l1 + 4 ], %g1
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
2008db0: e2 26 40 00 st %l1, [ %i1 ]
the_node->previous = previous_node;
2008db4: c2 26 60 04 st %g1, [ %i1 + 4 ]
previous_node->next = the_node;
search_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
2008db8: f0 26 60 44 st %i0, [ %i1 + 0x44 ]
previous_node = search_node->previous;
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
the_node->previous = previous_node;
previous_node->next = the_node;
2008dbc: f2 20 40 00 st %i1, [ %g1 ]
search_node->previous = the_node;
2008dc0: f2 24 60 04 st %i1, [ %l1 + 4 ]
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
2008dc4: 7f ff e4 84 call 2001fd4 <sparc_enable_interrupts>
2008dc8: b0 10 20 01 mov 1, %i0
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
2008dcc: 81 c7 e0 08 ret
2008dd0: 81 e8 00 00 restore
* the mutex by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
2008dd4: f0 06 20 30 ld [ %i0 + 0x30 ], %i0
* For example, the blocking thread could have been given
* the mutex by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
2008dd8: d0 26 80 00 st %o0, [ %i2 ]
return the_thread_queue->sync_state;
}
2008ddc: 81 c7 e0 08 ret
2008de0: 81 e8 00 00 restore
02008e90 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
2008e90: 9d e3 bf 98 save %sp, -104, %sp
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
2008e94: 80 a6 20 00 cmp %i0, 0
2008e98: 02 80 00 19 be 2008efc <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN
2008e9c: 01 00 00 00 nop
/*
* If queueing by FIFO, there is nothing to do. This only applies to
* priority blocking discipline.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
2008ea0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1
2008ea4: 80 a4 60 01 cmp %l1, 1
2008ea8: 12 80 00 15 bne 2008efc <_Thread_queue_Requeue+0x6c> <== NEVER TAKEN
2008eac: 01 00 00 00 nop
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
2008eb0: 7f ff e4 45 call 2001fc4 <sparc_disable_interrupts>
2008eb4: 01 00 00 00 nop
2008eb8: a0 10 00 08 mov %o0, %l0
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
2008ebc: c4 06 60 10 ld [ %i1 + 0x10 ], %g2
2008ec0: 03 00 00 ef sethi %hi(0x3bc00), %g1
2008ec4: 82 10 62 e0 or %g1, 0x2e0, %g1 ! 3bee0 <PROM_START+0x3bee0>
2008ec8: 80 88 80 01 btst %g2, %g1
2008ecc: 02 80 00 0a be 2008ef4 <_Thread_queue_Requeue+0x64> <== NEVER TAKEN
2008ed0: 94 10 20 01 mov 1, %o2
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
2008ed4: 90 10 00 18 mov %i0, %o0
2008ed8: 92 10 00 19 mov %i1, %o1
2008edc: 40 00 13 1d call 200db50 <_Thread_queue_Extract_priority_helper>
2008ee0: e2 26 20 30 st %l1, [ %i0 + 0x30 ]
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
2008ee4: 90 10 00 18 mov %i0, %o0
2008ee8: 92 10 00 19 mov %i1, %o1
2008eec: 7f ff ff 58 call 2008c4c <_Thread_queue_Enqueue_priority>
2008ef0: 94 07 bf fc add %fp, -4, %o2
}
_ISR_Enable( level );
2008ef4: 7f ff e4 38 call 2001fd4 <sparc_enable_interrupts>
2008ef8: 90 10 00 10 mov %l0, %o0
2008efc: 81 c7 e0 08 ret
2008f00: 81 e8 00 00 restore
02008f04 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
2008f04: 9d e3 bf 98 save %sp, -104, %sp
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
2008f08: 90 10 00 18 mov %i0, %o0
2008f0c: 7f ff fd d3 call 2008658 <_Thread_Get>
2008f10: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2008f14: c2 07 bf fc ld [ %fp + -4 ], %g1
2008f18: 80 a0 60 00 cmp %g1, 0
2008f1c: 12 80 00 08 bne 2008f3c <_Thread_queue_Timeout+0x38> <== NEVER TAKEN
2008f20: 01 00 00 00 nop
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
2008f24: 40 00 13 42 call 200dc2c <_Thread_queue_Process_timeout>
2008f28: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
2008f2c: 03 00 80 78 sethi %hi(0x201e000), %g1
2008f30: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level>
2008f34: 84 00 bf ff add %g2, -1, %g2
2008f38: c4 20 62 90 st %g2, [ %g1 + 0x290 ]
2008f3c: 81 c7 e0 08 ret
2008f40: 81 e8 00 00 restore
020012e0 <_Timer_Manager_initialization>:
#include <rtems/rtems/types.h>
#include <rtems/rtems/timer.h>
void _Timer_Manager_initialization(void)
{
}
20012e0: 81 c3 e0 08 retl
02015de4 <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
2015de4: 9d e3 bf 88 save %sp, -120, %sp
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
2015de8: 35 00 80 fc sethi %hi(0x203f000), %i2
2015dec: b2 07 bf f4 add %fp, -12, %i1
2015df0: ac 07 bf f8 add %fp, -8, %l6
2015df4: a2 07 bf e8 add %fp, -24, %l1
2015df8: a6 07 bf ec add %fp, -20, %l3
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
2015dfc: 37 00 80 fb sethi %hi(0x203ec00), %i3
2015e00: 2b 00 80 fb sethi %hi(0x203ec00), %l5
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2015e04: c0 27 bf f8 clr [ %fp + -8 ]
2015e08: c0 27 bf ec clr [ %fp + -20 ]
the_chain->last = _Chain_Head(the_chain);
2015e0c: f2 27 bf fc st %i1, [ %fp + -4 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2015e10: ec 27 bf f4 st %l6, [ %fp + -12 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
2015e14: e2 27 bf f0 st %l1, [ %fp + -16 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2015e18: e6 27 bf e8 st %l3, [ %fp + -24 ]
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
2015e1c: b4 16 a0 a4 or %i2, 0xa4, %i2
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
2015e20: b6 16 e3 e4 or %i3, 0x3e4, %i3
2015e24: aa 15 63 50 or %l5, 0x350, %l5
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2015e28: a8 06 20 30 add %i0, 0x30, %l4
/*
* This path is for normal forward movement and cases where the
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2015e2c: a4 06 20 68 add %i0, 0x68, %l2
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
2015e30: b8 06 20 08 add %i0, 8, %i4
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
2015e34: ba 06 20 40 add %i0, 0x40, %i5
_Thread_Set_state( ts->thread, STATES_DELAYING );
_Timer_server_Reset_interval_system_watchdog( ts );
_Timer_server_Reset_tod_system_watchdog( ts );
_Thread_Enable_dispatch();
ts->active = true;
2015e38: ae 10 20 01 mov 1, %l7
{
/*
* Afterwards all timer inserts are directed to this chain and the interval
* and TOD chains will be no more modified by other parties.
*/
ts->insert_chain = insert_chain;
2015e3c: f2 26 20 78 st %i1, [ %i0 + 0x78 ]
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
2015e40: c2 06 80 00 ld [ %i2 ], %g1
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
2015e44: d2 06 20 3c ld [ %i0 + 0x3c ], %o1
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2015e48: 94 10 00 11 mov %l1, %o2
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
2015e4c: c2 26 20 3c st %g1, [ %i0 + 0x3c ]
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2015e50: 92 20 40 09 sub %g1, %o1, %o1
2015e54: 40 00 11 b3 call 201a520 <_Watchdog_Adjust_to_chain>
2015e58: 90 10 00 14 mov %l4, %o0
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
2015e5c: d4 06 20 74 ld [ %i0 + 0x74 ], %o2
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
2015e60: e0 06 c0 00 ld [ %i3 ], %l0
/*
* Process the seconds chain. Start by checking that the Time
* of Day (TOD) has not been set backwards. If it has then
* we want to adjust the watchdogs->Chain to indicate this.
*/
if ( snapshot > last_snapshot ) {
2015e64: 80 a4 00 0a cmp %l0, %o2
2015e68: 08 80 00 06 bleu 2015e80 <_Timer_server_Body+0x9c>
2015e6c: 92 24 00 0a sub %l0, %o2, %o1
/*
* This path is for normal forward movement and cases where the
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
2015e70: 90 10 00 12 mov %l2, %o0
2015e74: 40 00 11 ab call 201a520 <_Watchdog_Adjust_to_chain>
2015e78: 94 10 00 11 mov %l1, %o2
2015e7c: 30 80 00 06 b,a 2015e94 <_Timer_server_Body+0xb0>
} else if ( snapshot < last_snapshot ) {
2015e80: 1a 80 00 05 bcc 2015e94 <_Timer_server_Body+0xb0>
2015e84: 94 22 80 10 sub %o2, %l0, %o2
/*
* The current TOD is before the last TOD which indicates that
* TOD has been set backwards.
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
2015e88: 90 10 00 12 mov %l2, %o0
2015e8c: 40 00 11 7e call 201a484 <_Watchdog_Adjust>
2015e90: 92 10 20 01 mov 1, %o1
}
watchdogs->last_snapshot = snapshot;
2015e94: e0 26 20 74 st %l0, [ %i0 + 0x74 ]
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
2015e98: d0 06 20 78 ld [ %i0 + 0x78 ], %o0
2015e9c: 40 00 02 7a call 2016884 <_Chain_Get>
2015ea0: 01 00 00 00 nop
if ( timer == NULL ) {
2015ea4: 80 a2 20 00 cmp %o0, 0
2015ea8: 02 80 00 0f be 2015ee4 <_Timer_server_Body+0x100>
2015eac: 01 00 00 00 nop
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
2015eb0: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
2015eb4: 80 a0 60 01 cmp %g1, 1
2015eb8: 12 80 00 05 bne 2015ecc <_Timer_server_Body+0xe8>
2015ebc: 80 a0 60 03 cmp %g1, 3
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
2015ec0: 92 02 20 10 add %o0, 0x10, %o1
2015ec4: 10 80 00 05 b 2015ed8 <_Timer_server_Body+0xf4>
2015ec8: 90 10 00 14 mov %l4, %o0
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
2015ecc: 12 bf ff f3 bne 2015e98 <_Timer_server_Body+0xb4> <== NEVER TAKEN
2015ed0: 92 02 20 10 add %o0, 0x10, %o1
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
2015ed4: 90 10 00 12 mov %l2, %o0
2015ed8: 40 00 11 c7 call 201a5f4 <_Watchdog_Insert>
2015edc: 01 00 00 00 nop
2015ee0: 30 bf ff ee b,a 2015e98 <_Timer_server_Body+0xb4>
* of zero it will be processed in the next iteration of the timer server
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
2015ee4: 7f ff e2 57 call 200e840 <sparc_disable_interrupts>
2015ee8: 01 00 00 00 nop
if ( _Chain_Is_empty( insert_chain ) ) {
2015eec: c2 07 bf f4 ld [ %fp + -12 ], %g1
2015ef0: 80 a0 40 16 cmp %g1, %l6
2015ef4: 12 80 00 0a bne 2015f1c <_Timer_server_Body+0x138> <== NEVER TAKEN
2015ef8: 01 00 00 00 nop
ts->insert_chain = NULL;
2015efc: c0 26 20 78 clr [ %i0 + 0x78 ]
_ISR_Enable( level );
2015f00: 7f ff e2 54 call 200e850 <sparc_enable_interrupts>
2015f04: 01 00 00 00 nop
_Chain_Initialize_empty( &fire_chain );
while ( true ) {
_Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
if ( !_Chain_Is_empty( &fire_chain ) ) {
2015f08: c2 07 bf e8 ld [ %fp + -24 ], %g1
2015f0c: 80 a0 40 13 cmp %g1, %l3
2015f10: 12 80 00 06 bne 2015f28 <_Timer_server_Body+0x144>
2015f14: 01 00 00 00 nop
2015f18: 30 80 00 1a b,a 2015f80 <_Timer_server_Body+0x19c>
ts->insert_chain = NULL;
_ISR_Enable( level );
break;
} else {
_ISR_Enable( level );
2015f1c: 7f ff e2 4d call 200e850 <sparc_enable_interrupts> <== NOT EXECUTED
2015f20: 01 00 00 00 nop <== NOT EXECUTED
2015f24: 30 bf ff c7 b,a 2015e40 <_Timer_server_Body+0x5c> <== NOT EXECUTED
/*
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
2015f28: 7f ff e2 46 call 200e840 <sparc_disable_interrupts>
2015f2c: 01 00 00 00 nop
2015f30: 84 10 00 08 mov %o0, %g2
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
2015f34: e0 07 bf e8 ld [ %fp + -24 ], %l0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
2015f38: 80 a4 00 13 cmp %l0, %l3
2015f3c: 02 80 00 0e be 2015f74 <_Timer_server_Body+0x190>
2015f40: 80 a4 20 00 cmp %l0, 0
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
2015f44: c2 04 00 00 ld [ %l0 ], %g1
the_chain->first = new_first;
2015f48: c2 27 bf e8 st %g1, [ %fp + -24 ]
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
2015f4c: 02 80 00 0a be 2015f74 <_Timer_server_Body+0x190> <== NEVER TAKEN
2015f50: e2 20 60 04 st %l1, [ %g1 + 4 ]
watchdog->state = WATCHDOG_INACTIVE;
2015f54: c0 24 20 08 clr [ %l0 + 8 ]
_ISR_Enable( level );
2015f58: 7f ff e2 3e call 200e850 <sparc_enable_interrupts>
2015f5c: 01 00 00 00 nop
/*
* The timer server may block here and wait for resources or time.
* The system watchdogs are inactive and will remain inactive since
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
2015f60: d2 04 20 24 ld [ %l0 + 0x24 ], %o1
2015f64: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
2015f68: 9f c0 40 00 call %g1
2015f6c: d0 04 20 20 ld [ %l0 + 0x20 ], %o0
}
2015f70: 30 bf ff ee b,a 2015f28 <_Timer_server_Body+0x144>
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
_ISR_Enable( level );
} else {
_ISR_Enable( level );
2015f74: 7f ff e2 37 call 200e850 <sparc_enable_interrupts>
2015f78: 90 10 00 02 mov %g2, %o0
2015f7c: 30 bf ff b0 b,a 2015e3c <_Timer_server_Body+0x58>
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
2015f80: c0 2e 20 7c clrb [ %i0 + 0x7c ]
2015f84: c2 05 40 00 ld [ %l5 ], %g1
2015f88: 82 00 60 01 inc %g1
2015f8c: c2 25 40 00 st %g1, [ %l5 ]
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
2015f90: d0 06 00 00 ld [ %i0 ], %o0
2015f94: 40 00 0e 99 call 20199f8 <_Thread_Set_state>
2015f98: 92 10 20 08 mov 8, %o1
_Timer_server_Reset_interval_system_watchdog( ts );
2015f9c: 7f ff ff 68 call 2015d3c <_Timer_server_Reset_interval_system_watchdog>
2015fa0: 90 10 00 18 mov %i0, %o0
_Timer_server_Reset_tod_system_watchdog( ts );
2015fa4: 7f ff ff 7b call 2015d90 <_Timer_server_Reset_tod_system_watchdog>
2015fa8: 90 10 00 18 mov %i0, %o0
_Thread_Enable_dispatch();
2015fac: 40 00 0b c2 call 2018eb4 <_Thread_Enable_dispatch>
2015fb0: 01 00 00 00 nop
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
2015fb4: 90 10 00 1c mov %i4, %o0
_Thread_Set_state( ts->thread, STATES_DELAYING );
_Timer_server_Reset_interval_system_watchdog( ts );
_Timer_server_Reset_tod_system_watchdog( ts );
_Thread_Enable_dispatch();
ts->active = true;
2015fb8: ee 2e 20 7c stb %l7, [ %i0 + 0x7c ]
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
2015fbc: 40 00 11 ea call 201a764 <_Watchdog_Remove>
2015fc0: 01 00 00 00 nop
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
2015fc4: 40 00 11 e8 call 201a764 <_Watchdog_Remove>
2015fc8: 90 10 00 1d mov %i5, %o0
2015fcc: 30 bf ff 9c b,a 2015e3c <_Timer_server_Body+0x58>
0200b978 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
200b978: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
_ISR_Disable( level );
200b97c: 7f ff dd 78 call 2002f5c <sparc_disable_interrupts>
200b980: a0 10 00 18 mov %i0, %l0
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
200b984: c2 06 00 00 ld [ %i0 ], %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200b988: a2 06 20 04 add %i0, 4, %l1
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
200b98c: 80 a0 40 11 cmp %g1, %l1
200b990: 02 80 00 1e be 200ba08 <_Watchdog_Adjust+0x90>
200b994: 80 a6 60 00 cmp %i1, 0
switch ( direction ) {
200b998: 02 80 00 19 be 200b9fc <_Watchdog_Adjust+0x84>
200b99c: a4 10 20 01 mov 1, %l2
200b9a0: 80 a6 60 01 cmp %i1, 1
200b9a4: 12 80 00 19 bne 200ba08 <_Watchdog_Adjust+0x90> <== NEVER TAKEN
200b9a8: 01 00 00 00 nop
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
200b9ac: c4 00 60 10 ld [ %g1 + 0x10 ], %g2
200b9b0: 10 80 00 07 b 200b9cc <_Watchdog_Adjust+0x54>
200b9b4: b4 00 80 1a add %g2, %i2, %i2
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
200b9b8: f2 00 60 10 ld [ %g1 + 0x10 ], %i1
200b9bc: 80 a6 80 19 cmp %i2, %i1
200b9c0: 3a 80 00 05 bcc,a 200b9d4 <_Watchdog_Adjust+0x5c>
200b9c4: e4 20 60 10 st %l2, [ %g1 + 0x10 ]
_Watchdog_First( header )->delta_interval -= units;
200b9c8: b4 26 40 1a sub %i1, %i2, %i2
break;
200b9cc: 10 80 00 0f b 200ba08 <_Watchdog_Adjust+0x90>
200b9d0: f4 20 60 10 st %i2, [ %g1 + 0x10 ]
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
_ISR_Enable( level );
200b9d4: 7f ff dd 66 call 2002f6c <sparc_enable_interrupts>
200b9d8: 01 00 00 00 nop
_Watchdog_Tickle( header );
200b9dc: 40 00 00 94 call 200bc2c <_Watchdog_Tickle>
200b9e0: 90 10 00 10 mov %l0, %o0
_ISR_Disable( level );
200b9e4: 7f ff dd 5e call 2002f5c <sparc_disable_interrupts>
200b9e8: 01 00 00 00 nop
if ( _Chain_Is_empty( header ) )
200b9ec: c2 04 00 00 ld [ %l0 ], %g1
200b9f0: 80 a0 40 11 cmp %g1, %l1
200b9f4: 02 80 00 05 be 200ba08 <_Watchdog_Adjust+0x90>
200b9f8: b4 26 80 19 sub %i2, %i1, %i2
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
200b9fc: 80 a6 a0 00 cmp %i2, 0
200ba00: 32 bf ff ee bne,a 200b9b8 <_Watchdog_Adjust+0x40> <== ALWAYS TAKEN
200ba04: c2 04 00 00 ld [ %l0 ], %g1
}
break;
}
}
_ISR_Enable( level );
200ba08: 7f ff dd 59 call 2002f6c <sparc_enable_interrupts>
200ba0c: 91 e8 00 08 restore %g0, %o0, %o0
02009944 <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
2009944: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
2009948: 7f ff e1 9f call 2001fc4 <sparc_disable_interrupts>
200994c: a0 10 00 18 mov %i0, %l0
previous_state = the_watchdog->state;
2009950: f0 06 20 08 ld [ %i0 + 8 ], %i0
switch ( previous_state ) {
2009954: 80 a6 20 01 cmp %i0, 1
2009958: 22 80 00 1e be,a 20099d0 <_Watchdog_Remove+0x8c>
200995c: c0 24 20 08 clr [ %l0 + 8 ]
2009960: 0a 80 00 1d bcs 20099d4 <_Watchdog_Remove+0x90>
2009964: 03 00 80 78 sethi %hi(0x201e000), %g1
2009968: 80 a6 20 03 cmp %i0, 3
200996c: 18 80 00 1a bgu 20099d4 <_Watchdog_Remove+0x90> <== NEVER TAKEN
2009970: 01 00 00 00 nop
2009974: c2 04 00 00 ld [ %l0 ], %g1
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
2009978: c0 24 20 08 clr [ %l0 + 8 ]
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
200997c: c4 00 40 00 ld [ %g1 ], %g2
2009980: 80 a0 a0 00 cmp %g2, 0
2009984: 22 80 00 07 be,a 20099a0 <_Watchdog_Remove+0x5c>
2009988: 03 00 80 78 sethi %hi(0x201e000), %g1
next_watchdog->delta_interval += the_watchdog->delta_interval;
200998c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 ! 201e010 <Console_Port_Data+0x60>
2009990: c4 04 20 10 ld [ %l0 + 0x10 ], %g2
2009994: 84 00 c0 02 add %g3, %g2, %g2
2009998: c4 20 60 10 st %g2, [ %g1 + 0x10 ]
if ( _Watchdog_Sync_count )
200999c: 03 00 80 78 sethi %hi(0x201e000), %g1
20099a0: c2 00 63 e0 ld [ %g1 + 0x3e0 ], %g1 ! 201e3e0 <_Watchdog_Sync_count>
20099a4: 80 a0 60 00 cmp %g1, 0
20099a8: 22 80 00 07 be,a 20099c4 <_Watchdog_Remove+0x80>
20099ac: c2 04 00 00 ld [ %l0 ], %g1
_Watchdog_Sync_level = _ISR_Nest_level;
20099b0: 03 00 80 78 sethi %hi(0x201e000), %g1
20099b4: c4 00 63 2c ld [ %g1 + 0x32c ], %g2 ! 201e32c <_ISR_Nest_level>
20099b8: 03 00 80 78 sethi %hi(0x201e000), %g1
20099bc: c4 20 63 4c st %g2, [ %g1 + 0x34c ] ! 201e34c <_Watchdog_Sync_level>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
20099c0: c2 04 00 00 ld [ %l0 ], %g1
previous = the_node->previous;
20099c4: c4 04 20 04 ld [ %l0 + 4 ], %g2
next->previous = previous;
previous->next = next;
20099c8: c2 20 80 00 st %g1, [ %g2 ]
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
20099cc: c4 20 60 04 st %g2, [ %g1 + 4 ]
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
20099d0: 03 00 80 78 sethi %hi(0x201e000), %g1
20099d4: c2 00 63 e4 ld [ %g1 + 0x3e4 ], %g1 ! 201e3e4 <_Watchdog_Ticks_since_boot>
20099d8: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
_ISR_Enable( level );
20099dc: 7f ff e1 7e call 2001fd4 <sparc_enable_interrupts>
20099e0: 01 00 00 00 nop
return( previous_state );
}
20099e4: 81 c7 e0 08 ret
20099e8: 81 e8 00 00 restore
0200b0e8 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
200b0e8: 9d e3 bf a0 save %sp, -96, %sp
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
200b0ec: 7f ff de 5a call 2002a54 <sparc_disable_interrupts>
200b0f0: a0 10 00 18 mov %i0, %l0
200b0f4: b0 10 00 08 mov %o0, %i0
printk( "Watchdog Chain: %s %p\n", name, header );
200b0f8: 11 00 80 87 sethi %hi(0x2021c00), %o0
200b0fc: 94 10 00 19 mov %i1, %o2
200b100: 90 12 21 f0 or %o0, 0x1f0, %o0
200b104: 7f ff e5 a6 call 200479c <printk>
200b108: 92 10 00 10 mov %l0, %o1
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
200b10c: e2 06 40 00 ld [ %i1 ], %l1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200b110: b2 06 60 04 add %i1, 4, %i1
if ( !_Chain_Is_empty( header ) ) {
200b114: 80 a4 40 19 cmp %l1, %i1
200b118: 02 80 00 0e be 200b150 <_Watchdog_Report_chain+0x68>
200b11c: 11 00 80 87 sethi %hi(0x2021c00), %o0
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
200b120: 92 10 00 11 mov %l1, %o1
200b124: 40 00 00 10 call 200b164 <_Watchdog_Report>
200b128: 90 10 20 00 clr %o0
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = header->first ;
node != _Chain_Tail(header) ;
node = node->next )
200b12c: e2 04 40 00 ld [ %l1 ], %l1
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = header->first ;
200b130: 80 a4 40 19 cmp %l1, %i1
200b134: 12 bf ff fc bne 200b124 <_Watchdog_Report_chain+0x3c> <== NEVER TAKEN
200b138: 92 10 00 11 mov %l1, %o1
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
200b13c: 92 10 00 10 mov %l0, %o1
200b140: 11 00 80 87 sethi %hi(0x2021c00), %o0
200b144: 7f ff e5 96 call 200479c <printk>
200b148: 90 12 22 08 or %o0, 0x208, %o0 ! 2021e08 <C.33.3522+0x2c>
200b14c: 30 80 00 03 b,a 200b158 <_Watchdog_Report_chain+0x70>
} else {
printk( "Chain is empty\n" );
200b150: 7f ff e5 93 call 200479c <printk>
200b154: 90 12 22 18 or %o0, 0x218, %o0
}
_ISR_Enable( level );
200b158: 7f ff de 43 call 2002a64 <sparc_enable_interrupts>
200b15c: 81 e8 00 00 restore
0201b598 <_exit>:
/*
* If the toolset uses init/fini sections, then we need to
* run the global destructors now.
*/
#if defined(__USE_INIT_FINI__)
FINI_SYMBOL();
201b598: 9d e3 bf a0 save %sp, -96, %sp
201b59c: 40 00 08 36 call 201d674 <_fini>
201b5a0: 01 00 00 00 nop
* We need to do the exit processing on the global reentrancy structure.
* This has already been done on the per task reentrancy structure
* associated with this task.
*/
libc_wrapup();
201b5a4: 7f ff ff e1 call 201b528 <libc_wrapup>
201b5a8: 01 00 00 00 nop
rtems_shutdown_executive(status);
201b5ac: 40 00 00 4c call 201b6dc <rtems_shutdown_executive>
201b5b0: 90 10 00 18 mov %i0, %o0
201b5b4: 30 80 00 00 b,a 201b5b4 <_exit+0x1c> <== NOT EXECUTED
02026424 <_fat_block_read>:
uint32_t start,
uint32_t offset,
uint32_t count,
void *buff
)
{
2026424: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
2026428: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
202642c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
2026430: b0 10 20 00 clr %i0 <== NOT EXECUTED
uint32_t c = 0;
while (count > 0)
2026434: 10 80 00 18 b 2026494 <_fat_block_read+0x70> <== NOT EXECUTED
2026438: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
202643c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2026440: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2026444: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2026448: 7f ff fe 91 call 2025e8c <fat_buf_access> <== NOT EXECUTED
202644c: b2 06 60 01 inc %i1 <== NOT EXECUTED
if (rc != RC_OK)
2026450: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026454: 22 80 00 04 be,a 2026464 <_fat_block_read+0x40> <== NOT EXECUTED
2026458: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
202645c: 81 c7 e0 08 ret <== NOT EXECUTED
2026460: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
2026464: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
2026468: 94 22 80 1a sub %o2, %i2, %o2 <== NOT EXECUTED
202646c: 80 a2 80 1b cmp %o2, %i3 <== NOT EXECUTED
2026470: 08 80 00 03 bleu 202647c <_fat_block_read+0x58> <== NOT EXECUTED
2026474: 90 07 00 18 add %i4, %i0, %o0 <== NOT EXECUTED
2026478: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
memcpy((buff + cmpltd), (block->buffer + ofs), c);
202647c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
count -= c;
cmpltd += c;
2026480: b0 02 80 18 add %o2, %i0, %i0 <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
2026484: 92 02 40 1a add %o1, %i2, %o1 <== NOT EXECUTED
count -= c;
2026488: b6 26 c0 0a sub %i3, %o2, %i3 <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
if (rc != RC_OK)
return -1;
c = MIN(count, (fs_info->vol.bps - ofs));
memcpy((buff + cmpltd), (block->buffer + ofs), c);
202648c: 40 00 84 ce call 20477c4 <memcpy> <== NOT EXECUTED
2026490: b4 10 20 00 clr %i2 <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while (count > 0)
2026494: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2026498: 12 bf ff e9 bne 202643c <_fat_block_read+0x18> <== NOT EXECUTED
202649c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
cmpltd += c;
blk++;
ofs = 0;
}
return cmpltd;
}
20264a0: 81 c7 e0 08 ret <== NOT EXECUTED
20264a4: 81 e8 00 00 restore <== NOT EXECUTED
02025e78 <_fat_block_release>:
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
2025e78: d0 02 20 34 ld [ %o0 + 0x34 ], %o0 <== NOT EXECUTED
2025e7c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2025e80: 7f ff ff a2 call 2025d08 <fat_buf_release> <== NOT EXECUTED
2025e84: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02026088 <_fat_block_write>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start,
uint32_t offset,
uint32_t count,
const void *buff)
{
2026088: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
202608c: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2026090: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
ssize_t cmpltd = 0;
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
2026094: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
2026098: b0 10 20 00 clr %i0 <== NOT EXECUTED
uint32_t c = 0;
while(count > 0)
202609c: 10 80 00 22 b 2026124 <_fat_block_write+0x9c> <== NOT EXECUTED
20260a0: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
{
c = MIN(count, (fs_info->vol.bps - ofs));
20260a4: a2 20 40 1a sub %g1, %i2, %l1 <== NOT EXECUTED
20260a8: 80 a4 40 1b cmp %l1, %i3 <== NOT EXECUTED
20260ac: 08 80 00 03 bleu 20260b8 <_fat_block_write+0x30> <== NOT EXECUTED
20260b0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20260b4: a2 10 00 1b mov %i3, %l1 <== NOT EXECUTED
if (c == fs_info->vol.bps)
20260b8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
20260bc: 32 80 00 07 bne,a 20260d8 <_fat_block_write+0x50> <== NOT EXECUTED
20260c0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_GET, &block);
20260c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20260c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20260cc: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED
20260d0: 10 80 00 04 b 20260e0 <_fat_block_write+0x58> <== NOT EXECUTED
20260d4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
else
rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
20260d8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20260dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20260e0: 7f ff ff 6b call 2025e8c <fat_buf_access> <== NOT EXECUTED
20260e4: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
20260e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20260ec: 02 80 00 04 be 20260fc <_fat_block_write+0x74> <== NOT EXECUTED
20260f0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20260f4: 81 c7 e0 08 ret <== NOT EXECUTED
20260f8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
memcpy((block->buffer + ofs), (buff + cmpltd), c);
20260fc: 92 07 00 18 add %i4, %i0, %o1 <== NOT EXECUTED
2026100: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2026104: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2026108: 90 02 00 1a add %o0, %i2, %o0 <== NOT EXECUTED
202610c: 40 00 85 ae call 20477c4 <memcpy> <== NOT EXECUTED
2026110: b6 26 c0 11 sub %i3, %l1, %i3 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
blk++;
2026114: b2 06 60 01 inc %i1 <== NOT EXECUTED
memcpy((block->buffer + ofs), (buff + cmpltd), c);
fat_buf_mark_modified(fs_info);
count -= c;
cmpltd +=c;
2026118: b0 04 40 18 add %l1, %i0, %i0 <== NOT EXECUTED
202611c: e6 2c 20 84 stb %l3, [ %l0 + 0x84 ] <== NOT EXECUTED
blk++;
2026120: b4 10 20 00 clr %i2 <== NOT EXECUTED
uint32_t blk = start;
uint32_t ofs = offset;
rtems_bdbuf_buffer *block = NULL;
uint32_t c = 0;
while(count > 0)
2026124: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2026128: 32 bf ff df bne,a 20260a4 <_fat_block_write+0x1c> <== NOT EXECUTED
202612c: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
cmpltd +=c;
blk++;
ofs = 0;
}
return cmpltd;
}
2026130: 81 c7 e0 08 ret <== NOT EXECUTED
2026134: 81 e8 00 00 restore <== NOT EXECUTED
02040280 <_fcntl_r>:
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
2040280: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
2040284: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
2040288: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED
204028c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2040290: 7f ff ff 7f call 204008c <fcntl> <== NOT EXECUTED
2040294: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200bf80 <_getpid_r>:
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
return getpid();
}
200bf80: 81 c3 e0 08 retl <== NOT EXECUTED
200bf84: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
02002c08 <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
2002c08: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2002c0c: 7f ff ff e6 call 2002ba4 <gettimeofday> <== NOT EXECUTED
2002c10: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02029c8c <_link_r>:
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
2029c8c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
2029c90: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
2029c94: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2029c98: 7f ff ff 74 call 2029a68 <link> <== NOT EXECUTED
2029c9c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02029ed4 <_lstat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
2029ed4: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
2029ed8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
2029edc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2029ee0: 7f ff ff c0 call 2029de0 <lstat> <== NOT EXECUTED
2029ee4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0201b6a8 <_realloc_r>:
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
201b6a8: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
201b6ac: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
201b6b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
201b6b4: 40 00 00 17 call 201b710 <realloc> <== NOT EXECUTED
201b6b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0205df00 <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
205df00: 9d e3 bf 58 save %sp, -168, %sp
/*
* Get the parent node of the old path to be renamed. Find the parent path.
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
205df04: 7f fe a8 6e call 20080bc <rtems_filesystem_dirname>
205df08: 90 10 00 19 mov %i1, %o0
if ( old_parent_pathlen == 0 )
205df0c: a0 92 20 00 orcc %o0, 0, %l0
205df10: 12 80 00 09 bne 205df34 <_rename_r+0x34>
205df14: 96 07 bf d0 add %fp, -48, %o3
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
205df18: 94 10 00 0b mov %o3, %o2
205df1c: 90 10 00 19 mov %i1, %o0
205df20: 92 07 bf fc add %fp, -4, %o1
205df24: 7f fe af 53 call 2009c70 <rtems_filesystem_get_start_loc>
205df28: a2 10 20 00 clr %l1
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
205df2c: 10 80 00 0b b 205df58 <_rename_r+0x58>
205df30: 94 10 20 14 mov 0x14, %o2
old_parent_pathlen = rtems_filesystem_dirname ( old );
if ( old_parent_pathlen == 0 )
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
205df34: 90 10 00 19 mov %i1, %o0
205df38: 92 10 00 10 mov %l0, %o1
205df3c: 94 10 20 02 mov 2, %o2
205df40: 7f fe a8 ab call 20081ec <rtems_filesystem_evaluate_path>
205df44: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
205df48: 80 a2 20 00 cmp %o0, 0
205df4c: 12 80 00 de bne 205e2c4 <_rename_r+0x3c4> <== NEVER TAKEN
205df50: a2 10 20 01 mov 1, %l1
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
205df54: 94 10 20 14 mov 0x14, %o2
205df58: a6 07 bf e4 add %fp, -28, %l3
205df5c: a4 07 bf d0 add %fp, -48, %l2
205df60: 90 10 00 13 mov %l3, %o0
205df64: 7f ff a6 18 call 20477c4 <memcpy>
205df68: 92 10 00 12 mov %l2, %o1
name = old + old_parent_pathlen;
205df6c: b2 06 40 10 add %i1, %l0, %i1
205df70: f2 27 bf f8 st %i1, [ %fp + -8 ]
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
205df74: 7f ff b4 84 call 204b184 <strlen>
205df78: 90 10 00 19 mov %i1, %o0
205df7c: 92 10 00 08 mov %o0, %o1
205df80: 7f fe a8 3d call 2008074 <rtems_filesystem_prefix_separators>
205df84: 90 10 00 19 mov %i1, %o0
205df88: b2 06 40 08 add %i1, %o0, %i1
205df8c: f2 27 bf f8 st %i1, [ %fp + -8 ]
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
205df90: 7f ff b4 7d call 204b184 <strlen>
205df94: 90 10 00 19 mov %i1, %o0
205df98: 94 10 20 00 clr %o2
205df9c: 92 10 00 08 mov %o0, %o1
205dfa0: 96 10 00 13 mov %l3, %o3
205dfa4: 90 10 00 19 mov %i1, %o0
205dfa8: 7f fe a8 55 call 20080fc <rtems_filesystem_evaluate_relative_path>
205dfac: 98 10 20 00 clr %o4
0, &old_loc, false );
if ( result != 0 ) {
205dfb0: 80 a2 20 00 cmp %o0, 0
205dfb4: 22 80 00 0e be,a 205dfec <_rename_r+0xec>
205dfb8: a0 07 bf bc add %fp, -68, %l0
if ( free_old_parentloc )
205dfbc: 80 8c 60 ff btst 0xff, %l1
205dfc0: 02 80 00 49 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN
205dfc4: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &old_parent_loc );
205dfc8: c2 07 bf dc ld [ %fp + -36 ], %g1
205dfcc: 80 a0 60 00 cmp %g1, 0
205dfd0: 02 80 00 be be 205e2c8 <_rename_r+0x3c8> <== NEVER TAKEN
205dfd4: 01 00 00 00 nop
205dfd8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205dfdc: 80 a0 60 00 cmp %g1, 0
205dfe0: 02 80 00 41 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN
205dfe4: 90 10 00 12 mov %l2, %o0
205dfe8: 30 80 00 3d b,a 205e0dc <_rename_r+0x1dc>
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
205dfec: 90 10 00 1a mov %i2, %o0
205dff0: 92 07 bf fc add %fp, -4, %o1
205dff4: 7f fe af 1f call 2009c70 <rtems_filesystem_get_start_loc>
205dff8: 94 10 00 10 mov %l0, %o2
if ( !new_parent_loc.ops->evalformake_h ) {
205dffc: c2 07 bf c8 ld [ %fp + -56 ], %g1
205e000: c2 00 60 04 ld [ %g1 + 4 ], %g1
205e004: 80 a0 60 00 cmp %g1, 0
205e008: 12 80 00 0f bne 205e044 <_rename_r+0x144>
205e00c: d0 07 bf fc ld [ %fp + -4 ], %o0
if ( free_old_parentloc )
205e010: 80 8c 60 ff btst 0xff, %l1
205e014: 02 80 00 76 be 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN
205e018: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205e01c: c2 07 bf dc ld [ %fp + -36 ], %g1
205e020: 80 a0 60 00 cmp %g1, 0
205e024: 22 80 00 72 be,a 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN
205e028: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e02c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e030: 80 a0 60 00 cmp %g1, 0
205e034: 12 80 00 6b bne 205e1e0 <_rename_r+0x2e0> <== ALWAYS TAKEN
205e038: 90 10 00 12 mov %l2, %o0
if ( !new_parent_loc.ops->rename_h ) {
rtems_filesystem_freenode( &new_parent_loc );
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
205e03c: 10 80 00 6c b 205e1ec <_rename_r+0x2ec> <== NOT EXECUTED
205e040: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
205e044: 92 10 00 10 mov %l0, %o1
205e048: 90 06 80 08 add %i2, %o0, %o0
205e04c: 9f c0 40 00 call %g1
205e050: 94 07 bf f8 add %fp, -8, %o2
if ( result != 0 ) {
205e054: 80 a2 20 00 cmp %o0, 0
205e058: 02 80 00 25 be 205e0ec <_rename_r+0x1ec>
205e05c: c2 07 bf cc ld [ %fp + -52 ], %g1
rtems_filesystem_freenode( &new_parent_loc );
205e060: c2 07 bf c8 ld [ %fp + -56 ], %g1
205e064: 80 a0 60 00 cmp %g1, 0
205e068: 02 80 00 09 be 205e08c <_rename_r+0x18c> <== NEVER TAKEN
205e06c: 80 8c 60 ff btst 0xff, %l1
205e070: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e074: 80 a0 60 00 cmp %g1, 0
205e078: 02 80 00 05 be 205e08c <_rename_r+0x18c> <== NEVER TAKEN
205e07c: 80 8c 60 ff btst 0xff, %l1
205e080: 9f c0 40 00 call %g1
205e084: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205e088: 80 8c 60 ff btst 0xff, %l1
205e08c: 02 80 00 0d be 205e0c0 <_rename_r+0x1c0> <== NEVER TAKEN
205e090: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205e094: c2 07 bf dc ld [ %fp + -36 ], %g1
205e098: 80 a0 60 00 cmp %g1, 0
205e09c: 22 80 00 09 be,a 205e0c0 <_rename_r+0x1c0> <== NEVER TAKEN
205e0a0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e0a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e0a8: 80 a0 60 00 cmp %g1, 0
205e0ac: 22 80 00 05 be,a 205e0c0 <_rename_r+0x1c0> <== NEVER TAKEN
205e0b0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e0b4: 9f c0 40 00 call %g1
205e0b8: 90 07 bf d0 add %fp, -48, %o0
rtems_filesystem_freenode( &old_loc );
205e0bc: c2 07 bf f0 ld [ %fp + -16 ], %g1
205e0c0: 80 a0 60 00 cmp %g1, 0
205e0c4: 02 80 00 08 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN
205e0c8: b0 10 3f ff mov -1, %i0
205e0cc: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e0d0: 80 a0 60 00 cmp %g1, 0
205e0d4: 02 80 00 04 be 205e0e4 <_rename_r+0x1e4> <== NEVER TAKEN
205e0d8: 90 07 bf e4 add %fp, -28, %o0
205e0dc: 9f c0 40 00 call %g1
205e0e0: b0 10 3f ff mov -1, %i0
205e0e4: 81 c7 e0 08 ret
205e0e8: 81 e8 00 00 restore
/*
* Check to see if the caller is trying to rename across file system
* boundaries.
*/
if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {
205e0ec: c6 07 bf e0 ld [ %fp + -32 ], %g3
205e0f0: 80 a0 c0 01 cmp %g3, %g1
205e0f4: 02 80 00 26 be 205e18c <_rename_r+0x28c>
205e0f8: c4 07 bf c8 ld [ %fp + -56 ], %g2
rtems_filesystem_freenode( &new_parent_loc );
205e0fc: 80 a0 a0 00 cmp %g2, 0
205e100: 02 80 00 09 be 205e124 <_rename_r+0x224> <== NEVER TAKEN
205e104: 80 8c 60 ff btst 0xff, %l1
205e108: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
205e10c: 80 a0 60 00 cmp %g1, 0
205e110: 02 80 00 05 be 205e124 <_rename_r+0x224> <== NEVER TAKEN
205e114: 80 8c 60 ff btst 0xff, %l1
205e118: 9f c0 40 00 call %g1
205e11c: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205e120: 80 8c 60 ff btst 0xff, %l1
205e124: 02 80 00 0d be 205e158 <_rename_r+0x258>
205e128: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205e12c: c2 07 bf dc ld [ %fp + -36 ], %g1
205e130: 80 a0 60 00 cmp %g1, 0
205e134: 22 80 00 09 be,a 205e158 <_rename_r+0x258> <== NEVER TAKEN
205e138: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e13c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e140: 80 a0 60 00 cmp %g1, 0
205e144: 22 80 00 05 be,a 205e158 <_rename_r+0x258> <== NEVER TAKEN
205e148: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e14c: 9f c0 40 00 call %g1
205e150: 90 07 bf d0 add %fp, -48, %o0
rtems_filesystem_freenode( &old_loc );
205e154: c2 07 bf f0 ld [ %fp + -16 ], %g1
205e158: 80 a0 60 00 cmp %g1, 0
205e15c: 02 80 00 08 be 205e17c <_rename_r+0x27c> <== NEVER TAKEN
205e160: 01 00 00 00 nop
205e164: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e168: 80 a0 60 00 cmp %g1, 0
205e16c: 02 80 00 04 be 205e17c <_rename_r+0x27c> <== NEVER TAKEN
205e170: 01 00 00 00 nop
205e174: 9f c0 40 00 call %g1
205e178: 90 07 bf e4 add %fp, -28, %o0
rtems_set_errno_and_return_minus_one( EXDEV );
205e17c: 7f ff 98 46 call 2044294 <__errno>
205e180: b0 10 3f ff mov -1, %i0
205e184: 10 80 00 26 b 205e21c <_rename_r+0x31c>
205e188: 82 10 20 12 mov 0x12, %g1
}
if ( !new_parent_loc.ops->rename_h ) {
205e18c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1
205e190: 80 a0 60 00 cmp %g1, 0
205e194: 12 80 00 25 bne 205e228 <_rename_r+0x328>
205e198: d6 07 bf f8 ld [ %fp + -8 ], %o3
rtems_filesystem_freenode( &new_parent_loc );
205e19c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
205e1a0: 80 a0 60 00 cmp %g1, 0
205e1a4: 02 80 00 05 be 205e1b8 <_rename_r+0x2b8> <== NEVER TAKEN
205e1a8: 80 8c 60 ff btst 0xff, %l1
205e1ac: 9f c0 40 00 call %g1
205e1b0: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205e1b4: 80 8c 60 ff btst 0xff, %l1
205e1b8: 02 80 00 0d be 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN
205e1bc: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205e1c0: c2 07 bf dc ld [ %fp + -36 ], %g1
205e1c4: 80 a0 60 00 cmp %g1, 0
205e1c8: 22 80 00 09 be,a 205e1ec <_rename_r+0x2ec> <== NEVER TAKEN
205e1cc: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e1d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e1d4: 80 a0 60 00 cmp %g1, 0
205e1d8: 02 80 00 04 be 205e1e8 <_rename_r+0x2e8> <== NEVER TAKEN
205e1dc: 90 07 bf d0 add %fp, -48, %o0
205e1e0: 9f c0 40 00 call %g1
205e1e4: 01 00 00 00 nop
rtems_filesystem_freenode( &old_loc );
205e1e8: c2 07 bf f0 ld [ %fp + -16 ], %g1
205e1ec: 80 a0 60 00 cmp %g1, 0
205e1f0: 02 80 00 08 be 205e210 <_rename_r+0x310> <== NEVER TAKEN
205e1f4: 01 00 00 00 nop
205e1f8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e1fc: 80 a0 60 00 cmp %g1, 0
205e200: 02 80 00 04 be 205e210 <_rename_r+0x310> <== NEVER TAKEN
205e204: 01 00 00 00 nop
205e208: 9f c0 40 00 call %g1
205e20c: 90 07 bf e4 add %fp, -28, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
205e210: 7f ff 98 21 call 2044294 <__errno>
205e214: b0 10 3f ff mov -1, %i0
205e218: 82 10 20 86 mov 0x86, %g1
205e21c: c2 22 00 00 st %g1, [ %o0 ]
205e220: 81 c7 e0 08 ret
205e224: 81 e8 00 00 restore
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
205e228: 90 10 00 12 mov %l2, %o0
205e22c: 92 10 00 13 mov %l3, %o1
205e230: 9f c0 40 00 call %g1
205e234: 94 10 00 10 mov %l0, %o2
rtems_filesystem_freenode( &new_parent_loc );
205e238: c2 07 bf c8 ld [ %fp + -56 ], %g1
205e23c: 80 a0 60 00 cmp %g1, 0
205e240: 02 80 00 08 be 205e260 <_rename_r+0x360> <== NEVER TAKEN
205e244: b0 10 00 08 mov %o0, %i0
205e248: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e24c: 80 a0 60 00 cmp %g1, 0
205e250: 02 80 00 05 be 205e264 <_rename_r+0x364> <== NEVER TAKEN
205e254: 80 8c 60 ff btst 0xff, %l1
205e258: 9f c0 40 00 call %g1
205e25c: 90 10 00 10 mov %l0, %o0
if ( free_old_parentloc )
205e260: 80 8c 60 ff btst 0xff, %l1
205e264: 02 80 00 0d be 205e298 <_rename_r+0x398>
205e268: c2 07 bf f0 ld [ %fp + -16 ], %g1
rtems_filesystem_freenode( &old_parent_loc );
205e26c: c2 07 bf dc ld [ %fp + -36 ], %g1
205e270: 80 a0 60 00 cmp %g1, 0
205e274: 22 80 00 09 be,a 205e298 <_rename_r+0x398> <== NEVER TAKEN
205e278: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e27c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e280: 80 a0 60 00 cmp %g1, 0
205e284: 22 80 00 05 be,a 205e298 <_rename_r+0x398> <== NEVER TAKEN
205e288: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
205e28c: 9f c0 40 00 call %g1
205e290: 90 07 bf d0 add %fp, -48, %o0
rtems_filesystem_freenode( &old_loc );
205e294: c2 07 bf f0 ld [ %fp + -16 ], %g1
205e298: 80 a0 60 00 cmp %g1, 0
205e29c: 02 80 00 0b be 205e2c8 <_rename_r+0x3c8> <== NEVER TAKEN
205e2a0: 01 00 00 00 nop
205e2a4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
205e2a8: 80 a0 60 00 cmp %g1, 0
205e2ac: 02 80 00 07 be 205e2c8 <_rename_r+0x3c8> <== NEVER TAKEN
205e2b0: 01 00 00 00 nop
205e2b4: 9f c0 40 00 call %g1
205e2b8: 90 07 bf e4 add %fp, -28, %o0
205e2bc: 81 c7 e0 08 ret
205e2c0: 81 e8 00 00 restore
205e2c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return result;
}
205e2c8: 81 c7 e0 08 ret <== NOT EXECUTED
205e2cc: 81 e8 00 00 restore <== NOT EXECUTED
02009c58 <_stat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
2009c58: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
2009c5c: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
2009c60: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2009c64: 7f ff ff c0 call 2009b64 <stat> <== NOT EXECUTED
2009c68: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200f990 <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
200f990: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
200f994: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200f998: 7f ff ff 66 call 200f730 <unlink> <== NOT EXECUTED
200f99c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200626c <adjtime>:
int adjtime(
struct timeval *delta,
struct timeval *olddelta
)
{
200626c: 9d e3 bf 98 save %sp, -104, %sp
long adjustment;
/*
* Simple validations
*/
if ( !delta )
2006270: a0 96 20 00 orcc %i0, 0, %l0
2006274: 02 80 00 07 be 2006290 <adjtime+0x24>
2006278: 03 00 03 d0 sethi %hi(0xf4000), %g1
rtems_set_errno_and_return_minus_one( EINVAL );
if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )
200627c: c4 04 20 04 ld [ %l0 + 4 ], %g2
2006280: 82 10 62 3f or %g1, 0x23f, %g1
2006284: 80 a0 80 01 cmp %g2, %g1
2006288: 08 80 00 08 bleu 20062a8 <adjtime+0x3c>
200628c: 80 a6 60 00 cmp %i1, 0
rtems_set_errno_and_return_minus_one( EINVAL );
2006290: 40 00 2c f2 call 2011658 <__errno>
2006294: b0 10 3f ff mov -1, %i0
2006298: 82 10 20 16 mov 0x16, %g1
200629c: c2 22 00 00 st %g1, [ %o0 ]
20062a0: 81 c7 e0 08 ret
20062a4: 81 e8 00 00 restore
if ( olddelta ) {
20062a8: 22 80 00 05 be,a 20062bc <adjtime+0x50>
20062ac: c2 04 00 00 ld [ %l0 ], %g1
olddelta->tv_sec = 0;
20062b0: c0 26 40 00 clr [ %i1 ]
olddelta->tv_usec = 0;
20062b4: c0 26 60 04 clr [ %i1 + 4 ]
}
/* convert delta to microseconds */
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
20062b8: c2 04 00 00 ld [ %l0 ], %g1
adjustment += delta->tv_usec;
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
20062bc: 05 00 80 7b sethi %hi(0x201ec00), %g2
olddelta->tv_usec = 0;
}
/* convert delta to microseconds */
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
adjustment += delta->tv_usec;
20062c0: c8 04 20 04 ld [ %l0 + 4 ], %g4
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
20062c4: c6 00 a3 74 ld [ %g2 + 0x374 ], %g3
olddelta->tv_sec = 0;
olddelta->tv_usec = 0;
}
/* convert delta to microseconds */
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
20062c8: 9b 28 60 08 sll %g1, 8, %o5
20062cc: 85 28 60 03 sll %g1, 3, %g2
20062d0: 84 23 40 02 sub %o5, %g2, %g2
20062d4: 9b 28 a0 06 sll %g2, 6, %o5
20062d8: 84 23 40 02 sub %o5, %g2, %g2
20062dc: 82 00 80 01 add %g2, %g1, %g1
20062e0: 83 28 60 06 sll %g1, 6, %g1
adjustment += delta->tv_usec;
20062e4: 82 00 40 04 add %g1, %g4, %g1
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
20062e8: 80 a0 40 03 cmp %g1, %g3
20062ec: 0a 80 00 35 bcs 20063c0 <adjtime+0x154>
20062f0: 03 00 80 7e sethi %hi(0x201f800), %g1
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
20062f4: c4 00 63 d0 ld [ %g1 + 0x3d0 ], %g2 ! 201fbd0 <_Thread_Dispatch_disable_level>
20062f8: 84 00 a0 01 inc %g2
20062fc: c4 20 63 d0 st %g2, [ %g1 + 0x3d0 ]
* This prevents context switches while we are adjusting the TOD
*/
_Thread_Disable_dispatch();
_TOD_Get( &ts );
2006300: 40 00 06 3d call 2007bf4 <_TOD_Get>
2006304: 90 07 bf f8 add %fp, -8, %o0
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
2006308: c4 04 20 04 ld [ %l0 + 4 ], %g2
_Thread_Disable_dispatch();
_TOD_Get( &ts );
ts.tv_sec += delta->tv_sec;
200630c: c2 04 00 00 ld [ %l0 ], %g1
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
2006310: c8 07 bf f8 ld [ %fp + -8 ], %g4
2006314: 87 28 a0 07 sll %g2, 7, %g3
2006318: 88 01 00 01 add %g4, %g1, %g4
200631c: 83 28 a0 02 sll %g2, 2, %g1
2006320: 82 20 c0 01 sub %g3, %g1, %g1
2006324: c6 07 bf fc ld [ %fp + -4 ], %g3
2006328: 82 00 40 02 add %g1, %g2, %g1
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
200632c: 1b 0e e6 b2 sethi %hi(0x3b9ac800), %o5
_Thread_Disable_dispatch();
_TOD_Get( &ts );
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
2006330: 83 28 60 03 sll %g1, 3, %g1
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
2006334: 05 31 19 4d sethi %hi(0xc4653400), %g2
_Thread_Disable_dispatch();
_TOD_Get( &ts );
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
2006338: 82 00 40 03 add %g1, %g3, %g1
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
200633c: 9a 13 61 ff or %o5, 0x1ff, %o5
2006340: 10 80 00 03 b 200634c <adjtime+0xe0>
2006344: 84 10 a2 00 or %g2, 0x200, %g2
2006348: 82 00 40 02 add %g1, %g2, %g1
200634c: 86 10 00 04 mov %g4, %g3
2006350: 80 a0 40 0d cmp %g1, %o5
2006354: 18 bf ff fd bgu 2006348 <adjtime+0xdc>
2006358: 88 01 20 01 inc %g4
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
200635c: 1b 31 19 4d sethi %hi(0xc4653400), %o5
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
2006360: 09 0e e6 b2 sethi %hi(0x3b9ac800), %g4
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
2006364: 9a 13 62 00 or %o5, 0x200, %o5
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
2006368: 10 80 00 03 b 2006374 <adjtime+0x108>
200636c: 88 11 22 00 or %g4, 0x200, %g4
2006370: 82 00 40 04 add %g1, %g4, %g1
2006374: 84 10 00 03 mov %g3, %g2
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
2006378: 80 a0 40 0d cmp %g1, %o5
200637c: 08 bf ff fd bleu 2006370 <adjtime+0x104>
2006380: 86 00 ff ff add %g3, -1, %g3
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
2006384: 90 07 bf f8 add %fp, -8, %o0
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
2006388: c2 27 bf fc st %g1, [ %fp + -4 ]
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
200638c: 40 00 06 46 call 2007ca4 <_TOD_Set>
2006390: c4 27 bf f8 st %g2, [ %fp + -8 ]
_Thread_Enable_dispatch();
2006394: 40 00 0b 2d call 2009048 <_Thread_Enable_dispatch>
2006398: 01 00 00 00 nop
/* set the user's output */
if ( olddelta )
200639c: 80 a6 60 00 cmp %i1, 0
20063a0: 02 80 00 08 be 20063c0 <adjtime+0x154> <== NEVER TAKEN
20063a4: 01 00 00 00 nop
*olddelta = *delta;
20063a8: c2 04 00 00 ld [ %l0 ], %g1
20063ac: c2 26 40 00 st %g1, [ %i1 ]
20063b0: c2 04 20 04 ld [ %l0 + 4 ], %g1
20063b4: c2 26 60 04 st %g1, [ %i1 + 4 ]
20063b8: 81 c7 e0 08 ret
20063bc: 91 e8 20 00 restore %g0, 0, %o0
return 0;
}
20063c0: 81 c7 e0 08 ret
20063c4: 91 e8 20 00 restore %g0, 0, %o0
020028b4 <calloc>:
)
{
register char *cptr;
size_t length;
MSBUMP(calloc_calls, 1);
20028b4: 9d e3 bf a0 save %sp, -96, %sp
20028b8: 03 00 80 78 sethi %hi(0x201e000), %g1
20028bc: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 <rtems_malloc_statistics>
20028c0: c4 00 60 14 ld [ %g1 + 0x14 ], %g2
length = nelem * elsize;
20028c4: 92 10 00 18 mov %i0, %o1
)
{
register char *cptr;
size_t length;
MSBUMP(calloc_calls, 1);
20028c8: 84 00 a0 01 inc %g2
length = nelem * elsize;
20028cc: 90 10 00 19 mov %i1, %o0
20028d0: 40 00 5d 37 call 2019dac <.umul>
20028d4: c4 20 60 14 st %g2, [ %g1 + 0x14 ]
cptr = malloc( length );
20028d8: 40 00 01 68 call 2002e78 <malloc>
20028dc: a0 10 00 08 mov %o0, %l0
if ( cptr )
20028e0: b0 92 20 00 orcc %o0, 0, %i0
20028e4: 02 80 00 04 be 20028f4 <calloc+0x40> <== NEVER TAKEN
20028e8: 94 10 00 10 mov %l0, %o2
memset( cptr, '\0', length );
20028ec: 40 00 3a 92 call 2011334 <memset>
20028f0: 92 10 20 00 clr %o1
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
20028f4: 03 00 80 78 sethi %hi(0x201e000), %g1
20028f8: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 <rtems_malloc_statistics>
20028fc: c4 00 60 04 ld [ %g1 + 4 ], %g2
2002900: 84 00 bf ff add %g2, -1, %g2
2002904: c4 20 60 04 st %g2, [ %g1 + 4 ]
return cptr;
}
2002908: 81 c7 e0 08 ret
200290c: 81 e8 00 00 restore
020289a4 <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
20289a4: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
20289a8: 80 a6 20 00 cmp %i0, 0
20289ac: 12 80 00 06 bne 20289c4 <chdir+0x20>
20289b0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
20289b4: 40 00 6e 38 call 2044294 <__errno>
20289b8: 01 00 00 00 nop
20289bc: 10 80 00 2f b 2028a78 <chdir+0xd4>
20289c0: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe>
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
20289c4: 40 00 89 f0 call 204b184 <strlen>
20289c8: 90 10 00 18 mov %i0, %o0
20289cc: a0 07 bf ec add %fp, -20, %l0
20289d0: 92 10 00 08 mov %o0, %o1
20289d4: 94 10 20 01 mov 1, %o2
20289d8: 90 10 00 18 mov %i0, %o0
20289dc: 96 10 00 10 mov %l0, %o3
20289e0: 98 10 20 01 mov 1, %o4
20289e4: 7f ff 7e 02 call 20081ec <rtems_filesystem_evaluate_path>
20289e8: b0 10 3f ff mov -1, %i0
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
20289ec: 80 a2 20 00 cmp %o0, 0
20289f0: 12 80 00 37 bne 2028acc <chdir+0x128>
20289f4: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
/*
* Verify you can change directory into this node.
*/
if ( !loc.ops->node_type_h ) {
20289f8: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
20289fc: 80 a0 60 00 cmp %g1, 0
2028a00: 12 80 00 0c bne 2028a30 <chdir+0x8c> <== ALWAYS TAKEN
2028a04: 01 00 00 00 nop
rtems_filesystem_freenode( &loc );
2028a08: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
2028a0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028a10: 02 80 00 04 be 2028a20 <chdir+0x7c> <== NOT EXECUTED
2028a14: 01 00 00 00 nop <== NOT EXECUTED
2028a18: 9f c0 40 00 call %g1 <== NOT EXECUTED
2028a1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028a20: 40 00 6e 1d call 2044294 <__errno> <== NOT EXECUTED
2028a24: 01 00 00 00 nop <== NOT EXECUTED
2028a28: 10 80 00 14 b 2028a78 <chdir+0xd4> <== NOT EXECUTED
2028a2c: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
2028a30: 9f c0 40 00 call %g1
2028a34: 90 10 00 10 mov %l0, %o0
2028a38: 80 a2 20 01 cmp %o0, 1
2028a3c: 02 80 00 12 be 2028a84 <chdir+0xe0>
2028a40: 03 00 81 ab sethi %hi(0x206ac00), %g1
rtems_filesystem_freenode( &loc );
2028a44: c2 07 bf f8 ld [ %fp + -8 ], %g1
2028a48: 80 a0 60 00 cmp %g1, 0
2028a4c: 02 80 00 08 be 2028a6c <chdir+0xc8> <== NEVER TAKEN
2028a50: 01 00 00 00 nop
2028a54: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2028a58: 80 a0 60 00 cmp %g1, 0
2028a5c: 02 80 00 04 be 2028a6c <chdir+0xc8> <== NEVER TAKEN
2028a60: 01 00 00 00 nop
2028a64: 9f c0 40 00 call %g1
2028a68: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
2028a6c: 40 00 6e 0a call 2044294 <__errno>
2028a70: 01 00 00 00 nop
2028a74: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14>
2028a78: c2 22 00 00 st %g1, [ %o0 ]
2028a7c: 81 c7 e0 08 ret
2028a80: 91 e8 3f ff restore %g0, -1, %o0
}
rtems_filesystem_freenode( &rtems_filesystem_current );
2028a84: d0 00 61 64 ld [ %g1 + 0x164 ], %o0
2028a88: c2 02 20 10 ld [ %o0 + 0x10 ], %g1
2028a8c: 80 a0 60 00 cmp %g1, 0
2028a90: 22 80 00 09 be,a 2028ab4 <chdir+0x110> <== NEVER TAKEN
2028a94: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2028a98: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206ac1c <rtems_shell_Initial_commands+0xc0>
2028a9c: 80 a0 60 00 cmp %g1, 0
2028aa0: 22 80 00 05 be,a 2028ab4 <chdir+0x110> <== NEVER TAKEN
2028aa4: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2028aa8: 9f c0 40 00 call %g1
2028aac: 90 02 20 04 add %o0, 4, %o0
rtems_filesystem_current = loc;
2028ab0: 03 00 81 ab sethi %hi(0x206ac00), %g1
2028ab4: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 ! 206ad64 <rtems_current_user_env>
2028ab8: 92 07 bf ec add %fp, -20, %o1
2028abc: 90 02 20 04 add %o0, 4, %o0
2028ac0: 94 10 20 14 mov 0x14, %o2
2028ac4: 40 00 7b 40 call 20477c4 <memcpy>
2028ac8: b0 10 20 00 clr %i0
return 0;
}
2028acc: 81 c7 e0 08 ret
2028ad0: 81 e8 00 00 restore
02007c80 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
2007c80: 9d e3 bf 88 save %sp, -120, %sp
int status;
rtems_filesystem_location_info_t loc;
int result;
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
2007c84: 40 01 0d 40 call 204b184 <strlen>
2007c88: 90 10 00 18 mov %i0, %o0
2007c8c: a0 07 bf ec add %fp, -20, %l0
2007c90: 92 10 00 08 mov %o0, %o1
2007c94: 94 10 20 00 clr %o2
2007c98: 90 10 00 18 mov %i0, %o0
2007c9c: 96 10 00 10 mov %l0, %o3
2007ca0: 98 10 20 01 mov 1, %o4
2007ca4: 40 00 01 52 call 20081ec <rtems_filesystem_evaluate_path>
2007ca8: b0 10 3f ff mov -1, %i0
if ( status != 0 )
2007cac: 80 a2 20 00 cmp %o0, 0
2007cb0: 12 80 00 24 bne 2007d40 <chmod+0xc0>
2007cb4: c2 07 bf f4 ld [ %fp + -12 ], %g1
return -1;
if ( !loc.handlers ){
2007cb8: 80 a0 60 00 cmp %g1, 0
2007cbc: 32 80 00 10 bne,a 2007cfc <chmod+0x7c> <== ALWAYS TAKEN
2007cc0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
rtems_filesystem_freenode( &loc );
2007cc4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2007cc8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007ccc: 02 80 00 08 be 2007cec <chmod+0x6c> <== NOT EXECUTED
2007cd0: 01 00 00 00 nop <== NOT EXECUTED
2007cd4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2007cd8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007cdc: 02 80 00 04 be 2007cec <chmod+0x6c> <== NOT EXECUTED
2007ce0: 01 00 00 00 nop <== NOT EXECUTED
2007ce4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2007ce8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
2007cec: 40 00 f1 6a call 2044294 <__errno> <== NOT EXECUTED
2007cf0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2007cf4: 10 80 00 12 b 2007d3c <chmod+0xbc> <== NOT EXECUTED
2007cf8: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
}
if ( !loc.handlers->fchmod_h ){
2007cfc: 80 a0 60 00 cmp %g1, 0
2007d00: 12 80 00 12 bne 2007d48 <chmod+0xc8> <== ALWAYS TAKEN
2007d04: 92 10 00 19 mov %i1, %o1
rtems_filesystem_freenode( &loc );
2007d08: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2007d0c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007d10: 02 80 00 08 be 2007d30 <chmod+0xb0> <== NOT EXECUTED
2007d14: 01 00 00 00 nop <== NOT EXECUTED
2007d18: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2007d1c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007d20: 02 80 00 04 be 2007d30 <chmod+0xb0> <== NOT EXECUTED
2007d24: 01 00 00 00 nop <== NOT EXECUTED
2007d28: 9f c0 40 00 call %g1 <== NOT EXECUTED
2007d2c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2007d30: 40 00 f1 59 call 2044294 <__errno> <== NOT EXECUTED
2007d34: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2007d38: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2007d3c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2007d40: 81 c7 e0 08 ret
2007d44: 81 e8 00 00 restore
}
result = (*loc.handlers->fchmod_h)( &loc, mode );
2007d48: 9f c0 40 00 call %g1
2007d4c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
2007d50: c2 07 bf f8 ld [ %fp + -8 ], %g1
2007d54: 80 a0 60 00 cmp %g1, 0
2007d58: 02 bf ff fa be 2007d40 <chmod+0xc0> <== NEVER TAKEN
2007d5c: b0 10 00 08 mov %o0, %i0
2007d60: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2007d64: 80 a0 60 00 cmp %g1, 0
2007d68: 02 80 00 04 be 2007d78 <chmod+0xf8> <== NEVER TAKEN
2007d6c: 01 00 00 00 nop
2007d70: 9f c0 40 00 call %g1
2007d74: 90 10 00 10 mov %l0, %o0
return result;
}
2007d78: 81 c7 e0 08 ret
2007d7c: 81 e8 00 00 restore
02028ad4 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
2028ad4: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) )
2028ad8: 40 00 89 ab call 204b184 <strlen>
2028adc: 90 10 00 18 mov %i0, %o0
2028ae0: a0 07 bf ec add %fp, -20, %l0
2028ae4: 92 10 00 08 mov %o0, %o1
2028ae8: 94 10 20 00 clr %o2
2028aec: 90 10 00 18 mov %i0, %o0
2028af0: 96 10 00 10 mov %l0, %o3
2028af4: 98 10 20 01 mov 1, %o4
2028af8: 7f ff 7d bd call 20081ec <rtems_filesystem_evaluate_path>
2028afc: b0 10 3f ff mov -1, %i0
2028b00: 80 a2 20 00 cmp %o0, 0
2028b04: 12 80 00 10 bne 2028b44 <chown+0x70>
2028b08: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !loc.ops->chown_h ) {
2028b0c: c2 00 a0 18 ld [ %g2 + 0x18 ], %g1
2028b10: 80 a0 60 00 cmp %g1, 0
2028b14: 12 80 00 0e bne 2028b4c <chown+0x78> <== ALWAYS TAKEN
2028b18: 93 2e 60 10 sll %i1, 0x10, %o1
rtems_filesystem_freenode( &loc );
2028b1c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
2028b20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028b24: 02 80 00 04 be 2028b34 <chown+0x60> <== NOT EXECUTED
2028b28: 01 00 00 00 nop <== NOT EXECUTED
2028b2c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2028b30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028b34: 40 00 6d d8 call 2044294 <__errno> <== NOT EXECUTED
2028b38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2028b3c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2028b40: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028b44: 81 c7 e0 08 ret
2028b48: 81 e8 00 00 restore
}
result = (*loc.ops->chown_h)( &loc, owner, group );
2028b4c: 95 2e a0 10 sll %i2, 0x10, %o2
2028b50: 93 32 60 10 srl %o1, 0x10, %o1
2028b54: 95 32 a0 10 srl %o2, 0x10, %o2
2028b58: 9f c0 40 00 call %g1
2028b5c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
2028b60: c2 07 bf f8 ld [ %fp + -8 ], %g1
2028b64: 80 a0 60 00 cmp %g1, 0
2028b68: 02 bf ff f7 be 2028b44 <chown+0x70> <== NEVER TAKEN
2028b6c: b0 10 00 08 mov %o0, %i0
2028b70: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2028b74: 80 a0 60 00 cmp %g1, 0
2028b78: 02 80 00 04 be 2028b88 <chown+0xb4> <== NEVER TAKEN
2028b7c: 01 00 00 00 nop
2028b80: 9f c0 40 00 call %g1
2028b84: 90 10 00 10 mov %l0, %o0
return result;
}
2028b88: 81 c7 e0 08 ret
2028b8c: 81 e8 00 00 restore
02028b90 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
2028b90: 9d e3 bf 88 save %sp, -120, %sp
int result;
rtems_filesystem_location_info_t loc;
/* an automatic call to new private env the first time */
if (rtems_current_user_env == &rtems_global_user_env) {
2028b94: 23 00 81 ab sethi %hi(0x206ac00), %l1
2028b98: e0 04 61 64 ld [ %l1 + 0x164 ], %l0 ! 206ad64 <rtems_current_user_env>
2028b9c: 03 00 81 ba sethi %hi(0x206e800), %g1
2028ba0: 82 10 63 fc or %g1, 0x3fc, %g1 ! 206ebfc <rtems_global_user_env>
2028ba4: 80 a4 00 01 cmp %l0, %g1
2028ba8: 12 80 00 0e bne 2028be0 <chroot+0x50> <== NEVER TAKEN
2028bac: 01 00 00 00 nop
rtems_libio_set_private_env(); /* try to set a new private env*/
2028bb0: 40 00 06 22 call 202a438 <rtems_libio_set_private_env>
2028bb4: 01 00 00 00 nop
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
2028bb8: c2 04 61 64 ld [ %l1 + 0x164 ], %g1
2028bbc: 80 a0 40 10 cmp %g1, %l0
2028bc0: 12 80 00 08 bne 2028be0 <chroot+0x50> <== ALWAYS TAKEN
2028bc4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028bc8: 40 00 6d b3 call 2044294 <__errno> <== NOT EXECUTED
2028bcc: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2028bd0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2028bd4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028bd8: 81 c7 e0 08 ret <== NOT EXECUTED
2028bdc: 81 e8 00 00 restore <== NOT EXECUTED
}
result = chdir(pathname);
2028be0: 7f ff ff 71 call 20289a4 <chdir>
2028be4: 90 10 00 18 mov %i0, %o0
if (result) {
2028be8: 80 a2 20 00 cmp %o0, 0
2028bec: 12 80 00 0b bne 2028c18 <chroot+0x88> <== NEVER TAKEN
2028bf0: 11 00 81 93 sethi %hi(0x2064c00), %o0
rtems_set_errno_and_return_minus_one( errno );
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
2028bf4: 92 10 20 01 mov 1, %o1
2028bf8: 90 12 20 c0 or %o0, 0xc0, %o0
2028bfc: 94 10 20 00 clr %o2
2028c00: 96 07 bf ec add %fp, -20, %o3
2028c04: 7f ff 7d 7a call 20081ec <rtems_filesystem_evaluate_path>
2028c08: 98 10 20 00 clr %o4
2028c0c: 80 a2 20 00 cmp %o0, 0
2028c10: 02 80 00 0a be 2028c38 <chroot+0xa8> <== ALWAYS TAKEN
2028c14: 03 00 81 ab sethi %hi(0x206ac00), %g1
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
2028c18: 40 00 6d 9f call 2044294 <__errno> <== NOT EXECUTED
2028c1c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2028c20: 40 00 6d 9d call 2044294 <__errno> <== NOT EXECUTED
2028c24: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2028c28: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2028c2c: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED
2028c30: 81 c7 e0 08 ret <== NOT EXECUTED
2028c34: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_filesystem_freenode(&rtems_filesystem_root);
2028c38: d0 00 61 64 ld [ %g1 + 0x164 ], %o0
2028c3c: c2 02 20 24 ld [ %o0 + 0x24 ], %g1
2028c40: 80 a0 60 00 cmp %g1, 0
2028c44: 22 80 00 09 be,a 2028c68 <chroot+0xd8> <== NEVER TAKEN
2028c48: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2028c4c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206ac1c <rtems_shell_Initial_commands+0xc0>
2028c50: 80 a0 60 00 cmp %g1, 0
2028c54: 22 80 00 05 be,a 2028c68 <chroot+0xd8> <== NEVER TAKEN
2028c58: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2028c5c: 9f c0 40 00 call %g1
2028c60: 90 02 20 18 add %o0, 0x18, %o0
rtems_filesystem_root = loc;
2028c64: 03 00 81 ab sethi %hi(0x206ac00), %g1
2028c68: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 ! 206ad64 <rtems_current_user_env>
2028c6c: 92 07 bf ec add %fp, -20, %o1
2028c70: 94 10 20 14 mov 0x14, %o2
2028c74: 90 02 20 18 add %o0, 0x18, %o0
2028c78: 40 00 7a d3 call 20477c4 <memcpy>
2028c7c: b0 10 20 00 clr %i0
return 0;
}
2028c80: 81 c7 e0 08 ret
2028c84: 81 e8 00 00 restore
02006238 <clock_gettime>:
int clock_gettime(
clockid_t clock_id,
struct timespec *tp
)
{
2006238: 9d e3 bf a0 save %sp, -96, %sp
if ( !tp )
200623c: 90 96 60 00 orcc %i1, 0, %o0
2006240: 12 80 00 06 bne 2006258 <clock_gettime+0x20>
2006244: 80 a6 20 01 cmp %i0, 1
rtems_set_errno_and_return_minus_one( EINVAL );
2006248: 40 00 2e 39 call 2011b2c <__errno>
200624c: 01 00 00 00 nop
2006250: 10 80 00 14 b 20062a0 <clock_gettime+0x68>
2006254: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
if ( clock_id == CLOCK_REALTIME ) {
2006258: 12 80 00 05 bne 200626c <clock_gettime+0x34>
200625c: 80 a6 20 04 cmp %i0, 4
_TOD_Get(tp);
2006260: 40 00 07 df call 20081dc <_TOD_Get>
2006264: b0 10 20 00 clr %i0
2006268: 30 80 00 15 b,a 20062bc <clock_gettime+0x84>
return 0;
}
#ifdef CLOCK_MONOTONIC
if ( clock_id == CLOCK_MONOTONIC ) {
200626c: 02 80 00 04 be 200627c <clock_gettime+0x44> <== NEVER TAKEN
2006270: 80 a6 20 02 cmp %i0, 2
return 0;
}
#endif
#ifdef _POSIX_CPUTIME
if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {
2006274: 12 80 00 06 bne 200628c <clock_gettime+0x54>
2006278: 80 a6 20 03 cmp %i0, 3
_TOD_Get_uptime_as_timespec( tp );
200627c: 40 00 07 f7 call 2008258 <_TOD_Get_uptime_as_timespec>
2006280: b0 10 20 00 clr %i0
return 0;
2006284: 81 c7 e0 08 ret
2006288: 81 e8 00 00 restore
}
#endif
#ifdef _POSIX_THREAD_CPUTIME
if ( clock_id == CLOCK_THREAD_CPUTIME_ID )
200628c: 12 80 00 08 bne 20062ac <clock_gettime+0x74>
2006290: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOSYS );
2006294: 40 00 2e 26 call 2011b2c <__errno>
2006298: 01 00 00 00 nop
200629c: 82 10 20 58 mov 0x58, %g1 ! 58 <PROM_START+0x58>
20062a0: c2 22 00 00 st %g1, [ %o0 ]
20062a4: 81 c7 e0 08 ret
20062a8: 91 e8 3f ff restore %g0, -1, %o0
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
20062ac: 40 00 2e 20 call 2011b2c <__errno>
20062b0: b0 10 3f ff mov -1, %i0
20062b4: 82 10 20 16 mov 0x16, %g1
20062b8: c2 22 00 00 st %g1, [ %o0 ]
return 0;
}
20062bc: 81 c7 e0 08 ret
20062c0: 81 e8 00 00 restore
0202af98 <clock_settime>:
int clock_settime(
clockid_t clock_id,
const struct timespec *tp
)
{
202af98: 9d e3 bf a0 save %sp, -96, %sp
if ( !tp )
202af9c: 90 96 60 00 orcc %i1, 0, %o0
202afa0: 02 80 00 0a be 202afc8 <clock_settime+0x30> <== NEVER TAKEN
202afa4: 80 a6 20 01 cmp %i0, 1
rtems_set_errno_and_return_minus_one( EINVAL );
if ( clock_id == CLOCK_REALTIME ) {
202afa8: 12 80 00 15 bne 202affc <clock_settime+0x64>
202afac: 80 a6 20 02 cmp %i0, 2
if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )
202afb0: c4 02 00 00 ld [ %o0 ], %g2
202afb4: 03 08 76 b9 sethi %hi(0x21dae400), %g1
202afb8: 82 10 60 ff or %g1, 0xff, %g1 ! 21dae4ff <RAM_END+0x1f9ae4ff>
202afbc: 80 a0 80 01 cmp %g2, %g1
202afc0: 38 80 00 06 bgu,a 202afd8 <clock_settime+0x40>
202afc4: 03 00 81 bb sethi %hi(0x206ec00), %g1
rtems_set_errno_and_return_minus_one( EINVAL );
202afc8: 40 00 64 b3 call 2044294 <__errno>
202afcc: 01 00 00 00 nop
202afd0: 10 80 00 12 b 202b018 <clock_settime+0x80>
202afd4: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
202afd8: c4 00 61 80 ld [ %g1 + 0x180 ], %g2
202afdc: 84 00 a0 01 inc %g2
202afe0: c4 20 61 80 st %g2, [ %g1 + 0x180 ]
_Thread_Disable_dispatch();
_TOD_Set( tp );
202afe4: 40 00 06 19 call 202c848 <_TOD_Set>
202afe8: b0 10 20 00 clr %i0
_Thread_Enable_dispatch();
202afec: 7f ff 90 99 call 200f250 <_Thread_Enable_dispatch>
202aff0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
return 0;
202aff4: 81 c7 e0 08 ret
202aff8: 81 e8 00 00 restore
_Thread_Disable_dispatch();
_TOD_Set( tp );
_Thread_Enable_dispatch();
}
#ifdef _POSIX_CPUTIME
else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )
202affc: 02 80 00 04 be 202b00c <clock_settime+0x74>
202b000: 80 a6 20 03 cmp %i0, 3
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
#ifdef _POSIX_THREAD_CPUTIME
else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )
202b004: 12 80 00 08 bne 202b024 <clock_settime+0x8c>
202b008: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOSYS );
202b00c: 40 00 64 a2 call 2044294 <__errno>
202b010: 01 00 00 00 nop
202b014: 82 10 20 58 mov 0x58, %g1 ! 58 <PROM_START+0x58>
202b018: c2 22 00 00 st %g1, [ %o0 ]
202b01c: 81 c7 e0 08 ret
202b020: 91 e8 3f ff restore %g0, -1, %o0
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
202b024: 40 00 64 9c call 2044294 <__errno>
202b028: b0 10 3f ff mov -1, %i0
202b02c: 82 10 20 16 mov 0x16, %g1
202b030: c2 22 00 00 st %g1, [ %o0 ]
return 0;
}
202b034: 81 c7 e0 08 ret
202b038: 81 e8 00 00 restore
0200bda8 <close>:
#include <rtems/libio_.h>
int close(
int fd
)
{
200bda8: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
200bdac: 03 00 80 75 sethi %hi(0x201d400), %g1
200bdb0: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 <rtems_libio_number_iops>
200bdb4: 80 a6 00 01 cmp %i0, %g1
200bdb8: 1a 80 00 0b bcc 200bde4 <close+0x3c>
200bdbc: 03 00 80 78 sethi %hi(0x201e000), %g1
iop = rtems_libio_iop(fd);
200bdc0: e0 00 60 b4 ld [ %g1 + 0xb4 ], %l0 ! 201e0b4 <rtems_libio_iops>
200bdc4: 83 2e 20 06 sll %i0, 6, %g1
200bdc8: b1 2e 20 03 sll %i0, 3, %i0
200bdcc: b0 06 00 01 add %i0, %g1, %i0
200bdd0: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open(iop);
200bdd4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200bdd8: 80 88 61 00 btst 0x100, %g1
200bddc: 32 80 00 08 bne,a 200bdfc <close+0x54>
200bde0: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
200bde4: 40 00 12 d9 call 2010948 <__errno>
200bde8: b0 10 3f ff mov -1, %i0
200bdec: 82 10 20 09 mov 9, %g1
200bdf0: c2 22 00 00 st %g1, [ %o0 ]
200bdf4: 81 c7 e0 08 ret
200bdf8: 81 e8 00 00 restore
rc = RTEMS_SUCCESSFUL;
if ( iop->handlers->close_h )
200bdfc: c2 00 60 04 ld [ %g1 + 4 ], %g1
200be00: 80 a0 60 00 cmp %g1, 0
200be04: 02 80 00 05 be 200be18 <close+0x70> <== NEVER TAKEN
200be08: b0 10 20 00 clr %i0
rc = (*iop->handlers->close_h)( iop );
200be0c: 9f c0 40 00 call %g1
200be10: 90 10 00 10 mov %l0, %o0
200be14: b0 10 00 08 mov %o0, %i0
rtems_filesystem_freenode( &iop->pathinfo );
200be18: c2 04 20 28 ld [ %l0 + 0x28 ], %g1
200be1c: 80 a0 60 00 cmp %g1, 0
200be20: 02 80 00 08 be 200be40 <close+0x98> <== NEVER TAKEN
200be24: 01 00 00 00 nop
200be28: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200be2c: 80 a0 60 00 cmp %g1, 0
200be30: 02 80 00 04 be 200be40 <close+0x98>
200be34: 01 00 00 00 nop
200be38: 9f c0 40 00 call %g1
200be3c: 90 04 20 1c add %l0, 0x1c, %o0
rtems_libio_free( iop );
200be40: 40 00 00 a5 call 200c0d4 <rtems_libio_free>
200be44: 90 10 00 10 mov %l0, %o0
return rc;
}
200be48: 81 c7 e0 08 ret
200be4c: 81 e8 00 00 restore
02002e2c <create_disk>:
return disktab [major].minor + minor;
}
static rtems_status_code
create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr)
{
2002e2c: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_filesystem_split_dev_t(dev, major, minor);
if (major >= disktab_size) {
2002e30: 03 00 80 86 sethi %hi(0x2021800), %g1
2002e34: e2 00 63 0c ld [ %g1 + 0x30c ], %l1 ! 2021b0c <disktab_size>
2002e38: 80 a6 00 11 cmp %i0, %l1
2002e3c: 0a 80 00 16 bcs 2002e94 <create_disk+0x68>
2002e40: a0 10 00 18 mov %i0, %l0
rtems_disk_device_table *table = disktab;
2002e44: 03 00 80 86 sethi %hi(0x2021800), %g1
rtems_device_major_number old_size = disktab_size;
rtems_device_major_number new_size = 2 * old_size;
2002e48: a5 2c 60 01 sll %l1, 1, %l2
if (major >= new_size) {
2002e4c: 80 a6 00 12 cmp %i0, %l2
2002e50: 0a 80 00 03 bcs 2002e5c <create_disk+0x30> <== NEVER TAKEN
2002e54: d0 00 63 08 ld [ %g1 + 0x308 ], %o0
new_size = major + 1;
2002e58: a4 06 20 01 add %i0, 1, %l2
}
table = realloc(table, new_size * sizeof(*table));
2002e5c: 40 00 07 26 call 2004af4 <realloc>
2002e60: 93 2c a0 03 sll %l2, 3, %o1
if (table == NULL) {
2002e64: a6 92 20 00 orcc %o0, 0, %l3
2002e68: 02 80 00 5a be 2002fd0 <create_disk+0x1a4> <== ALWAYS TAKEN
2002e6c: 91 2c 60 03 sll %l1, 3, %o0
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
2002e70: 94 24 80 11 sub %l2, %l1, %o2 <== NOT EXECUTED
2002e74: 90 04 c0 08 add %l3, %o0, %o0 <== NOT EXECUTED
2002e78: 95 2a a0 03 sll %o2, 3, %o2 <== NOT EXECUTED
2002e7c: 40 00 49 23 call 2015308 <memset> <== NOT EXECUTED
2002e80: 92 10 20 00 clr %o1 <== NOT EXECUTED
disktab = table;
2002e84: 03 00 80 86 sethi %hi(0x2021800), %g1 <== NOT EXECUTED
2002e88: e6 20 63 08 st %l3, [ %g1 + 0x308 ] ! 2021b08 <disktab> <== NOT EXECUTED
disktab_size = new_size;
2002e8c: 03 00 80 86 sethi %hi(0x2021800), %g1 <== NOT EXECUTED
2002e90: e4 20 63 0c st %l2, [ %g1 + 0x30c ] ! 2021b0c <disktab_size><== NOT EXECUTED
}
if (disktab [major].minor == NULL || minor >= disktab[major].size) {
2002e94: 03 00 80 86 sethi %hi(0x2021800), %g1
2002e98: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 <disktab>
2002e9c: a5 2c 20 03 sll %l0, 3, %l2
2002ea0: d0 00 40 12 ld [ %g1 + %l2 ], %o0
2002ea4: 80 a2 20 00 cmp %o0, 0
2002ea8: 02 80 00 06 be 2002ec0 <create_disk+0x94>
2002eac: 82 00 40 12 add %g1, %l2, %g1
2002eb0: c4 00 60 04 ld [ %g1 + 4 ], %g2
2002eb4: 80 a6 40 02 cmp %i1, %g2
2002eb8: 2a 80 00 1a bcs,a 2002f20 <create_disk+0xf4> <== ALWAYS TAKEN
2002ebc: 03 00 80 86 sethi %hi(0x2021800), %g1
rtems_disk_device **table = disktab [major].minor;
rtems_device_minor_number old_size = disktab [major].size;
2002ec0: e8 00 60 04 ld [ %g1 + 4 ], %l4 ! 2021804 <impure_data+0x204>
rtems_device_minor_number new_size = 0;
if (old_size == 0) {
2002ec4: 80 a5 20 00 cmp %l4, 0
2002ec8: 12 80 00 03 bne 2002ed4 <create_disk+0xa8> <== NEVER TAKEN
2002ecc: a3 2d 20 01 sll %l4, 1, %l1
2002ed0: a2 10 20 08 mov 8, %l1
new_size = DISKTAB_INITIAL_SIZE;
} else {
new_size = 2 * old_size;
}
if (minor >= new_size) {
2002ed4: 80 a6 40 11 cmp %i1, %l1
2002ed8: 3a 80 00 02 bcc,a 2002ee0 <create_disk+0xb4>
2002edc: a2 06 60 01 add %i1, 1, %l1
new_size = minor + 1;
}
table = realloc(table, new_size * sizeof(*table));
2002ee0: 40 00 07 05 call 2004af4 <realloc>
2002ee4: 93 2c 60 02 sll %l1, 2, %o1
if (table == NULL) {
2002ee8: a6 92 20 00 orcc %o0, 0, %l3
2002eec: 02 80 00 39 be 2002fd0 <create_disk+0x1a4>
2002ef0: 91 2d 20 02 sll %l4, 2, %o0
return NULL;
}
memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
2002ef4: 94 24 40 14 sub %l1, %l4, %o2
2002ef8: 90 04 c0 08 add %l3, %o0, %o0
2002efc: 95 2a a0 02 sll %o2, 2, %o2
2002f00: 40 00 49 02 call 2015308 <memset>
2002f04: 92 10 20 00 clr %o1
disktab [major].minor = table;
2002f08: 03 00 80 86 sethi %hi(0x2021800), %g1
2002f0c: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 <disktab>
2002f10: e6 20 40 12 st %l3, [ %g1 + %l2 ]
2002f14: 82 00 40 12 add %g1, %l2, %g1
disktab [major].size = new_size;
2002f18: e2 20 60 04 st %l1, [ %g1 + 4 ]
}
return disktab [major].minor + minor;
2002f1c: 03 00 80 86 sethi %hi(0x2021800), %g1
2002f20: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 <disktab>
2002f24: a7 2e 60 02 sll %i1, 2, %l3
2002f28: e8 00 40 12 ld [ %g1 + %l2 ], %l4
2002f2c: 82 05 00 13 add %l4, %l3, %g1
{
rtems_disk_device **dd_entry = create_disk_table_entry(dev);
rtems_disk_device *dd = NULL;
char *alloc_name = NULL;
if (dd_entry == NULL) {
2002f30: 80 a0 60 00 cmp %g1, 0
2002f34: 02 80 00 15 be 2002f88 <create_disk+0x15c> <== NEVER TAKEN
2002f38: b0 10 20 1a mov 0x1a, %i0
return RTEMS_NO_MEMORY;
}
if (*dd_entry != NULL) {
2002f3c: c2 05 00 13 ld [ %l4 + %l3 ], %g1
2002f40: 80 a0 60 00 cmp %g1, 0
2002f44: 12 80 00 11 bne 2002f88 <create_disk+0x15c>
2002f48: b0 10 20 0c mov 0xc, %i0
return RTEMS_RESOURCE_IN_USE;
}
dd = malloc(sizeof(*dd));
2002f4c: 40 00 03 eb call 2003ef8 <malloc>
2002f50: 90 10 20 38 mov 0x38, %o0
if (dd == NULL) {
2002f54: a2 92 20 00 orcc %o0, 0, %l1
2002f58: 02 80 00 1e be 2002fd0 <create_disk+0x1a4> <== NEVER TAKEN
2002f5c: 80 a6 a0 00 cmp %i2, 0
return RTEMS_NO_MEMORY;
}
if (name != NULL) {
2002f60: 02 80 00 13 be 2002fac <create_disk+0x180>
2002f64: aa 10 20 00 clr %l5
alloc_name = strdup(name);
2002f68: 40 00 49 f7 call 2015744 <strdup>
2002f6c: 90 10 00 1a mov %i2, %o0
if (alloc_name == NULL) {
2002f70: a4 92 20 00 orcc %o0, 0, %l2
2002f74: 12 80 00 1a bne 2002fdc <create_disk+0x1b0> <== ALWAYS TAKEN
2002f78: aa 10 00 12 mov %l2, %l5
free(dd);
2002f7c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2002f80: 40 00 02 ff call 2003b7c <free> <== NOT EXECUTED
2002f84: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
2002f88: 81 c7 e0 08 ret
2002f8c: 81 e8 00 00 restore
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
free(alloc_name);
2002f90: 40 00 02 fb call 2003b7c <free> <== NOT EXECUTED
2002f94: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
free(dd);
2002f98: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2002f9c: 40 00 02 f8 call 2003b7c <free> <== NOT EXECUTED
2002fa0: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
2002fa4: 81 c7 e0 08 ret <== NOT EXECUTED
2002fa8: 81 e8 00 00 restore <== NOT EXECUTED
dd->dev = dev;
dd->name = alloc_name;
dd->uses = 0;
dd->deleted = false;
*dd_entry = dd;
2002fac: e2 25 00 13 st %l1, [ %l4 + %l3 ]
*dd_ptr = dd;
2002fb0: e2 26 c0 00 st %l1, [ %i3 ]
free(dd);
return RTEMS_UNSATISFIED;
}
}
dd->dev = dev;
2002fb4: e0 24 40 00 st %l0, [ %l1 ]
2002fb8: f2 24 60 04 st %i1, [ %l1 + 4 ]
dd->name = alloc_name;
2002fbc: ea 24 60 10 st %l5, [ %l1 + 0x10 ]
dd->uses = 0;
2002fc0: c0 24 60 14 clr [ %l1 + 0x14 ]
dd->deleted = false;
2002fc4: c0 2c 60 30 clrb [ %l1 + 0x30 ]
*dd_entry = dd;
*dd_ptr = dd;
return RTEMS_SUCCESSFUL;
2002fc8: 81 c7 e0 08 ret
2002fcc: 91 e8 20 00 restore %g0, 0, %o0
2002fd0: b0 10 20 1a mov 0x1a, %i0
}
2002fd4: 81 c7 e0 08 ret
2002fd8: 81 e8 00 00 restore
return RTEMS_NO_MEMORY;
}
}
if (name != NULL) {
if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {
2002fdc: 13 00 00 18 sethi %hi(0x6000), %o1
2002fe0: 94 10 00 10 mov %l0, %o2
2002fe4: 92 12 61 ff or %o1, 0x1ff, %o1
2002fe8: 40 00 04 0d call 200401c <mknod>
2002fec: 96 10 00 19 mov %i1, %o3
2002ff0: 80 a2 20 00 cmp %o0, 0
2002ff4: 36 bf ff ef bge,a 2002fb0 <create_disk+0x184> <== ALWAYS TAKEN
2002ff8: e2 25 00 13 st %l1, [ %l4 + %l3 ]
2002ffc: 30 bf ff e5 b,a 2002f90 <create_disk+0x164> <== NOT EXECUTED
02009780 <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
2009780: 9d e3 bf 90 save %sp, -112, %sp
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
2009784: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.flags = 0;
2009788: c0 27 bf f8 clr [ %fp + -8 ]
args.mode = 0;
200978c: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_close(
2009790: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2009794: d0 00 60 08 ld [ %g1 + 8 ], %o0
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
2009798: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
200979c: 94 07 bf f4 add %fp, -12, %o2
20097a0: 40 00 05 bb call 200ae8c <rtems_io_close>
20097a4: b0 10 20 00 clr %i0
np->major,
np->minor,
(void *) &args
);
if ( status ) {
20097a8: 80 a2 20 00 cmp %o0, 0
20097ac: 02 80 00 05 be 20097c0 <devFS_close+0x40> <== ALWAYS TAKEN
20097b0: 01 00 00 00 nop
return rtems_deviceio_errno(status);
20097b4: 40 00 00 42 call 20098bc <rtems_deviceio_errno> <== NOT EXECUTED
20097b8: 01 00 00 00 nop <== NOT EXECUTED
20097bc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
return 0;
}
20097c0: 81 c7 e0 08 ret
20097c4: 81 e8 00 00 restore
020097d4 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
20097d4: 9d e3 bf a0 save %sp, -96, %sp
int i;
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
if ( !rtems_libio_is_valid_perms( flags ) )
20097d8: 80 8e bf f8 btst -8, %i2
20097dc: 22 80 00 06 be,a 20097f4 <devFS_evaluate_path+0x20> <== ALWAYS TAKEN
20097e0: e0 06 c0 00 ld [ %i3 ], %l0
rtems_set_errno_and_return_minus_one( EPERM );
20097e4: 40 00 0a d8 call 200c344 <__errno> <== NOT EXECUTED
20097e8: 01 00 00 00 nop <== NOT EXECUTED
20097ec: 10 80 00 0b b 2009818 <devFS_evaluate_path+0x44> <== NOT EXECUTED
20097f0: 82 10 20 01 mov 1, %g1 ! 1 <PROM_START+0x1> <== NOT EXECUTED
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
20097f4: 80 a4 20 00 cmp %l0, 0
20097f8: 02 80 00 05 be 200980c <devFS_evaluate_path+0x38> <== NEVER TAKEN
20097fc: 27 00 80 3f sethi %hi(0x200fc00), %l3
2009800: a2 10 20 00 clr %l1
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
2009804: 10 80 00 24 b 2009894 <devFS_evaluate_path+0xc0>
2009808: a6 14 e2 38 or %l3, 0x238, %l3
rtems_set_errno_and_return_minus_one( EPERM );
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
200980c: 40 00 0a ce call 200c344 <__errno> <== NOT EXECUTED
2009810: 01 00 00 00 nop <== NOT EXECUTED
2009814: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe> <== NOT EXECUTED
2009818: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200981c: 81 c7 e0 08 ret <== NOT EXECUTED
2009820: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
for (i = 0; i < rtems_device_table_size; i++) {
if (!device_name_table[i].device_name)
2009824: e4 04 00 00 ld [ %l0 ], %l2
2009828: 80 a4 a0 00 cmp %l2, 0
200982c: 02 80 00 19 be 2009890 <devFS_evaluate_path+0xbc>
2009830: a2 04 60 01 inc %l1
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
2009834: 92 10 00 12 mov %l2, %o1
2009838: 40 00 0e 64 call 200d1c8 <strncmp>
200983c: 94 10 00 19 mov %i1, %o2
2009840: 80 a2 20 00 cmp %o0, 0
2009844: 32 80 00 14 bne,a 2009894 <devFS_evaluate_path+0xc0> <== NEVER TAKEN
2009848: a0 04 20 14 add %l0, 0x14, %l0 <== NOT EXECUTED
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
200984c: c2 4c 80 19 ldsb [ %l2 + %i1 ], %g1
2009850: 80 a0 60 00 cmp %g1, 0
2009854: 32 80 00 10 bne,a 2009894 <devFS_evaluate_path+0xc0>
2009858: a0 04 20 14 add %l0, 0x14, %l0
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
pathloc->handlers = &devFS_file_handlers;
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
200985c: 03 00 80 40 sethi %hi(0x2010000), %g1
2009860: c2 00 60 68 ld [ %g1 + 0x68 ], %g1 ! 2010068 <rtems_current_user_env>
if (device_name_table[i].device_name[pathnamelen] != '\0')
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
2009864: e0 26 c0 00 st %l0, [ %i3 ]
pathloc->handlers = &devFS_file_handlers;
pathloc->ops = &devFS_ops;
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
2009868: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
200986c: c2 26 e0 10 st %g1, [ %i3 + 0x10 ]
if (device_name_table[i].device_name[pathnamelen] != '\0')
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
pathloc->handlers = &devFS_file_handlers;
2009870: 03 00 80 40 sethi %hi(0x2010000), %g1
2009874: 82 10 60 10 or %g1, 0x10, %g1 ! 2010010 <devFS_file_handlers>
2009878: c2 26 e0 08 st %g1, [ %i3 + 8 ]
pathloc->ops = &devFS_ops;
200987c: 03 00 80 3f sethi %hi(0x200fc00), %g1
2009880: 82 10 63 c8 or %g1, 0x3c8, %g1 ! 200ffc8 <devFS_ops>
2009884: c2 26 e0 0c st %g1, [ %i3 + 0xc ]
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
2009888: 81 c7 e0 08 ret
200988c: 91 e8 20 00 restore %g0, 0, %o0
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
2009890: a0 04 20 14 add %l0, 0x14, %l0
2009894: c2 04 c0 00 ld [ %l3 ], %g1
2009898: 80 a4 40 01 cmp %l1, %g1
200989c: 0a bf ff e2 bcs 2009824 <devFS_evaluate_path+0x50>
20098a0: 90 10 00 18 mov %i0, %o0
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
20098a4: 40 00 0a a8 call 200c344 <__errno>
20098a8: b0 10 3f ff mov -1, %i0
20098ac: 82 10 20 02 mov 2, %g1
20098b0: c2 22 00 00 st %g1, [ %o0 ]
}
20098b4: 81 c7 e0 08 ret
20098b8: 81 e8 00 00 restore
02001f0c <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const void *data
)
{
2001f0c: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
2001f10: 23 00 80 3f sethi %hi(0x200fc00), %l1
2001f14: c2 04 62 38 ld [ %l1 + 0x238 ], %g1 ! 200fe38 <rtems_device_table_size>
2001f18: 85 28 60 04 sll %g1, 4, %g2
2001f1c: 83 28 60 02 sll %g1, 2, %g1
2001f20: 40 00 1c 55 call 2009074 <_Workspace_Allocate>
2001f24: 90 00 40 02 add %g1, %g2, %o0
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
2001f28: a0 92 20 00 orcc %o0, 0, %l0
2001f2c: 12 80 00 08 bne 2001f4c <devFS_initialize+0x40> <== ALWAYS TAKEN
2001f30: c2 04 62 38 ld [ %l1 + 0x238 ], %g1
rtems_set_errno_and_return_minus_one( ENOMEM );
2001f34: 40 00 29 04 call 200c344 <__errno> <== NOT EXECUTED
2001f38: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2001f3c: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2001f40: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2001f44: 81 c7 e0 08 ret <== NOT EXECUTED
2001f48: 81 e8 00 00 restore <== NOT EXECUTED
memset(
2001f4c: 92 10 20 00 clr %o1
2001f50: 85 28 60 04 sll %g1, 4, %g2
2001f54: 83 28 60 02 sll %g1, 2, %g1
2001f58: 40 00 2b 5c call 200ccc8 <memset>
2001f5c: 94 00 40 02 add %g1, %g2, %o2
device_name_table, 0,
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* set file handlers */
temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers;
2001f60: 03 00 80 40 sethi %hi(0x2010000), %g1
2001f64: 82 10 60 10 or %g1, 0x10, %g1 ! 2010010 <devFS_file_handlers>
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
2001f68: e0 26 20 1c st %l0, [ %i0 + 0x1c ]
device_name_table, 0,
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* set file handlers */
temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers;
2001f6c: c2 26 20 24 st %g1, [ %i0 + 0x24 ]
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
2001f70: 03 00 80 3f sethi %hi(0x200fc00), %g1
2001f74: 82 10 63 c8 or %g1, 0x3c8, %g1 ! 200ffc8 <devFS_ops>
2001f78: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
return 0;
}
2001f7c: 81 c7 e0 08 ret
2001f80: 91 e8 20 00 restore %g0, 0, %o0
020020f8 <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
20020f8: 9d e3 bf 90 save %sp, -112, %sp
rtems_libio_ioctl_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
20020fc: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.command = command;
2002100: f2 27 bf f4 st %i1, [ %fp + -12 ]
args.buffer = buffer;
status = rtems_io_control(
2002104: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2002108: d0 00 60 08 ld [ %g1 + 8 ], %o0
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
200210c: f0 27 bf f0 st %i0, [ %fp + -16 ]
args.command = command;
args.buffer = buffer;
2002110: f4 27 bf f8 st %i2, [ %fp + -8 ]
status = rtems_io_control(
2002114: 40 00 10 39 call 20061f8 <rtems_io_control>
2002118: 94 07 bf f0 add %fp, -16, %o2
np->major,
np->minor,
(void *) &args
);
if ( status )
200211c: 80 a2 20 00 cmp %o0, 0
2002120: 22 80 00 06 be,a 2002138 <devFS_ioctl+0x40> <== ALWAYS TAKEN
2002124: d0 07 bf fc ld [ %fp + -4 ], %o0
return rtems_deviceio_errno(status);
2002128: 40 00 1d e5 call 20098bc <rtems_deviceio_errno> <== NOT EXECUTED
200212c: 01 00 00 00 nop <== NOT EXECUTED
2002130: 81 c7 e0 08 ret <== NOT EXECUTED
2002134: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return args.ioctl_return;
}
2002138: b0 10 00 08 mov %o0, %i0
200213c: 81 c7 e0 08 ret
2002140: 81 e8 00 00 restore
02001f84 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
2001f84: 9d e3 bf a0 save %sp, -96, %sp
* condition and do not create the '/dev' and the 'path'
* actually passed in is 'dev', not '/dev'. Just return 0 to
* indicate we are OK.
*/
if ((path[0] == 'd') && (path[1] == 'e') &&
2001f88: c2 4e 00 00 ldsb [ %i0 ], %g1
2001f8c: 80 a0 60 64 cmp %g1, 0x64
2001f90: 12 80 00 0e bne 2001fc8 <devFS_mknod+0x44> <== NEVER TAKEN
2001f94: a0 10 00 18 mov %i0, %l0
2001f98: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1
2001f9c: 80 a0 60 65 cmp %g1, 0x65
2001fa0: 12 80 00 0b bne 2001fcc <devFS_mknod+0x48> <== NEVER TAKEN
2001fa4: 03 00 00 3c sethi %hi(0xf000), %g1
(path[2] == 'v') && (path[3] == '\0'))
2001fa8: c2 4e 20 02 ldsb [ %i0 + 2 ], %g1
2001fac: 80 a0 60 76 cmp %g1, 0x76
2001fb0: 12 80 00 07 bne 2001fcc <devFS_mknod+0x48> <== NEVER TAKEN
2001fb4: 03 00 00 3c sethi %hi(0xf000), %g1
2001fb8: c2 4e 20 03 ldsb [ %i0 + 3 ], %g1
2001fbc: 80 a0 60 00 cmp %g1, 0
2001fc0: 02 80 00 4a be 20020e8 <devFS_mknod+0x164>
2001fc4: b0 10 20 00 clr %i0
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
2001fc8: 03 00 00 3c sethi %hi(0xf000), %g1
2001fcc: 05 00 00 08 sethi %hi(0x2000), %g2
2001fd0: 82 0e 40 01 and %i1, %g1, %g1
2001fd4: 80 a0 40 02 cmp %g1, %g2
2001fd8: 22 80 00 0a be,a 2002000 <devFS_mknod+0x7c> <== ALWAYS TAKEN
2001fdc: e2 07 00 00 ld [ %i4 ], %l1
2001fe0: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2001fe4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2001fe8: 22 80 00 06 be,a 2002000 <devFS_mknod+0x7c> <== NOT EXECUTED
2001fec: e2 07 00 00 ld [ %i4 ], %l1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
2001ff0: 40 00 28 d5 call 200c344 <__errno> <== NOT EXECUTED
2001ff4: 01 00 00 00 nop <== NOT EXECUTED
2001ff8: 10 80 00 28 b 2002098 <devFS_mknod+0x114> <== NOT EXECUTED
2001ffc: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
2002000: 80 a4 60 00 cmp %l1, 0
2002004: 02 80 00 08 be 2002024 <devFS_mknod+0xa0> <== NEVER TAKEN
2002008: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
200200c: 2b 00 80 3f sethi %hi(0x200fc00), %l5
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
2002010: a8 10 00 11 mov %l1, %l4
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
2002014: aa 15 62 38 or %l5, 0x238, %l5
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
2002018: a4 10 3f ff mov -1, %l2
200201c: 10 80 00 15 b 2002070 <devFS_mknod+0xec>
2002020: a6 10 20 00 clr %l3
rtems_set_errno_and_return_minus_one( EFAULT );
2002024: 40 00 28 c8 call 200c344 <__errno> <== NOT EXECUTED
2002028: 01 00 00 00 nop <== NOT EXECUTED
200202c: 10 80 00 1b b 2002098 <devFS_mknod+0x114> <== NOT EXECUTED
2002030: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe> <== NOT EXECUTED
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
2002034: d2 05 00 00 ld [ %l4 ], %o1
2002038: 80 a2 60 00 cmp %o1, 0
200203c: 02 80 00 0b be 2002068 <devFS_mknod+0xe4>
2002040: a8 05 20 14 add %l4, 0x14, %l4
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
2002044: 40 00 2b db call 200cfb0 <strcmp>
2002048: 01 00 00 00 nop
200204c: 80 a2 20 00 cmp %o0, 0
2002050: 32 80 00 08 bne,a 2002070 <devFS_mknod+0xec> <== ALWAYS TAKEN
2002054: a6 04 e0 01 inc %l3
rtems_set_errno_and_return_minus_one( EEXIST );
2002058: 40 00 28 bb call 200c344 <__errno> <== NOT EXECUTED
200205c: 01 00 00 00 nop <== NOT EXECUTED
2002060: 10 80 00 0e b 2002098 <devFS_mknod+0x114> <== NOT EXECUTED
2002064: 82 10 20 11 mov 0x11, %g1 ! 11 <PROM_START+0x11> <== NOT EXECUTED
2002068: a4 10 00 13 mov %l3, %l2
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
200206c: a6 04 e0 01 inc %l3
2002070: c2 05 40 00 ld [ %l5 ], %g1
2002074: 80 a4 c0 01 cmp %l3, %g1
2002078: 0a bf ff ef bcs 2002034 <devFS_mknod+0xb0>
200207c: 90 10 00 10 mov %l0, %o0
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
2002080: 80 a4 bf ff cmp %l2, -1
2002084: 12 80 00 08 bne 20020a4 <devFS_mknod+0x120> <== ALWAYS TAKEN
2002088: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOMEM );
200208c: 40 00 28 ae call 200c344 <__errno> <== NOT EXECUTED
2002090: 01 00 00 00 nop <== NOT EXECUTED
2002094: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
2002098: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200209c: 81 c7 e0 08 ret <== NOT EXECUTED
20020a0: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
_ISR_Disable(level);
20020a4: 7f ff ff 25 call 2001d38 <sparc_disable_interrupts>
20020a8: 01 00 00 00 nop
20020ac: a6 10 00 08 mov %o0, %l3
device_name_table[slot].device_name = (char *)path;
20020b0: 83 2c a0 04 sll %l2, 4, %g1
device_name_table[slot].device_name_length = strlen(path);
20020b4: 90 10 00 10 mov %l0, %o0
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
20020b8: a5 2c a0 02 sll %l2, 2, %l2
20020bc: a4 04 80 01 add %l2, %g1, %l2
20020c0: e0 24 40 12 st %l0, [ %l1 + %l2 ]
device_name_table[slot].device_name_length = strlen(path);
20020c4: 40 00 2c 0c call 200d0f4 <strlen>
20020c8: a2 04 40 12 add %l1, %l2, %l1
device_name_table[slot].major = major;
device_name_table[slot].minor = minor;
device_name_table[slot].mode = mode;
20020cc: f2 24 60 10 st %i1, [ %l1 + 0x10 ]
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
device_name_table[slot].device_name_length = strlen(path);
20020d0: d0 24 60 04 st %o0, [ %l1 + 4 ]
device_name_table[slot].major = major;
20020d4: f4 24 60 08 st %i2, [ %l1 + 8 ]
device_name_table[slot].minor = minor;
20020d8: f6 24 60 0c st %i3, [ %l1 + 0xc ]
device_name_table[slot].mode = mode;
_ISR_Enable(level);
20020dc: b0 10 20 00 clr %i0
20020e0: 7f ff ff 1a call 2001d48 <sparc_enable_interrupts>
20020e4: 90 10 00 13 mov %l3, %o0
return 0;
}
20020e8: 81 c7 e0 08 ret
20020ec: 81 e8 00 00 restore
02002144 <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
2002144: 9d e3 bf 90 save %sp, -112, %sp
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.flags = iop->flags;
2002148: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
200214c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.flags = iop->flags;
2002150: c4 27 bf f8 st %g2, [ %fp + -8 ]
args.mode = mode;
2002154: f6 27 bf fc st %i3, [ %fp + -4 ]
status = rtems_io_open(
2002158: d2 00 60 0c ld [ %g1 + 0xc ], %o1
200215c: d0 00 60 08 ld [ %g1 + 8 ], %o0
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
2002160: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
2002164: 94 07 bf f4 add %fp, -12, %o2
2002168: 40 00 10 6f call 2006324 <rtems_io_open>
200216c: b0 10 20 00 clr %i0
np->major,
np->minor,
(void *) &args
);
if ( status )
2002170: 80 a2 20 00 cmp %o0, 0
2002174: 02 80 00 05 be 2002188 <devFS_open+0x44> <== ALWAYS TAKEN
2002178: 01 00 00 00 nop
return rtems_deviceio_errno(status);
200217c: 40 00 1d d0 call 20098bc <rtems_deviceio_errno> <== NOT EXECUTED
2002180: 01 00 00 00 nop <== NOT EXECUTED
2002184: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
2002188: 81 c7 e0 08 ret
200218c: 81 e8 00 00 restore
02002190 <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
2002190: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
2002194: c4 06 20 18 ld [ %i0 + 0x18 ], %g2 <== NOT EXECUTED
{
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
2002198: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
200219c: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
20021a0: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
args.bytes_moved = 0;
20021a4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
20021a8: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
20021ac: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED
20021b0: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
20021b4: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = buffer;
20021b8: f2 27 bf f0 st %i1, [ %fp + -16 ] <== NOT EXECUTED
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
20021bc: f0 27 bf e0 st %i0, [ %fp + -32 ] <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
20021c0: 40 00 10 6f call 200637c <rtems_io_read> <== NOT EXECUTED
20021c4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
20021c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20021cc: 22 80 00 06 be,a 20021e4 <devFS_read+0x54> <== NOT EXECUTED
20021d0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
20021d4: 40 00 1d ba call 20098bc <rtems_deviceio_errno> <== NOT EXECUTED
20021d8: 01 00 00 00 nop <== NOT EXECUTED
20021dc: 81 c7 e0 08 ret <== NOT EXECUTED
20021e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
20021e4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
20021e8: 81 c7 e0 08 ret <== NOT EXECUTED
20021ec: 81 e8 00 00 restore <== NOT EXECUTED
020021f0 <devFS_stat>:
int devFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
20021f0: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
20021f4: c2 06 00 00 ld [ %i0 ], %g1
if (!the_dev)
20021f8: 80 a0 60 00 cmp %g1, 0
20021fc: 32 80 00 08 bne,a 200221c <devFS_stat+0x2c> <== ALWAYS TAKEN
2002200: c4 00 60 0c ld [ %g1 + 0xc ], %g2
rtems_set_errno_and_return_minus_one( EFAULT );
2002204: 40 00 28 50 call 200c344 <__errno> <== NOT EXECUTED
2002208: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200220c: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
2002210: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002214: 81 c7 e0 08 ret <== NOT EXECUTED
2002218: 81 e8 00 00 restore <== NOT EXECUTED
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
buf->st_mode = the_dev->mode;
200221c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2002220: c2 00 60 08 ld [ %g1 + 8 ], %g1
the_dev = (rtems_device_name_t *)loc->node_access;
if (!the_dev)
rtems_set_errno_and_return_minus_one( EFAULT );
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
2002224: c4 26 60 1c st %g2, [ %i1 + 0x1c ]
buf->st_mode = the_dev->mode;
2002228: c6 26 60 0c st %g3, [ %i1 + 0xc ]
the_dev = (rtems_device_name_t *)loc->node_access;
if (!the_dev)
rtems_set_errno_and_return_minus_one( EFAULT );
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
200222c: c2 26 60 18 st %g1, [ %i1 + 0x18 ]
buf->st_mode = the_dev->mode;
return 0;
}
2002230: 81 c7 e0 08 ret
2002234: 91 e8 20 00 restore %g0, 0, %o0
02002238 <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
2002238: 9d e3 bf 80 save %sp, -128, %sp
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
200223c: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
{
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
2002240: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
2002244: c4 27 bf f8 st %g2, [ %fp + -8 ]
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
2002248: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
args.bytes_moved = 0;
200224c: c0 27 bf fc clr [ %fp + -4 ]
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
2002250: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
2002254: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2002258: d0 00 60 08 ld [ %g1 + 8 ], %o0
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
args.offset = iop->offset;
200225c: c4 3f bf e8 std %g2, [ %fp + -24 ]
args.buffer = (void *) buffer;
2002260: f2 27 bf f0 st %i1, [ %fp + -16 ]
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->file_info;
args.iop = iop;
2002264: f0 27 bf e0 st %i0, [ %fp + -32 ]
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
2002268: 40 00 10 5b call 20063d4 <rtems_io_write>
200226c: 94 07 bf e0 add %fp, -32, %o2
np->major,
np->minor,
(void *) &args
);
if ( status )
2002270: 80 a2 20 00 cmp %o0, 0
2002274: 22 80 00 06 be,a 200228c <devFS_write+0x54> <== ALWAYS TAKEN
2002278: d0 07 bf fc ld [ %fp + -4 ], %o0
return rtems_deviceio_errno(status);
200227c: 40 00 1d 90 call 20098bc <rtems_deviceio_errno> <== NOT EXECUTED
2002280: 01 00 00 00 nop <== NOT EXECUTED
2002284: 81 c7 e0 08 ret <== NOT EXECUTED
2002288: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
200228c: b0 10 00 08 mov %o0, %i0
2002290: 81 c7 e0 08 ret
2002294: 81 e8 00 00 restore
0200f200 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
200f200: 9d e3 bf 90 save %sp, -112, %sp
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200f204: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
200f208: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = 0;
200f20c: c0 27 bf f8 clr [ %fp + -8 ]
args.mode = 0;
200f210: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_close(
200f214: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f218: 94 07 bf f4 add %fp, -12, %o2
200f21c: 40 00 04 8b call 2010448 <rtems_io_close>
200f220: b0 10 20 00 clr %i0
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status ) {
200f224: 80 a2 20 00 cmp %o0, 0
200f228: 02 80 00 05 be 200f23c <device_close+0x3c> <== ALWAYS TAKEN
200f22c: 01 00 00 00 nop
return rtems_deviceio_errno(status);
200f230: 40 00 05 6c call 20107e0 <rtems_deviceio_errno> <== NOT EXECUTED
200f234: 01 00 00 00 nop <== NOT EXECUTED
200f238: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
return 0;
}
200f23c: 81 c7 e0 08 ret
200f240: 81 e8 00 00 restore
0200f100 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
200f100: 9d e3 bf 90 save %sp, -112, %sp
args.iop = iop;
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
200f104: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
rtems_libio_ioctl_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
args.command = command;
200f108: f2 27 bf f4 st %i1, [ %fp + -12 ]
args.buffer = buffer;
200f10c: f4 27 bf f8 st %i2, [ %fp + -8 ]
{
rtems_libio_ioctl_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
200f110: f0 27 bf f0 st %i0, [ %fp + -16 ]
args.command = command;
args.buffer = buffer;
the_jnode = iop->file_info;
status = rtems_io_control(
200f114: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f118: 40 00 04 e2 call 20104a0 <rtems_io_control>
200f11c: 94 07 bf f0 add %fp, -16, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f120: 80 a2 20 00 cmp %o0, 0
200f124: 22 80 00 06 be,a 200f13c <device_ioctl+0x3c> <== ALWAYS TAKEN
200f128: d0 07 bf fc ld [ %fp + -4 ], %o0
return rtems_deviceio_errno(status);
200f12c: 40 00 05 ad call 20107e0 <rtems_deviceio_errno> <== NOT EXECUTED
200f130: 01 00 00 00 nop <== NOT EXECUTED
200f134: 81 c7 e0 08 ret <== NOT EXECUTED
200f138: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return args.ioctl_return;
}
200f13c: b0 10 00 08 mov %o0, %i0
200f140: 81 c7 e0 08 ret
200f144: 81 e8 00 00 restore
0200f244 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200f244: 9d e3 bf 90 save %sp, -112, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.flags = iop->flags;
200f248: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
{
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200f24c: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
200f250: f0 27 bf f4 st %i0, [ %fp + -12 ]
args.flags = iop->flags;
200f254: c4 27 bf f8 st %g2, [ %fp + -8 ]
args.mode = mode;
200f258: f6 27 bf fc st %i3, [ %fp + -4 ]
status = rtems_io_open(
200f25c: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f260: 94 07 bf f4 add %fp, -12, %o2
200f264: 40 00 04 a5 call 20104f8 <rtems_io_open>
200f268: b0 10 20 00 clr %i0
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f26c: 80 a2 20 00 cmp %o0, 0
200f270: 02 80 00 05 be 200f284 <device_open+0x40> <== ALWAYS TAKEN
200f274: 01 00 00 00 nop
return rtems_deviceio_errno(status);
200f278: 40 00 05 5a call 20107e0 <rtems_deviceio_errno> <== NOT EXECUTED
200f27c: 01 00 00 00 nop <== NOT EXECUTED
200f280: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
200f284: 81 c7 e0 08 ret
200f288: 81 e8 00 00 restore
0200f1a4 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
200f1a4: 9d e3 bf 80 save %sp, -128, %sp
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
200f1a8: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
{
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200f1ac: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
200f1b0: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4
args.buffer = buffer;
200f1b4: f2 27 bf f0 st %i1, [ %fp + -16 ]
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
200f1b8: d8 3f bf e8 std %o4, [ %fp + -24 ]
args.buffer = buffer;
args.count = count;
200f1bc: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
200f1c0: c4 27 bf f8 st %g2, [ %fp + -8 ]
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
200f1c4: f0 27 bf e0 st %i0, [ %fp + -32 ]
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
200f1c8: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_read(
200f1cc: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f1d0: 40 00 04 e0 call 2010550 <rtems_io_read>
200f1d4: 94 07 bf e0 add %fp, -32, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f1d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200f1dc: 22 80 00 06 be,a 200f1f4 <device_read+0x50> <== NOT EXECUTED
200f1e0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
200f1e4: 40 00 05 7f call 20107e0 <rtems_deviceio_errno> <== NOT EXECUTED
200f1e8: 01 00 00 00 nop <== NOT EXECUTED
200f1ec: 81 c7 e0 08 ret <== NOT EXECUTED
200f1f0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
200f1f4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
200f1f8: 81 c7 e0 08 ret <== NOT EXECUTED
200f1fc: 81 e8 00 00 restore <== NOT EXECUTED
0200f148 <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
200f148: 9d e3 bf 80 save %sp, -128, %sp
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
200f14c: c4 06 20 18 ld [ %i0 + 0x18 ], %g2
{
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200f150: c2 06 20 3c ld [ %i0 + 0x3c ], %g1
args.iop = iop;
args.offset = iop->offset;
200f154: d8 1e 20 10 ldd [ %i0 + 0x10 ], %o4
args.buffer = (void *) buffer;
200f158: f2 27 bf f0 st %i1, [ %fp + -16 ]
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
args.offset = iop->offset;
200f15c: d8 3f bf e8 std %o4, [ %fp + -24 ]
args.buffer = (void *) buffer;
args.count = count;
200f160: f4 27 bf f4 st %i2, [ %fp + -12 ]
args.flags = iop->flags;
200f164: c4 27 bf f8 st %g2, [ %fp + -8 ]
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
args.iop = iop;
200f168: f0 27 bf e0 st %i0, [ %fp + -32 ]
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
200f16c: c0 27 bf fc clr [ %fp + -4 ]
status = rtems_io_write(
200f170: d0 18 60 50 ldd [ %g1 + 0x50 ], %o0
200f174: 40 00 05 0d call 20105a8 <rtems_io_write>
200f178: 94 07 bf e0 add %fp, -32, %o2
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
200f17c: 80 a2 20 00 cmp %o0, 0
200f180: 22 80 00 06 be,a 200f198 <device_write+0x50> <== ALWAYS TAKEN
200f184: d0 07 bf fc ld [ %fp + -4 ], %o0
return rtems_deviceio_errno(status);
200f188: 40 00 05 96 call 20107e0 <rtems_deviceio_errno> <== NOT EXECUTED
200f18c: 01 00 00 00 nop <== NOT EXECUTED
200f190: 81 c7 e0 08 ret <== NOT EXECUTED
200f194: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
200f198: b0 10 00 08 mov %o0, %i0
200f19c: 81 c7 e0 08 ret
200f1a0: 81 e8 00 00 restore
02002a5c <disk_lock>:
*/
static volatile bool diskdevs_protected;
static rtems_status_code
disk_lock(void)
{
2002a5c: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2002a60: 03 00 80 86 sethi %hi(0x2021800), %g1
2002a64: d0 00 63 10 ld [ %g1 + 0x310 ], %o0 ! 2021b10 <diskdevs_mutex>
2002a68: 92 10 20 00 clr %o1
2002a6c: 94 10 20 00 clr %o2
2002a70: 40 00 13 24 call 2007700 <rtems_semaphore_obtain>
2002a74: b0 10 20 16 mov 0x16, %i0
if (sc == RTEMS_SUCCESSFUL) {
2002a78: 80 a2 20 00 cmp %o0, 0
2002a7c: 12 80 00 05 bne 2002a90 <disk_lock+0x34> <== NEVER TAKEN
2002a80: 84 10 20 01 mov 1, %g2
diskdevs_protected = true;
2002a84: 03 00 80 86 sethi %hi(0x2021800), %g1
2002a88: b0 10 20 00 clr %i0
2002a8c: c4 28 63 14 stb %g2, [ %g1 + 0x314 ]
return RTEMS_SUCCESSFUL;
} else {
return RTEMS_NOT_CONFIGURED;
}
}
2002a90: 81 c7 e0 08 ret
2002a94: 81 e8 00 00 restore
02002a98 <disk_unlock>:
static void
disk_unlock(void)
{
2002a98: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
sc = rtems_semaphore_release(diskdevs_mutex);
2002a9c: 03 00 80 86 sethi %hi(0x2021800), %g1
2002aa0: d0 00 63 10 ld [ %g1 + 0x310 ], %o0 ! 2021b10 <diskdevs_mutex>
static void
disk_unlock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
diskdevs_protected = false;
2002aa4: 03 00 80 86 sethi %hi(0x2021800), %g1
2002aa8: c0 28 63 14 clrb [ %g1 + 0x314 ] ! 2021b14 <diskdevs_protected>
sc = rtems_semaphore_release(diskdevs_mutex);
2002aac: 40 00 13 5c call 200781c <rtems_semaphore_release>
2002ab0: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002ab4: 80 a2 20 00 cmp %o0, 0
2002ab8: 02 80 00 04 be 2002ac8 <disk_unlock+0x30> <== ALWAYS TAKEN
2002abc: 11 37 ab 6f sethi %hi(0xdeadbc00), %o0
/* FIXME: Error number */
rtems_fatal_error_occurred(0xdeadbeef);
2002ac0: 40 00 14 93 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
2002ac4: 90 12 22 ef or %o0, 0x2ef, %o0 ! deadbeef <RAM_END+0xdc6dbeef><== NOT EXECUTED
2002ac8: 81 c7 e0 08 ret
2002acc: 81 e8 00 00 restore
02004964 <drainOutput>:
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
2004964: 9d e3 bf a0 save %sp, -96, %sp
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
2004968: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1
200496c: 80 a0 60 00 cmp %g1, 0
2004970: 02 80 00 1a be 20049d8 <drainOutput+0x74> <== ALWAYS TAKEN
2004974: a0 10 00 18 mov %i0, %l0
rtems_interrupt_disable (level);
2004978: 7f ff f5 93 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
200497c: 01 00 00 00 nop <== NOT EXECUTED
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
2004980: 10 80 00 0f b 20049bc <drainOutput+0x58> <== NOT EXECUTED
2004984: a2 10 20 02 mov 2, %l1 ! 2 <PROM_START+0x2> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
rtems_interrupt_enable (level);
2004988: 7f ff f5 93 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
200498c: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
2004990: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
2004994: 92 10 20 00 clr %o1 <== NOT EXECUTED
2004998: 40 00 06 6b call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200499c: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20049a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20049a4: 02 80 00 04 be 20049b4 <drainOutput+0x50> <== NOT EXECUTED
20049a8: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
20049ac: 40 00 08 01 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
20049b0: 01 00 00 00 nop <== NOT EXECUTED
rtems_interrupt_disable (level);
20049b4: 7f ff f5 84 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
20049b8: 01 00 00 00 nop <== NOT EXECUTED
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
20049bc: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED
20049c0: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
20049c4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20049c8: 32 bf ff f0 bne,a 2004988 <drainOutput+0x24> <== NOT EXECUTED
20049cc: e2 24 20 94 st %l1, [ %l0 + 0x94 ] <== NOT EXECUTED
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
rtems_interrupt_enable (level);
20049d0: 7f ff f5 81 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
20049d4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
20049d8: 81 c7 e0 08 ret
20049dc: 81 e8 00 00 restore
02003288 <dup2>:
int dup2(
int fildes,
int fildes2
)
{
2003288: 9d e3 bf 58 save %sp, -168, %sp
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
200328c: a0 07 bf b8 add %fp, -72, %l0
2003290: 90 10 00 18 mov %i0, %o0
2003294: 40 00 01 c4 call 20039a4 <fstat>
2003298: 92 10 00 10 mov %l0, %o1
if ( status == -1 )
200329c: 80 a2 3f ff cmp %o0, -1
20032a0: 02 80 00 0e be 20032d8 <dup2+0x50> <== NEVER TAKEN
20032a4: 90 10 3f ff mov -1, %o0
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
20032a8: 92 10 00 10 mov %l0, %o1
20032ac: 40 00 01 be call 20039a4 <fstat>
20032b0: 90 10 00 19 mov %i1, %o0
if ( status == -1 )
20032b4: 80 a2 3f ff cmp %o0, -1
20032b8: 02 80 00 07 be 20032d4 <dup2+0x4c> <== ALWAYS TAKEN
20032bc: 90 10 00 18 mov %i0, %o0
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
20032c0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
20032c4: 40 00 00 93 call 2003510 <fcntl> <== NOT EXECUTED
20032c8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20032cc: 81 c7 e0 08 ret <== NOT EXECUTED
20032d0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
20032d4: 90 10 3f ff mov -1, %o0
}
20032d8: b0 10 00 08 mov %o0, %i0
20032dc: 81 c7 e0 08 ret
20032e0: 81 e8 00 00 restore
020043b0 <echo>:
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
20043b0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
20043b4: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
20043b8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
20043bc: 02 80 00 1c be 200442c <echo+0x7c> <== NOT EXECUTED
20043c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20043c4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
20043c8: c4 00 61 1c ld [ %g1 + 0x11c ], %g2 ! 201d91c <__ctype_ptr__><== NOT EXECUTED
20043cc: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED
20043d0: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
20043d4: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED
20043d8: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED
20043dc: 02 80 00 15 be 2004430 <echo+0x80> <== NOT EXECUTED
20043e0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
20043e4: 80 a0 60 09 cmp %g1, 9 <== NOT EXECUTED
20043e8: 02 80 00 12 be 2004430 <echo+0x80> <== NOT EXECUTED
20043ec: 01 00 00 00 nop <== NOT EXECUTED
20043f0: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
20043f4: 02 80 00 0f be 2004430 <echo+0x80> <== NOT EXECUTED
20043f8: 82 10 20 5e mov 0x5e, %g1 <== NOT EXECUTED
char echobuf[2];
echobuf[0] = '^';
echobuf[1] = c ^ 0x40;
20043fc: b0 1e 20 40 xor %i0, 0x40, %i0 <== NOT EXECUTED
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
char echobuf[2];
echobuf[0] = '^';
2004400: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
2004404: f0 2f bf f9 stb %i0, [ %fp + -7 ] <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
2004408: 90 07 bf f8 add %fp, -8, %o0 <== NOT EXECUTED
200440c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2004410: 7f ff ff 3b call 20040fc <rtems_termios_puts> <== NOT EXECUTED
2004414: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
tty->column += 2;
2004418: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED
200441c: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED
2004420: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) {
2004424: 81 c7 e0 08 ret <== NOT EXECUTED
2004428: 81 e8 00 00 restore <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
}
else {
oproc (c, tty);
200442c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
2004430: 7f ff ff 7d call 2004224 <oproc> <== NOT EXECUTED
2004434: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2004438: 81 c7 e0 08 ret <== NOT EXECUTED
200443c: 81 e8 00 00 restore <== NOT EXECUTED
02029074 <endgrent>:
group_fp = fopen("/etc/group", "r");
}
void endgrent(void)
{
if (group_fp != NULL)
2029074: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2029078: d0 00 60 9c ld [ %g1 + 0x9c ], %o0 ! 206e89c <group_fp> <== NOT EXECUTED
202907c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029080: 02 80 00 05 be 2029094 <endgrent+0x20> <== NOT EXECUTED
2029084: 01 00 00 00 nop <== NOT EXECUTED
fclose(group_fp);
2029088: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
202908c: 40 00 6c da call 20443f4 <fclose> <== NOT EXECUTED
2029090: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
2029094: 81 c3 e0 08 retl <== NOT EXECUTED
0202909c <endpwent>:
passwd_fp = fopen("/etc/passwd", "r");
}
void endpwent(void)
{
if (passwd_fp != NULL)
202909c: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
20290a0: d0 00 63 b4 ld [ %g1 + 0x3b4 ], %o0 ! 206e7b4 <passwd_fp> <== NOT EXECUTED
20290a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20290a8: 02 80 00 05 be 20290bc <endpwent+0x20> <== NOT EXECUTED
20290ac: 01 00 00 00 nop <== NOT EXECUTED
fclose(passwd_fp);
20290b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20290b4: 40 00 6c d0 call 20443f4 <fclose> <== NOT EXECUTED
20290b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
20290bc: 81 c3 e0 08 retl <== NOT EXECUTED
02004440 <erase>:
* FIXME: Needs support for WERASE and ECHOPRT.
* FIXME: Some of the tests should check for IEXTEN, too.
*/
static void
erase (struct rtems_termios_tty *tty, int lineFlag)
{
2004440: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (tty->ccount == 0)
2004444: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
2004448: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200444c: 02 80 00 0a be 2004474 <erase+0x34> <== NOT EXECUTED
2004450: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
return;
if (lineFlag) {
2004454: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2004458: 02 80 00 7a be 2004640 <erase+0x200> <== NOT EXECUTED
200445c: 25 00 80 76 sethi %hi(0x201d800), %l2 <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
2004460: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
2004464: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
2004468: 32 80 00 05 bne,a 200447c <erase+0x3c> <== NOT EXECUTED
200446c: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED
tty->ccount = 0;
2004470: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED
return;
2004474: 81 c7 e0 08 ret <== NOT EXECUTED
2004478: 81 e8 00 00 restore <== NOT EXECUTED
}
if (!(tty->termios.c_lflag & ECHOE)) {
200447c: 12 80 00 71 bne 2004640 <erase+0x200> <== NOT EXECUTED
2004480: 25 00 80 76 sethi %hi(0x201d800), %l2 <== NOT EXECUTED
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
2004484: d0 0e 20 44 ldub [ %i0 + 0x44 ], %o0 <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
tty->ccount = 0;
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
2004488: c0 26 20 20 clr [ %i0 + 0x20 ] <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
200448c: 7f ff ff c9 call 20043b0 <echo> <== NOT EXECUTED
2004490: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
2004494: c2 06 20 3c ld [ %i0 + 0x3c ], %g1 <== NOT EXECUTED
echo ('\n', tty);
2004498: b2 10 00 18 mov %i0, %i1 <== NOT EXECUTED
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
if (tty->termios.c_lflag & ECHOK)
200449c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20044a0: 02 bf ff f5 be 2004474 <erase+0x34> <== NOT EXECUTED
20044a4: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
20044a8: 30 80 00 0f b,a 20044e4 <erase+0xa4> <== NOT EXECUTED
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
if (tty->termios.c_lflag & ECHO) {
20044ac: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
20044b0: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
20044b4: c6 24 20 20 st %g3, [ %l0 + 0x20 ] <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
20044b8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
20044bc: 02 80 00 5c be 200462c <erase+0x1ec> <== NOT EXECUTED
20044c0: e2 08 80 03 ldub [ %g2 + %g3 ], %l1 <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
20044c4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20044c8: 32 80 00 09 bne,a 20044ec <erase+0xac> <== NOT EXECUTED
20044cc: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
20044d0: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED
20044d4: 32 80 00 06 bne,a 20044ec <erase+0xac> <== NOT EXECUTED
20044d8: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
20044dc: f0 0c 20 43 ldub [ %l0 + 0x43 ], %i0 <== NOT EXECUTED
20044e0: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED
20044e4: 7f ff ff b3 call 20043b0 <echo> <== NOT EXECUTED
20044e8: 81 e8 00 00 restore <== NOT EXECUTED
}
else if (c == '\t') {
20044ec: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED
20044f0: 32 80 00 2a bne,a 2004598 <erase+0x158> <== NOT EXECUTED
20044f4: c4 04 80 00 ld [ %l2 ], %g2 <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
20044f8: 82 08 62 00 and %g1, 0x200, %g1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
echo (tty->termios.c_cc[VERASE], tty);
}
else if (c == '\t') {
int col = tty->read_start_column;
20044fc: e2 04 20 2c ld [ %l0 + 0x2c ], %l1 <== NOT EXECUTED
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
}
else if (iscntrl (c)) {
2004500: da 04 80 00 ld [ %l2 ], %o5 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
2004504: 10 80 00 13 b 2004550 <erase+0x110> <== NOT EXECUTED
2004508: 84 10 20 00 clr %g2 <== NOT EXECUTED
c = tty->cbuf[i++];
if (c == '\t') {
200450c: c8 09 00 02 ldub [ %g4 + %g2 ], %g4 <== NOT EXECUTED
2004510: 80 a1 20 09 cmp %g4, 9 <== NOT EXECUTED
2004514: 12 80 00 04 bne 2004524 <erase+0xe4> <== NOT EXECUTED
2004518: 98 03 40 04 add %o5, %g4, %o4 <== NOT EXECUTED
col = (col | 7) + 1;
200451c: 10 80 00 0b b 2004548 <erase+0x108> <== NOT EXECUTED
2004520: a2 14 60 07 or %l1, 7, %l1 <== NOT EXECUTED
}
else if (iscntrl (c)) {
2004524: c8 0b 20 01 ldub [ %o4 + 1 ], %g4 <== NOT EXECUTED
2004528: 80 89 20 20 btst 0x20, %g4 <== NOT EXECUTED
200452c: 22 80 00 08 be,a 200454c <erase+0x10c> <== NOT EXECUTED
2004530: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
2004534: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004538: 32 80 00 05 bne,a 200454c <erase+0x10c> <== NOT EXECUTED
200453c: a2 04 60 02 add %l1, 2, %l1 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
2004540: 10 80 00 04 b 2004550 <erase+0x110> <== NOT EXECUTED
2004544: 84 00 a0 01 inc %g2 <== NOT EXECUTED
else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
col += 2;
}
else {
col++;
2004548: a2 04 60 01 inc %l1 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
200454c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
2004550: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2004554: 32 bf ff ee bne,a 200450c <erase+0xcc> <== NOT EXECUTED
2004558: c8 04 20 1c ld [ %l0 + 0x1c ], %g4 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
200455c: 10 80 00 08 b 200457c <erase+0x13c> <== NOT EXECUTED
2004560: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
2004564: 7f ff fe e6 call 20040fc <rtems_termios_puts> <== NOT EXECUTED
2004568: 01 00 00 00 nop <== NOT EXECUTED
tty->column--;
200456c: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2004570: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2004574: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
2004578: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
200457c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2004580: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
2004584: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
2004588: 14 bf ff f7 bg 2004564 <erase+0x124> <== NOT EXECUTED
200458c: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
if (tty->column)
tty->column--;
}
}
}
if (!lineFlag)
2004590: 10 80 00 28 b 2004630 <erase+0x1f0> <== NOT EXECUTED
2004594: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
2004598: a2 04 60 01 inc %l1 <== NOT EXECUTED
200459c: c4 08 80 11 ldub [ %g2 + %l1 ], %g2 <== NOT EXECUTED
20045a0: 80 88 a0 20 btst 0x20, %g2 <== NOT EXECUTED
20045a4: 22 80 00 10 be,a 20045e4 <erase+0x1a4> <== NOT EXECUTED
20045a8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
20045ac: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
20045b0: 22 80 00 0d be,a 20045e4 <erase+0x1a4> <== NOT EXECUTED
20045b4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
20045b8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20045bc: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20045c0: 7f ff fe cf call 20040fc <rtems_termios_puts> <== NOT EXECUTED
20045c4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
if (tty->column)
20045c8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
20045cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20045d0: 22 80 00 05 be,a 20045e4 <erase+0x1a4> <== NOT EXECUTED
20045d4: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
tty->column--;
20045d8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20045dc: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
20045e0: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
20045e4: c2 08 40 11 ldub [ %g1 + %l1 ], %g1 <== NOT EXECUTED
20045e8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20045ec: 02 80 00 07 be 2004608 <erase+0x1c8> <== NOT EXECUTED
20045f0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20045f4: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
20045f8: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
20045fc: 02 80 00 0d be 2004630 <erase+0x1f0> <== NOT EXECUTED
2004600: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
2004604: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2004608: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
200460c: 7f ff fe bc call 20040fc <rtems_termios_puts> <== NOT EXECUTED
2004610: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
if (tty->column)
2004614: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2004618: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200461c: 02 80 00 05 be 2004630 <erase+0x1f0> <== NOT EXECUTED
2004620: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
tty->column--;
2004624: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2004628: c2 24 20 28 st %g1, [ %l0 + 0x28 ] <== NOT EXECUTED
}
}
}
if (!lineFlag)
200462c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2004630: 32 80 00 0a bne,a 2004658 <erase+0x218> <== NOT EXECUTED
2004634: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED
2004638: 81 c7 e0 08 ret <== NOT EXECUTED
200463c: 81 e8 00 00 restore <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
if (tty->column)
tty->column--;
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
2004640: 27 00 80 71 sethi %hi(0x201c400), %l3 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
2004644: 29 00 80 71 sethi %hi(0x201c400), %l4 <== NOT EXECUTED
2004648: a4 14 a1 1c or %l2, 0x11c, %l2 <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
if (tty->column)
tty->column--;
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
rtems_termios_puts ("\b \b", 3, tty);
200464c: a6 14 e0 80 or %l3, 0x80, %l3 <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
2004650: a8 15 20 78 or %l4, 0x78, %l4 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
2004654: c6 04 20 20 ld [ %l0 + 0x20 ], %g3 <== NOT EXECUTED
2004658: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
200465c: 32 bf ff 94 bne,a 20044ac <erase+0x6c> <== NOT EXECUTED
2004660: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
2004664: 81 c7 e0 08 ret <== NOT EXECUTED
2004668: 81 e8 00 00 restore <== NOT EXECUTED
02025e8c <fat_buf_access>:
#include "fat_fat_operations.h"
int
fat_buf_access(fat_fs_info_t *fs_info, uint32_t blk, int op_type,
rtems_bdbuf_buffer **buf)
{
2025e8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
uint8_t i;
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
2025e90: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED
2025e94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025e98: 32 80 00 13 bne,a 2025ee4 <fat_buf_access+0x58> <== NOT EXECUTED
2025e9c: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
{
if (op_type == FAT_OP_TYPE_READ)
2025ea0: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2025ea4: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
2025ea8: 12 80 00 06 bne 2025ec0 <fat_buf_access+0x34> <== NOT EXECUTED
2025eac: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
2025eb0: 7f ff 7f 7f call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2025eb4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
2025eb8: 10 80 00 05 b 2025ecc <fat_buf_access+0x40> <== NOT EXECUTED
2025ebc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
if (fs_info->c.state == FAT_CACHE_EMPTY)
{
if (op_type == FAT_OP_TYPE_READ)
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
2025ec0: 7f ff 7f 48 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025ec4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025ec8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025ecc: 12 80 00 63 bne 2026058 <fat_buf_access+0x1cc> <== NOT EXECUTED
2025ed0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.blk_num = blk;
2025ed4: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED
fs_info->c.modified = 0;
2025ed8: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
2025edc: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED
}
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
2025ee0: c2 06 20 80 ld [ %i0 + 0x80 ], %g1 <== NOT EXECUTED
2025ee4: c4 16 20 14 lduh [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
2025ee8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025eec: 0a 80 00 05 bcs 2025f00 <fat_buf_access+0x74> <== NOT EXECUTED
2025ef0: a0 10 20 00 clr %l0 <== NOT EXECUTED
2025ef4: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
2025ef8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025efc: a0 40 20 00 addx %g0, 0, %l0 <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.blk_num != blk)
2025f00: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2025f04: 22 80 00 5e be,a 202607c <fat_buf_access+0x1f0> <== NOT EXECUTED
2025f08: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
{
if (fs_info->c.modified)
2025f0c: c2 0e 20 84 ldub [ %i0 + 0x84 ], %g1 <== NOT EXECUTED
2025f10: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025f14: 02 80 00 3f be 2026010 <fat_buf_access+0x184> <== NOT EXECUTED
2025f18: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
2025f1c: 02 80 00 0b be 2025f48 <fat_buf_access+0xbc> <== NOT EXECUTED
2025f20: 01 00 00 00 nop <== NOT EXECUTED
2025f24: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED
2025f28: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025f2c: 12 80 00 07 bne 2025f48 <fat_buf_access+0xbc> <== NOT EXECUTED
2025f30: 01 00 00 00 nop <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer,
2025f34: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
2025f38: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED
2025f3c: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2025f40: 40 00 86 21 call 20477c4 <memcpy> <== NOT EXECUTED
2025f44: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED
fs_info->vol.bps);
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
2025f48: 7f ff 7a 9b call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025f4c: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
2025f50: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED
fs_info->c.modified = 0;
if (sc != RTEMS_SUCCESSFUL)
2025f54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025f58: 12 80 00 40 bne 2026058 <fat_buf_access+0x1cc> <== NOT EXECUTED
2025f5c: c0 2e 20 84 clrb [ %i0 + 0x84 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
if (sec_of_fat && !fs_info->vol.mirror)
2025f60: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2025f64: 02 80 00 31 be 2026028 <fat_buf_access+0x19c> <== NOT EXECUTED
2025f68: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2025f6c: c2 0e 20 48 ldub [ %i0 + 0x48 ], %g1 <== NOT EXECUTED
2025f70: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
2025f74: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025f78: 02 80 00 1f be 2025ff4 <fat_buf_access+0x168> <== NOT EXECUTED
2025f7c: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
2025f80: 10 80 00 2a b 2026028 <fat_buf_access+0x19c> <== NOT EXECUTED
2025f84: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
2025f88: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED
2025f8c: 7f ff 72 9b call 20029f8 <.umul> <== NOT EXECUTED
2025f90: e4 1e 20 58 ldd [ %i0 + 0x58 ], %l2 <== NOT EXECUTED
2025f94: d4 06 20 80 ld [ %i0 + 0x80 ], %o2 <== NOT EXECUTED
2025f98: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2025f9c: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED
2025fa0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2025fa4: 7f ff 7f 0f call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025fa8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
2025fac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025fb0: 12 80 00 0d bne 2025fe4 <fat_buf_access+0x158> <== NOT EXECUTED
2025fb4: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
2025fb8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2025fbc: d2 06 20 8c ld [ %i0 + 0x8c ], %o1 <== NOT EXECUTED
2025fc0: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2025fc4: d4 16 00 00 lduh [ %i0 ], %o2 <== NOT EXECUTED
2025fc8: 40 00 85 ff call 20477c4 <memcpy> <== NOT EXECUTED
2025fcc: a0 04 20 01 inc %l0 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
2025fd0: 7f ff 7a 79 call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025fd4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
2025fd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025fdc: 22 80 00 07 be,a 2025ff8 <fat_buf_access+0x16c> <== NOT EXECUTED
2025fe0: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2025fe4: 40 00 78 ac call 2044294 <__errno> <== NOT EXECUTED
2025fe8: 01 00 00 00 nop <== NOT EXECUTED
2025fec: 10 80 00 1e b 2026064 <fat_buf_access+0x1d8> <== NOT EXECUTED
2025ff0: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
2025ff4: c4 0e 20 09 ldub [ %i0 + 9 ], %g2 <== NOT EXECUTED
2025ff8: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED
2025ffc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2026000: 0a bf ff e2 bcs 2025f88 <fat_buf_access+0xfc> <== NOT EXECUTED
2026004: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
2026008: 10 80 00 08 b 2026028 <fat_buf_access+0x19c> <== NOT EXECUTED
202600c: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
2026010: 7f ff 7a 8f call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2026014: d0 06 20 88 ld [ %i0 + 0x88 ], %o0 <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_EMPTY;
if (sc != RTEMS_SUCCESSFUL)
2026018: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202601c: 12 80 00 0f bne 2026058 <fat_buf_access+0x1cc> <== NOT EXECUTED
2026020: c0 2e 20 85 clrb [ %i0 + 0x85 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
}
if (op_type == FAT_OP_TYPE_READ)
2026024: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
2026028: d0 1e 20 58 ldd [ %i0 + 0x58 ], %o0 <== NOT EXECUTED
202602c: 12 80 00 06 bne 2026044 <fat_buf_access+0x1b8> <== NOT EXECUTED
2026030: 96 06 20 88 add %i0, 0x88, %o3 <== NOT EXECUTED
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
2026034: 7f ff 7f 1e call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2026038: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
202603c: 10 80 00 05 b 2026050 <fat_buf_access+0x1c4> <== NOT EXECUTED
2026040: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
}
if (op_type == FAT_OP_TYPE_READ)
sc = rtems_bdbuf_read(fs_info->vol.dev, blk, &fs_info->c.buf);
else
sc = rtems_bdbuf_get(fs_info->vol.dev, blk, &fs_info->c.buf);
2026044: 7f ff 7e e7 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2026048: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202604c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026050: 02 80 00 08 be 2026070 <fat_buf_access+0x1e4> <== NOT EXECUTED
2026054: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2026058: 40 00 78 8f call 2044294 <__errno> <== NOT EXECUTED
202605c: 01 00 00 00 nop <== NOT EXECUTED
2026060: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2026064: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2026068: 81 c7 e0 08 ret <== NOT EXECUTED
202606c: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
fs_info->c.blk_num = blk;
2026070: f2 26 20 80 st %i1, [ %i0 + 0x80 ] <== NOT EXECUTED
fs_info->c.state = FAT_CACHE_ACTUAL;
2026074: c2 2e 20 85 stb %g1, [ %i0 + 0x85 ] <== NOT EXECUTED
}
*buf = fs_info->c.buf;
2026078: c2 06 20 88 ld [ %i0 + 0x88 ], %g1 <== NOT EXECUTED
202607c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
return RC_OK;
}
2026080: 81 c7 e0 08 ret <== NOT EXECUTED
2026084: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02025d08 <fat_buf_release>:
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
2025d08: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
uint8_t i;
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
2025d0c: c2 0e 20 85 ldub [ %i0 + 0x85 ], %g1 <== NOT EXECUTED
return RC_OK;
}
int
fat_buf_release(fat_fs_info_t *fs_info)
{
2025d10: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
uint8_t i;
bool sec_of_fat;
if (fs_info->c.state == FAT_CACHE_EMPTY)
2025d14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025d18: 02 80 00 56 be 2025e70 <fat_buf_release+0x168> <== NOT EXECUTED
2025d1c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
sec_of_fat = ((fs_info->c.blk_num >= fs_info->vol.fat_loc) &&
2025d20: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2025d24: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
2025d28: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025d2c: 0a 80 00 05 bcs 2025d40 <fat_buf_release+0x38> <== NOT EXECUTED
2025d30: a2 10 20 00 clr %l1 <== NOT EXECUTED
2025d34: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
2025d38: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025d3c: a2 40 20 00 addx %g0, 0, %l1 <== NOT EXECUTED
(fs_info->c.blk_num < fs_info->vol.rdir_loc));
if (fs_info->c.modified)
2025d40: c2 0c 20 84 ldub [ %l0 + 0x84 ], %g1 <== NOT EXECUTED
2025d44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025d48: 02 80 00 3d be 2025e3c <fat_buf_release+0x134> <== NOT EXECUTED
2025d4c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
{
if (sec_of_fat && !fs_info->vol.mirror)
2025d50: 02 80 00 0b be 2025d7c <fat_buf_release+0x74> <== NOT EXECUTED
2025d54: 01 00 00 00 nop <== NOT EXECUTED
2025d58: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
2025d5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025d60: 12 80 00 07 bne 2025d7c <fat_buf_release+0x74> <== NOT EXECUTED
2025d64: 01 00 00 00 nop <== NOT EXECUTED
memcpy(fs_info->sec_buf, fs_info->c.buf->buffer, fs_info->vol.bps);
2025d68: c2 04 20 88 ld [ %l0 + 0x88 ], %g1 <== NOT EXECUTED
2025d6c: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
2025d70: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2025d74: 40 00 86 94 call 20477c4 <memcpy> <== NOT EXECUTED
2025d78: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(fs_info->c.buf);
2025d7c: 7f ff 7b 0e call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025d80: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025d84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025d88: 12 80 00 32 bne 2025e50 <fat_buf_release+0x148> <== NOT EXECUTED
2025d8c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
fs_info->c.modified = 0;
if (sec_of_fat && !fs_info->vol.mirror)
2025d90: 02 80 00 36 be 2025e68 <fat_buf_release+0x160> <== NOT EXECUTED
2025d94: c0 2c 20 84 clrb [ %l0 + 0x84 ] <== NOT EXECUTED
2025d98: c2 0c 20 48 ldub [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
2025d9c: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
2025da0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025da4: 02 80 00 1f be 2025e20 <fat_buf_release+0x118> <== NOT EXECUTED
2025da8: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
{
sc = rtems_bdbuf_release(fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
fs_info->c.state = FAT_CACHE_EMPTY;
2025dac: 10 80 00 30 b 2025e6c <fat_buf_release+0x164> <== NOT EXECUTED
2025db0: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
{
sc = rtems_bdbuf_get(fs_info->vol.dev,
2025db4: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
2025db8: 7f ff 73 10 call 20029f8 <.umul> <== NOT EXECUTED
2025dbc: e8 1c 20 58 ldd [ %l0 + 0x58 ], %l4 <== NOT EXECUTED
2025dc0: d4 04 20 80 ld [ %l0 + 0x80 ], %o2 <== NOT EXECUTED
2025dc4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2025dc8: 94 02 00 0a add %o0, %o2, %o2 <== NOT EXECUTED
2025dcc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2025dd0: 7f ff 7f 84 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2025dd4: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
fs_info->c.blk_num +
fs_info->vol.fat_length * i,
&b);
if ( sc != RTEMS_SUCCESSFUL)
2025dd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025ddc: 12 80 00 0d bne 2025e10 <fat_buf_release+0x108> <== NOT EXECUTED
2025de0: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
memcpy(b->buffer, fs_info->sec_buf, fs_info->vol.bps);
2025de4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2025de8: d2 04 20 8c ld [ %l0 + 0x8c ], %o1 <== NOT EXECUTED
2025dec: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2025df0: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
2025df4: 40 00 86 74 call 20477c4 <memcpy> <== NOT EXECUTED
2025df8: a2 04 60 01 inc %l1 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified(b);
2025dfc: 7f ff 7a ee call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2025e00: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL)
2025e04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025e08: 22 80 00 07 be,a 2025e24 <fat_buf_release+0x11c> <== NOT EXECUTED
2025e0c: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2025e10: 40 00 79 21 call 2044294 <__errno> <== NOT EXECUTED
2025e14: 01 00 00 00 nop <== NOT EXECUTED
2025e18: 10 80 00 11 b 2025e5c <fat_buf_release+0x154> <== NOT EXECUTED
2025e1c: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
if (sec_of_fat && !fs_info->vol.mirror)
{
rtems_bdbuf_buffer *b;
for (i = 1; i < fs_info->vol.fats; i++)
2025e20: c4 0c 20 09 ldub [ %l0 + 9 ], %g2 <== NOT EXECUTED
2025e24: 82 0c 60 ff and %l1, 0xff, %g1 <== NOT EXECUTED
2025e28: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2025e2c: 0a bf ff e2 bcs 2025db4 <fat_buf_release+0xac> <== NOT EXECUTED
2025e30: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
{
sc = rtems_bdbuf_release(fs_info->c.buf);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
}
fs_info->c.state = FAT_CACHE_EMPTY;
2025e34: 10 80 00 0e b 2025e6c <fat_buf_release+0x164> <== NOT EXECUTED
2025e38: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
}
}
}
else
{
sc = rtems_bdbuf_release(fs_info->c.buf);
2025e3c: 7f ff 7b 04 call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2025e40: d0 04 20 88 ld [ %l0 + 0x88 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2025e44: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025e48: 22 80 00 09 be,a 2025e6c <fat_buf_release+0x164> <== NOT EXECUTED
2025e4c: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2025e50: 40 00 79 11 call 2044294 <__errno> <== NOT EXECUTED
2025e54: 01 00 00 00 nop <== NOT EXECUTED
2025e58: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2025e5c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2025e60: 81 c7 e0 08 ret <== NOT EXECUTED
2025e64: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
fs_info->c.state = FAT_CACHE_EMPTY;
2025e68: c0 2c 20 85 clrb [ %l0 + 0x85 ] <== NOT EXECUTED
2025e6c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2025e70: 81 c7 e0 08 ret <== NOT EXECUTED
2025e74: 81 e8 00 00 restore <== NOT EXECUTED
02026ba0 <fat_cluster_read>:
fat_cluster_read(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
void *buff
)
{
2026ba0: 98 10 00 0a mov %o2, %o4 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
2026ba4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2026ba8: 12 80 00 08 bne 2026bc8 <fat_cluster_read+0x28> <== NOT EXECUTED
2026bac: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED
2026bb0: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
2026bb4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2026bb8: 22 80 00 05 be,a 2026bcc <fat_cluster_read+0x2c> <== NOT EXECUTED
2026bbc: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2026bc0: 10 80 00 07 b 2026bdc <fat_cluster_read+0x3c> <== NOT EXECUTED
2026bc4: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2026bc8: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
2026bcc: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED
2026bd0: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED
2026bd4: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED
2026bd8: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t fsec = 0;
fsec = fat_cluster_num_to_sector_num(mt_entry, cln);
return _fat_block_read(mt_entry, fsec, 0,
2026bdc: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
2026be0: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
2026be4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026be8: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
2026bec: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2026bf0: 7f ff fe 0d call 2026424 <_fat_block_read> <== NOT EXECUTED
2026bf4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02026308 <fat_cluster_write>:
fat_cluster_write(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
const void *buff
)
{
2026308: 98 10 00 0a mov %o2, %o4 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
202630c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2026310: 12 80 00 08 bne 2026330 <fat_cluster_write+0x28> <== NOT EXECUTED
2026314: c4 02 20 34 ld [ %o0 + 0x34 ], %g2 <== NOT EXECUTED
2026318: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
202631c: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2026320: 22 80 00 05 be,a 2026334 <fat_cluster_write+0x2c> <== NOT EXECUTED
2026324: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2026328: 10 80 00 07 b 2026344 <fat_cluster_write+0x3c> <== NOT EXECUTED
202632c: d2 00 a0 1c ld [ %g2 + 0x1c ], %o1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2026330: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
2026334: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1 <== NOT EXECUTED
2026338: 92 02 7f fe add %o1, -2, %o1 <== NOT EXECUTED
202633c: 93 2a 40 03 sll %o1, %g3, %o1 <== NOT EXECUTED
2026340: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t fsec = 0;
fsec = fat_cluster_num_to_sector_num(mt_entry, cln);
return _fat_block_write(mt_entry, fsec, 0,
2026344: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
2026348: d6 08 a0 04 ldub [ %g2 + 4 ], %o3 <== NOT EXECUTED
202634c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2026350: 97 2a c0 01 sll %o3, %g1, %o3 <== NOT EXECUTED
2026354: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2026358: 7f ff ff 4c call 2026088 <_fat_block_write> <== NOT EXECUTED
202635c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02026138 <fat_fat32_update_fsinfo_sector>:
fat_fat32_update_fsinfo_sector(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t free_count,
uint32_t next_free
)
{
2026138: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
ssize_t ret1 = 0, ret2 = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
202613c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t le_free_count = 0;
uint32_t le_next_free = 0;
le_free_count = CT_LE_L(free_count);
2026140: 89 2e 60 18 sll %i1, 0x18, %g4 <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
ret1 = _fat_block_write(mt_entry,
2026144: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED
ssize_t ret1 = 0, ret2 = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t le_free_count = 0;
uint32_t le_next_free = 0;
le_free_count = CT_LE_L(free_count);
2026148: 87 36 60 10 srl %i1, 0x10, %g3 <== NOT EXECUTED
202614c: 83 36 60 18 srl %i1, 0x18, %g1 <== NOT EXECUTED
2026150: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2026154: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026158: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
202615c: b3 36 60 08 srl %i1, 8, %i1 <== NOT EXECUTED
2026160: b2 0e 60 ff and %i1, 0xff, %i1 <== NOT EXECUTED
2026164: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
2026168: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED
202616c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
2026170: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
2026174: 87 2e a0 18 sll %i2, 0x18, %g3 <== NOT EXECUTED
ssize_t ret1 = 0, ret2 = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t le_free_count = 0;
uint32_t le_next_free = 0;
le_free_count = CT_LE_L(free_count);
2026178: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
le_next_free = CT_LE_L(next_free);
202617c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2026180: 83 36 a0 18 srl %i2, 0x18, %g1 <== NOT EXECUTED
2026184: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2026188: 82 10 c0 01 or %g3, %g1, %g1 <== NOT EXECUTED
202618c: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
2026190: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
2026194: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2026198: 82 10 40 1a or %g1, %i2, %g1 <== NOT EXECUTED
202619c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
20261a0: 94 10 21 e8 mov 0x1e8, %o2 <== NOT EXECUTED
register fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t le_free_count = 0;
uint32_t le_next_free = 0;
le_free_count = CT_LE_L(free_count);
le_next_free = CT_LE_L(next_free);
20261a4: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry,
20261a8: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
20261ac: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
20261b0: 7f ff ff b6 call 2026088 <_fat_block_write> <== NOT EXECUTED
20261b4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
fs_info->vol.info_sec,
FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET,
4,
(char *)(&le_free_count));
ret2 = _fat_block_write(mt_entry,
20261b8: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED
uint32_t le_next_free = 0;
le_free_count = CT_LE_L(free_count);
le_next_free = CT_LE_L(next_free);
ret1 = _fat_block_write(mt_entry,
20261bc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
fs_info->vol.info_sec,
FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET,
4,
(char *)(&le_free_count));
ret2 = _fat_block_write(mt_entry,
20261c0: 94 10 21 ec mov 0x1ec, %o2 <== NOT EXECUTED
20261c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20261c8: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
20261cc: 7f ff ff af call 2026088 <_fat_block_write> <== NOT EXECUTED
20261d0: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
fs_info->vol.info_sec,
FAT_FSINFO_NEXT_FREE_CLUSTER_OFFSET,
4,
(char *)(&le_next_free));
if ( (ret1 < 0) || (ret2 < 0) )
20261d4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20261d8: 06 80 00 04 bl 20261e8 <fat_fat32_update_fsinfo_sector+0xb0><== NOT EXECUTED
20261dc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
20261e0: 16 80 00 03 bge 20261ec <fat_fat32_update_fsinfo_sector+0xb4><== NOT EXECUTED
20261e4: b0 10 20 00 clr %i0 <== NOT EXECUTED
20261e8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
20261ec: 81 c7 e0 08 ret <== NOT EXECUTED
20261f0: 81 e8 00 00 restore <== NOT EXECUTED
0202588c <fat_file_close>:
int
fat_file_close(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
202588c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* if links_num field of fat-file descriptor is greater than 1
* decrement the count of links and return
*/
if (fat_fd->links_num > 1)
2025890: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2025894: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2025898: 08 80 00 06 bleu 20258b0 <fat_file_close+0x24> <== NOT EXECUTED
202589c: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
{
fat_fd->links_num--;
20258a0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20258a4: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
20258a8: 10 80 00 26 b 2025940 <fat_file_close+0xb4> <== NOT EXECUTED
20258ac: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
}
key = fat_construct_key(mt_entry, &fat_fd->dir_pos.sname);
if (fat_fd->flags & FAT_FILE_REMOVED)
20258b0: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
20258b4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20258b8: 22 80 00 15 be,a 202590c <fat_file_close+0x80> <== NOT EXECUTED
20258bc: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
{
rc = fat_file_truncate(mt_entry, fat_fd, 0);
20258c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20258c4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20258c8: 7f ff fe 18 call 2025128 <fat_file_truncate> <== NOT EXECUTED
20258cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20258d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20258d4: 12 80 00 1b bne 2025940 <fat_file_close+0xb4> <== NOT EXECUTED
20258d8: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
20258dc: 7f ff 9f b7 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
20258e0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
return rc;
_hash_delete(fs_info->rhash, key, fat_fd->ino, fat_fd);
if ( fat_ino_is_unique(mt_entry, fat_fd->ino) )
20258e4: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
20258e8: 40 00 00 cb call 2025c14 <fat_ino_is_unique> <== NOT EXECUTED
20258ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20258f0: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
20258f4: 02 80 00 0f be 2025930 <fat_file_close+0xa4> <== NOT EXECUTED
20258f8: 01 00 00 00 nop <== NOT EXECUTED
fat_free_unique_ino(mt_entry, fat_fd->ino);
20258fc: d2 06 60 0c ld [ %i1 + 0xc ], %o1 <== NOT EXECUTED
2025900: 40 00 00 b7 call 2025bdc <fat_free_unique_ino> <== NOT EXECUTED
2025904: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025908: 30 80 00 0a b,a 2025930 <fat_file_close+0xa4> <== NOT EXECUTED
free(fat_fd);
}
else
{
if (fat_ino_is_unique(mt_entry, fat_fd->ino))
202590c: 40 00 00 c2 call 2025c14 <fat_ino_is_unique> <== NOT EXECUTED
2025910: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025914: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2025918: 02 80 00 04 be 2025928 <fat_file_close+0x9c> <== NOT EXECUTED
202591c: 01 00 00 00 nop <== NOT EXECUTED
{
fat_fd->links_num = 0;
2025920: 10 80 00 06 b 2025938 <fat_file_close+0xac> <== NOT EXECUTED
2025924: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
2025928: 7f ff 9f a4 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
202592c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
}
else
{
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
free(fat_fd);
2025930: 7f ff 8a 4c call 2008260 <free> <== NOT EXECUTED
2025934: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
}
}
/*
* flush any modified "cached" buffer back to disk
*/
rc = fat_buf_release(fs_info);
2025938: 40 00 00 f4 call 2025d08 <fat_buf_release> <== NOT EXECUTED
202593c: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
return rc;
}
2025940: 81 c7 e0 08 ret <== NOT EXECUTED
2025944: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02024ee8 <fat_file_datasync>:
int
fat_file_datasync(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2024ee8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
rtems_bdbuf_buffer *block = NULL;
uint32_t sec = 0;
uint32_t i = 0;
if (fat_fd->fat_file_size == 0)
2024eec: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2024ef0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
rtems_bdbuf_buffer *block = NULL;
uint32_t sec = 0;
uint32_t i = 0;
if (fat_fd->fat_file_size == 0)
2024ef4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024ef8: a0 10 20 00 clr %l0 <== NOT EXECUTED
2024efc: 02 80 00 40 be 2024ffc <fat_file_datasync+0x114> <== NOT EXECUTED
2024f00: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
2024f04: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
2024f08: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
/*
* we can use only one bdbuf :( and we also know that cache is useless
* for sync operation, so don't use it
*/
rc = fat_buf_release(fs_info);
2024f0c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2024f10: 40 00 03 7e call 2025d08 <fat_buf_release> <== NOT EXECUTED
2024f14: aa 07 bf f8 add %fp, -8, %l5 <== NOT EXECUTED
if (rc != RC_OK)
2024f18: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2024f1c: 02 80 00 31 be 2024fe0 <fat_file_datasync+0xf8> <== NOT EXECUTED
2024f20: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
2024f24: 81 c7 e0 08 ret <== NOT EXECUTED
2024f28: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
2024f2c: 12 80 00 08 bne 2024f4c <fat_file_datasync+0x64> <== NOT EXECUTED
2024f30: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
2024f34: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
2024f38: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2024f3c: 22 80 00 05 be,a 2024f50 <fat_file_datasync+0x68> <== NOT EXECUTED
2024f40: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2024f44: 10 80 00 07 b 2024f60 <fat_file_datasync+0x78> <== NOT EXECUTED
2024f48: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2024f4c: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
2024f50: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
2024f54: a6 00 bf fe add %g2, -2, %l3 <== NOT EXECUTED
2024f58: a7 2c c0 01 sll %l3, %g1, %l3 <== NOT EXECUTED
2024f5c: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
/* for each sector in cluster ... */
for ( i = 0; i < fs_info->vol.spc; i++ )
2024f60: 10 80 00 13 b 2024fac <fat_file_datasync+0xc4> <== NOT EXECUTED
2024f64: a4 10 20 00 clr %l2 <== NOT EXECUTED
{
/* ... sync it */
sc = rtems_bdbuf_read(fs_info->vol.dev, (sec + i), &block);
2024f68: d0 1c 60 58 ldd [ %l1 + 0x58 ], %o0 <== NOT EXECUTED
2024f6c: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
2024f70: 7f ff 83 4f call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2024f74: a4 04 a0 01 inc %l2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2024f78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024f7c: 12 80 00 07 bne 2024f98 <fat_file_datasync+0xb0> <== NOT EXECUTED
2024f80: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
sc = rtems_bdbuf_sync(block);
2024f84: 7f ff 81 27 call 2005420 <rtems_bdbuf_sync> <== NOT EXECUTED
2024f88: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
if ( sc != RTEMS_SUCCESSFUL )
2024f8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024f90: 22 80 00 08 be,a 2024fb0 <fat_file_datasync+0xc8> <== NOT EXECUTED
2024f94: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2024f98: 40 00 7c bf call 2044294 <__errno> <== NOT EXECUTED
2024f9c: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
2024fa0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2024fa4: 10 80 00 16 b 2024ffc <fat_file_datasync+0x114> <== NOT EXECUTED
2024fa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
/* for each sector in cluster ... */
for ( i = 0; i < fs_info->vol.spc; i++ )
2024fac: c2 0c 60 04 ldub [ %l1 + 4 ], %g1 <== NOT EXECUTED
2024fb0: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2024fb4: 0a bf ff ed bcs 2024f68 <fat_file_datasync+0x80> <== NOT EXECUTED
2024fb8: 94 04 80 13 add %l2, %l3, %o2 <== NOT EXECUTED
sc = rtems_bdbuf_sync(block);
if ( sc != RTEMS_SUCCESSFUL )
rtems_set_errno_and_return_minus_one( EIO );
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024fbc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2024fc0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024fc4: 40 00 69 b6 call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
2024fc8: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2024fcc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024fd0: 22 80 00 05 be,a 2024fe4 <fat_file_datasync+0xfc> <== NOT EXECUTED
2024fd4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2024fd8: 10 80 00 09 b 2024ffc <fat_file_datasync+0x114> <== NOT EXECUTED
2024fdc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rc = fat_buf_release(fs_info);
if (rc != RC_OK)
return rc;
/* for each cluster of the file ... */
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2024fe0: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2024fe4: c6 04 60 0c ld [ %l1 + 0xc ], %g3 <== NOT EXECUTED
2024fe8: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
2024fec: 86 08 80 03 and %g2, %g3, %g3 <== NOT EXECUTED
2024ff0: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
2024ff4: 0a bf ff ce bcs 2024f2c <fat_file_datasync+0x44> <== NOT EXECUTED
2024ff8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
if ( rc != RC_OK )
return rc;
}
return rc;
}
2024ffc: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
2025000: 81 c7 e0 08 ret <== NOT EXECUTED
2025004: 81 e8 00 00 restore <== NOT EXECUTED
02025234 <fat_file_extend>:
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length,
uint32_t *a_length
)
{
2025234: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
uint32_t old_last_cl;
uint32_t last_cl = 0;
uint32_t bytes_remain = 0;
uint32_t cls_added;
*a_length = new_length;
2025238: f4 26 c0 00 st %i2, [ %i3 ] <== NOT EXECUTED
if (new_length <= fat_fd->fat_file_size)
202523c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
uint32_t *a_length
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t chain = 0;
2025240: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t bytes2add = 0;
uint32_t cls2add = 0;
uint32_t old_last_cl;
uint32_t last_cl = 0;
2025244: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length,
uint32_t *a_length
)
{
2025248: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
uint32_t bytes_remain = 0;
uint32_t cls_added;
*a_length = new_length;
if (new_length <= fat_fd->fat_file_size)
202524c: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2025250: 08 80 00 73 bleu 202541c <fat_file_extend+0x1e8> <== NOT EXECUTED
2025254: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
return RC_OK;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2025258: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
202525c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2025260: 32 80 00 0b bne,a 202528c <fat_file_extend+0x58> <== NOT EXECUTED
2025264: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
2025268: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
202526c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2025270: 32 80 00 07 bne,a 202528c <fat_file_extend+0x58> <== NOT EXECUTED
2025274: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2025278: c4 0c 60 0a ldub [ %l1 + 0xa ], %g2 <== NOT EXECUTED
202527c: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2025280: 12 80 00 1f bne 20252fc <fat_file_extend+0xc8> <== NOT EXECUTED
2025284: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
bytes_remain = (fs_info->vol.bpc -
(fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
2025288: c6 14 60 06 lduh [ %l1 + 6 ], %g3 <== NOT EXECUTED
(fs_info->vol.bpc - 1);
bytes2add = new_length - fat_fd->fat_file_size;
202528c: a8 26 80 01 sub %i2, %g1, %l4 <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
rtems_set_errno_and_return_minus_one( ENOSPC );
bytes_remain = (fs_info->vol.bpc -
(fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
2025290: 84 00 ff ff add %g3, -1, %g2 <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
rtems_set_errno_and_return_minus_one( ENOSPC );
bytes_remain = (fs_info->vol.bpc -
2025294: a4 08 80 01 and %g2, %g1, %l2 <== NOT EXECUTED
2025298: a4 20 c0 12 sub %g3, %l2, %l2 <== NOT EXECUTED
202529c: a4 0c 80 02 and %l2, %g2, %l2 <== NOT EXECUTED
(fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
(fs_info->vol.bpc - 1);
bytes2add = new_length - fat_fd->fat_file_size;
if (bytes2add > bytes_remain)
20252a0: 80 a5 00 12 cmp %l4, %l2 <== NOT EXECUTED
20252a4: 08 80 00 1a bleu 202530c <fat_file_extend+0xd8> <== NOT EXECUTED
20252a8: b0 10 20 00 clr %i0 <== NOT EXECUTED
/*
* if in last cluster allocated for the file there is enough room to
* handle extention (hence we don't need to add even one cluster to the
* file ) - return
*/
if (bytes2add == 0)
20252ac: a8 a5 00 12 subcc %l4, %l2, %l4 <== NOT EXECUTED
20252b0: 02 80 00 17 be 202530c <fat_file_extend+0xd8> <== NOT EXECUTED
20252b4: a6 05 3f ff add %l4, -1, %l3 <== NOT EXECUTED
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
20252b8: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
20252bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
* file ) - return
*/
if (bytes2add == 0)
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
20252c0: a7 34 c0 01 srl %l3, %g1, %l3 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
20252c4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
* file ) - return
*/
if (bytes2add == 0)
return RC_OK;
cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;
20252c8: a6 04 e0 01 inc %l3 <== NOT EXECUTED
rc = fat_scan_fat_for_free_clusters(mt_entry, &chain, cls2add,
20252cc: 96 07 bf f0 add %fp, -16, %o3 <== NOT EXECUTED
20252d0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20252d4: 40 00 69 a3 call 203f960 <fat_scan_fat_for_free_clusters> <== NOT EXECUTED
20252d8: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
&cls_added, &last_cl);
/* this means that low level I/O error occured */
if (rc != RC_OK)
20252dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20252e0: 12 80 00 0b bne 202530c <fat_file_extend+0xd8> <== NOT EXECUTED
20252e4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
return rc;
/* this means that no space left on device */
if ((cls_added == 0) && (bytes_remain == 0))
20252e8: 12 80 00 0b bne 2025314 <fat_file_extend+0xe0> <== NOT EXECUTED
20252ec: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
20252f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20252f4: 12 80 00 09 bne 2025318 <fat_file_extend+0xe4> <== NOT EXECUTED
20252f8: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOSPC);
20252fc: 40 00 7b e6 call 2044294 <__errno> <== NOT EXECUTED
2025300: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2025304: 82 10 20 1c mov 0x1c, %g1 <== NOT EXECUTED
2025308: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202530c: 81 c7 e0 08 ret <== NOT EXECUTED
2025310: 81 e8 00 00 restore <== NOT EXECUTED
/* check wether we satisfied request for 'cls2add' clusters */
if (cls2add != cls_added)
2025314: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2025318: 02 80 00 0b be 2025344 <fat_file_extend+0x110> <== NOT EXECUTED
202531c: 82 38 00 01 xnor %g0, %g1, %g1 <== NOT EXECUTED
*a_length = new_length -
2025320: c6 0c 60 08 ldub [ %l1 + 8 ], %g3 <== NOT EXECUTED
2025324: c4 14 60 06 lduh [ %l1 + 6 ], %g2 <== NOT EXECUTED
2025328: a6 00 40 13 add %g1, %l3, %l3 <== NOT EXECUTED
202532c: 82 00 bf ff add %g2, -1, %g1 <== NOT EXECUTED
2025330: a7 2c c0 03 sll %l3, %g3, %l3 <== NOT EXECUTED
2025334: a8 0d 00 01 and %l4, %g1, %l4 <== NOT EXECUTED
2025338: a6 26 80 13 sub %i2, %l3, %l3 <== NOT EXECUTED
202533c: a8 24 c0 14 sub %l3, %l4, %l4 <== NOT EXECUTED
2025340: e8 26 c0 00 st %l4, [ %i3 ] <== NOT EXECUTED
((cls2add - cls_added - 1) << fs_info->vol.bpc_log2) -
(bytes2add & (fs_info->vol.bpc - 1));
/* add new chain to the end of existed */
if ( fat_fd->fat_file_size == 0 )
2025344: d6 06 60 18 ld [ %i1 + 0x18 ], %o3 <== NOT EXECUTED
2025348: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
202534c: 32 80 00 07 bne,a 2025368 <fat_file_extend+0x134> <== NOT EXECUTED
2025350: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
2025354: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_fd->map.file_cln = 0;
2025358: c0 26 60 34 clr [ %i1 + 0x34 ] <== NOT EXECUTED
(bytes2add & (fs_info->vol.bpc - 1));
/* add new chain to the end of existed */
if ( fat_fd->fat_file_size == 0 )
{
fat_fd->map.disk_cln = fat_fd->cln = chain;
202535c: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
2025360: 10 80 00 18 b 20253c0 <fat_file_extend+0x18c> <== NOT EXECUTED
2025364: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
fat_fd->map.file_cln = 0;
}
else
{
if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)
2025368: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
202536c: 02 80 00 04 be 202537c <fat_file_extend+0x148> <== NOT EXECUTED
2025370: 96 02 ff ff add %o3, -1, %o3 <== NOT EXECUTED
{
old_last_cl = fat_fd->map.last_cln;
2025374: 10 80 00 0a b 202539c <fat_file_extend+0x168> <== NOT EXECUTED
2025378: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
}
else
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
202537c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025380: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025384: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2025388: 7f ff ff 35 call 202505c <fat_file_ioctl> <== NOT EXECUTED
202538c: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
(fat_fd->fat_file_size - 1), &old_last_cl);
if ( rc != RC_OK )
2025390: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2025394: 12 80 00 1b bne 2025400 <fat_file_extend+0x1cc> <== NOT EXECUTED
2025398: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
}
rc = fat_set_fat_cluster(mt_entry, old_last_cl, chain);
202539c: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
20253a0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
20253a4: 40 00 68 11 call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
20253a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20253ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20253b0: 12 80 00 14 bne 2025400 <fat_file_extend+0x1cc> <== NOT EXECUTED
20253b4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
return rc;
}
fat_buf_release(fs_info);
20253b8: 40 00 02 54 call 2025d08 <fat_buf_release> <== NOT EXECUTED
20253bc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
/* update number of the last cluster of the file if it changed */
if (cls_added != 0)
20253c0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
20253c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20253c8: 22 80 00 13 be,a 2025414 <fat_file_extend+0x1e0> <== NOT EXECUTED
20253cc: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_fd->map.last_cln = last_cl;
20253d0: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
20253d4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
20253d8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20253dc: 12 80 00 0d bne 2025410 <fat_file_extend+0x1dc> <== NOT EXECUTED
20253e0: c4 26 60 3c st %g2, [ %i1 + 0x3c ] <== NOT EXECUTED
{
rc = fat_init_clusters_chain(mt_entry, chain);
20253e4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20253e8: 40 00 03 df call 2026364 <fat_init_clusters_chain> <== NOT EXECUTED
20253ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20253f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20253f4: 22 80 00 08 be,a 2025414 <fat_file_extend+0x1e0> <== NOT EXECUTED
20253f8: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
{
fat_free_fat_clusters_chain(mt_entry, chain);
20253fc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2025400: 40 00 69 24 call 203f890 <fat_free_fat_clusters_chain> <== NOT EXECUTED
2025404: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2025408: 81 c7 e0 08 ret <== NOT EXECUTED
202540c: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
fat_fd->fat_file_size = new_length;
2025410: f4 26 60 18 st %i2, [ %i1 + 0x18 ] <== NOT EXECUTED
return RC_OK;
2025414: 81 c7 e0 08 ret <== NOT EXECUTED
2025418: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
202541c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
2025420: 81 c7 e0 08 ret <== NOT EXECUTED
2025424: 81 e8 00 00 restore <== NOT EXECUTED
0202505c <fat_file_ioctl>:
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
202505c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uint32_t cl_start = 0;
uint32_t pos = 0;
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
2025060: 82 07 a0 50 add %fp, 0x50, %g1 <== NOT EXECUTED
2025064: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
2025068: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
202506c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2025070: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int cmd,
...)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = 0;
2025074: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
switch (cmd)
2025078: 80 a6 a0 01 cmp %i2, 1 <== NOT EXECUTED
fat_file_ioctl(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
int cmd,
...)
{
202507c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025080: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
uint32_t *ret;
va_list ap;
va_start(ap, cmd);
switch (cmd)
2025084: 12 80 00 22 bne 202510c <fat_file_ioctl+0xb0> <== NOT EXECUTED
2025088: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
case F_CLU_NUM:
pos = va_arg(ap, uint32_t );
ret = va_arg(ap, uint32_t *);
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
202508c: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED
switch (cmd)
{
case F_CLU_NUM:
pos = va_arg(ap, uint32_t );
ret = va_arg(ap, uint32_t *);
2025090: 86 07 a0 58 add %fp, 0x58, %g3 <== NOT EXECUTED
/* sanity check */
if ( pos >= fat_fd->fat_file_size )
2025094: 80 a6 c0 02 cmp %i3, %g2 <== NOT EXECUTED
2025098: 0a 80 00 06 bcs 20250b0 <fat_file_ioctl+0x54> <== NOT EXECUTED
202509c: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
20250a0: 40 00 7c 7d call 2044294 <__errno> <== NOT EXECUTED
20250a4: 01 00 00 00 nop <== NOT EXECUTED
20250a8: 10 80 00 1c b 2025118 <fat_file_ioctl+0xbc> <== NOT EXECUTED
20250ac: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20250b0: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
20250b4: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
20250b8: 32 80 00 0d bne,a 20250ec <fat_file_ioctl+0x90> <== NOT EXECUTED
20250bc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
20250c0: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
20250c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20250c8: 32 80 00 09 bne,a 20250ec <fat_file_ioctl+0x90> <== NOT EXECUTED
20250cc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20250d0: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
20250d4: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
20250d8: 22 80 00 05 be,a 20250ec <fat_file_ioctl+0x90> <== NOT EXECUTED
20250dc: d4 08 60 08 ldub [ %g1 + 8 ], %o2 <== NOT EXECUTED
{
/* cluster 0 (zero) reserved for root dir */
*ret = 0;
20250e0: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
return RC_OK;
20250e4: 10 80 00 0f b 2025120 <fat_file_ioctl+0xc4> <== NOT EXECUTED
20250e8: 92 10 20 00 clr %o1 <== NOT EXECUTED
}
cl_start = pos >> fs_info->vol.bpc_log2;
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
20250ec: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
20250f0: 7f ff ff 55 call 2024e44 <fat_file_lseek> <== NOT EXECUTED
20250f4: 95 36 c0 0a srl %i3, %o2, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20250f8: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20250fc: 12 80 00 09 bne 2025120 <fat_file_ioctl+0xc4> <== NOT EXECUTED
2025100: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*ret = cur_cln;
break;
2025104: 10 80 00 07 b 2025120 <fat_file_ioctl+0xc4> <== NOT EXECUTED
2025108: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
default:
errno = EINVAL;
202510c: 40 00 7c 62 call 2044294 <__errno> <== NOT EXECUTED
2025110: 01 00 00 00 nop <== NOT EXECUTED
2025114: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2025118: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202511c: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED
rc = -1;
break;
}
return rc;
}
2025120: 81 c7 e0 08 ret <== NOT EXECUTED
2025124: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED
02024e44 <fat_file_lseek>:
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t file_cln,
uint32_t *disk_cln
)
{
2024e44: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
if (file_cln == fat_fd->map.file_cln)
2024e48: e2 06 60 34 ld [ %i1 + 0x34 ], %l1 <== NOT EXECUTED
2024e4c: 80 a6 80 11 cmp %i2, %l1 <== NOT EXECUTED
2024e50: 12 80 00 06 bne 2024e68 <fat_file_lseek+0x24> <== NOT EXECUTED
2024e54: 84 10 20 00 clr %g2 <== NOT EXECUTED
*disk_cln = fat_fd->map.disk_cln;
2024e58: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED
2024e5c: 86 10 20 00 clr %g3 <== NOT EXECUTED
2024e60: 10 80 00 1f b 2024edc <fat_file_lseek+0x98> <== NOT EXECUTED
2024e64: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
{
uint32_t cur_cln;
uint32_t count;
uint32_t i;
if (file_cln > fat_fd->map.file_cln)
2024e68: 28 80 00 05 bleu,a 2024e7c <fat_file_lseek+0x38> <== NOT EXECUTED
2024e6c: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
{
cur_cln = fat_fd->map.disk_cln;
2024e70: c2 06 60 38 ld [ %i1 + 0x38 ], %g1 <== NOT EXECUTED
count = file_cln - fat_fd->map.file_cln;
2024e74: 10 80 00 03 b 2024e80 <fat_file_lseek+0x3c> <== NOT EXECUTED
2024e78: a2 26 80 11 sub %i2, %l1, %l1 <== NOT EXECUTED
}
else
{
cur_cln = fat_fd->cln;
2024e7c: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
2024e80: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
2024e84: a0 10 20 00 clr %l0 <== NOT EXECUTED
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
2024e88: 10 80 00 0a b 2024eb0 <fat_file_lseek+0x6c> <== NOT EXECUTED
2024e8c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024e90: 40 00 6a 03 call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
2024e94: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
2024e98: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024e9c: 02 80 00 06 be 2024eb4 <fat_file_lseek+0x70> <== NOT EXECUTED
2024ea0: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
return rc;
2024ea4: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
2024ea8: 10 80 00 0d b 2024edc <fat_file_lseek+0x98> <== NOT EXECUTED
2024eac: 85 3a 20 1f sra %o0, 0x1f, %g2 <== NOT EXECUTED
cur_cln = fat_fd->cln;
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
2024eb0: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024eb4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2024eb8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
cur_cln = fat_fd->cln;
count = file_cln;
}
/* skip over the clusters */
for (i = 0; i < count; i++)
2024ebc: a0 04 20 01 inc %l0 <== NOT EXECUTED
2024ec0: 0a bf ff f4 bcs 2024e90 <fat_file_lseek+0x4c> <== NOT EXECUTED
2024ec4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
}
/* update cache */
fat_fd->map.file_cln = file_cln;
2024ec8: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = cur_cln;
2024ecc: d2 26 60 38 st %o1, [ %i1 + 0x38 ] <== NOT EXECUTED
*disk_cln = cur_cln;
2024ed0: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
2024ed4: 84 10 20 00 clr %g2 <== NOT EXECUTED
2024ed8: 86 10 20 00 clr %g3 <== NOT EXECUTED
}
return RC_OK;
}
2024edc: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
2024ee0: 81 c7 e0 08 ret <== NOT EXECUTED
2024ee4: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02025008 <fat_file_mark_removed>:
void
fat_file_mark_removed(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2025008: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
202500c: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
2025010: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
2025014: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2025018: e2 06 60 24 ld [ %i1 + 0x24 ], %l1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
202501c: 7f ff a1 e7 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
2025020: 90 10 00 19 mov %i1, %o0 <== 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 );
2025024: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
2025028: a3 34 60 05 srl %l1, 5, %l1 <== NOT EXECUTED
202502c: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED
2025030: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED
2025034: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025038: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
202503c: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED
2025040: 7f ff a1 d2 call 200d788 <_Chain_Append> <== NOT EXECUTED
2025044: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED
_hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);
_hash_insert(fs_info->rhash, key, fat_fd->ino, fat_fd);
fat_fd->flags |= FAT_FILE_REMOVED;
2025048: c2 0e 60 30 ldub [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
202504c: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
2025050: c2 2e 60 30 stb %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
}
2025054: 81 c7 e0 08 ret <== NOT EXECUTED
2025058: 81 e8 00 00 restore <== NOT EXECUTED
02025948 <fat_file_open>:
fat_file_open(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
fat_file_fd_t **fat_fd
)
{
2025948: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
202594c: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2025950: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
2025954: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2025958: 02 80 00 11 be 202599c <fat_file_open+0x54> <== NOT EXECUTED
202595c: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
2025960: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2025964: 32 80 00 08 bne,a 2025984 <fat_file_open+0x3c> <== NOT EXECUTED
2025968: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
202596c: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED
2025970: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2025974: 22 80 00 04 be,a 2025984 <fat_file_open+0x3c> <== NOT EXECUTED
2025978: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
202597c: 10 80 00 06 b 2025994 <fat_file_open+0x4c> <== NOT EXECUTED
2025980: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025984: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED
2025988: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
202598c: 87 28 40 03 sll %g1, %g3, %g3 <== NOT EXECUTED
2025990: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
return 1;
return (fat_cluster_num_to_sector_num(mt_entry, cln) <<
2025994: e4 0c 20 03 ldub [ %l0 + 3 ], %l2 <== NOT EXECUTED
2025998: 87 28 c0 12 sll %g3, %l2, %g3 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
202599c: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
uint32_t key2,
fat_file_fd_t **ret
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
20259a0: c4 04 20 68 ld [ %l0 + 0x68 ], %g2 <== NOT EXECUTED
static inline uint32_t
fat_construct_key(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_pos_t *pos)
{
return ( ((fat_cluster_num_to_sector512_num(mt_entry, pos->cln) +
20259a4: 89 30 60 05 srl %g1, 5, %g4 <== NOT EXECUTED
20259a8: a5 30 60 09 srl %g1, 9, %l2 <== NOT EXECUTED
20259ac: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED
20259b0: a4 00 c0 12 add %g3, %l2, %l2 <== NOT EXECUTED
20259b4: a5 2c a0 04 sll %l2, 4, %l2 <== NOT EXECUTED
20259b8: a4 04 80 04 add %l2, %g4, %l2 <== NOT EXECUTED
20259bc: 82 0c a0 01 and %l2, 1, %g1 <== NOT EXECUTED
20259c0: a7 28 60 04 sll %g1, 4, %l3 <== NOT EXECUTED
20259c4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20259c8: a6 24 c0 01 sub %l3, %g1, %l3 <== NOT EXECUTED
20259cc: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED
20259d0: 84 00 80 13 add %g2, %l3, %g2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
20259d4: 10 80 00 24 b 2025a64 <fat_file_open+0x11c> <== NOT EXECUTED
20259d8: 9a 00 a0 04 add %g2, 4, %o5 <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
20259dc: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
20259e0: 02 80 00 11 be 2025a24 <fat_file_open+0xdc> <== NOT EXECUTED
20259e4: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20259e8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20259ec: 32 80 00 08 bne,a 2025a0c <fat_file_open+0xc4> <== NOT EXECUTED
20259f0: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
20259f4: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED
20259f8: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20259fc: 22 80 00 04 be,a 2025a0c <fat_file_open+0xc4> <== NOT EXECUTED
2025a00: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025a04: 10 80 00 06 b 2025a1c <fat_file_open+0xd4> <== NOT EXECUTED
2025a08: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025a0c: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED
2025a10: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
2025a14: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED
2025a18: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
return 1;
return (fat_cluster_num_to_sector_num(mt_entry, cln) <<
2025a1c: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED
2025a20: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED
(pos->ofs >> FAT_SECTOR512_BITS)) << 4) +
2025a24: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
{
fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;
uint32_t ck = fat_construct_key(mt_entry, &ffd->dir_pos.sname);
if ( (key1) == ck)
2025a28: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED
2025a2c: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED
2025a30: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED
2025a34: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
2025a38: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED
2025a3c: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
2025a40: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED
2025a44: 32 80 00 08 bne,a 2025a64 <fat_file_open+0x11c> <== NOT EXECUTED
2025a48: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
rc = _hash_search(mt_entry, fs_info->vhash, key, 0, &lfat_fd);
if ( rc == RC_OK )
{
/* return pointer to fat_file_descriptor allocated before */
(*fat_fd) = lfat_fd;
lfat_fd->links_num++;
2025a4c: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
/* access "valid" hash table */
rc = _hash_search(mt_entry, fs_info->vhash, key, 0, &lfat_fd);
if ( rc == RC_OK )
{
/* return pointer to fat_file_descriptor allocated before */
(*fat_fd) = lfat_fd;
2025a50: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
lfat_fd->links_num++;
2025a54: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2025a58: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
return rc;
2025a5c: 81 c7 e0 08 ret <== NOT EXECUTED
2025a60: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
2025a64: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED
2025a68: 32 bf ff dd bne,a 20259dc <fat_file_open+0x94> <== NOT EXECUTED
2025a6c: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
uint32_t key2,
fat_file_fd_t **ret
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
2025a70: 10 80 00 57 b 2025bcc <fat_file_open+0x284> <== NOT EXECUTED
2025a74: c4 04 20 6c ld [ %l0 + 0x6c ], %g2 <== NOT EXECUTED
uint32_t cln
)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
2025a78: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2025a7c: 02 80 00 11 be 2025ac0 <fat_file_open+0x178> <== NOT EXECUTED
2025a80: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
2025a84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2025a88: 32 80 00 08 bne,a 2025aa8 <fat_file_open+0x160> <== NOT EXECUTED
2025a8c: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
2025a90: c6 0c 20 0a ldub [ %l0 + 0xa ], %g3 <== NOT EXECUTED
2025a94: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2025a98: 22 80 00 04 be,a 2025aa8 <fat_file_open+0x160> <== NOT EXECUTED
2025a9c: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025aa0: 10 80 00 06 b 2025ab8 <fat_file_open+0x170> <== NOT EXECUTED
2025aa4: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025aa8: c8 04 20 30 ld [ %l0 + 0x30 ], %g4 <== NOT EXECUTED
2025aac: 84 00 bf fe add %g2, -2, %g2 <== NOT EXECUTED
2025ab0: 87 28 80 03 sll %g2, %g3, %g3 <== NOT EXECUTED
2025ab4: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
if (cln == 1)
return 1;
return (fat_cluster_num_to_sector_num(mt_entry, cln) <<
2025ab8: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED
2025abc: 87 28 c0 02 sll %g3, %g2, %g3 <== NOT EXECUTED
2025ac0: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
{
fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;
uint32_t ck = fat_construct_key(mt_entry, &ffd->dir_pos.sname);
if ( (key1) == ck)
2025ac4: 85 31 20 05 srl %g4, 5, %g2 <== NOT EXECUTED
2025ac8: 89 31 20 09 srl %g4, 9, %g4 <== NOT EXECUTED
2025acc: 84 08 a0 0f and %g2, 0xf, %g2 <== NOT EXECUTED
2025ad0: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
2025ad4: 87 28 e0 04 sll %g3, 4, %g3 <== NOT EXECUTED
2025ad8: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
2025adc: 80 a4 80 03 cmp %l2, %g3 <== NOT EXECUTED
2025ae0: 32 80 00 0a bne,a 2025b08 <fat_file_open+0x1c0> <== NOT EXECUTED
2025ae4: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
{
if ( ((key2) == 0) || ((key2) == ffd->ino) )
2025ae8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2025aec: 02 80 00 0b be 2025b18 <fat_file_open+0x1d0> <== NOT EXECUTED
2025af0: a8 10 20 00 clr %l4 <== NOT EXECUTED
2025af4: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
2025af8: 80 a4 80 02 cmp %l2, %g2 <== NOT EXECUTED
2025afc: 02 80 00 07 be 2025b18 <fat_file_open+0x1d0> <== NOT EXECUTED
2025b00: 01 00 00 00 nop <== NOT EXECUTED
{
*ret = (void *)the_node;
return 0;
}
}
the_node = the_node->next;
2025b04: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )
2025b08: 80 a0 40 0d cmp %g1, %o5 <== NOT EXECUTED
2025b0c: 32 bf ff db bne,a 2025a78 <fat_file_open+0x130> <== NOT EXECUTED
2025b10: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
2025b14: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
}
/* access "removed-but-still-open" hash table */
rc = _hash_search(mt_entry, fs_info->rhash, key, key, &lfat_fd);
lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t));
2025b18: 7f ff 8b 99 call 200897c <malloc> <== NOT EXECUTED
2025b1c: 90 10 20 44 mov 0x44, %o0 <== NOT EXECUTED
2025b20: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED
if ( lfat_fd == NULL )
2025b24: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025b28: 02 80 00 1c be 2025b98 <fat_file_open+0x250> <== NOT EXECUTED
2025b2c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
2025b30: 92 10 20 00 clr %o1 <== NOT EXECUTED
2025b34: 40 00 87 b7 call 2047a10 <memset> <== NOT EXECUTED
2025b38: 94 10 20 44 mov 0x44, %o2 <== NOT EXECUTED
lfat_fd->links_num = 1;
lfat_fd->flags &= ~FAT_FILE_REMOVED;
2025b3c: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1 <== NOT EXECUTED
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
lfat_fd->dir_pos = *dir_pos;
2025b40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
lfat_fd->links_num = 1;
lfat_fd->flags &= ~FAT_FILE_REMOVED;
2025b44: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
2025b48: c2 2c 60 30 stb %g1, [ %l1 + 0x30 ] <== NOT EXECUTED
if ( lfat_fd == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
lfat_fd->links_num = 1;
2025b4c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2025b50: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED
lfat_fd->flags &= ~FAT_FILE_REMOVED;
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
2025b54: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
2025b58: 90 04 60 20 add %l1, 0x20, %o0 <== NOT EXECUTED
memset(lfat_fd, 0, sizeof(fat_file_fd_t));
lfat_fd->links_num = 1;
lfat_fd->flags &= ~FAT_FILE_REMOVED;
lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
2025b5c: c2 24 60 3c st %g1, [ %l1 + 0x3c ] <== NOT EXECUTED
lfat_fd->dir_pos = *dir_pos;
2025b60: 40 00 87 19 call 20477c4 <memcpy> <== NOT EXECUTED
2025b64: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2025b68: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2025b6c: 02 80 00 04 be 2025b7c <fat_file_open+0x234> <== NOT EXECUTED
2025b70: 01 00 00 00 nop <== NOT EXECUTED
lfat_fd->ino = key;
2025b74: 10 80 00 0f b 2025bb0 <fat_file_open+0x268> <== NOT EXECUTED
2025b78: e4 24 60 0c st %l2, [ %l1 + 0xc ] <== NOT EXECUTED
else
{
lfat_fd->ino = fat_get_unique_ino(mt_entry);
2025b7c: 40 00 00 2b call 2025c28 <fat_get_unique_ino> <== NOT EXECUTED
2025b80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if ( lfat_fd->ino == 0 )
2025b84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025b88: 12 80 00 0a bne 2025bb0 <fat_file_open+0x268> <== NOT EXECUTED
2025b8c: d0 24 60 0c st %o0, [ %l1 + 0xc ] <== NOT EXECUTED
{
free((*fat_fd));
2025b90: 7f ff 89 b4 call 2008260 <free> <== NOT EXECUTED
2025b94: d0 06 80 00 ld [ %i2 ], %o0 <== NOT EXECUTED
/*
* XXX: kernel resource is unsufficient, but not the memory,
* but there is no suitable errno :(
*/
rtems_set_errno_and_return_minus_one( ENOMEM );
2025b98: 40 00 79 bf call 2044294 <__errno> <== NOT EXECUTED
2025b9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2025ba0: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2025ba4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2025ba8: 81 c7 e0 08 ret <== NOT EXECUTED
2025bac: 81 e8 00 00 restore <== 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 );
2025bb0: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
2025bb4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2025bb8: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
2025bbc: 7f ff 9e f3 call 200d788 <_Chain_Append> <== NOT EXECUTED
2025bc0: b0 10 20 00 clr %i0 <== NOT EXECUTED
* other fields of fat-file descriptor will be initialized on upper
* level
*/
return RC_OK;
}
2025bc4: 81 c7 e0 08 ret <== NOT EXECUTED
2025bc8: 81 e8 00 00 restore <== NOT EXECUTED
uint32_t key2,
fat_file_fd_t **ret
)
{
uint32_t mod = (key1) % FAT_HASH_MODULE;
rtems_chain_node *the_node = ((rtems_chain_control *)((hash) + mod))->first;
2025bcc: c2 00 80 13 ld [ %g2 + %l3 ], %g1 <== NOT EXECUTED
2025bd0: 84 00 80 13 add %g2, %l3, %g2 <== NOT EXECUTED
2025bd4: 10 bf ff cd b 2025b08 <fat_file_open+0x1c0> <== NOT EXECUTED
2025bd8: 9a 00 a0 04 add %g2, 4, %o5 <== NOT EXECUTED
02025688 <fat_file_read>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
uint8_t *buf
)
{
2025688: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
202568c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
/* it couldn't be removed - otherwise cache update will be broken */
if (count == 0)
2025690: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2025694: 02 80 00 79 be 2025878 <fat_file_read+0x1f0> <== NOT EXECUTED
2025698: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
/*
* >= because start is offset and computed from 0 and file_size
* computed from 1
*/
if ( start >= fat_fd->fat_file_size )
202569c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
20256a0: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
20256a4: 1a 80 00 75 bcc 2025878 <fat_file_read+0x1f0> <== NOT EXECUTED
20256a8: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
return FAT_EOF;
if ((count > fat_fd->fat_file_size) ||
20256ac: 38 80 00 07 bgu,a 20256c8 <fat_file_read+0x40> <== NOT EXECUTED
20256b0: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
20256b4: 84 20 40 1b sub %g1, %i3, %g2 <== NOT EXECUTED
20256b8: 80 a6 80 02 cmp %i2, %g2 <== NOT EXECUTED
20256bc: 28 80 00 04 bleu,a 20256cc <fat_file_read+0x44> <== NOT EXECUTED
20256c0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
(start > fat_fd->fat_file_size - count))
count = fat_fd->fat_file_size - start;
20256c4: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20256c8: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
20256cc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20256d0: 12 80 00 23 bne 202575c <fat_file_read+0xd4> <== NOT EXECUTED
20256d4: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
20256d8: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
20256dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20256e0: 32 80 00 20 bne,a 2025760 <fat_file_read+0xd8> <== NOT EXECUTED
20256e4: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20256e8: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
20256ec: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20256f0: 22 80 00 1c be,a 2025760 <fat_file_read+0xd8> <== NOT EXECUTED
20256f4: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
20256f8: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20256fc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2025700: 32 80 00 04 bne,a 2025710 <fat_file_read+0x88> <== NOT EXECUTED
2025704: c8 0c 60 05 ldub [ %l1 + 5 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025708: 10 80 00 06 b 2025720 <fat_file_read+0x98> <== NOT EXECUTED
202570c: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025710: c6 04 60 30 ld [ %l1 + 0x30 ], %g3 <== NOT EXECUTED
2025714: 82 00 bf fe add %g2, -2, %g1 <== NOT EXECUTED
2025718: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
202571c: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
sec += (start >> fs_info->vol.sec_log2);
byte = start & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, count, buf);
2025720: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2025724: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED
2025728: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
202572c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025730: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED
2025734: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2025738: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
202573c: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
2025740: 40 00 03 39 call 2026424 <_fat_block_read> <== NOT EXECUTED
2025744: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED
if ( ret < 0 )
2025748: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202574c: 16 80 00 4e bge 2025884 <fat_file_read+0x1fc> <== NOT EXECUTED
2025750: 01 00 00 00 nop <== NOT EXECUTED
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2025754: 10 80 00 4c b 2025884 <fat_file_read+0x1fc> <== NOT EXECUTED
2025758: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
202575c: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
2025760: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
2025764: a7 36 80 13 srl %i2, %l3, %l3 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
2025768: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
202576c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025770: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2025774: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2025778: 7f ff fd b3 call 2024e44 <fat_file_lseek> <== NOT EXECUTED
202577c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2025780: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED
2025784: 12 80 00 40 bne 2025884 <fat_file_read+0x1fc> <== NOT EXECUTED
2025788: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
202578c: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
2025790: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED
2025794: aa 10 20 00 clr %l5 <== NOT EXECUTED
2025798: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED
202579c: a4 10 20 00 clr %l2 <== NOT EXECUTED
20257a0: 10 80 00 2a b 2025848 <fat_file_read+0x1c0> <== NOT EXECUTED
20257a4: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
20257a8: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED
20257ac: 80 a2 c0 1b cmp %o3, %i3 <== NOT EXECUTED
20257b0: 08 80 00 03 bleu 20257bc <fat_file_read+0x134> <== NOT EXECUTED
20257b4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
20257b8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20257bc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20257c0: 9a 00 bf fe add %g2, -2, %o5 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20257c4: 12 80 00 08 bne 20257e4 <fat_file_read+0x15c> <== NOT EXECUTED
20257c8: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
20257cc: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
20257d0: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20257d4: 22 80 00 05 be,a 20257e8 <fat_file_read+0x160> <== NOT EXECUTED
20257d8: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20257dc: 10 80 00 06 b 20257f4 <fat_file_read+0x16c> <== NOT EXECUTED
20257e0: c4 00 a0 1c ld [ %g2 + 0x1c ], %g2 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20257e4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
20257e8: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
20257ec: 85 2b 40 04 sll %o5, %g4, %g2 <== NOT EXECUTED
20257f0: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
20257f4: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED
20257f8: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
20257fc: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED
2025800: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED
2025804: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED
2025808: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
if ( ret < 0 )
return -1;
count -= c;
202580c: b6 26 c0 0b sub %i3, %o3, %i3 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
2025810: 94 08 40 0a and %g1, %o2, %o2 <== NOT EXECUTED
if ( ret < 0 )
return -1;
count -= c;
cmpltd += c;
2025814: a4 04 80 0b add %l2, %o3, %l2 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
2025818: 40 00 03 03 call 2026424 <_fat_block_read> <== NOT EXECUTED
202581c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2025820: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_read(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
2025824: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025828: 06 80 00 16 bl 2025880 <fat_file_read+0x1f8> <== NOT EXECUTED
202582c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
2025830: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2025834: 40 00 67 9a call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
2025838: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if ( rc != RC_OK )
202583c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025840: 12 80 00 11 bne 2025884 <fat_file_read+0x1fc> <== NOT EXECUTED
2025844: 82 10 20 00 clr %g1 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
2025848: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
202584c: 32 bf ff d7 bne,a 20257a8 <fat_file_read+0x120> <== NOT EXECUTED
2025850: d6 14 60 06 lduh [ %l1 + 6 ], %o3 <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2025854: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
2025858: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
202585c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
2025860: ea 26 60 38 st %l5, [ %i1 + 0x38 ] <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2025864: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED
2025868: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED
202586c: a6 04 80 13 add %l2, %l3, %l3 <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2025870: 10 80 00 05 b 2025884 <fat_file_read+0x1fc> <== NOT EXECUTED
2025874: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED
2025878: 10 80 00 03 b 2025884 <fat_file_read+0x1fc> <== NOT EXECUTED
202587c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2025880: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
2025884: 81 c7 e0 08 ret <== NOT EXECUTED
2025888: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02024d74 <fat_file_reopen>:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
fat_fd->links_num++;
2024d74: c4 02 20 08 ld [ %o0 + 8 ], %g2 <== NOT EXECUTED
* RETURNS:
* RC_OK
*/
int
fat_file_reopen(fat_file_fd_t *fat_fd)
{
2024d78: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
fat_fd->links_num++;
2024d7c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
return RC_OK;
}
2024d80: 90 10 20 00 clr %o0 <== NOT EXECUTED
2024d84: 81 c3 e0 08 retl <== NOT EXECUTED
2024d88: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
02024d8c <fat_file_size>:
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2024d8c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
uint32_t save_cln = 0;
/* Have we requested root dir size for FAT12/16? */
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2024d90: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
int
fat_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2024d94: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
uint32_t save_cln = 0;
/* Have we requested root dir size for FAT12/16? */
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2024d98: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
2024d9c: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cur_cln = fat_fd->cln;
uint32_t save_cln = 0;
/* Have we requested root dir size for FAT12/16? */
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
2024da0: 12 80 00 0e bne 2024dd8 <fat_file_size+0x4c> <== NOT EXECUTED
2024da4: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
2024da8: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
2024dac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2024db0: 32 80 00 0b bne,a 2024ddc <fat_file_size+0x50> <== NOT EXECUTED
2024db4: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
2024db8: c4 0c 20 0a ldub [ %l0 + 0xa ], %g2 <== NOT EXECUTED
2024dbc: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2024dc0: 22 80 00 07 be,a 2024ddc <fat_file_size+0x50> <== NOT EXECUTED
2024dc4: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
2024dc8: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
2024dcc: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
2024dd0: 10 80 00 1b b 2024e3c <fat_file_size+0xb0> <== NOT EXECUTED
2024dd4: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED
fat_file_fd_t *fat_fd
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = fat_fd->cln;
2024dd8: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->vol.rdir_size;
return rc;
}
fat_fd->fat_file_size = 0;
2024ddc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2024de0: 82 10 20 00 clr %g1 <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2024de4: 10 80 00 0b b 2024e10 <fat_file_size+0x84> <== NOT EXECUTED
2024de8: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024dec: 40 00 6a 2c call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
2024df0: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
2024df4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024df8: 12 80 00 11 bne 2024e3c <fat_file_size+0xb0> <== NOT EXECUTED
2024dfc: 82 10 00 11 mov %l1, %g1 <== NOT EXECUTED
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
2024e00: c6 06 60 18 ld [ %i1 + 0x18 ], %g3 <== NOT EXECUTED
2024e04: c4 14 20 06 lduh [ %l0 + 6 ], %g2 <== NOT EXECUTED
2024e08: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2024e0c: c4 26 60 18 st %g2, [ %i1 + 0x18 ] <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2024e10: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED
2024e14: c6 04 20 0c ld [ %l0 + 0xc ], %g3 <== NOT EXECUTED
2024e18: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
2024e1c: 86 0c 40 03 and %l1, %g3, %g3 <== NOT EXECUTED
{
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2024e20: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2024e24: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
fat_fd->fat_file_size = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
2024e28: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2024e2c: 0a bf ff f0 bcs 2024dec <fat_file_size+0x60> <== NOT EXECUTED
2024e30: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
return rc;
fat_fd->fat_file_size += fs_info->vol.bpc;
}
fat_fd->map.last_cln = save_cln;
2024e34: c2 26 60 3c st %g1, [ %i1 + 0x3c ] <== NOT EXECUTED
2024e38: 90 10 20 00 clr %o0 <== NOT EXECUTED
return rc;
}
2024e3c: 81 c7 e0 08 ret <== NOT EXECUTED
2024e40: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02025128 <fat_file_truncate>:
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
2025128: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uint32_t cur_cln = 0;
uint32_t cl_start = 0;
uint32_t new_last_cln = FAT_UNDEFINED_VALUE;
if ( new_length >= fat_fd->fat_file_size )
202512c: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
fat_file_truncate(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
uint32_t new_length
)
{
2025130: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
uint32_t cur_cln = 0;
uint32_t cl_start = 0;
uint32_t new_last_cln = FAT_UNDEFINED_VALUE;
if ( new_length >= fat_fd->fat_file_size )
2025134: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2025138: 1a 80 00 3c bcc 2025228 <fat_file_truncate+0x100> <== NOT EXECUTED
202513c: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = 0;
uint32_t cl_start = 0;
uint32_t new_last_cln = FAT_UNDEFINED_VALUE;
2025140: 86 10 3f ff mov -1, %g3 <== NOT EXECUTED
uint32_t new_length
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = 0;
2025144: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
if ( new_length >= fat_fd->fat_file_size )
return rc;
assert(fat_fd->fat_file_size);
2025148: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202514c: 12 80 00 0a bne 2025174 <fat_file_truncate+0x4c> <== NOT EXECUTED
2025150: c6 27 bf f8 st %g3, [ %fp + -8 ] <== NOT EXECUTED
2025154: 11 00 81 92 sethi %hi(0x2064800), %o0 <== NOT EXECUTED
2025158: 15 00 81 92 sethi %hi(0x2064800), %o2 <== NOT EXECUTED
202515c: 17 00 81 92 sethi %hi(0x2064800), %o3 <== NOT EXECUTED
2025160: 90 12 21 10 or %o0, 0x110, %o0 <== NOT EXECUTED
2025164: 94 12 a1 78 or %o2, 0x178, %o2 <== NOT EXECUTED
2025168: 96 12 e1 60 or %o3, 0x160, %o3 <== NOT EXECUTED
202516c: 40 00 0d a3 call 20287f8 <__assert_func> <== NOT EXECUTED
2025170: 92 10 22 6d mov 0x26d, %o1 <== NOT EXECUTED
cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
2025174: c6 10 a0 06 lduh [ %g2 + 6 ], %g3 <== NOT EXECUTED
2025178: c4 08 a0 08 ldub [ %g2 + 8 ], %g2 <== NOT EXECUTED
202517c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
2025180: b4 00 c0 1a add %g3, %i2, %i2 <== NOT EXECUTED
2025184: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size)
2025188: 85 2e 80 02 sll %i2, %g2, %g2 <== NOT EXECUTED
202518c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2025190: 1a 80 00 26 bcc 2025228 <fat_file_truncate+0x100> <== NOT EXECUTED
2025194: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return RC_OK;
if (cl_start != 0)
2025198: 02 80 00 0a be 20251c0 <fat_file_truncate+0x98> <== NOT EXECUTED
202519c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rc = fat_file_lseek(mt_entry, fat_fd, cl_start - 1, &new_last_cln);
20251a0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20251a4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20251a8: 94 06 bf ff add %i2, -1, %o2 <== NOT EXECUTED
20251ac: 7f ff ff 26 call 2024e44 <fat_file_lseek> <== NOT EXECUTED
20251b0: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc != RC_OK)
20251b4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20251b8: 12 80 00 1d bne 202522c <fat_file_truncate+0x104> <== NOT EXECUTED
20251bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
20251c0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20251c4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20251c8: 7f ff ff 1f call 2024e44 <fat_file_lseek> <== NOT EXECUTED
20251cc: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
20251d0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20251d4: 12 80 00 16 bne 202522c <fat_file_truncate+0x104> <== NOT EXECUTED
20251d8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
rc = fat_free_fat_clusters_chain(mt_entry, cur_cln);
20251dc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20251e0: 40 00 69 ac call 203f890 <fat_free_fat_clusters_chain> <== NOT EXECUTED
20251e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
20251e8: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED
20251ec: 12 80 00 10 bne 202522c <fat_file_truncate+0x104> <== NOT EXECUTED
20251f0: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
return rc;
if (cl_start != 0)
20251f4: 02 80 00 0e be 202522c <fat_file_truncate+0x104> <== NOT EXECUTED
20251f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
20251fc: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
2025200: 40 00 68 7a call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
2025204: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
2025208: 92 92 20 00 orcc %o0, 0, %o1 <== NOT EXECUTED
202520c: 12 80 00 08 bne 202522c <fat_file_truncate+0x104> <== NOT EXECUTED
2025210: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return rc;
fat_fd->map.file_cln = cl_start - 1;
2025214: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
fat_fd->map.last_cln = new_last_cln;
2025218: c2 26 60 3c st %g1, [ %i1 + 0x3c ] <== NOT EXECUTED
if (cl_start != 0)
{
rc = fat_set_fat_cluster(mt_entry, new_last_cln, FAT_GENFAT_EOC);
if ( rc != RC_OK )
return rc;
fat_fd->map.file_cln = cl_start - 1;
202521c: f4 26 60 34 st %i2, [ %i1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = new_last_cln;
2025220: 10 80 00 03 b 202522c <fat_file_truncate+0x104> <== NOT EXECUTED
2025224: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
fat_fd->map.last_cln = new_last_cln;
2025228: 92 10 20 00 clr %o1 <== NOT EXECUTED
}
return RC_OK;
}
202522c: 81 c7 e0 08 ret <== NOT EXECUTED
2025230: 91 e8 00 09 restore %g0, %o1, %o0 <== NOT EXECUTED
02025428 <fat_file_write>:
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
2025428: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uint32_t save_ofs;
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
if ( count == 0 )
202542c: 90 10 20 00 clr %o0 <== NOT EXECUTED
fat_file_fd_t *fat_fd,
uint32_t start,
uint32_t count,
const uint8_t *buf
)
{
2025430: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
uint32_t save_ofs;
uint32_t sec = 0;
uint32_t byte = 0;
uint32_t c = 0;
if ( count == 0 )
2025434: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2025438: 02 80 00 92 be 2025680 <fat_file_write+0x258> <== NOT EXECUTED
202543c: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
return cmpltd;
if ( start > fat_fd->fat_file_size )
2025440: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
{
int rc = 0;
ssize_t ret = 0;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cmpltd = 0;
uint32_t cur_cln = 0;
2025444: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t c = 0;
if ( count == 0 )
return cmpltd;
if ( start > fat_fd->fat_file_size )
2025448: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
202544c: 18 80 00 09 bgu 2025470 <fat_file_write+0x48> <== NOT EXECUTED
2025450: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
if ((count > fat_fd->size_limit) ||
2025454: c2 06 60 14 ld [ %i1 + 0x14 ], %g1 <== NOT EXECUTED
2025458: 80 a6 c0 01 cmp %i3, %g1 <== NOT EXECUTED
202545c: 18 80 00 05 bgu 2025470 <fat_file_write+0x48> <== NOT EXECUTED
2025460: 82 20 40 1b sub %g1, %i3, %g1 <== NOT EXECUTED
2025464: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2025468: 08 80 00 07 bleu 2025484 <fat_file_write+0x5c> <== NOT EXECUTED
202546c: a4 06 c0 1a add %i3, %i2, %l2 <== NOT EXECUTED
(start > fat_fd->size_limit - count))
rtems_set_errno_and_return_minus_one( EIO );
2025470: 40 00 7b 89 call 2044294 <__errno> <== NOT EXECUTED
2025474: 01 00 00 00 nop <== NOT EXECUTED
2025478: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
202547c: 10 80 00 80 b 202567c <fat_file_write+0x254> <== NOT EXECUTED
2025480: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
rc = fat_file_extend(mt_entry, fat_fd, start + count, &c);
2025484: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2025488: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
202548c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2025490: 7f ff ff 69 call 2025234 <fat_file_extend> <== NOT EXECUTED
2025494: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2025498: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202549c: 12 80 00 79 bne 2025680 <fat_file_write+0x258> <== NOT EXECUTED
20254a0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
/*
* check whether there was enough room on device to locate
* file of 'start + count' bytes
*/
if (c != (start + count))
20254a4: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
20254a8: 32 80 00 02 bne,a 20254b0 <fat_file_write+0x88> <== NOT EXECUTED
20254ac: b6 20 40 1a sub %g1, %i2, %i3 <== NOT EXECUTED
count = c - start;
if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&
20254b0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
20254b4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
20254b8: 32 80 00 28 bne,a 2025558 <fat_file_write+0x130> <== NOT EXECUTED
20254bc: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
20254c0: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
20254c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20254c8: 32 80 00 24 bne,a 2025558 <fat_file_write+0x130> <== NOT EXECUTED
20254cc: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
(fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))
20254d0: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
20254d4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20254d8: 22 80 00 20 be,a 2025558 <fat_file_write+0x130> <== NOT EXECUTED
20254dc: e6 0c 60 08 ldub [ %l1 + 8 ], %l3 <== NOT EXECUTED
{
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->cln);
20254e0: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20254e4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20254e8: 12 80 00 08 bne 2025508 <fat_file_write+0xe0> <== NOT EXECUTED
20254ec: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
20254f0: c2 08 a0 0a ldub [ %g2 + 0xa ], %g1 <== NOT EXECUTED
20254f4: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20254f8: 22 80 00 05 be,a 202550c <fat_file_write+0xe4> <== NOT EXECUTED
20254fc: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2025500: 10 80 00 07 b 202551c <fat_file_write+0xf4> <== NOT EXECUTED
2025504: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2025508: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
202550c: c4 08 a0 05 ldub [ %g2 + 5 ], %g2 <== NOT EXECUTED
2025510: 82 00 ff fe add %g3, -2, %g1 <== NOT EXECUTED
2025514: 83 28 40 02 sll %g1, %g2, %g1 <== NOT EXECUTED
2025518: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED
sec += (start >> fs_info->vol.sec_log2);
byte = start & (fs_info->vol.bps - 1);
ret = _fat_block_write(mt_entry, sec, byte, count, buf);
202551c: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
2025520: c4 0c 60 02 ldub [ %l1 + 2 ], %g2 <== NOT EXECUTED
2025524: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2025528: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202552c: 94 0e 80 0a and %i2, %o2, %o2 <== NOT EXECUTED
2025530: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2025534: b5 36 80 02 srl %i2, %g2, %i2 <== NOT EXECUTED
2025538: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
202553c: 40 00 02 d3 call 2026088 <_fat_block_write> <== NOT EXECUTED
2025540: 92 00 40 1a add %g1, %i2, %o1 <== NOT EXECUTED
if ( ret < 0 )
2025544: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025548: 16 80 00 4e bge 2025680 <fat_file_write+0x258> <== NOT EXECUTED
202554c: 01 00 00 00 nop <== NOT EXECUTED
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2025550: 10 80 00 4c b 2025680 <fat_file_write+0x258> <== NOT EXECUTED
2025554: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
2025558: e4 14 60 06 lduh [ %l1 + 6 ], %l2 <== NOT EXECUTED
return -1;
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
202555c: a7 36 80 13 srl %i2, %l3, %l3 <== NOT EXECUTED
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
2025560: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
2025564: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2025568: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
202556c: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2025570: 7f ff fe 35 call 2024e44 <fat_file_lseek> <== NOT EXECUTED
2025574: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
if (rc != RC_OK)
2025578: 90 92 60 00 orcc %o1, 0, %o0 <== NOT EXECUTED
202557c: 12 80 00 41 bne 2025680 <fat_file_write+0x258> <== NOT EXECUTED
2025580: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
return ret;
}
cl_start = start >> fs_info->vol.bpc_log2;
save_ofs = ofs = start & (fs_info->vol.bpc - 1);
2025584: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
2025588: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED
202558c: aa 10 20 00 clr %l5 <== NOT EXECUTED
2025590: b4 0e 80 12 and %i2, %l2, %i2 <== NOT EXECUTED
2025594: a4 10 20 00 clr %l2 <== NOT EXECUTED
2025598: 10 80 00 2d b 202564c <fat_file_write+0x224> <== NOT EXECUTED
202559c: 84 10 00 1a mov %i2, %g2 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
20255a0: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
20255a4: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED
20255a8: 08 80 00 03 bleu 20255b4 <fat_file_write+0x18c> <== NOT EXECUTED
20255ac: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED
20255b0: 82 10 00 1b mov %i3, %g1 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20255b4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20255b8: 98 00 ff fe add %g3, -2, %o4 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20255bc: 12 80 00 08 bne 20255dc <fat_file_write+0x1b4> <== NOT EXECUTED
20255c0: c6 04 20 34 ld [ %l0 + 0x34 ], %g3 <== NOT EXECUTED
20255c4: c8 08 e0 0a ldub [ %g3 + 0xa ], %g4 <== NOT EXECUTED
20255c8: 80 89 20 03 btst 3, %g4 <== NOT EXECUTED
20255cc: 22 80 00 05 be,a 20255e0 <fat_file_write+0x1b8> <== NOT EXECUTED
20255d0: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20255d4: 10 80 00 06 b 20255ec <fat_file_write+0x1c4> <== NOT EXECUTED
20255d8: c6 00 e0 1c ld [ %g3 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20255dc: c8 00 e0 30 ld [ %g3 + 0x30 ], %g4 <== NOT EXECUTED
20255e0: da 08 e0 05 ldub [ %g3 + 5 ], %o5 <== NOT EXECUTED
20255e4: 87 2b 00 0d sll %o4, %o5, %g3 <== NOT EXECUTED
20255e8: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
20255ec: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED
byte = ofs & (fs_info->vol.bps - 1);
20255f0: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
20255f4: 93 30 80 09 srl %g2, %o1, %o1 <== NOT EXECUTED
byte = ofs & (fs_info->vol.bps - 1);
20255f8: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
20255fc: 92 00 c0 09 add %g3, %o1, %o1 <== NOT EXECUTED
2025600: 94 08 80 0a and %g2, %o2, %o2 <== NOT EXECUTED
2025604: 96 10 00 01 mov %g1, %o3 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
while (count > 0)
{
c = MIN(count, (fs_info->vol.bpc - ofs));
2025608: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
202560c: 98 07 00 12 add %i4, %l2, %o4 <== NOT EXECUTED
2025610: 40 00 02 9e call 2026088 <_fat_block_write> <== NOT EXECUTED
2025614: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2025618: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, cur_cln);
sec += (ofs >> fs_info->vol.sec_log2);
byte = ofs & (fs_info->vol.bps - 1);
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
202561c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025620: 06 80 00 17 bl 202567c <fat_file_write+0x254> <== NOT EXECUTED
2025624: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
count -= c;
cmpltd += c;
save_cln = cur_cln;
2025628: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
202562c: ec 07 bf f8 ld [ %fp + -8 ], %l6 <== NOT EXECUTED
cmpltd += c;
save_cln = cur_cln;
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
2025630: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
2025634: 40 00 68 1a call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
2025638: a4 04 80 16 add %l2, %l6, %l2 <== NOT EXECUTED
if ( rc != RC_OK )
202563c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025640: 12 80 00 10 bne 2025680 <fat_file_write+0x258> <== NOT EXECUTED
2025644: b6 26 c0 16 sub %i3, %l6, %i3 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte, c, buf + cmpltd);
if ( ret < 0 )
return -1;
count -= c;
cmpltd += c;
2025648: 84 10 20 00 clr %g2 <== NOT EXECUTED
rc = fat_file_lseek(mt_entry, fat_fd, cl_start, &cur_cln);
if (rc != RC_OK)
return rc;
while (count > 0)
202564c: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2025650: 32 bf ff d4 bne,a 20255a0 <fat_file_write+0x178> <== NOT EXECUTED
2025654: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2025658: c2 0c 60 08 ldub [ %l1 + 8 ], %g1 <== NOT EXECUTED
202565c: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2025660: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
2025664: ea 26 60 38 st %l5, [ %i1 + 0x38 ] <== NOT EXECUTED
ofs = 0;
}
/* update cache */
/* XXX: check this - I'm not sure :( */
fat_fd->map.file_cln = cl_start +
2025668: a4 06 80 12 add %i2, %l2, %l2 <== NOT EXECUTED
202566c: a5 34 80 01 srl %l2, %g1, %l2 <== NOT EXECUTED
2025670: a6 04 80 13 add %l2, %l3, %l3 <== NOT EXECUTED
((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
fat_fd->map.disk_cln = save_cln;
return cmpltd;
2025674: 10 80 00 03 b 2025680 <fat_file_write+0x258> <== NOT EXECUTED
2025678: e6 26 60 34 st %l3, [ %i1 + 0x34 ] <== NOT EXECUTED
202567c: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
2025680: 81 c7 e0 08 ret <== NOT EXECUTED
2025684: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203f890 <fat_free_fat_clusters_chain>:
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
203f890: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK, rc1 = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
203f894: a4 10 20 00 clr %l2 <== NOT EXECUTED
int
fat_free_fat_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
203f898: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc = RC_OK, rc1 = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
203f89c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t chain
)
{
int rc = RC_OK, rc1 = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
203f8a0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
203f8a4: a6 10 00 19 mov %i1, %l3 <== NOT EXECUTED
203f8a8: a8 10 20 00 clr %l4 <== NOT EXECUTED
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
203f8ac: 10 80 00 1a b 203f914 <fat_free_fat_clusters_chain+0x84> <== NOT EXECUTED
203f8b0: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
203f8b4: 7f ff ff 7a call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
203f8b8: 01 00 00 00 nop <== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
203f8bc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
uint32_t next_cln = 0;
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
203f8c0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
fat_buf_release(fs_info);
return rc;
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
203f8c4: 94 10 20 00 clr %o2 <== NOT EXECUTED
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
if ( rc != RC_OK )
203f8c8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203f8cc: 02 80 00 0b be 203f8f8 <fat_free_fat_clusters_chain+0x68> <== NOT EXECUTED
203f8d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
203f8d4: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
203f8d8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203f8dc: 02 80 00 03 be 203f8e8 <fat_free_fat_clusters_chain+0x58> <== NOT EXECUTED
203f8e0: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
203f8e4: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203f8e8: 7f ff 99 08 call 2025d08 <fat_buf_release> <== NOT EXECUTED
203f8ec: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rc;
203f8f0: 81 c7 e0 08 ret <== NOT EXECUTED
203f8f4: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_set_fat_cluster(mt_entry, cur_cln, FAT_GENFAT_FREE);
203f8f8: 7f ff fe bc call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
203f8fc: 01 00 00 00 nop <== NOT EXECUTED
if ( rc != RC_OK )
203f900: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f904: 02 80 00 03 be 203f910 <fat_free_fat_clusters_chain+0x80> <== NOT EXECUTED
203f908: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED
203f90c: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
rc1 = rc;
freed_cls_cnt++;
203f910: a4 04 a0 01 inc %l2 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
203f914: c4 04 60 0c ld [ %l1 + 0xc ], %g2 <== NOT EXECUTED
203f918: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
203f91c: 84 0c c0 02 and %l3, %g2, %g2 <== NOT EXECUTED
{
rc = fat_get_fat_cluster(mt_entry, cur_cln, &next_cln);
203f920: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203f924: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cur_cln = chain;
uint32_t next_cln = 0;
uint32_t freed_cls_cnt = 0;
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
203f928: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203f92c: 0a bf ff e2 bcs 203f8b4 <fat_free_fat_clusters_chain+0x24><== NOT EXECUTED
203f930: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
freed_cls_cnt++;
cur_cln = next_cln;
}
fs_info->vol.next_cl = chain;
if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)
203f934: c2 04 60 40 ld [ %l1 + 0x40 ], %g1 <== NOT EXECUTED
203f938: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203f93c: 02 80 00 04 be 203f94c <fat_free_fat_clusters_chain+0xbc> <== NOT EXECUTED
203f940: f2 24 60 44 st %i1, [ %l1 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls += freed_cls_cnt;
203f944: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
203f948: e4 24 60 40 st %l2, [ %l1 + 0x40 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203f94c: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED
203f950: 7f ff 98 ee call 2025d08 <fat_buf_release> <== NOT EXECUTED
203f954: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc1 != RC_OK)
return rc1;
return RC_OK;
}
203f958: 81 c7 e0 08 ret <== NOT EXECUTED
203f95c: 81 e8 00 00 restore <== NOT EXECUTED
02025bdc <fat_free_unique_ino>:
void
fat_free_unique_ino(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
2025bdc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
2025be0: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino);
2025be4: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
2025be8: c2 00 a0 70 ld [ %g2 + 0x70 ], %g1 <== NOT EXECUTED
2025bec: c4 00 a0 7c ld [ %g2 + 0x7c ], %g2 <== NOT EXECUTED
2025bf0: 84 26 40 02 sub %i1, %g2, %g2 <== NOT EXECUTED
2025bf4: 87 30 a0 03 srl %g2, 3, %g3 <== NOT EXECUTED
2025bf8: c8 08 40 03 ldub [ %g1 + %g3 ], %g4 <== NOT EXECUTED
2025bfc: 84 08 a0 07 and %g2, 7, %g2 <== NOT EXECUTED
2025c00: 85 2b 40 02 sll %o5, %g2, %g2 <== NOT EXECUTED
2025c04: 84 29 00 02 andn %g4, %g2, %g2 <== NOT EXECUTED
2025c08: c4 28 40 03 stb %g2, [ %g1 + %g3 ] <== NOT EXECUTED
}
2025c0c: 81 c7 e0 08 ret <== NOT EXECUTED
2025c10: 81 e8 00 00 restore <== NOT EXECUTED
0203f69c <fat_get_fat_cluster>:
fat_get_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t *ret_val
)
{
203f69c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
rtems_bdbuf_buffer *block0 = NULL;
203f6a0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t sec = 0;
uint32_t ofs = 0;
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
203f6a4: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203f6a8: 08 80 00 07 bleu 203f6c4 <fat_get_fat_cluster+0x28> <== NOT EXECUTED
203f6ac: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
203f6b0: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
203f6b4: 82 00 60 01 inc %g1 <== NOT EXECUTED
203f6b8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203f6bc: 28 80 00 08 bleu,a 203f6dc <fat_get_fat_cluster+0x40> <== NOT EXECUTED
203f6c0: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
203f6c4: 40 00 12 f4 call 2044294 <__errno> <== NOT EXECUTED
203f6c8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203f6cc: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203f6d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203f6d4: 81 c7 e0 08 ret <== NOT EXECUTED
203f6d8: 81 e8 00 00 restore <== NOT EXECUTED
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
203f6dc: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED
203f6e0: 02 80 00 05 be 203f6f4 <fat_get_fat_cluster+0x58> <== NOT EXECUTED
203f6e4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203f6e8: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED
203f6ec: 10 80 00 05 b 203f700 <fat_get_fat_cluster+0x64> <== NOT EXECUTED
203f6f0: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED
203f6f4: 02 80 00 03 be 203f700 <fat_get_fat_cluster+0x64> <== NOT EXECUTED
203f6f8: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED
203f6fc: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED
203f700: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED
203f704: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED
203f708: a7 30 80 13 srl %g2, %l3, %l3 <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
203f70c: a3 36 60 01 srl %i1, 1, %l1 <== NOT EXECUTED
203f710: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
203f714: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
203f718: 12 80 00 06 bne 203f730 <fat_get_fat_cluster+0x94> <== NOT EXECUTED
203f71c: a2 04 40 19 add %l1, %i1, %l1 <== NOT EXECUTED
203f720: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203f724: 02 80 00 03 be 203f730 <fat_get_fat_cluster+0x94> <== NOT EXECUTED
203f728: a3 2e 60 02 sll %i1, 2, %l1 <== NOT EXECUTED
203f72c: a3 2e 60 01 sll %i1, 1, %l1 <== NOT EXECUTED
203f730: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
203f734: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203f738: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f73c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203f740: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203f744: 7f ff 99 d2 call 2025e8c <fat_buf_access> <== NOT EXECUTED
203f748: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc != RC_OK)
203f74c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203f750: 12 bf ff e1 bne 203f6d4 <fat_get_fat_cluster+0x38> <== NOT EXECUTED
203f754: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
203f758: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203f75c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
203f760: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED
203f764: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
if (rc != RC_OK)
return rc;
switch ( fs_info->vol.type )
203f768: 02 80 00 29 be 203f80c <fat_get_fat_cluster+0x170> <== NOT EXECUTED
203f76c: a2 0c 40 14 and %l1, %l4, %l1 <== NOT EXECUTED
203f770: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
203f774: 02 80 00 30 be 203f834 <fat_get_fat_cluster+0x198> <== NOT EXECUTED
203f778: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
203f77c: 12 80 00 3f bne 203f878 <fat_get_fat_cluster+0x1dc> <== NOT EXECUTED
203f780: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
/*
* we are enforced in complex computations for FAT12 to escape CPU
* align problems for some architectures
*/
*ret_val = (*((uint8_t *)(block0->buffer + ofs)));
if ( ofs == (fs_info->vol.bps - 1) )
203f784: c6 14 00 00 lduh [ %l0 ], %g3 <== NOT EXECUTED
case FAT_FAT12:
/*
* we are enforced in complex computations for FAT12 to escape CPU
* align problems for some architectures
*/
*ret_val = (*((uint8_t *)(block0->buffer + ofs)));
203f788: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
203f78c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
case FAT_FAT12:
/*
* we are enforced in complex computations for FAT12 to escape CPU
* align problems for some architectures
*/
*ret_val = (*((uint8_t *)(block0->buffer + ofs)));
203f790: c2 08 80 11 ldub [ %g2 + %l1 ], %g1 <== NOT EXECUTED
if ( ofs == (fs_info->vol.bps - 1) )
203f794: 80 a4 40 03 cmp %l1, %g3 <== NOT EXECUTED
203f798: 12 80 00 11 bne 203f7dc <fat_get_fat_cluster+0x140> <== NOT EXECUTED
203f79c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
203f7a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f7a4: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
203f7a8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203f7ac: 7f ff 99 b8 call 2025e8c <fat_buf_access> <== NOT EXECUTED
203f7b0: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
203f7b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f7b8: 02 80 00 04 be 203f7c8 <fat_get_fat_cluster+0x12c> <== NOT EXECUTED
203f7bc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f7c0: 81 c7 e0 08 ret <== NOT EXECUTED
203f7c4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return rc;
*ret_val |= (*((uint8_t *)(block0->buffer)))<<8;
203f7c8: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
203f7cc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203f7d0: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
203f7d4: 10 80 00 05 b 203f7e8 <fat_get_fat_cluster+0x14c> <== NOT EXECUTED
203f7d8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
}
else
{
*ret_val |= (*((uint8_t *)(block0->buffer + ofs + 1)))<<8;
203f7dc: a2 00 80 11 add %g2, %l1, %l1 <== NOT EXECUTED
203f7e0: c4 0c 60 01 ldub [ %l1 + 1 ], %g2 <== NOT EXECUTED
203f7e4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203f7e8: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
203f7ec: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
}
if ( FAT_CLUSTER_IS_ODD(cln) )
203f7f0: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED
203f7f4: 02 80 00 04 be 203f804 <fat_get_fat_cluster+0x168> <== NOT EXECUTED
203f7f8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
*ret_val = (*ret_val) >> FAT12_SHIFT;
203f7fc: 10 80 00 1c b 203f86c <fat_get_fat_cluster+0x1d0> <== NOT EXECUTED
203f800: 83 30 60 04 srl %g1, 4, %g1 <== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
203f804: 10 80 00 1a b 203f86c <fat_get_fat_cluster+0x1d0> <== NOT EXECUTED
203f808: 82 08 6f ff and %g1, 0xfff, %g1 <== NOT EXECUTED
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
203f80c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
203f810: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
203f814: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
203f818: 86 10 e3 ff or %g3, 0x3ff, %g3 <== NOT EXECUTED
else
*ret_val = (*ret_val) & FAT_FAT12_MASK;
break;
case FAT_FAT16:
*ret_val = *((uint16_t *)(block0->buffer + ofs));
203f81c: c2 10 40 11 lduh [ %g1 + %l1 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_W(*ret_val);
203f820: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203f824: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203f828: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203f82c: 10 80 00 0f b 203f868 <fat_get_fat_cluster+0x1cc> <== NOT EXECUTED
203f830: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
break;
case FAT_FAT32:
*ret_val = *((uint32_t *)(block0->buffer + ofs));
203f834: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f838: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203f83c: c2 00 40 11 ld [ %g1 + %l1 ], %g1 <== NOT EXECUTED
*ret_val = CF_LE_L(*ret_val);
203f840: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
203f844: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
203f848: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED
203f84c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203f850: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
203f854: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203f858: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
203f85c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203f860: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203f864: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
203f868: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203f86c: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
203f870: 81 c7 e0 08 ret <== NOT EXECUTED
203f874: 81 e8 00 00 restore <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one(EIO);
203f878: 40 00 12 87 call 2044294 <__errno> <== NOT EXECUTED
203f87c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203f880: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203f884: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
break;
}
return RC_OK;
}
203f888: 81 c7 e0 08 ret <== NOT EXECUTED
203f88c: 81 e8 00 00 restore <== NOT EXECUTED
02025c28 <fat_get_unique_ino>:
* 0 means FAILED !!!
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
2025c28: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
fs_info->index++;
if (fs_info->index >= fs_info->uino_pool_size)
fs_info->index = 0;
}
if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
2025c2c: 23 03 ff ff sethi %hi(0xffffc00), %l1 <== NOT EXECUTED
*
*/
uint32_t
fat_get_unique_ino(rtems_filesystem_mount_table_entry_t *mt_entry)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
2025c30: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
fs_info->index++;
if (fs_info->index >= fs_info->uino_pool_size)
fs_info->index = 0;
}
if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
2025c34: 10 80 00 30 b 2025cf4 <fat_get_unique_ino+0xcc> <== NOT EXECUTED
2025c38: a2 14 63 ff or %l1, 0x3ff, %l1 <== NOT EXECUTED
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
2025c3c: c6 04 20 70 ld [ %l0 + 0x70 ], %g3 <== NOT EXECUTED
2025c40: 85 31 20 03 srl %g4, 3, %g2 <== NOT EXECUTED
2025c44: d6 48 c0 02 ldsb [ %g3 + %g2 ], %o3 <== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
return (fs_info->uino_base + fs_info->index);
}
fs_info->index++;
2025c48: 9a 01 20 01 add %g4, 1, %o5 <== NOT EXECUTED
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
2025c4c: d8 08 c0 02 ldub [ %g3 + %g2 ], %o4 <== NOT EXECUTED
2025c50: 88 09 20 07 and %g4, 7, %g4 <== NOT EXECUTED
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
2025c54: 82 00 60 01 inc %g1 <== NOT EXECUTED
{
if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino))
2025c58: 97 3a c0 04 sra %o3, %g4, %o3 <== NOT EXECUTED
2025c5c: 80 8a e0 01 btst 1, %o3 <== NOT EXECUTED
2025c60: 12 80 00 0a bne 2025c88 <fat_get_unique_ino+0x60> <== NOT EXECUTED
2025c64: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
{
FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino);
2025c68: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2025c6c: 89 28 40 04 sll %g1, %g4, %g4 <== NOT EXECUTED
2025c70: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED
2025c74: c8 28 80 00 stb %g4, [ %g2 ] <== NOT EXECUTED
return (fs_info->uino_base + fs_info->index);
2025c78: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2025c7c: f0 04 20 74 ld [ %l0 + 0x74 ], %i0 <== NOT EXECUTED
2025c80: 81 c7 e0 08 ret <== NOT EXECUTED
2025c84: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED
}
fs_info->index++;
if (fs_info->index >= fs_info->uino_pool_size)
2025c88: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED
2025c8c: 80 a3 40 02 cmp %o5, %g2 <== NOT EXECUTED
2025c90: 0a 80 00 03 bcs 2025c9c <fat_get_unique_ino+0x74> <== NOT EXECUTED
2025c94: da 24 20 74 st %o5, [ %l0 + 0x74 ] <== NOT EXECUTED
fs_info->index = 0;
2025c98: c0 24 20 74 clr [ %l0 + 0x74 ] <== NOT EXECUTED
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
{
for (j = 0; j < fs_info->uino_pool_size; j++)
2025c9c: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED
2025ca0: 2a bf ff e7 bcs,a 2025c3c <fat_get_unique_ino+0x14> <== NOT EXECUTED
2025ca4: c8 04 20 74 ld [ %l0 + 0x74 ], %g4 <== NOT EXECUTED
fs_info->index++;
if (fs_info->index >= fs_info->uino_pool_size)
fs_info->index = 0;
}
if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
2025ca8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
2025cac: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED
2025cb0: 82 24 40 01 sub %l1, %g1, %g1 <== NOT EXECUTED
2025cb4: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
2025cb8: 1a 80 00 12 bcc 2025d00 <fat_get_unique_ino+0xd8> <== NOT EXECUTED
2025cbc: 01 00 00 00 nop <== NOT EXECUTED
{
fs_info->uino_pool_size <<= 1;
fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
2025cc0: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
2025cc4: 7f ff 8e c9 call 20097e8 <realloc> <== NOT EXECUTED
2025cc8: d2 24 20 78 st %o1, [ %l0 + 0x78 ] <== NOT EXECUTED
2025ccc: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
if (fs_info->uino != NULL)
2025cd0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2025cd4: 02 80 00 05 be 2025ce8 <fat_get_unique_ino+0xc0> <== NOT EXECUTED
2025cd8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
fs_info->index = fs_info->uino_pool_size;
2025cdc: c4 04 20 78 ld [ %l0 + 0x78 ], %g2 <== NOT EXECUTED
2025ce0: 82 10 20 00 clr %g1 <== NOT EXECUTED
2025ce4: c4 24 20 74 st %g2, [ %l0 + 0x74 ] <== NOT EXECUTED
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t j = 0;
bool resrc_unsuff = false;
while (!resrc_unsuff)
2025ce8: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
2025cec: 12 80 00 05 bne 2025d00 <fat_get_unique_ino+0xd8> <== NOT EXECUTED
2025cf0: 01 00 00 00 nop <== NOT EXECUTED
{
for (j = 0; j < fs_info->uino_pool_size; j++)
2025cf4: d2 04 20 78 ld [ %l0 + 0x78 ], %o1 <== NOT EXECUTED
2025cf8: 10 bf ff e9 b 2025c9c <fat_get_unique_ino+0x74> <== NOT EXECUTED
2025cfc: 82 10 20 00 clr %g1 <== NOT EXECUTED
}
else
resrc_unsuff = true;
}
return 0;
}
2025d00: 81 c7 e0 08 ret <== NOT EXECUTED
2025d04: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02026364 <fat_init_clusters_chain>:
int
fat_init_clusters_chain(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t start_cln
)
{
2026364: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
register fat_fs_info_t *fs_info = mt_entry->fs_info;
2026368: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t cur_cln = start_cln;
202636c: f2 27 bf fc st %i1, [ %fp + -4 ] <== NOT EXECUTED
char *buf;
buf = calloc(fs_info->vol.bpc, sizeof(char));
2026370: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
2026374: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2026378: 7f ff 86 2b call 2007c24 <calloc> <== NOT EXECUTED
202637c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if ( buf == NULL )
2026380: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2026384: 12 80 00 1c bne 20263f4 <fat_init_clusters_chain+0x90> <== NOT EXECUTED
2026388: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
202638c: 40 00 77 c2 call 2044294 <__errno> <== NOT EXECUTED
2026390: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2026394: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2026398: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202639c: 81 c7 e0 08 ret <== NOT EXECUTED
20263a0: 81 e8 00 00 restore <== NOT EXECUTED
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
ret = fat_cluster_write(mt_entry, cur_cln, buf);
20263a4: 7f ff ff d9 call 2026308 <fat_cluster_write> <== NOT EXECUTED
20263a8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
free(buf);
return -1;
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
20263ac: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
{
ret = fat_cluster_write(mt_entry, cur_cln, buf);
if ( ret == -1 )
20263b0: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
20263b4: 12 80 00 07 bne 20263d0 <fat_init_clusters_chain+0x6c> <== NOT EXECUTED
20263b8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
free(buf);
20263bc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20263c0: 7f ff 87 a8 call 2008260 <free> <== NOT EXECUTED
20263c4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
20263c8: 81 c7 e0 08 ret <== NOT EXECUTED
20263cc: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_get_fat_cluster(mt_entry, cur_cln, &cur_cln);
20263d0: 40 00 64 b3 call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
20263d4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
if ( rc != RC_OK )
20263d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20263dc: 02 80 00 07 be 20263f8 <fat_init_clusters_chain+0x94> <== NOT EXECUTED
20263e0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
free(buf);
20263e4: 7f ff 87 9f call 2008260 <free> <== NOT EXECUTED
20263e8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
return rc;
20263ec: 81 c7 e0 08 ret <== NOT EXECUTED
20263f0: 81 e8 00 00 restore <== NOT EXECUTED
buf = calloc(fs_info->vol.bpc, sizeof(char));
if ( buf == NULL )
rtems_set_errno_and_return_minus_one( EIO );
while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)
20263f4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20263f8: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
20263fc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
2026400: 84 0a 40 02 and %o1, %g2, %g2 <== NOT EXECUTED
2026404: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2026408: 0a bf ff e7 bcs 20263a4 <fat_init_clusters_chain+0x40> <== NOT EXECUTED
202640c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
free(buf);
return rc;
}
}
free(buf);
2026410: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2026414: 7f ff 87 93 call 2008260 <free> <== NOT EXECUTED
2026418: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
}
202641c: 81 c7 e0 08 ret <== NOT EXECUTED
2026420: 81 e8 00 00 restore <== NOT EXECUTED
020264a8 <fat_init_volume_info>:
* RC_OK on success, or -1 if error occured
* and errno set appropriately
*/
int
fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
{
20264a8: 9d e3 be e8 save %sp, -280, %sp <== NOT EXECUTED
ssize_t ret = 0;
struct stat stat_buf;
int i = 0;
rtems_bdbuf_buffer *block = NULL;
rc = stat(mt_entry->dev, &stat_buf);
20264ac: d0 06 20 70 ld [ %i0 + 0x70 ], %o0 <== NOT EXECUTED
int
fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
20264b0: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
* RC_OK on success, or -1 if error occured
* and errno set appropriately
*/
int
fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
{
20264b4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
char boot_rec[FAT_MAX_BPB_SIZE];
char fs_info_sector[FAT_USEFUL_INFO_SIZE];
ssize_t ret = 0;
struct stat stat_buf;
int i = 0;
rtems_bdbuf_buffer *block = NULL;
20264b8: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rc = stat(mt_entry->dev, &stat_buf);
20264bc: 7f ff 8d aa call 2009b64 <stat> <== NOT EXECUTED
20264c0: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED
if (rc == -1)
20264c4: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
20264c8: 02 80 01 4c be 20269f8 <fat_init_volume_info+0x550> <== NOT EXECUTED
20264cc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
/* Must be a block device. */
if (!S_ISBLK(stat_buf.st_mode))
20264d0: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
20264d4: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20264d8: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
20264dc: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
20264e0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20264e4: 22 80 00 06 be,a 20264fc <fat_init_volume_info+0x54> <== NOT EXECUTED
20264e8: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTTY);
20264ec: 40 00 77 6a call 2044294 <__errno> <== NOT EXECUTED
20264f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20264f4: 10 80 01 92 b 2026b3c <fat_init_volume_info+0x694> <== NOT EXECUTED
20264f8: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
20264fc: 7f ff 82 90 call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
2026500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (vol->dd == NULL)
2026504: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026508: 02 80 00 16 be 2026560 <fat_init_volume_info+0xb8> <== NOT EXECUTED
202650c: d0 24 20 60 st %o0, [ %l0 + 0x60 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
vol->dev = stat_buf.st_rdev;
2026510: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
/* Read boot record */
/* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */
sc = rtems_bdbuf_read( vol->dev, 0, &block);
2026514: 94 10 20 00 clr %o2 <== NOT EXECUTED
/* check that device is registred as block device and lock it */
vol->dd = rtems_disk_obtain(stat_buf.st_rdev);
if (vol->dd == NULL)
rtems_set_errno_and_return_minus_one(EIO);
vol->dev = stat_buf.st_rdev;
2026518: d0 3c 20 58 std %o0, [ %l0 + 0x58 ] <== NOT EXECUTED
/* Read boot record */
/* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */
sc = rtems_bdbuf_read( vol->dev, 0, &block);
202651c: 7f ff 7d e4 call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2026520: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2026524: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026528: 12 80 00 0b bne 2026554 <fat_init_volume_info+0xac> <== NOT EXECUTED
202652c: 94 10 20 5a mov 0x5a, %o2 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EIO);
}
memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);
2026530: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2026534: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
2026538: 40 00 84 a3 call 20477c4 <memcpy> <== NOT EXECUTED
202653c: 90 07 bf 48 add %fp, -184, %o0 <== NOT EXECUTED
sc = rtems_bdbuf_release( block);
2026540: 7f ff 79 43 call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2026544: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2026548: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202654c: 02 80 00 09 be 2026570 <fat_init_volume_info+0xc8> <== NOT EXECUTED
2026550: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026554: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2026558: 7f ff 82 67 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
202655c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2026560: 40 00 77 4d call 2044294 <__errno> <== NOT EXECUTED
2026564: 01 00 00 00 nop <== NOT EXECUTED
2026568: 10 80 01 75 b 2026b3c <fat_init_volume_info+0x694> <== NOT EXECUTED
202656c: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
}
/* Evaluate boot record */
vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);
2026570: c6 0f bf 53 ldub [ %fp + -173 ], %g3 <== NOT EXECUTED
2026574: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2026578: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if ( (vol->bps != 512) &&
202657c: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
2026580: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
2026584: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED
2026588: 02 80 00 0b be 20265b4 <fat_init_volume_info+0x10c> <== NOT EXECUTED
202658c: c4 34 00 00 sth %g2, [ %l0 ] <== NOT EXECUTED
2026590: 80 a0 62 00 cmp %g1, 0x200 <== NOT EXECUTED
2026594: 22 80 00 09 be,a 20265b8 <fat_init_volume_info+0x110> <== NOT EXECUTED
2026598: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
202659c: 80 a0 68 00 cmp %g1, 0x800 <== NOT EXECUTED
20265a0: 02 80 00 05 be 20265b4 <fat_init_volume_info+0x10c> <== NOT EXECUTED
20265a4: 07 00 00 04 sethi %hi(0x1000), %g3 <== NOT EXECUTED
20265a8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20265ac: 32 80 00 c1 bne,a 20268b0 <fat_init_volume_info+0x408> <== NOT EXECUTED
20265b0: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
20265b4: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
20265b8: c0 2c 20 03 clrb [ %l0 + 3 ] <== NOT EXECUTED
20265bc: 10 80 00 05 b 20265d0 <fat_init_volume_info+0x128> <== NOT EXECUTED
20265c0: 83 30 60 19 srl %g1, 0x19, %g1 <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
20265c4: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
20265c8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20265cc: c4 2c 20 03 stb %g2, [ %l0 + 3 ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( EINVAL );
}
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
20265d0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20265d4: 22 bf ff fc be,a 20265c4 <fat_init_volume_info+0x11c> <== NOT EXECUTED
20265d8: c4 0c 20 03 ldub [ %l0 + 3 ], %g2 <== NOT EXECUTED
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
20265dc: c0 2c 20 02 clrb [ %l0 + 2 ] <== NOT EXECUTED
20265e0: 10 80 00 05 b 20265f4 <fat_init_volume_info+0x14c> <== NOT EXECUTED
20265e4: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
i >>= 1, vol->sec_log2++);
20265e8: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
20265ec: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20265f0: c4 2c 20 02 stb %g2, [ %l0 + 2 ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
20265f4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20265f8: 22 bf ff fc be,a 20265e8 <fat_init_volume_info+0x140> <== NOT EXECUTED
20265fc: c4 0c 20 02 ldub [ %l0 + 2 ], %g2 <== NOT EXECUTED
if ( (ret1 < 0) || (ret2 < 0) )
return -1;
return RC_OK;
}
2026600: c4 0f bf 55 ldub [ %fp + -171 ], %g2 <== NOT EXECUTED
for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
i >>= 1, vol->sec_mul++);
for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;
i >>= 1, vol->sec_log2++);
vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec);
2026604: c4 2c 20 04 stb %g2, [ %l0 + 4 ] <== NOT EXECUTED
/*
* "sectors per cluster" of zero is invalid
* (and would hang the following loop)
*/
if (vol->spc == 0)
2026608: 84 88 a0 ff andcc %g2, 0xff, %g2 <== NOT EXECUTED
202660c: 22 80 00 a9 be,a 20268b0 <fat_init_volume_info+0x408> <== NOT EXECUTED
2026610: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;
2026614: 10 80 00 04 b 2026624 <fat_init_volume_info+0x17c> <== NOT EXECUTED
2026618: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED
i >>= 1, vol->spc_log2++);
202661c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2026620: c2 2c 20 05 stb %g1, [ %l0 + 5 ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;
2026624: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
2026628: c2 0c 20 05 ldub [ %l0 + 5 ], %g1 <== NOT EXECUTED
202662c: 02 bf ff fc be 202661c <fat_init_volume_info+0x174> <== NOT EXECUTED
2026630: 85 38 a0 01 sra %g2, 1, %g2 <== NOT EXECUTED
i >>= 1, vol->spc_log2++);
/*
* "bytes per cluster" value greater than 32K is invalid
*/
if ((vol->bpc = vol->bps << vol->spc_log2) > MS_BYTES_PER_CLUSTER_LIMIT)
2026634: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED
2026638: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
202663c: c2 34 20 06 sth %g1, [ %l0 + 6 ] <== NOT EXECUTED
2026640: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2026644: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026648: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
202664c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2026650: 38 80 00 98 bgu,a 20268b0 <fat_init_volume_info+0x408> <== NOT EXECUTED
2026654: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
2026658: 10 80 00 05 b 202666c <fat_init_volume_info+0x1c4> <== NOT EXECUTED
202665c: c0 2c 20 08 clrb [ %l0 + 8 ] <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
2026660: 83 38 60 01 sra %g1, 1, %g1 <== NOT EXECUTED
2026664: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2026668: c4 2c 20 08 stb %g2, [ %l0 + 8 ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one(EINVAL);
}
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
202666c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2026670: 22 bf ff fc be,a 2026660 <fat_init_volume_info+0x1b8> <== NOT EXECUTED
2026674: c4 0c 20 08 ldub [ %l0 + 8 ], %g2 <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
2026678: c4 0f bf 58 ldub [ %fp + -168 ], %g2 <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
202667c: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
}
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
2026680: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
2026684: c6 0f bf 56 ldub [ %fp + -170 ], %g3 <== NOT EXECUTED
2026688: c4 0f bf 57 ldub [ %fp + -169 ], %g2 <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
202668c: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
2026690: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2026694: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2026698: c4 34 20 14 sth %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
202669c: c6 0f bf 59 ldub [ %fp + -167 ], %g3 <== NOT EXECUTED
20266a0: c4 0f bf 5a ldub [ %fp + -166 ], %g2 <== NOT EXECUTED
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
20266a4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
20266a8: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
20266ac: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
20266b0: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
i >>= 1, vol->bpc_log2++);
vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
20266b4: c4 34 20 20 sth %g2, [ %l0 + 0x20 ] <== NOT EXECUTED
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
20266b8: 85 30 e0 0b srl %g3, 0xb, %g2 <== NOT EXECUTED
20266bc: 40 00 d8 39 call 205c7a0 <.div> <== NOT EXECUTED
20266c0: 90 00 40 02 add %g1, %g2, %o0 <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
20266c4: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);
vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);
/* calculate the count of sectors occupied by the root directory */
vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
20266c8: d0 24 20 24 st %o0, [ %l0 + 0x24 ] <== NOT EXECUTED
vol->bps;
vol->rdir_size = vol->rdir_secs << vol->sec_log2;
20266cc: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED
20266d0: d0 24 20 28 st %o0, [ %l0 + 0x28 ] <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
20266d4: c2 0f bf 5f ldub [ %fp + -161 ], %g1 <== NOT EXECUTED
20266d8: c4 0f bf 5e ldub [ %fp + -162 ], %g2 <== NOT EXECUTED
20266dc: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20266e0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
20266e4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
20266e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20266ec: 02 80 00 04 be 20266fc <fat_init_volume_info+0x254> <== NOT EXECUTED
20266f0: c8 0f bf 6d ldub [ %fp + -147 ], %g4 <== NOT EXECUTED
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
20266f4: 10 80 00 0b b 2026720 <fat_init_volume_info+0x278> <== NOT EXECUTED
20266f8: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
20266fc: c2 0f bf 6e ldub [ %fp + -146 ], %g1 <== NOT EXECUTED
2026700: c6 0f bf 6c ldub [ %fp + -148 ], %g3 <== NOT EXECUTED
2026704: c4 0f bf 6f ldub [ %fp + -145 ], %g2 <== NOT EXECUTED
2026708: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
202670c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026710: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2026714: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026718: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
202671c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2026720: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
2026724: d0 0c 20 09 ldub [ %l0 + 9 ], %o0 <== NOT EXECUTED
2026728: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
202672c: e4 14 20 14 lduh [ %l0 + 0x14 ], %l2 <== NOT EXECUTED
2026730: 7f ff 70 b2 call 20029f8 <.umul> <== NOT EXECUTED
2026734: e6 04 20 24 ld [ %l0 + 0x24 ], %l3 <== NOT EXECUTED
2026738: a6 04 80 13 add %l2, %l3, %l3 <== NOT EXECUTED
vol->rdir_secs;
/* for FAT12/16 root dir starts at(sector) */
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
202673c: a4 02 00 12 add %o0, %l2, %l2 <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
2026740: a6 04 c0 08 add %l3, %o0, %l3 <== NOT EXECUTED
vol->rdir_secs;
/* for FAT12/16 root dir starts at(sector) */
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
2026744: e4 24 20 1c st %l2, [ %l0 + 0x1c ] <== NOT EXECUTED
if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);
else
vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);
vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +
2026748: e6 24 20 30 st %l3, [ %l0 + 0x30 ] <== NOT EXECUTED
vol->rdir_secs;
/* for FAT12/16 root dir starts at(sector) */
vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;
if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)
202674c: c2 0f bf 5c ldub [ %fp + -164 ], %g1 <== NOT EXECUTED
2026750: c4 0f bf 5b ldub [ %fp + -165 ], %g2 <== NOT EXECUTED
2026754: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2026758: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
202675c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026760: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2026764: 02 80 00 04 be 2026774 <fat_init_volume_info+0x2cc> <== NOT EXECUTED
2026768: c8 0f bf 69 ldub [ %fp + -151 ], %g4 <== NOT EXECUTED
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);
202676c: 10 80 00 0b b 2026798 <fat_init_volume_info+0x2f0> <== NOT EXECUTED
2026770: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
else
vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);
2026774: c2 0f bf 6a ldub [ %fp + -150 ], %g1 <== NOT EXECUTED
2026778: c6 0f bf 68 ldub [ %fp + -152 ], %g3 <== NOT EXECUTED
202677c: c4 0f bf 6b ldub [ %fp + -149 ], %g2 <== NOT EXECUTED
2026780: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026784: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026788: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
202678c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026790: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2026794: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2026798: c2 24 20 2c st %g1, [ %l0 + 0x2c ] <== NOT EXECUTED
data_secs = vol->tot_secs - vol->data_fsec;
vol->data_cls = data_secs / vol->spc;
202679c: d2 0c 20 04 ldub [ %l0 + 4 ], %o1 <== NOT EXECUTED
20267a0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED
20267a4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
20267a8: 40 00 d7 fc call 205c798 <.udiv> <== NOT EXECUTED
20267ac: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
/* determine FAT type at least */
if ( vol->data_cls < FAT_FAT12_MAX_CLN)
20267b0: 80 a2 2f f4 cmp %o0, 0xff4 <== NOT EXECUTED
20267b4: 18 80 00 09 bgu 20267d8 <fat_init_volume_info+0x330> <== NOT EXECUTED
20267b8: d0 24 20 34 st %o0, [ %l0 + 0x34 ] <== NOT EXECUTED
{
vol->type = FAT_FAT12;
20267bc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20267c0: c2 2c 20 0a stb %g1, [ %l0 + 0xa ] <== NOT EXECUTED
vol->mask = FAT_FAT12_MASK;
20267c4: 82 10 2f ff mov 0xfff, %g1 <== NOT EXECUTED
20267c8: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
vol->eoc_val = FAT_FAT12_EOC;
20267cc: 82 10 2f f8 mov 0xff8, %g1 <== NOT EXECUTED
20267d0: 10 80 00 11 b 2026814 <fat_init_volume_info+0x36c> <== NOT EXECUTED
20267d4: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
20267d8: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
20267dc: 84 10 63 f4 or %g1, 0x3f4, %g2 ! fff4 <PROM_START+0xfff4> <== NOT EXECUTED
20267e0: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
20267e4: 38 80 00 06 bgu,a 20267fc <fat_init_volume_info+0x354> <== NOT EXECUTED
20267e8: 03 03 ff ff sethi %hi(0xffffc00), %g1 <== NOT EXECUTED
{
vol->type = FAT_FAT16;
vol->mask = FAT_FAT16_MASK;
vol->eoc_val = FAT_FAT16_EOC;
20267ec: 84 10 63 f8 or %g1, 0x3f8, %g2 ! ffffff8 <RAM_END+0xdbffff8><== NOT EXECUTED
20267f0: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
}
else
{
if ( vol->data_cls < FAT_FAT16_MAX_CLN)
{
vol->type = FAT_FAT16;
20267f4: 10 80 00 05 b 2026808 <fat_init_volume_info+0x360> <== NOT EXECUTED
20267f8: 84 10 20 02 mov 2, %g2 <== NOT EXECUTED
}
else
{
vol->type = FAT_FAT32;
vol->mask = FAT_FAT32_MASK;
vol->eoc_val = FAT_FAT32_EOC;
20267fc: 84 10 63 f8 or %g1, 0x3f8, %g2 <== NOT EXECUTED
2026800: c4 24 20 10 st %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
vol->eoc_val = FAT_FAT16_EOC;
}
else
{
vol->type = FAT_FAT32;
2026804: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
2026808: 82 10 63 ff or %g1, 0x3ff, %g1 <== NOT EXECUTED
vol->mask = FAT_FAT16_MASK;
vol->eoc_val = FAT_FAT16_EOC;
}
else
{
vol->type = FAT_FAT32;
202680c: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
vol->mask = FAT_FAT32_MASK;
2026810: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
fat_init_volume_info(rtems_filesystem_mount_table_entry_t *mt_entry)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
register fat_vol_t *vol = &fs_info->vol;
2026814: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2026818: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
202681c: 12 80 00 79 bne 2026a00 <fat_init_volume_info+0x558> <== NOT EXECUTED
2026820: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
}
}
if (vol->type == FAT_FAT32)
{
vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);
2026824: c8 0f bf 75 ldub [ %fp + -139 ], %g4 <== NOT EXECUTED
2026828: c2 0f bf 76 ldub [ %fp + -138 ], %g1 <== NOT EXECUTED
202682c: c6 0f bf 74 ldub [ %fp + -140 ], %g3 <== NOT EXECUTED
2026830: c4 0f bf 77 ldub [ %fp + -137 ], %g2 <== NOT EXECUTED
2026834: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026838: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
202683c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026840: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2026844: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2026848: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
202684c: c2 24 20 38 st %g1, [ %l0 + 0x38 ] <== NOT EXECUTED
vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
2026850: c2 0f bf 71 ldub [ %fp + -143 ], %g1 <== NOT EXECUTED
2026854: c4 0f bf 70 ldub [ %fp + -144 ], %g2 <== NOT EXECUTED
2026858: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
202685c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2026860: 82 08 7f 80 and %g1, -128, %g1 <== NOT EXECUTED
if (vol->mirror)
2026864: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED
2026868: 02 80 00 06 be 2026880 <fat_init_volume_info+0x3d8> <== NOT EXECUTED
202686c: c2 2c 20 48 stb %g1, [ %l0 + 0x48 ] <== NOT EXECUTED
vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
2026870: c2 0f bf 70 ldub [ %fp + -144 ], %g1 <== NOT EXECUTED
2026874: 82 08 60 0f and %g1, 0xf, %g1 <== NOT EXECUTED
2026878: 10 80 00 03 b 2026884 <fat_init_volume_info+0x3dc> <== NOT EXECUTED
202687c: c2 2c 20 50 stb %g1, [ %l0 + 0x50 ] <== NOT EXECUTED
else
vol->afat = 0;
2026880: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED
vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);
2026884: d2 0f bf 79 ldub [ %fp + -135 ], %o1 <== NOT EXECUTED
2026888: c2 0f bf 78 ldub [ %fp + -136 ], %g1 <== NOT EXECUTED
202688c: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED
2026890: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2026894: d2 34 20 3c sth %o1, [ %l0 + 0x3c ] <== NOT EXECUTED
if( vol->info_sec == 0 )
2026898: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
202689c: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
20268a0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20268a4: 32 80 00 05 bne,a 20268b8 <fat_init_volume_info+0x410> <== NOT EXECUTED
20268a8: a4 07 bf f0 add %fp, -16, %l2 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
20268ac: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
20268b0: 10 80 00 1f b 202692c <fat_init_volume_info+0x484> <== NOT EXECUTED
20268b4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , 0,
20268b8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20268bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20268c0: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
20268c4: 7f ff fe d8 call 2026424 <_fat_block_read> <== NOT EXECUTED
20268c8: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
FAT_FSI_LEADSIG_SIZE, fs_info_sector);
if ( ret < 0 )
20268cc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20268d0: 16 80 00 05 bge 20268e4 <fat_init_volume_info+0x43c> <== NOT EXECUTED
20268d4: c2 0f bf f3 ldub [ %fp + -13 ], %g1 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
20268d8: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
20268dc: 10 80 00 45 b 20269f0 <fat_init_volume_info+0x548> <== NOT EXECUTED
20268e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
}
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
20268e4: c8 0f bf f1 ldub [ %fp + -15 ], %g4 <== NOT EXECUTED
20268e8: c4 0f bf f2 ldub [ %fp + -14 ], %g2 <== NOT EXECUTED
20268ec: c6 0f bf f0 ldub [ %fp + -16 ], %g3 <== NOT EXECUTED
20268f0: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
20268f4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
20268f8: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20268fc: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
2026900: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2026904: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
2026908: 03 10 58 54 sethi %hi(0x41615000), %g1 <== NOT EXECUTED
202690c: 82 10 62 52 or %g1, 0x252, %g1 ! 41615252 <RAM_END+0x3f215252><== NOT EXECUTED
2026910: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2026914: 22 80 00 0c be,a 2026944 <fat_init_volume_info+0x49c> <== NOT EXECUTED
2026918: d2 14 20 3c lduh [ %l0 + 0x3c ], %o1 <== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
202691c: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
2026920: 7f ff fc fa call 2025d08 <fat_buf_release> <== NOT EXECUTED
2026924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=
FAT_FSINFO_LEAD_SIGNATURE_VALUE)
{
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
2026928: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
202692c: 7f ff 81 72 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026930: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
2026934: 40 00 76 58 call 2044294 <__errno> <== NOT EXECUTED
2026938: 01 00 00 00 nop <== NOT EXECUTED
202693c: 10 80 00 80 b 2026b3c <fat_init_volume_info+0x694> <== NOT EXECUTED
2026940: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
}
else
{
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
2026944: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
2026948: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202694c: 94 10 21 e4 mov 0x1e4, %o2 <== NOT EXECUTED
2026950: 7f ff fe b5 call 2026424 <_fat_block_read> <== NOT EXECUTED
2026954: 96 10 20 0c mov 0xc, %o3 <== NOT EXECUTED
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
2026958: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202695c: 16 80 00 05 bge 2026970 <fat_init_volume_info+0x4c8> <== NOT EXECUTED
2026960: c6 0f bf f4 ldub [ %fp + -12 ], %g3 <== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
2026964: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
ret = _fat_block_read(mt_entry, vol->info_sec , FAT_FSI_INFO,
FAT_USEFUL_INFO_SIZE, fs_info_sector);
if ( ret < 0 )
{
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
2026968: 10 80 00 1f b 20269e4 <fat_init_volume_info+0x53c> <== NOT EXECUTED
202696c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
2026970: c8 0f bf f5 ldub [ %fp + -11 ], %g4 <== NOT EXECUTED
2026974: c2 0f bf f6 ldub [ %fp + -10 ], %g1 <== NOT EXECUTED
2026978: c4 0f bf f7 ldub [ %fp + -9 ], %g2 <== NOT EXECUTED
202697c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2026980: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
2026984: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2026988: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
202698c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2026990: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2026994: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
2026998: c8 0f bf f9 ldub [ %fp + -7 ], %g4 <== NOT EXECUTED
202699c: c2 0f bf fa ldub [ %fp + -6 ], %g1 <== NOT EXECUTED
20269a0: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED
20269a4: c4 0f bf fb ldub [ %fp + -5 ], %g2 <== NOT EXECUTED
20269a8: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
20269ac: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
20269b0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
20269b4: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
20269b8: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
20269bc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
20269c0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_disk_release(vol->dd);
return -1;
}
vol->free_cls = FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);
vol->next_cl = FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);
20269c4: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
20269c8: 92 10 3f ff mov -1, %o1 <== NOT EXECUTED
20269cc: 7f ff fd db call 2026138 <fat_fat32_update_fsinfo_sector> <== NOT EXECUTED
20269d0: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
0xFFFFFFFF);
if ( rc != RC_OK )
20269d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20269d8: 02 80 00 0f be 2026a14 <fat_init_volume_info+0x56c> <== NOT EXECUTED
20269dc: 01 00 00 00 nop <== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
20269e0: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
20269e4: 7f ff fc c9 call 2025d08 <fat_buf_release> <== NOT EXECUTED
20269e8: 01 00 00 00 nop <== NOT EXECUTED
rc = fat_fat32_update_fsinfo_sector(mt_entry, 0xFFFFFFFF,
0xFFFFFFFF);
if ( rc != RC_OK )
{
_fat_block_release(mt_entry);
rtems_disk_release(vol->dd);
20269ec: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
20269f0: 7f ff 81 41 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
20269f4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
20269f8: 81 c7 e0 08 ret <== NOT EXECUTED
20269fc: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
else
{
vol->rdir_cl = 0;
2026a00: c0 24 20 38 clr [ %l0 + 0x38 ] <== NOT EXECUTED
vol->mirror = 0;
2026a04: c0 2c 20 48 clrb [ %l0 + 0x48 ] <== NOT EXECUTED
vol->afat = 0;
2026a08: c0 2c 20 50 clrb [ %l0 + 0x50 ] <== NOT EXECUTED
vol->free_cls = 0xFFFFFFFF;
vol->next_cl = 0xFFFFFFFF;
2026a0c: c2 24 20 44 st %g1, [ %l0 + 0x44 ] <== NOT EXECUTED
else
{
vol->rdir_cl = 0;
vol->mirror = 0;
vol->afat = 0;
vol->free_cls = 0xFFFFFFFF;
2026a10: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
int
_fat_block_release(
rtems_filesystem_mount_table_entry_t *mt_entry)
{
fat_fs_info_t *fs_info = mt_entry->fs_info;
return fat_buf_release(fs_info);
2026a14: 7f ff fc bd call 2025d08 <fat_buf_release> <== NOT EXECUTED
2026a18: d0 04 60 34 ld [ %l1 + 0x34 ], %o0 <== NOT EXECUTED
vol->next_cl = 0xFFFFFFFF;
}
_fat_block_release(mt_entry);
vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;
2026a1c: d2 04 20 18 ld [ %l0 + 0x18 ], %o1 <== NOT EXECUTED
2026a20: 7f ff 6f f6 call 20029f8 <.umul> <== NOT EXECUTED
2026a24: d0 0c 20 50 ldub [ %l0 + 0x50 ], %o0 <== NOT EXECUTED
2026a28: c2 14 20 14 lduh [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
/* set up collection of fat-files fd */
fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
2026a2c: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED
vol->next_cl = 0xFFFFFFFF;
}
_fat_block_release(mt_entry);
vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;
2026a30: 82 02 00 01 add %o0, %g1, %g1 <== NOT EXECUTED
/* set up collection of fat-files fd */
fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
2026a34: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
2026a38: 7f ff 84 7b call 2007c24 <calloc> <== NOT EXECUTED
2026a3c: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED
if ( fs_info->vhash == NULL )
2026a40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026a44: 02 80 00 13 be 2026a90 <fat_init_volume_info+0x5e8> <== NOT EXECUTED
2026a48: d0 24 20 68 st %o0, [ %l0 + 0x68 ] <== NOT EXECUTED
rtems_disk_release(vol->dd);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->vhash + i);
2026a4c: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2026a50: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
2026a54: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED
2026a58: c2 20 60 08 st %g1, [ %g1 + 8 ] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2026a5c: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2026a60: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED
2026a64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2026a68: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
2026a6c: 92 10 20 0c mov 0xc, %o1 <== NOT EXECUTED
2026a70: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED
2026a74: 7f ff 84 6c call 2007c24 <calloc> <== NOT EXECUTED
2026a78: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
if ( fs_info->rhash == NULL )
2026a7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026a80: 12 80 00 08 bne 2026aa0 <fat_init_volume_info+0x5f8> <== NOT EXECUTED
2026a84: d0 24 20 6c st %o0, [ %l0 + 0x6c ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026a88: 10 80 00 1f b 2026b04 <fat_init_volume_info+0x65c> <== NOT EXECUTED
2026a8c: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
/* set up collection of fat-files fd */
fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
if ( fs_info->vhash == NULL )
{
rtems_disk_release(vol->dd);
2026a90: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2026a94: 7f ff 81 18 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026a98: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2026a9c: 30 80 00 25 b,a 2026b30 <fat_init_volume_info+0x688> <== NOT EXECUTED
the_chain->permanent_null = NULL;
2026aa0: c0 22 20 04 clr [ %o0 + 4 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
2026aa4: d0 22 20 08 st %o0, [ %o0 + 8 ] <== NOT EXECUTED
rtems_disk_release(vol->dd);
free(fs_info->vhash);
rtems_set_errno_and_return_minus_one( ENOMEM );
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->rhash + i);
2026aa8: 82 02 20 0c add %o0, 0xc, %g1 <== NOT EXECUTED
2026aac: c2 20 60 08 st %g1, [ %g1 + 8 ] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
2026ab0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
2026ab4: 82 02 20 04 add %o0, 4, %g1 <== NOT EXECUTED
2026ab8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2026abc: 82 02 20 10 add %o0, 0x10, %g1 <== NOT EXECUTED
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
2026ac0: c4 04 20 2c ld [ %l0 + 0x2c ], %g2 <== NOT EXECUTED
2026ac4: c2 22 20 0c st %g1, [ %o0 + 0xc ] <== NOT EXECUTED
2026ac8: c2 0c 20 03 ldub [ %l0 + 3 ], %g1 <== NOT EXECUTED
fs_info->index = 0;
2026acc: c0 24 20 74 clr [ %l0 + 0x74 ] <== NOT EXECUTED
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->rhash + i);
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
2026ad0: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
2026ad4: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
2026ad8: c2 24 20 7c st %g1, [ %l0 + 0x7c ] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->rhash + i);
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
2026adc: 82 10 21 00 mov 0x100, %g1 <== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
fs_info->index = 0;
fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
2026ae0: 90 10 21 00 mov 0x100, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
}
for (i = 0; i < FAT_HASH_SIZE; i++)
rtems_chain_initialize_empty(fs_info->rhash + i);
fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;
2026ae4: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
fs_info->index = 0;
fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
2026ae8: 7f ff 84 4f call 2007c24 <calloc> <== NOT EXECUTED
2026aec: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
if ( fs_info->uino == NULL )
2026af0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026af4: 12 80 00 15 bne 2026b48 <fat_init_volume_info+0x6a0> <== NOT EXECUTED
2026af8: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026afc: 10 80 00 06 b 2026b14 <fat_init_volume_info+0x66c> <== NOT EXECUTED
2026b00: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
rtems_chain_initialize_empty(fs_info->vhash + i);
fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
if ( fs_info->rhash == NULL )
{
rtems_disk_release(vol->dd);
2026b04: 7f ff 80 fc call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026b08: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
2026b0c: 10 80 00 07 b 2026b28 <fat_init_volume_info+0x680> <== NOT EXECUTED
2026b10: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;
fs_info->index = 0;
fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
if ( fs_info->uino == NULL )
{
rtems_disk_release(vol->dd);
2026b14: 7f ff 80 f8 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026b18: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
2026b1c: 7f ff 85 d1 call 2008260 <free> <== NOT EXECUTED
2026b20: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
2026b24: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
2026b28: 7f ff 85 ce call 2008260 <free> <== NOT EXECUTED
2026b2c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
2026b30: 40 00 75 d9 call 2044294 <__errno> <== NOT EXECUTED
2026b34: 01 00 00 00 nop <== NOT EXECUTED
2026b38: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
2026b3c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2026b40: 81 c7 e0 08 ret <== NOT EXECUTED
2026b44: 81 e8 00 00 restore <== NOT EXECUTED
}
fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));
2026b48: d0 14 00 00 lduh [ %l0 ], %o0 <== NOT EXECUTED
2026b4c: 7f ff 84 36 call 2007c24 <calloc> <== NOT EXECUTED
2026b50: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2026b54: d0 24 20 8c st %o0, [ %l0 + 0x8c ] <== NOT EXECUTED
if (fs_info->sec_buf == NULL)
2026b58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026b5c: 12 bf ff a7 bne 20269f8 <fat_init_volume_info+0x550> <== NOT EXECUTED
2026b60: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_disk_release(vol->dd);
2026b64: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2026b68: 7f ff 80 e3 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2026b6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info->vhash);
2026b70: 7f ff 85 bc call 2008260 <free> <== NOT EXECUTED
2026b74: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
2026b78: 7f ff 85 ba call 2008260 <free> <== NOT EXECUTED
2026b7c: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
free(fs_info->uino);
2026b80: 7f ff 85 b8 call 2008260 <free> <== NOT EXECUTED
2026b84: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
2026b88: 40 00 75 c3 call 2044294 <__errno> <== NOT EXECUTED
2026b8c: 01 00 00 00 nop <== NOT EXECUTED
2026b90: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
2026b94: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return RC_OK;
}
2026b98: 81 c7 e0 08 ret <== NOT EXECUTED
2026b9c: 81 e8 00 00 restore <== NOT EXECUTED
02025c14 <fat_ino_is_unique>:
inline bool
fat_ino_is_unique(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t ino
)
{
2025c14: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED
2025c18: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
2025c1c: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
return (ino >= fs_info->uino_base);
}
2025c20: 81 c3 e0 08 retl <== NOT EXECUTED
2025c24: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED
0203f960 <fat_scan_fat_for_free_clusters>:
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
203f960: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
203f964: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t *chain,
uint32_t count,
uint32_t *cls_added,
uint32_t *last_cl
)
{
203f968: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cl4find = 2;
uint32_t next_cln = 0;
uint32_t save_cln = 0;
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
203f96c: ea 04 20 34 ld [ %l0 + 0x34 ], %l5 <== NOT EXECUTED
)
{
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cl4find = 2;
uint32_t next_cln = 0;
203f970: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t save_cln = 0;
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
uint32_t i = 2;
*cls_added = 0;
203f974: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t cl4find = 2;
uint32_t next_cln = 0;
uint32_t save_cln = 0;
uint32_t data_cls_val = fs_info->vol.data_cls + 2;
203f978: aa 05 60 02 add %l5, 2, %l5 <== NOT EXECUTED
uint32_t i = 2;
*cls_added = 0;
if (count == 0)
203f97c: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203f980: 02 80 00 24 be 203fa10 <fat_scan_fat_for_free_clusters+0xb0><== NOT EXECUTED
203f984: b0 10 20 00 clr %i0 <== NOT EXECUTED
return rc;
if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)
203f988: e4 04 20 44 ld [ %l0 + 0x44 ], %l2 <== NOT EXECUTED
203f98c: 80 a4 bf ff cmp %l2, -1 <== NOT EXECUTED
203f990: 22 80 00 02 be,a 203f998 <fat_scan_fat_for_free_clusters+0x38><== NOT EXECUTED
203f994: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED
203f998: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED
203f99c: a6 10 20 00 clr %l3 <== NOT EXECUTED
* starting at cluster 2, so the maximum valid cluster number is
* (fs_info->vol.data_cls + 1)
*/
while (i < data_cls_val)
{
rc = fat_get_fat_cluster(mt_entry, cl4find, &next_cln);
203f9a0: 10 80 00 50 b 203fae0 <fat_scan_fat_for_free_clusters+0x180><== NOT EXECUTED
203f9a4: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED
203f9a8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203f9ac: 7f ff ff 3c call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
203f9b0: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203f9b4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
203f9b8: 22 80 00 08 be,a 203f9d8 <fat_scan_fat_for_free_clusters+0x78><== NOT EXECUTED
203f9bc: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
if (*cls_added != 0)
203f9c0: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
203f9c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203f9c8: 02 80 00 12 be 203fa10 <fat_scan_fat_for_free_clusters+0xb0><== NOT EXECUTED
203f9cc: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
/* set EOC value to new allocated cluster */
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
if ( rc != RC_OK )
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
203f9d0: 10 80 00 19 b 203fa34 <fat_scan_fat_for_free_clusters+0xd4><== NOT EXECUTED
203f9d4: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
if (*cls_added != 0)
fat_free_fat_clusters_chain(mt_entry, (*chain));
return rc;
}
if (next_cln == FAT_GENFAT_FREE)
203f9d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f9dc: 32 80 00 3d bne,a 203fad0 <fat_scan_fat_for_free_clusters+0x170><== NOT EXECUTED
203f9e0: a4 04 a0 01 inc %l2 <== NOT EXECUTED
/*
* We are enforced to process allocation of the first free cluster
* by separate 'if' statement because otherwise undo function
* wouldn't work properly
*/
if (*cls_added == 0)
203f9e4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
203f9e8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f9ec: 12 80 00 0b bne 203fa18 <fat_scan_fat_for_free_clusters+0xb8><== NOT EXECUTED
203f9f0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
*chain = cl4find;
203f9f4: e4 26 40 00 st %l2, [ %i1 ] <== NOT EXECUTED
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
203f9f8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203f9fc: 7f ff fe 7b call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
203fa00: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203fa04: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fa08: 22 80 00 1e be,a 203fa80 <fat_scan_fat_for_free_clusters+0x120><== NOT EXECUTED
203fa0c: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
203fa10: 81 c7 e0 08 ret <== NOT EXECUTED
203fa14: 81 e8 00 00 restore <== NOT EXECUTED
}
}
else
{
/* set EOC value to new allocated cluster */
rc = fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_EOC);
203fa18: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203fa1c: 7f ff fe 73 call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
203fa20: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203fa24: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fa28: 02 80 00 07 be 203fa44 <fat_scan_fat_for_free_clusters+0xe4><== NOT EXECUTED
203fa2c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
203fa30: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
203fa34: 7f ff ff 97 call 203f890 <fat_free_fat_clusters_chain> <== NOT EXECUTED
203fa38: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rc;
203fa3c: 81 c7 e0 08 ret <== NOT EXECUTED
203fa40: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_set_fat_cluster(mt_entry, save_cln, cl4find);
203fa44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203fa48: 7f ff fe 68 call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
203fa4c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
203fa50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203fa54: 22 80 00 0b be,a 203fa80 <fat_scan_fat_for_free_clusters+0x120><== NOT EXECUTED
203fa58: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
{
/* cleanup activity */
fat_free_fat_clusters_chain(mt_entry, (*chain));
203fa5c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
203fa60: 7f ff ff 8c call 203f890 <fat_free_fat_clusters_chain> <== NOT EXECUTED
203fa64: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/* trying to save last allocated cluster for future use */
fat_set_fat_cluster(mt_entry, cl4find, FAT_GENFAT_FREE);
203fa68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203fa6c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203fa70: 7f ff fe 5e call 203f3e8 <fat_set_fat_cluster> <== NOT EXECUTED
203fa74: 94 10 20 00 clr %o2 <== NOT EXECUTED
fat_buf_release(fs_info);
203fa78: 10 80 00 10 b 203fab8 <fat_scan_fat_for_free_clusters+0x158><== NOT EXECUTED
203fa7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
}
save_cln = cl4find;
(*cls_added)++;
203fa80: 82 00 60 01 inc %g1 <== NOT EXECUTED
/* have we satisfied request ? */
if (*cls_added == count)
203fa84: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203fa88: 12 80 00 10 bne 203fac8 <fat_scan_fat_for_free_clusters+0x168><== NOT EXECUTED
203fa8c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
{
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
203fa90: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED
203fa94: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203fa98: 02 80 00 05 be 203faac <fat_scan_fat_for_free_clusters+0x14c><== NOT EXECUTED
203fa9c: e4 24 20 44 st %l2, [ %l0 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
203faa0: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
203faa4: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
203faa8: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
*last_cl = save_cln;
203faac: e4 27 00 00 st %l2, [ %i4 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203fab0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fab4: b0 10 20 00 clr %i0 <== NOT EXECUTED
203fab8: 7f ff 98 94 call 2025d08 <fat_buf_release> <== NOT EXECUTED
203fabc: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203fac0: 81 c7 e0 08 ret <== NOT EXECUTED
203fac4: 81 e8 00 00 restore <== NOT EXECUTED
203fac8: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
}
}
i++;
cl4find++;
203facc: a4 04 a0 01 inc %l2 <== NOT EXECUTED
if (cl4find >= data_cls_val)
203fad0: 80 a4 80 15 cmp %l2, %l5 <== NOT EXECUTED
203fad4: 3a 80 00 02 bcc,a 203fadc <fat_scan_fat_for_free_clusters+0x17c><== NOT EXECUTED
203fad8: a4 10 20 02 mov 2, %l2 <== NOT EXECUTED
*last_cl = save_cln;
fat_buf_release(fs_info);
return rc;
}
}
i++;
203fadc: a8 05 20 01 inc %l4 <== NOT EXECUTED
/*
* fs_info->vol.data_cls is exactly the count of data clusters
* starting at cluster 2, so the maximum valid cluster number is
* (fs_info->vol.data_cls + 1)
*/
while (i < data_cls_val)
203fae0: 80 a5 00 15 cmp %l4, %l5 <== NOT EXECUTED
203fae4: 0a bf ff b1 bcs 203f9a8 <fat_scan_fat_for_free_clusters+0x48><== NOT EXECUTED
203fae8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (cl4find >= data_cls_val)
cl4find = 2;
}
fs_info->vol.next_cl = save_cln;
if (fs_info->vol.free_cls != 0xFFFFFFFF)
203faec: c2 04 20 40 ld [ %l0 + 0x40 ], %g1 <== NOT EXECUTED
203faf0: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
203faf4: 02 80 00 05 be 203fb08 <fat_scan_fat_for_free_clusters+0x1a8><== NOT EXECUTED
203faf8: e6 24 20 44 st %l3, [ %l0 + 0x44 ] <== NOT EXECUTED
fs_info->vol.free_cls -= (*cls_added);
203fafc: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
203fb00: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
203fb04: c2 24 20 40 st %g1, [ %l0 + 0x40 ] <== NOT EXECUTED
*last_cl = save_cln;
203fb08: e6 27 00 00 st %l3, [ %i4 ] <== NOT EXECUTED
fat_buf_release(fs_info);
203fb0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203fb10: 7f ff 98 7e call 2025d08 <fat_buf_release> <== NOT EXECUTED
203fb14: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203fb18: 81 c7 e0 08 ret <== NOT EXECUTED
203fb1c: 81 e8 00 00 restore <== NOT EXECUTED
0203f3e8 <fat_set_fat_cluster>:
fat_set_fat_cluster(
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
uint32_t in_val
)
{
203f3e8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
fat_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t sec = 0;
uint32_t ofs = 0;
uint16_t fat16_clv = 0;
uint32_t fat32_clv = 0;
rtems_bdbuf_buffer *block0 = NULL;
203f3ec: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
203f3f0: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203f3f4: 08 80 00 a3 bleu 203f680 <fat_set_fat_cluster+0x298> <== NOT EXECUTED
203f3f8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
203f3fc: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
203f400: 82 00 60 01 inc %g1 <== NOT EXECUTED
203f404: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203f408: 18 80 00 9e bgu 203f680 <fat_set_fat_cluster+0x298> <== NOT EXECUTED
203f40c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
203f410: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203f414: 88 88 60 01 andcc %g1, 1, %g4 <== NOT EXECUTED
203f418: 02 80 00 05 be 203f42c <fat_set_fat_cluster+0x44> <== NOT EXECUTED
203f41c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203f420: 85 36 60 01 srl %i1, 1, %g2 <== NOT EXECUTED
203f424: 10 80 00 05 b 203f438 <fat_set_fat_cluster+0x50> <== NOT EXECUTED
203f428: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED
203f42c: 02 80 00 03 be 203f438 <fat_set_fat_cluster+0x50> <== NOT EXECUTED
203f430: 85 2e 60 02 sll %i1, 2, %g2 <== NOT EXECUTED
203f434: 85 2e 60 01 sll %i1, 1, %g2 <== NOT EXECUTED
203f438: e6 0c 20 02 ldub [ %l0 + 2 ], %l3 <== NOT EXECUTED
203f43c: c6 04 20 4c ld [ %l0 + 0x4c ], %g3 <== NOT EXECUTED
203f440: a7 30 80 13 srl %g2, %l3, %l3 <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
203f444: a9 36 60 01 srl %i1, 1, %l4 <== NOT EXECUTED
203f448: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
/* sanity check */
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
203f44c: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
203f450: 12 80 00 06 bne 203f468 <fat_set_fat_cluster+0x80> <== NOT EXECUTED
203f454: a8 05 00 19 add %l4, %i1, %l4 <== NOT EXECUTED
203f458: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203f45c: 02 80 00 03 be 203f468 <fat_set_fat_cluster+0x80> <== NOT EXECUTED
203f460: a9 2e 60 02 sll %i1, 2, %l4 <== NOT EXECUTED
203f464: a9 2e 60 01 sll %i1, 1, %l4 <== NOT EXECUTED
203f468: ea 14 00 00 lduh [ %l0 ], %l5 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
203f46c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203f470: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f474: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203f478: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203f47c: 7f ff 9a 84 call 2025e8c <fat_buf_access> <== NOT EXECUTED
203f480: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc != RC_OK)
203f484: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f488: 12 80 00 83 bne 203f694 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203f48c: ab 2d 60 10 sll %l5, 0x10, %l5 <== NOT EXECUTED
return rc;
switch ( fs_info->vol.type )
203f490: e2 0c 20 0a ldub [ %l0 + 0xa ], %l1 <== NOT EXECUTED
203f494: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )
rtems_set_errno_and_return_minus_one(EIO);
sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
fs_info->vol.afat_loc;
ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
203f498: ab 35 60 10 srl %l5, 0x10, %l5 <== NOT EXECUTED
203f49c: aa 05 7f ff add %l5, -1, %l5 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &block0);
if (rc != RC_OK)
return rc;
switch ( fs_info->vol.type )
203f4a0: 02 80 00 5a be 203f608 <fat_set_fat_cluster+0x220> <== NOT EXECUTED
203f4a4: a8 0d 00 15 and %l4, %l5, %l4 <== NOT EXECUTED
203f4a8: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
203f4ac: 02 80 00 5f be 203f628 <fat_set_fat_cluster+0x240> <== NOT EXECUTED
203f4b0: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED
203f4b4: 12 80 00 73 bne 203f680 <fat_set_fat_cluster+0x298> <== NOT EXECUTED
203f4b8: 80 8e 60 01 btst 1, %i1 <== NOT EXECUTED
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
203f4bc: 02 80 00 25 be 203f550 <fat_set_fat_cluster+0x168> <== NOT EXECUTED
203f4c0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
203f4c4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
203f4c8: 85 2e a0 04 sll %i2, 4, %g2 <== NOT EXECUTED
{
case FAT_FAT12:
if ( FAT_CLUSTER_IS_ODD(cln) )
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
*((uint8_t *)(block0->buffer + ofs)) =
203f4cc: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED
203f4d0: 86 08 e0 0f and %g3, 0xf, %g3 <== NOT EXECUTED
203f4d4: c6 28 40 14 stb %g3, [ %g1 + %l4 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
203f4d8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f4dc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
{
fat16_clv = ((uint16_t )in_val) << FAT_FAT12_SHIFT;
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) & 0x0F;
*((uint8_t *)(block0->buffer + ofs)) =
203f4e0: c6 08 40 14 ldub [ %g1 + %l4 ], %g3 <== NOT EXECUTED
203f4e4: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203f4e8: c4 28 40 14 stb %g2, [ %g1 + %l4 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) |
(uint8_t )(fat16_clv & 0x00FF);
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
203f4ec: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
203f4f0: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203f4f4: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203f4f8: 12 80 00 0f bne 203f534 <fat_set_fat_cluster+0x14c> <== NOT EXECUTED
203f4fc: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
203f500: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
203f504: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203f508: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f50c: 7f ff 9a 60 call 2025e8c <fat_buf_access> <== NOT EXECUTED
203f510: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
203f514: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f518: 12 80 00 5f bne 203f694 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203f51c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
*((uint8_t *)(block0->buffer)) =
203f520: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
&block0);
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
203f524: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer)) =
203f528: b5 36 a0 18 srl %i2, 0x18, %i2 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
&block0);
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) &= 0x00;
203f52c: 10 80 00 23 b 203f5b8 <fat_set_fat_cluster+0x1d0> <== NOT EXECUTED
203f530: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
203f534: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f538: a8 05 20 01 inc %l4 <== NOT EXECUTED
203f53c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
203f540: b5 2e a0 14 sll %i2, 0x14, %i2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) &= 0x00;
203f544: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs + 1)) =
203f548: 10 80 00 2a b 203f5f0 <fat_set_fat_cluster+0x208> <== NOT EXECUTED
203f54c: b5 36 a0 18 srl %i2, 0x18, %i2 <== NOT EXECUTED
}
}
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
203f550: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
(uint8_t )((fat16_clv & 0xFF00)>>8);
}
}
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
203f554: b4 0e af ff and %i2, 0xfff, %i2 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
203f558: c0 28 40 14 clrb [ %g1 + %l4 ] <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs)) =
(*((uint8_t *)(block0->buffer + ofs))) |
203f55c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f560: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
else
{
fat16_clv = ((uint16_t )in_val) & FAT_FAT12_MASK;
*((uint8_t *)(block0->buffer + ofs)) &= 0x00;
*((uint8_t *)(block0->buffer + ofs)) =
203f564: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED
203f568: 84 16 80 02 or %i2, %g2, %g2 <== NOT EXECUTED
203f56c: c4 28 40 14 stb %g2, [ %g1 + %l4 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs))) |
(uint8_t )(fat16_clv & 0x00FF);
fat_buf_mark_modified(fs_info);
if ( ofs == (fs_info->vol.bps - 1) )
203f570: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
203f574: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203f578: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203f57c: 12 80 00 16 bne 203f5d4 <fat_set_fat_cluster+0x1ec> <== NOT EXECUTED
203f580: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
{
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
203f584: 92 04 e0 01 add %l3, 1, %o1 <== NOT EXECUTED
203f588: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203f58c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f590: 7f ff 9a 3f call 2025e8c <fat_buf_access> <== NOT EXECUTED
203f594: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
203f598: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f59c: 12 80 00 3e bne 203f694 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203f5a0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
203f5a4: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
&block0);
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
203f5a8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
&block0);
if (rc != RC_OK)
return rc;
*((uint8_t *)(block0->buffer)) =
203f5ac: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
203f5b0: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED
203f5b4: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) |
203f5b8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f5bc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
return rc;
*((uint8_t *)(block0->buffer)) =
(*((uint8_t *)(block0->buffer))) & 0xF0;
*((uint8_t *)(block0->buffer)) =
203f5c0: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
203f5c4: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
203f5c8: f4 28 40 00 stb %i2, [ %g1 ] <== NOT EXECUTED
}
static inline void
fat_buf_mark_modified(fat_fs_info_t *fs_info)
{
fs_info->c.modified = true;
203f5cc: 10 80 00 32 b 203f694 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203f5d0: e2 2c 20 84 stb %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
203f5d4: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f5d8: a8 05 20 01 inc %l4 <== NOT EXECUTED
203f5dc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint8_t *)(block0->buffer + ofs+1)) =
203f5e0: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
}
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
203f5e4: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED
203f5e8: 84 08 bf f0 and %g2, -16, %g2 <== NOT EXECUTED
203f5ec: c4 28 40 14 stb %g2, [ %g1 + %l4 ] <== NOT EXECUTED
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
*((uint8_t *)(block0->buffer + ofs+1)) =
(*((uint8_t *)(block0->buffer + ofs+1))) |
203f5f0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f5f4: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
else
{
*((uint8_t *)(block0->buffer + ofs + 1)) =
(*((uint8_t *)(block0->buffer + ofs + 1))) & 0xF0;
*((uint8_t *)(block0->buffer + ofs+1)) =
203f5f8: c4 08 40 14 ldub [ %g1 + %l4 ], %g2 <== NOT EXECUTED
203f5fc: b4 10 80 1a or %g2, %i2, %i2 <== NOT EXECUTED
203f600: 10 80 00 25 b 203f694 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203f604: f4 28 40 14 stb %i2, [ %g1 + %l4 ] <== NOT EXECUTED
}
}
break;
case FAT_FAT16:
*((uint16_t *)(block0->buffer + ofs)) =
203f608: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f60c: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
203f610: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203f614: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
203f618: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
203f61c: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
203f620: 10 80 00 15 b 203f674 <fat_set_fat_cluster+0x28c> <== NOT EXECUTED
203f624: f4 30 40 14 sth %i2, [ %g1 + %l4 ] <== NOT EXECUTED
case FAT_FAT32:
fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));
*((uint32_t *)(block0->buffer + ofs)) =
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
203f628: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
(uint16_t )(CT_LE_W(in_val));
fat_buf_mark_modified(fs_info);
break;
case FAT_FAT32:
fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));
203f62c: 05 3c 00 00 sethi %hi(0xf0000000), %g2 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
203f630: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
203f634: 9b 2e a0 18 sll %i2, 0x18, %o5 <== NOT EXECUTED
break;
case FAT_FAT32:
fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));
*((uint32_t *)(block0->buffer + ofs)) =
203f638: c6 00 40 14 ld [ %g1 + %l4 ], %g3 <== NOT EXECUTED
(uint16_t )(CT_LE_W(in_val));
fat_buf_mark_modified(fs_info);
break;
case FAT_FAT32:
fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));
203f63c: b4 2e 80 02 andn %i2, %g2, %i2 <== NOT EXECUTED
*((uint32_t *)(block0->buffer + ofs)) =
203f640: 86 08 e0 f0 and %g3, 0xf0, %g3 <== NOT EXECUTED
(*((uint32_t *)(block0->buffer + ofs))) & (CT_LE_L(0xF0000000));
*((uint32_t *)(block0->buffer + ofs)) =
203f644: 89 36 a0 10 srl %i2, 0x10, %g4 <== NOT EXECUTED
203f648: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
203f64c: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
203f650: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203f654: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
203f658: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
203f65c: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
203f660: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
203f664: 84 10 80 1a or %g2, %i2, %g2 <== NOT EXECUTED
203f668: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203f66c: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203f670: c4 20 40 14 st %g2, [ %g1 + %l4 ] <== NOT EXECUTED
203f674: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203f678: 10 80 00 07 b 203f694 <fat_set_fat_cluster+0x2ac> <== NOT EXECUTED
203f67c: c2 2c 20 84 stb %g1, [ %l0 + 0x84 ] <== NOT EXECUTED
fat_buf_mark_modified(fs_info);
break;
default:
rtems_set_errno_and_return_minus_one(EIO);
203f680: 40 00 13 05 call 2044294 <__errno> <== NOT EXECUTED
203f684: 01 00 00 00 nop <== NOT EXECUTED
203f688: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
203f68c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203f690: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
break;
}
return RC_OK;
}
203f694: 81 c7 e0 08 ret <== NOT EXECUTED
203f698: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020261f4 <fat_shutdown_drive>:
* RC_OK on success, or -1 if error occured
* and errno set appropriately
*/
int
fat_shutdown_drive(rtems_filesystem_mount_table_entry_t *mt_entry)
{
20261f4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
20261f8: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
* RC_OK on success, or -1 if error occured
* and errno set appropriately
*/
int
fat_shutdown_drive(rtems_filesystem_mount_table_entry_t *mt_entry)
{
20261fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
int rc = RC_OK;
fat_fs_info_t *fs_info = mt_entry->fs_info;
int i = 0;
if (fs_info->vol.type & FAT_FAT32)
2026200: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
2026204: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2026208: 02 80 00 08 be 2026228 <fat_shutdown_drive+0x34> <== NOT EXECUTED
202620c: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
rc = fat_fat32_update_fsinfo_sector(mt_entry, fs_info->vol.free_cls,
2026210: d2 04 20 40 ld [ %l0 + 0x40 ], %o1 <== NOT EXECUTED
2026214: 7f ff ff c9 call 2026138 <fat_fat32_update_fsinfo_sector> <== NOT EXECUTED
2026218: d4 04 20 44 ld [ %l0 + 0x44 ], %o2 <== NOT EXECUTED
fs_info->vol.next_cl);
if ( rc != RC_OK )
202621c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2026220: 32 80 00 02 bne,a 2026228 <fat_shutdown_drive+0x34> <== NOT EXECUTED
2026224: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
rc = -1;
}
fat_buf_release(fs_info);
2026228: 7f ff fe b8 call 2025d08 <fat_buf_release> <== NOT EXECUTED
202622c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
2026230: 7f ff 77 36 call 2003f08 <rtems_bdbuf_syncdev> <== NOT EXECUTED
2026234: d0 1c 20 58 ldd [ %l0 + 0x58 ], %o0 <== NOT EXECUTED
2026238: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202623c: 32 80 00 02 bne,a 2026244 <fat_shutdown_drive+0x50> <== NOT EXECUTED
2026240: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
2026244: a4 10 20 00 clr %l2 <== NOT EXECUTED
rc = -1;
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->vhash + i;
2026248: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
202624c: 10 80 00 04 b 202625c <fat_shutdown_drive+0x68> <== NOT EXECUTED
2026250: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED
free(node);
2026254: 7f ff 88 03 call 2008260 <free> <== NOT EXECUTED
2026258: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
202625c: 7f ff 9d 61 call 200d7e0 <_Chain_Get> <== NOT EXECUTED
2026260: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->vhash + i;
while ( (node = rtems_chain_get(the_chain)) != NULL )
2026264: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2026268: 12 bf ff fb bne 2026254 <fat_shutdown_drive+0x60> <== NOT EXECUTED
202626c: 01 00 00 00 nop <== NOT EXECUTED
2026270: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED
fat_buf_release(fs_info);
if (rtems_bdbuf_syncdev(fs_info->vol.dev) != RTEMS_SUCCESSFUL)
rc = -1;
for (i = 0; i < FAT_HASH_SIZE; i++)
2026274: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED
2026278: 32 bf ff f5 bne,a 202624c <fat_shutdown_drive+0x58> <== NOT EXECUTED
202627c: e6 04 20 68 ld [ %l0 + 0x68 ], %l3 <== NOT EXECUTED
2026280: a4 10 20 00 clr %l2 <== NOT EXECUTED
}
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->rhash + i;
2026284: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
2026288: 10 80 00 04 b 2026298 <fat_shutdown_drive+0xa4> <== NOT EXECUTED
202628c: a6 04 c0 12 add %l3, %l2, %l3 <== NOT EXECUTED
free(node);
2026290: 7f ff 87 f4 call 2008260 <free> <== NOT EXECUTED
2026294: 01 00 00 00 nop <== NOT EXECUTED
2026298: 7f ff 9d 52 call 200d7e0 <_Chain_Get> <== NOT EXECUTED
202629c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
for (i = 0; i < FAT_HASH_SIZE; i++)
{
rtems_chain_node *node = NULL;
rtems_chain_control *the_chain = fs_info->rhash + i;
while ( (node = rtems_chain_get(the_chain)) != NULL )
20262a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20262a4: 12 bf ff fb bne 2026290 <fat_shutdown_drive+0x9c> <== NOT EXECUTED
20262a8: 01 00 00 00 nop <== NOT EXECUTED
20262ac: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
for (i = 0; i < FAT_HASH_SIZE; i++)
20262b0: 80 a4 a0 18 cmp %l2, 0x18 <== NOT EXECUTED
20262b4: 32 bf ff f5 bne,a 2026288 <fat_shutdown_drive+0x94> <== NOT EXECUTED
20262b8: e6 04 20 6c ld [ %l0 + 0x6c ], %l3 <== NOT EXECUTED
while ( (node = rtems_chain_get(the_chain)) != NULL )
free(node);
}
free(fs_info->vhash);
20262bc: 7f ff 87 e9 call 2008260 <free> <== NOT EXECUTED
20262c0: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free(fs_info->rhash);
20262c4: 7f ff 87 e7 call 2008260 <free> <== NOT EXECUTED
20262c8: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
free(fs_info->uino);
20262cc: 7f ff 87 e5 call 2008260 <free> <== NOT EXECUTED
20262d0: d0 04 20 70 ld [ %l0 + 0x70 ], %o0 <== NOT EXECUTED
free(fs_info->sec_buf);
20262d4: 7f ff 87 e3 call 2008260 <free> <== NOT EXECUTED
20262d8: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
rtems_disk_release(fs_info->vol.dd);
20262dc: 7f ff 83 06 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
20262e0: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
if (rc)
20262e4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
20262e8: 02 80 00 06 be 2026300 <fat_shutdown_drive+0x10c> <== NOT EXECUTED
20262ec: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
20262f0: 40 00 77 e9 call 2044294 <__errno> <== NOT EXECUTED
20262f4: 01 00 00 00 nop <== NOT EXECUTED
20262f8: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
20262fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return rc;
}
2026300: 81 c7 e0 08 ret <== NOT EXECUTED
2026304: 91 e8 00 11 restore %g0, %l1, %o0 <== NOT EXECUTED
0203ff08 <fchdir>:
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
203ff08: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
203ff0c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED
203ff10: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <rtems_libio_number_iops><== NOT EXECUTED
203ff14: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
203ff18: 1a 80 00 0c bcc 203ff48 <fchdir+0x40> <== NOT EXECUTED
203ff1c: 01 00 00 00 nop <== NOT EXECUTED
iop = rtems_libio_iop( fd );
203ff20: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
203ff24: e4 00 63 a4 ld [ %g1 + 0x3a4 ], %l2 ! 206eba4 <rtems_libio_iops><== NOT EXECUTED
203ff28: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
203ff2c: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
203ff30: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
203ff34: a4 04 80 18 add %l2, %i0, %l2 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
203ff38: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
203ff3c: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
203ff40: 32 80 00 06 bne,a 203ff58 <fchdir+0x50> <== NOT EXECUTED
203ff44: c2 04 a0 28 ld [ %l2 + 0x28 ], %g1 <== NOT EXECUTED
203ff48: 40 00 10 d3 call 2044294 <__errno> <== NOT EXECUTED
203ff4c: 01 00 00 00 nop <== NOT EXECUTED
203ff50: 10 80 00 15 b 203ffa4 <fchdir+0x9c> <== NOT EXECUTED
203ff54: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( !iop->pathinfo.ops ) {
203ff58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ff5c: 02 80 00 06 be 203ff74 <fchdir+0x6c> <== NOT EXECUTED
203ff60: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( !iop->pathinfo.ops->node_type_h ) {
203ff64: c2 00 60 10 ld [ %g1 + 0x10 ], %g1 <== NOT EXECUTED
203ff68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ff6c: 32 80 00 06 bne,a 203ff84 <fchdir+0x7c> <== NOT EXECUTED
203ff70: a4 04 a0 1c add %l2, 0x1c, %l2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
203ff74: 40 00 10 c8 call 2044294 <__errno> <== NOT EXECUTED
203ff78: 01 00 00 00 nop <== NOT EXECUTED
203ff7c: 10 80 00 0a b 203ffa4 <fchdir+0x9c> <== NOT EXECUTED
203ff80: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
}
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
203ff84: 9f c0 40 00 call %g1 <== NOT EXECUTED
203ff88: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203ff8c: 80 a2 20 01 cmp %o0, 1 <== NOT EXECUTED
203ff90: 02 80 00 07 be 203ffac <fchdir+0xa4> <== NOT EXECUTED
203ff94: 23 00 81 ab sethi %hi(0x206ac00), %l1 <== NOT EXECUTED
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
203ff98: 40 00 10 bf call 2044294 <__errno> <== NOT EXECUTED
203ff9c: 01 00 00 00 nop <== NOT EXECUTED
203ffa0: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14> <== NOT EXECUTED
203ffa4: 10 80 00 1c b 2040014 <fchdir+0x10c> <== NOT EXECUTED
203ffa8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
203ffac: e6 04 61 64 ld [ %l1 + 0x164 ], %l3 <== NOT EXECUTED
203ffb0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203ffb4: a6 04 e0 04 add %l3, 4, %l3 <== NOT EXECUTED
203ffb8: a0 07 bf d8 add %fp, -40, %l0 <== NOT EXECUTED
203ffbc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ffc0: 40 00 1e 01 call 20477c4 <memcpy> <== NOT EXECUTED
203ffc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
203ffc8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ffcc: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203ffd0: 40 00 1d fd call 20477c4 <memcpy> <== NOT EXECUTED
203ffd4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
203ffd8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203ffdc: 11 00 81 a3 sethi %hi(0x2068c00), %o0 <== NOT EXECUTED
203ffe0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ffe4: 90 12 22 88 or %o0, 0x288, %o0 <== NOT EXECUTED
203ffe8: 96 07 bf ec add %fp, -20, %o3 <== NOT EXECUTED
203ffec: 7f ff 20 80 call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
203fff0: 98 10 20 00 clr %o4 <== NOT EXECUTED
203fff4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203fff8: 02 80 00 09 be 204001c <fchdir+0x114> <== NOT EXECUTED
203fffc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
2040000: d0 04 61 64 ld [ %l1 + 0x164 ], %o0 <== NOT EXECUTED
2040004: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2040008: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED
204000c: 40 00 1d ee call 20477c4 <memcpy> <== NOT EXECUTED
2040010: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
return -1;
2040014: 81 c7 e0 08 ret <== NOT EXECUTED
2040018: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
/* release the old one */
rtems_filesystem_freenode( &saved );
204001c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040020: 22 80 00 09 be,a 2040044 <fchdir+0x13c> <== NOT EXECUTED
2040024: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2040028: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 206ac1c <rtems_shell_Initial_commands+0xc0><== NOT EXECUTED
204002c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2040030: 22 80 00 05 be,a 2040044 <fchdir+0x13c> <== NOT EXECUTED
2040034: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2040038: 9f c0 40 00 call %g1 <== NOT EXECUTED
204003c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_current = loc;
2040040: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2040044: d0 00 61 64 ld [ %g1 + 0x164 ], %o0 ! 206ad64 <rtems_current_user_env><== NOT EXECUTED
2040048: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
204004c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2040050: 90 02 20 04 add %o0, 4, %o0 <== NOT EXECUTED
2040054: 40 00 1d dc call 20477c4 <memcpy> <== NOT EXECUTED
2040058: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
204005c: 81 c7 e0 08 ret <== NOT EXECUTED
2040060: 81 e8 00 00 restore <== NOT EXECUTED
02028c88 <fchmod>:
int fchmod(
int fd,
mode_t mode
)
{
2028c88: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
2028c8c: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED
2028c90: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <rtems_libio_number_iops><== NOT EXECUTED
2028c94: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2028c98: 1a 80 00 0c bcc 2028cc8 <fchmod+0x40> <== NOT EXECUTED
2028c9c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
iop = rtems_libio_iop( fd );
2028ca0: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2028ca4: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 206eba4 <rtems_libio_iops><== NOT EXECUTED
2028ca8: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
2028cac: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
2028cb0: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
2028cb4: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
2028cb8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED
2028cbc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
2028cc0: 32 80 00 06 bne,a 2028cd8 <fchmod+0x50> <== NOT EXECUTED
2028cc4: c2 02 20 40 ld [ %o0 + 0x40 ], %g1 <== NOT EXECUTED
2028cc8: 40 00 6d 73 call 2044294 <__errno> <== NOT EXECUTED
2028ccc: 01 00 00 00 nop <== NOT EXECUTED
2028cd0: 10 80 00 09 b 2028cf4 <fchmod+0x6c> <== NOT EXECUTED
2028cd4: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
if ( !iop->handlers->fchmod_h )
2028cd8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2028cdc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028ce0: 32 80 00 08 bne,a 2028d00 <fchmod+0x78> <== NOT EXECUTED
2028ce4: c2 02 20 24 ld [ %o0 + 0x24 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028ce8: 40 00 6d 6b call 2044294 <__errno> <== NOT EXECUTED
2028cec: 01 00 00 00 nop <== NOT EXECUTED
2028cf0: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
2028cf4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028cf8: 10 80 00 05 b 2028d0c <fchmod+0x84> <== NOT EXECUTED
2028cfc: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
2028d00: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2028d04: 9f c0 40 00 call %g1 <== NOT EXECUTED
2028d08: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
}
2028d0c: 81 c7 e0 08 ret <== NOT EXECUTED
2028d10: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02028d14 <fchown>:
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
2028d14: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
2028d18: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED
2028d1c: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <rtems_libio_number_iops><== NOT EXECUTED
2028d20: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2028d24: 1a 80 00 0c bcc 2028d54 <fchown+0x40> <== NOT EXECUTED
2028d28: 01 00 00 00 nop <== NOT EXECUTED
iop = rtems_libio_iop( fd );
2028d2c: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2028d30: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 206eba4 <rtems_libio_iops><== NOT EXECUTED
2028d34: 83 2e 20 06 sll %i0, 6, %g1 <== NOT EXECUTED
2028d38: b1 2e 20 03 sll %i0, 3, %i0 <== NOT EXECUTED
2028d3c: b0 06 00 01 add %i0, %g1, %i0 <== NOT EXECUTED
2028d40: 90 02 00 18 add %o0, %i0, %o0 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
2028d44: c2 02 20 18 ld [ %o0 + 0x18 ], %g1 <== NOT EXECUTED
2028d48: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
2028d4c: 12 80 00 06 bne 2028d64 <fchown+0x50> <== NOT EXECUTED
2028d50: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2028d54: 40 00 6d 50 call 2044294 <__errno> <== NOT EXECUTED
2028d58: 01 00 00 00 nop <== NOT EXECUTED
2028d5c: 10 80 00 0f b 2028d98 <fchown+0x84> <== NOT EXECUTED
2028d60: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
2028d64: 32 80 00 06 bne,a 2028d7c <fchown+0x68> <== NOT EXECUTED
2028d68: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
2028d6c: 40 00 6d 4a call 2044294 <__errno> <== NOT EXECUTED
2028d70: 01 00 00 00 nop <== NOT EXECUTED
2028d74: 10 80 00 09 b 2028d98 <fchown+0x84> <== NOT EXECUTED
2028d78: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
if ( !iop->pathinfo.ops->chown_h )
2028d7c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2028d80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2028d84: 12 80 00 08 bne 2028da4 <fchown+0x90> <== NOT EXECUTED
2028d88: 93 2e 60 10 sll %i1, 0x10, %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028d8c: 40 00 6d 42 call 2044294 <__errno> <== NOT EXECUTED
2028d90: 01 00 00 00 nop <== NOT EXECUTED
2028d94: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
2028d98: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2028d9c: 10 80 00 07 b 2028db8 <fchown+0xa4> <== NOT EXECUTED
2028da0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
2028da4: 95 2e a0 10 sll %i2, 0x10, %o2 <== NOT EXECUTED
2028da8: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
2028dac: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
2028db0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2028db4: 95 32 a0 10 srl %o2, 0x10, %o2 <== NOT EXECUTED
}
2028db8: 81 c7 e0 08 ret <== NOT EXECUTED
2028dbc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0204008c <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
204008c: 9d e3 bf 98 save %sp, -104, %sp
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
2040090: 03 00 81 aa sethi %hi(0x206a800), %g1
2040094: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <rtems_libio_number_iops>
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
2040098: 84 07 a0 4c add %fp, 0x4c, %g2
204009c: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
20400a0: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
20400a4: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
20400a8: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
20400ac: 80 a6 00 01 cmp %i0, %g1
20400b0: 1a 80 00 0c bcc 20400e0 <fcntl+0x54> <== NEVER TAKEN
20400b4: c4 27 bf fc st %g2, [ %fp + -4 ]
iop = rtems_libio_iop( fd );
20400b8: 07 00 81 ba sethi %hi(0x206e800), %g3
20400bc: c6 00 e3 a4 ld [ %g3 + 0x3a4 ], %g3 ! 206eba4 <rtems_libio_iops>
20400c0: 89 2e 20 06 sll %i0, 6, %g4
20400c4: a1 2e 20 03 sll %i0, 3, %l0
20400c8: a0 04 00 04 add %l0, %g4, %l0
20400cc: a0 00 c0 10 add %g3, %l0, %l0
rtems_libio_check_is_open(iop);
20400d0: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
20400d4: 80 8a 21 00 btst 0x100, %o0
20400d8: 12 80 00 06 bne 20400f0 <fcntl+0x64> <== ALWAYS TAKEN
20400dc: 80 a6 60 09 cmp %i1, 9
20400e0: 40 00 10 6d call 2044294 <__errno> <== NOT EXECUTED
20400e4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20400e8: 10 80 00 51 b 204022c <fcntl+0x1a0> <== NOT EXECUTED
20400ec: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
20400f0: 18 80 00 4c bgu 2040220 <fcntl+0x194>
20400f4: 89 2e 60 02 sll %i1, 2, %g4
20400f8: 1b 00 81 00 sethi %hi(0x2040000), %o5
20400fc: 9a 13 60 64 or %o5, 0x64, %o5 ! 2040064 <fchdir+0x15c>
2040100: c8 03 40 04 ld [ %o5 + %g4 ], %g4
2040104: 81 c1 00 00 jmp %g4
2040108: 01 00 00 00 nop
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
204010c: c4 00 80 00 ld [ %g2 ], %g2
if ( fd2 )
2040110: 80 a0 a0 00 cmp %g2, 0
2040114: 02 80 00 09 be 2040138 <fcntl+0xac> <== ALWAYS TAKEN
2040118: 80 a0 80 01 cmp %g2, %g1
diop = rtems_libio_iop( fd2 );
204011c: 1a 80 00 0c bcc 204014c <fcntl+0xc0> <== NOT EXECUTED
2040120: a2 10 20 00 clr %l1 <== NOT EXECUTED
2040124: 83 28 a0 06 sll %g2, 6, %g1 <== NOT EXECUTED
2040128: a3 28 a0 03 sll %g2, 3, %l1 <== NOT EXECUTED
204012c: a2 04 40 01 add %l1, %g1, %l1 <== NOT EXECUTED
2040130: 10 80 00 07 b 204014c <fcntl+0xc0> <== NOT EXECUTED
2040134: a2 00 c0 11 add %g3, %l1, %l1 <== NOT EXECUTED
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
2040138: 7f ff 21 66 call 20086d0 <rtems_libio_allocate>
204013c: b0 10 3f ff mov -1, %i0
if ( diop == 0 ) {
2040140: a2 92 20 00 orcc %o0, 0, %l1
2040144: 02 80 00 4d be 2040278 <fcntl+0x1ec> <== NEVER TAKEN
2040148: 01 00 00 00 nop
break;
}
}
diop->handlers = iop->handlers;
diop->file_info = iop->file_info;
204014c: c4 04 20 3c ld [ %l0 + 0x3c ], %g2
diop->flags = iop->flags;
2040150: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
2040154: c6 04 20 40 ld [ %l0 + 0x40 ], %g3
diop->file_info = iop->file_info;
2040158: c4 24 60 3c st %g2, [ %l1 + 0x3c ]
diop->flags = iop->flags;
204015c: c2 24 60 18 st %g1, [ %l1 + 0x18 ]
ret = -1;
break;
}
}
diop->handlers = iop->handlers;
2040160: c6 24 60 40 st %g3, [ %l1 + 0x40 ]
diop->file_info = iop->file_info;
diop->flags = iop->flags;
diop->pathinfo = iop->pathinfo;
2040164: 90 04 60 1c add %l1, 0x1c, %o0
2040168: 92 04 20 1c add %l0, 0x1c, %o1
204016c: 40 00 1d 96 call 20477c4 <memcpy>
2040170: 94 10 20 14 mov 0x14, %o2
ret = (int) (diop - rtems_libio_iops);
2040174: 03 00 81 ba sethi %hi(0x206e800), %g1
2040178: f0 00 63 a4 ld [ %g1 + 0x3a4 ], %i0 ! 206eba4 <rtems_libio_iops>
204017c: a2 24 40 18 sub %l1, %i0, %l1
2040180: a3 3c 60 03 sra %l1, 3, %l1
2040184: 85 2c 60 06 sll %l1, 6, %g2
2040188: 83 2c 60 03 sll %l1, 3, %g1
204018c: 82 20 80 01 sub %g2, %g1, %g1
2040190: 85 28 60 06 sll %g1, 6, %g2
2040194: 82 00 40 02 add %g1, %g2, %g1
2040198: 82 00 40 11 add %g1, %l1, %g1
204019c: b1 28 60 0f sll %g1, 0xf, %i0
20401a0: b0 26 00 01 sub %i0, %g1, %i0
20401a4: b1 2e 20 03 sll %i0, 3, %i0
20401a8: 10 80 00 24 b 2040238 <fcntl+0x1ac>
20401ac: b0 06 00 11 add %i0, %l1, %i0
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
20401b0: b1 32 20 0b srl %o0, 0xb, %i0
20401b4: 10 80 00 24 b 2040244 <fcntl+0x1b8>
20401b8: b0 0e 20 01 and %i0, 1, %i0
* if a new process is exec()'ed. Since RTEMS does not support
* processes, then we can ignore this one except to make
* F_GETFD work.
*/
if ( va_arg( ap, int ) )
20401bc: c2 00 80 00 ld [ %g2 ], %g1
20401c0: 80 a0 60 00 cmp %g1, 0
20401c4: 22 80 00 03 be,a 20401d0 <fcntl+0x144> <== NEVER TAKEN
20401c8: 90 0a 37 ff and %o0, -2049, %o0 <== NOT EXECUTED
20401cc: 90 12 28 00 or %o0, 0x800, %o0
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
20401d0: d0 24 20 18 st %o0, [ %l0 + 0x18 ]
20401d4: 10 80 00 1c b 2040244 <fcntl+0x1b8>
20401d8: b0 10 20 00 clr %i0
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
20401dc: 7f ff 20 d2 call 2008524 <rtems_libio_to_fcntl_flags>
20401e0: 01 00 00 00 nop
20401e4: 10 80 00 15 b 2040238 <fcntl+0x1ac>
20401e8: b0 10 00 08 mov %o0, %i0
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
20401ec: d0 00 80 00 ld [ %g2 ], %o0
20401f0: 7f ff 21 6c call 20087a0 <rtems_libio_fcntl_flags>
20401f4: b0 10 20 00 clr %i0
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
20401f8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
20401fc: 90 0a 22 01 and %o0, 0x201, %o0
2040200: 82 08 7d fe and %g1, -514, %g1
2040204: 82 12 00 01 or %o0, %g1, %g1
2040208: 10 80 00 0f b 2040244 <fcntl+0x1b8>
204020c: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
2040210: 40 00 10 21 call 2044294 <__errno>
2040214: b0 10 3f ff mov -1, %i0
2040218: 10 80 00 05 b 204022c <fcntl+0x1a0>
204021c: 82 10 20 86 mov 0x86, %g1
ret = -1;
break;
default:
errno = EINVAL;
2040220: 40 00 10 1d call 2044294 <__errno>
2040224: b0 10 3f ff mov -1, %i0
2040228: 82 10 20 16 mov 0x16, %g1
204022c: c2 22 00 00 st %g1, [ %o0 ]
2040230: 81 c7 e0 08 ret
2040234: 81 e8 00 00 restore
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
2040238: 80 a6 20 00 cmp %i0, 0
204023c: 06 80 00 0f bl 2040278 <fcntl+0x1ec> <== NEVER TAKEN
2040240: 01 00 00 00 nop
if (iop->handlers->fcntl_h) {
2040244: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
2040248: c2 00 60 30 ld [ %g1 + 0x30 ], %g1
204024c: 80 a0 60 00 cmp %g1, 0
2040250: 02 bf ff f8 be 2040230 <fcntl+0x1a4> <== NEVER TAKEN
2040254: 92 10 00 10 mov %l0, %o1
int err = (*iop->handlers->fcntl_h)( cmd, iop );
2040258: 9f c0 40 00 call %g1
204025c: 90 10 00 19 mov %i1, %o0
if (err) {
2040260: a0 92 20 00 orcc %o0, 0, %l0
2040264: 02 80 00 05 be 2040278 <fcntl+0x1ec> <== ALWAYS TAKEN
2040268: 01 00 00 00 nop
errno = err;
204026c: 40 00 10 0a call 2044294 <__errno> <== NOT EXECUTED
2040270: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2040274: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
va_list ap;
va_start( ap, cmd );
ret = vfcntl(fd,cmd,ap);
va_end(ap);
return ret;
}
2040278: 81 c7 e0 08 ret
204027c: 81 e8 00 00 restore
02003720 <fdatasync>:
#include <rtems/seterr.h>
int fdatasync(
int fd
)
{
2003720: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
2003724: 03 00 80 7d sethi %hi(0x201f400), %g1
2003728: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 201f604 <rtems_libio_number_iops>
200372c: 80 a6 00 01 cmp %i0, %g1
2003730: 1a 80 00 0e bcc 2003768 <fdatasync+0x48> <== NEVER TAKEN
2003734: 01 00 00 00 nop
iop = rtems_libio_iop( fd );
2003738: 03 00 80 80 sethi %hi(0x2020000), %g1
200373c: d0 00 60 18 ld [ %g1 + 0x18 ], %o0 ! 2020018 <rtems_libio_iops>
2003740: 83 2e 20 06 sll %i0, 6, %g1
2003744: b1 2e 20 03 sll %i0, 3, %i0
2003748: b0 06 00 01 add %i0, %g1, %i0
200374c: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
2003750: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
2003754: 80 88 61 00 btst 0x100, %g1
2003758: 02 80 00 04 be 2003768 <fdatasync+0x48> <== NEVER TAKEN
200375c: 80 88 60 04 btst 4, %g1
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
2003760: 32 80 00 06 bne,a 2003778 <fdatasync+0x58>
2003764: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
2003768: 40 00 39 7b call 2011d54 <__errno>
200376c: 01 00 00 00 nop
2003770: 10 80 00 09 b 2003794 <fdatasync+0x74>
2003774: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
/*
* Now process the fdatasync().
*/
if ( !iop->handlers->fdatasync_h )
2003778: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
200377c: 80 a0 60 00 cmp %g1, 0
2003780: 12 80 00 08 bne 20037a0 <fdatasync+0x80> <== NEVER TAKEN
2003784: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
2003788: 40 00 39 73 call 2011d54 <__errno>
200378c: 01 00 00 00 nop
2003790: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86>
2003794: c2 22 00 00 st %g1, [ %o0 ]
2003798: 10 80 00 04 b 20037a8 <fdatasync+0x88>
200379c: 90 10 3f ff mov -1, %o0
return (*iop->handlers->fdatasync_h)( iop );
20037a0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20037a4: 01 00 00 00 nop <== NOT EXECUTED
}
20037a8: 81 c7 e0 08 ret
20037ac: 91 e8 00 08 restore %g0, %o0, %o0
0200a764 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200a764: 9d e3 bf 98 save %sp, -104, %sp
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
200a768: 03 00 80 77 sethi %hi(0x201dc00), %g1
200a76c: d0 00 63 38 ld [ %g1 + 0x338 ], %o0 ! 201df38 <rtems_pipe_semaphore>
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200a770: a0 10 00 18 mov %i0, %l0
)
{
pipe_control_t *pipe;
int err = 0;
if (rtems_semaphore_obtain(rtems_pipe_semaphore,
200a774: 92 10 20 00 clr %o1
200a778: 94 10 20 00 clr %o2
200a77c: 7f ff ee f2 call 2006344 <rtems_semaphore_obtain>
200a780: b0 10 3f fc mov -4, %i0
200a784: 80 a2 20 00 cmp %o0, 0
200a788: 12 80 00 ed bne 200ab3c <fifo_open+0x3d8> <== ALWAYS TAKEN
200a78c: 01 00 00 00 nop
RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL)
return -EINTR;
pipe = *pipep;
200a790: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED
if (pipe == NULL) {
200a794: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200a798: 32 80 00 58 bne,a 200a8f8 <fifo_open+0x194> <== NOT EXECUTED
200a79c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
200a7a0: 7f ff e1 b6 call 2002e78 <malloc> <== NOT EXECUTED
200a7a4: 90 10 20 34 mov 0x34, %o0 <== NOT EXECUTED
if (pipe == NULL)
200a7a8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
200a7ac: 02 80 00 50 be 200a8ec <fifo_open+0x188> <== NOT EXECUTED
200a7b0: a6 10 00 11 mov %l1, %l3 <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
200a7b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a7b8: 40 00 1a df call 2011334 <memset> <== NOT EXECUTED
200a7bc: 94 10 20 34 mov 0x34, %o2 <== NOT EXECUTED
pipe->Size = PIPE_BUF;
200a7c0: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
200a7c4: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED
200a7c8: 7f ff e1 ac call 2002e78 <malloc> <== NOT EXECUTED
200a7cc: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED
if (! pipe->Buffer)
200a7d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a7d4: 02 80 00 44 be 200a8e4 <fifo_open+0x180> <== NOT EXECUTED
200a7d8: d0 24 40 00 st %o0, [ %l1 ] <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
200a7dc: 25 00 80 76 sethi %hi(0x201d800), %l2 <== NOT EXECUTED
200a7e0: d0 4c a0 74 ldsb [ %l2 + 0x74 ], %o0 ! 201d874 <c.6910> <== NOT EXECUTED
200a7e4: 29 14 12 5c sethi %hi(0x50497000), %l4 <== NOT EXECUTED
200a7e8: 82 15 22 00 or %l4, 0x200, %g1 ! 50497200 <RAM_END+0x4e097200><== NOT EXECUTED
200a7ec: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a7f0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
200a7f4: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a7f8: 40 00 09 83 call 200ce04 <rtems_barrier_create> <== NOT EXECUTED
200a7fc: 96 04 60 2c add %l1, 0x2c, %o3 <== NOT EXECUTED
200a800: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a804: 12 80 00 36 bne 200a8dc <fifo_open+0x178> <== NOT EXECUTED
200a808: d0 4c a0 74 ldsb [ %l2 + 0x74 ], %o0 <== NOT EXECUTED
rtems_build_name ('P', 'I', 'r', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->readBarrier) != RTEMS_SUCCESSFUL)
goto err_rbar;
if (rtems_barrier_create(
200a80c: 03 14 12 5d sethi %hi(0x50497400), %g1 <== NOT EXECUTED
200a810: 82 10 63 00 or %g1, 0x300, %g1 ! 50497700 <RAM_END+0x4e097700><== NOT EXECUTED
200a814: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a818: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
200a81c: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a820: 40 00 09 79 call 200ce04 <rtems_barrier_create> <== NOT EXECUTED
200a824: 96 04 60 30 add %l1, 0x30, %o3 <== NOT EXECUTED
200a828: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a82c: 12 80 00 2a bne 200a8d4 <fifo_open+0x170> <== NOT EXECUTED
200a830: d0 4c a0 74 ldsb [ %l2 + 0x74 ], %o0 <== NOT EXECUTED
rtems_build_name ('P', 'I', 'w', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->writeBarrier) != RTEMS_SUCCESSFUL)
goto err_wbar;
if (rtems_semaphore_create(
200a834: a8 15 23 00 or %l4, 0x300, %l4 <== NOT EXECUTED
200a838: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200a83c: 90 12 00 14 or %o0, %l4, %o0 <== NOT EXECUTED
200a840: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
200a844: 96 10 20 00 clr %o3 <== NOT EXECUTED
200a848: 7f ff ee 1d call 20060bc <rtems_semaphore_create> <== NOT EXECUTED
200a84c: 98 04 60 28 add %l1, 0x28, %o4 <== NOT EXECUTED
200a850: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a854: 12 80 00 1e bne 200a8cc <fifo_open+0x168> <== NOT EXECUTED
200a858: 29 00 80 7a sethi %hi(0x201e800), %l4 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
200a85c: d2 04 60 2c ld [ %l1 + 0x2c ], %o1 <== NOT EXECUTED
200a860: b0 07 bf f8 add %fp, -8, %i0 <== NOT EXECUTED
200a864: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
200a868: 7f ff f4 ec call 2007c18 <_Objects_Get> <== NOT EXECUTED
200a86c: 90 15 23 b8 or %l4, 0x3b8, %o0 <== NOT EXECUTED
/* Set barriers to be interruptible by signals. */
static void pipe_interruptible(pipe_control_t *pipe)
{
Objects_Locations location;
_Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
200a870: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED
200a874: 27 04 00 00 sethi %hi(0x10000000), %l3 <== NOT EXECUTED
200a878: 82 10 40 13 or %g1, %l3, %g1 <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
_Thread_Enable_dispatch();
200a87c: 7f ff f7 6a call 2008624 <_Thread_Enable_dispatch> <== NOT EXECUTED
200a880: c2 22 20 4c st %g1, [ %o0 + 0x4c ] <== NOT EXECUTED
200a884: d2 04 60 30 ld [ %l1 + 0x30 ], %o1 <== NOT EXECUTED
200a888: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
200a88c: 7f ff f4 e3 call 2007c18 <_Objects_Get> <== NOT EXECUTED
200a890: 90 15 23 b8 or %l4, 0x3b8, %o0 <== NOT EXECUTED
_Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
200a894: c2 02 20 4c ld [ %o0 + 0x4c ], %g1 <== NOT EXECUTED
200a898: a6 10 40 13 or %g1, %l3, %l3 <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
_Thread_Enable_dispatch();
200a89c: 7f ff f7 62 call 2008624 <_Thread_Enable_dispatch> <== NOT EXECUTED
200a8a0: e6 22 20 4c st %l3, [ %o0 + 0x4c ] <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
200a8a4: c2 0c a0 74 ldub [ %l2 + 0x74 ], %g1 <== NOT EXECUTED
200a8a8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
200a8ac: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
200a8b0: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
200a8b4: 80 a0 60 7a cmp %g1, 0x7a <== NOT EXECUTED
200a8b8: 12 80 00 0f bne 200a8f4 <fifo_open+0x190> <== NOT EXECUTED
200a8bc: c4 2c a0 74 stb %g2, [ %l2 + 0x74 ] <== NOT EXECUTED
c = 'a';
200a8c0: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED
200a8c4: 10 80 00 0c b 200a8f4 <fifo_open+0x190> <== NOT EXECUTED
200a8c8: c2 2c a0 74 stb %g1, [ %l2 + 0x74 ] <== NOT EXECUTED
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
200a8cc: 40 00 09 7c call 200cebc <rtems_barrier_delete> <== NOT EXECUTED
200a8d0: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
err_wbar:
rtems_barrier_delete(pipe->readBarrier);
200a8d4: 40 00 09 7a call 200cebc <rtems_barrier_delete> <== NOT EXECUTED
200a8d8: d0 04 e0 2c ld [ %l3 + 0x2c ], %o0 <== NOT EXECUTED
err_rbar:
free(pipe->Buffer);
200a8dc: 7f ff e0 88 call 2002afc <free> <== NOT EXECUTED
200a8e0: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED
err_buf:
free(pipe);
200a8e4: 7f ff e0 86 call 2002afc <free> <== NOT EXECUTED
200a8e8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
200a8ec: 10 80 00 14 b 200a93c <fifo_open+0x1d8> <== NOT EXECUTED
200a8f0: b0 10 3f f4 mov -12, %i0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200a8f4: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200a8f8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a8fc: 7f ff ee 92 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a900: 94 10 20 00 clr %o2 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200a904: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200a908: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
200a90c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200a910: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
200a914: b0 0e 20 04 and %i0, 4, %i0 <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
200a918: 12 80 00 09 bne 200a93c <fifo_open+0x1d8> <== NOT EXECUTED
200a91c: b0 06 3f fc add %i0, -4, %i0 <== NOT EXECUTED
if (err)
200a920: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a924: 22 80 00 06 be,a 200a93c <fifo_open+0x1d8> <== NOT EXECUTED
200a928: e2 24 00 00 st %l1, [ %l0 ] <== NOT EXECUTED
pipe_free(pipe);
200a92c: 7f ff ff 3e call 200a624 <pipe_free> <== NOT EXECUTED
200a930: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
else
*pipep = pipe;
}
out:
rtems_semaphore_release(rtems_pipe_semaphore);
200a934: 10 80 00 03 b 200a940 <fifo_open+0x1dc> <== NOT EXECUTED
200a938: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200a93c: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200a940: 7f ff ee c8 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a944: d0 00 63 38 ld [ %g1 + 0x338 ], %o0 ! 201df38 <rtems_pipe_semaphore><== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
200a948: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a94c: 12 80 00 7c bne 200ab3c <fifo_open+0x3d8> <== NOT EXECUTED
200a950: 01 00 00 00 nop <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
200a954: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200a958: 82 08 60 06 and %g1, 6, %g1 <== NOT EXECUTED
200a95c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
200a960: 02 80 00 2e be 200aa18 <fifo_open+0x2b4> <== NOT EXECUTED
200a964: e2 04 00 00 ld [ %l0 ], %l1 <== NOT EXECUTED
200a968: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
200a96c: 02 80 00 56 be 200aac4 <fifo_open+0x360> <== NOT EXECUTED
200a970: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
200a974: 12 80 00 6a bne 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
200a978: 01 00 00 00 nop <== NOT EXECUTED
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
200a97c: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
200a980: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200a984: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
200a988: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200a98c: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED
200a990: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a994: 12 80 00 05 bne 200a9a8 <fifo_open+0x244> <== NOT EXECUTED
200a998: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
200a99c: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
200a9a0: 40 00 09 61 call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200a9a4: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
if (pipe->Writers == 0) {
200a9a8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
200a9ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a9b0: 12 80 00 5b bne 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
200a9b4: 01 00 00 00 nop <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
200a9b8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200a9bc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a9c0: 12 80 00 57 bne 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
200a9c4: 01 00 00 00 nop <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
200a9c8: e4 04 60 24 ld [ %l1 + 0x24 ], %l2 <== NOT EXECUTED
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
200a9cc: 7f ff ee a5 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a9d0: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
200a9d4: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200a9d8: 40 00 09 6a call 200cf80 <rtems_barrier_wait> <== NOT EXECUTED
200a9dc: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a9e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a9e4: 12 80 00 52 bne 200ab2c <fifo_open+0x3c8> <== NOT EXECUTED
200a9e8: 92 10 20 00 clr %o1 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
200a9ec: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200a9f0: 7f ff ee 55 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a9f4: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a9f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a9fc: 32 80 00 4d bne,a 200ab30 <fifo_open+0x3cc> <== NOT EXECUTED
200aa00: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
200aa04: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED
200aa08: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
200aa0c: 02 bf ff f0 be 200a9cc <fifo_open+0x268> <== NOT EXECUTED
200aa10: 01 00 00 00 nop <== NOT EXECUTED
200aa14: 30 80 00 42 b,a 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200aa18: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
200aa1c: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200aa20: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
} while (prevCounter == pipe->writerCounter);
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
200aa24: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200aa28: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED
200aa2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aa30: 12 80 00 05 bne 200aa44 <fifo_open+0x2e0> <== NOT EXECUTED
200aa34: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200aa38: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200aa3c: 40 00 09 3a call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200aa40: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
200aa44: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
200aa48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aa4c: 12 80 00 34 bne 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
200aa50: 01 00 00 00 nop <== NOT EXECUTED
200aa54: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
200aa58: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200aa5c: 22 80 00 07 be,a 200aa78 <fifo_open+0x314> <== NOT EXECUTED
200aa60: e4 04 60 20 ld [ %l1 + 0x20 ], %l2 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200aa64: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200aa68: 7f ff ee 7e call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200aa6c: b0 10 3f fa mov -6, %i0 <== NOT EXECUTED
err = -ENXIO;
goto out_error;
200aa70: 10 80 00 31 b 200ab34 <fifo_open+0x3d0> <== NOT EXECUTED
200aa74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
200aa78: 7f ff ee 7a call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200aa7c: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
200aa80: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
200aa84: 40 00 09 3f call 200cf80 <rtems_barrier_wait> <== NOT EXECUTED
200aa88: 92 10 20 00 clr %o1 <== NOT EXECUTED
200aa8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200aa90: 12 80 00 27 bne 200ab2c <fifo_open+0x3c8> <== NOT EXECUTED
200aa94: 92 10 20 00 clr %o1 <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
200aa98: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
200aa9c: 7f ff ee 2a call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200aaa0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200aaa4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200aaa8: 32 80 00 22 bne,a 200ab30 <fifo_open+0x3cc> <== NOT EXECUTED
200aaac: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
200aab0: c2 04 60 20 ld [ %l1 + 0x20 ], %g1 <== NOT EXECUTED
200aab4: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
200aab8: 02 bf ff f0 be 200aa78 <fifo_open+0x314> <== NOT EXECUTED
200aabc: 01 00 00 00 nop <== NOT EXECUTED
200aac0: 30 80 00 17 b,a 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
200aac4: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
200aac8: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200aacc: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
} while (prevCounter == pipe->readerCounter);
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
200aad0: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Readers ++ == 0)
200aad4: c6 24 60 10 st %g3, [ %l1 + 0x10 ] <== NOT EXECUTED
200aad8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200aadc: 12 80 00 05 bne 200aaf0 <fifo_open+0x38c> <== NOT EXECUTED
200aae0: c4 24 60 20 st %g2, [ %l1 + 0x20 ] <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
200aae4: d0 04 60 30 ld [ %l1 + 0x30 ], %o0 <== NOT EXECUTED
200aae8: 40 00 09 0f call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200aaec: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
200aaf0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
200aaf4: c4 04 60 24 ld [ %l1 + 0x24 ], %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200aaf8: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
if (pipe->Readers ++ == 0)
PIPE_WAKEUPWRITERS(pipe);
pipe->writerCounter ++;
200aafc: 84 00 a0 01 inc %g2 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
200ab00: c6 24 60 14 st %g3, [ %l1 + 0x14 ] <== NOT EXECUTED
200ab04: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200ab08: 12 80 00 05 bne 200ab1c <fifo_open+0x3b8> <== NOT EXECUTED
200ab0c: c4 24 60 24 st %g2, [ %l1 + 0x24 ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200ab10: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
200ab14: 40 00 09 04 call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200ab18: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
200ab1c: 7f ff ee 51 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200ab20: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
return 0;
200ab24: 81 c7 e0 08 ret <== NOT EXECUTED
200ab28: 81 e8 00 00 restore <== NOT EXECUTED
200ab2c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
out_error:
pipe_release(pipep, iop);
200ab30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200ab34: 7f ff fe c8 call 200a654 <pipe_release> <== NOT EXECUTED
200ab38: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
return err;
}
200ab3c: 81 c7 e0 08 ret
200ab40: 81 e8 00 00 restore
020037e0 <fpathconf>:
long fpathconf(
int fd,
int name
)
{
20037e0: 9d e3 bf a0 save %sp, -96, %sp
long return_value;
rtems_libio_t *iop;
rtems_filesystem_limits_and_options_t *the_limits;
rtems_libio_check_fd(fd);
20037e4: 03 00 80 7d sethi %hi(0x201f400), %g1
20037e8: c2 00 62 04 ld [ %g1 + 0x204 ], %g1 ! 201f604 <rtems_libio_number_iops>
20037ec: 80 a6 00 01 cmp %i0, %g1
20037f0: 1a 80 00 0b bcc 200381c <fpathconf+0x3c>
20037f4: 03 00 80 80 sethi %hi(0x2020000), %g1
iop = rtems_libio_iop(fd);
20037f8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 ! 2020018 <rtems_libio_iops>
20037fc: 85 2e 20 06 sll %i0, 6, %g2
2003800: b1 2e 20 03 sll %i0, 3, %i0
2003804: b0 06 00 02 add %i0, %g2, %i0
2003808: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_is_open(iop);
200380c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
2003810: 80 88 61 00 btst 0x100, %g1
2003814: 12 80 00 08 bne 2003834 <fpathconf+0x54> <== ALWAYS TAKEN
2003818: 80 a6 60 0b cmp %i1, 0xb
200381c: 40 00 39 4e call 2011d54 <__errno>
2003820: b0 10 3f ff mov -1, %i0
2003824: 82 10 20 09 mov 9, %g1
2003828: c2 22 00 00 st %g1, [ %o0 ]
200382c: 81 c7 e0 08 ret
2003830: 81 e8 00 00 restore
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
switch ( name ) {
2003834: 18 80 00 2c bgu 20038e4 <fpathconf+0x104>
2003838: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200383c: b3 2e 60 02 sll %i1, 2, %i1
2003840: 05 00 80 0d sethi %hi(0x2003400), %g2
2003844: 84 10 a3 b0 or %g2, 0x3b0, %g2 ! 20037b0 <fdatasync+0x90>
2003848: c4 00 80 19 ld [ %g2 + %i1 ], %g2
200384c: 81 c0 80 00 jmp %g2
2003850: 01 00 00 00 nop
case _PC_LINK_MAX:
return_value = the_limits->link_max;
2003854: f0 00 60 38 ld [ %g1 + 0x38 ], %i0
break;
2003858: 81 c7 e0 08 ret
200385c: 81 e8 00 00 restore
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
2003860: f0 00 60 3c ld [ %g1 + 0x3c ], %i0
break;
2003864: 81 c7 e0 08 ret
2003868: 81 e8 00 00 restore
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
200386c: f0 00 60 40 ld [ %g1 + 0x40 ], %i0
break;
2003870: 81 c7 e0 08 ret
2003874: 81 e8 00 00 restore
case _PC_NAME_MAX:
return_value = the_limits->name_max;
2003878: f0 00 60 44 ld [ %g1 + 0x44 ], %i0
break;
200387c: 81 c7 e0 08 ret
2003880: 81 e8 00 00 restore
case _PC_PATH_MAX:
return_value = the_limits->path_max;
2003884: f0 00 60 48 ld [ %g1 + 0x48 ], %i0
break;
2003888: 81 c7 e0 08 ret
200388c: 81 e8 00 00 restore
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
2003890: f0 00 60 4c ld [ %g1 + 0x4c ], %i0
break;
2003894: 81 c7 e0 08 ret
2003898: 81 e8 00 00 restore
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
200389c: f0 00 60 54 ld [ %g1 + 0x54 ], %i0
break;
20038a0: 81 c7 e0 08 ret
20038a4: 81 e8 00 00 restore
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
20038a8: f0 00 60 58 ld [ %g1 + 0x58 ], %i0
break;
20038ac: 81 c7 e0 08 ret
20038b0: 81 e8 00 00 restore
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
20038b4: f0 00 60 64 ld [ %g1 + 0x64 ], %i0
break;
20038b8: 81 c7 e0 08 ret
20038bc: 81 e8 00 00 restore
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
20038c0: f0 00 60 50 ld [ %g1 + 0x50 ], %i0
break;
20038c4: 81 c7 e0 08 ret
20038c8: 81 e8 00 00 restore
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
20038cc: f0 00 60 5c ld [ %g1 + 0x5c ], %i0
break;
20038d0: 81 c7 e0 08 ret
20038d4: 81 e8 00 00 restore
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
20038d8: f0 00 60 60 ld [ %g1 + 0x60 ], %i0
break;
20038dc: 81 c7 e0 08 ret
20038e0: 81 e8 00 00 restore
default:
rtems_set_errno_and_return_minus_one( EINVAL );
20038e4: 40 00 39 1c call 2011d54 <__errno>
20038e8: b0 10 3f ff mov -1, %i0
20038ec: 82 10 20 16 mov 0x16, %g1
20038f0: c2 22 00 00 st %g1, [ %o0 ]
break;
}
return return_value;
}
20038f4: 81 c7 e0 08 ret
20038f8: 81 e8 00 00 restore
02002afc <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
2002afc: 9d e3 bf a0 save %sp, -96, %sp
2002b00: 03 00 80 78 sethi %hi(0x201e000), %g1
2002b04: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 <rtems_malloc_statistics>
2002b08: c4 00 60 0c ld [ %g1 + 0xc ], %g2
2002b0c: b2 10 00 18 mov %i0, %i1
2002b10: 84 00 a0 01 inc %g2
if ( !ptr )
2002b14: 80 a6 20 00 cmp %i0, 0
2002b18: 02 80 00 21 be 2002b9c <free+0xa0>
2002b1c: c4 20 60 0c st %g2, [ %g1 + 0xc ]
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
2002b20: 03 00 80 79 sethi %hi(0x201e400), %g1
2002b24: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current>
2002b28: 80 a0 60 03 cmp %g1, 3
2002b2c: 12 80 00 09 bne 2002b50 <free+0x54> <== NEVER TAKEN
2002b30: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002b34: 40 00 00 6f call 2002cf0 <malloc_is_system_state_OK>
2002b38: 01 00 00 00 nop
2002b3c: 80 8a 20 ff btst 0xff, %o0
2002b40: 12 80 00 04 bne 2002b50 <free+0x54> <== ALWAYS TAKEN
2002b44: 03 00 80 77 sethi %hi(0x201dc00), %g1
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
2002b48: 40 00 00 7c call 2002d38 <malloc_deferred_free> <== NOT EXECUTED
2002b4c: 81 e8 00 00 restore <== NOT EXECUTED
#endif
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
2002b50: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1
2002b54: 80 a0 60 00 cmp %g1, 0
2002b58: 02 80 00 06 be 2002b70 <free+0x74> <== ALWAYS TAKEN
2002b5c: 21 00 80 75 sethi %hi(0x201d400), %l0
(*rtems_malloc_statistics_helpers->at_free)(ptr);
2002b60: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
2002b64: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002b68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
2002b6c: 21 00 80 75 sethi %hi(0x201d400), %l0 <== NOT EXECUTED
2002b70: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0 ! 201d6b0 <RTEMS_Malloc_Heap>
2002b74: 40 00 14 fe call 2007f6c <_Protected_heap_Free>
2002b78: 92 10 00 19 mov %i1, %o1
2002b7c: 80 8a 20 ff btst 0xff, %o0
2002b80: 12 80 00 07 bne 2002b9c <free+0xa0> <== ALWAYS TAKEN
2002b84: c2 04 22 b0 ld [ %l0 + 0x2b0 ], %g1
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
2002b88: 31 00 80 70 sethi %hi(0x201c000), %i0 <== NOT EXECUTED
2002b8c: f6 00 60 1c ld [ %g1 + 0x1c ], %i3 <== NOT EXECUTED
2002b90: f4 00 60 18 ld [ %g1 + 0x18 ], %i2 <== NOT EXECUTED
2002b94: 40 00 03 ac call 2003a44 <printk> <== NOT EXECUTED
2002b98: 91 ee 23 d8 restore %i0, 0x3d8, %o0 <== NOT EXECUTED
2002b9c: 81 c7 e0 08 ret
2002ba0: 81 e8 00 00 restore
0202a304 <free_user_env>:
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
202a304: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
202a308: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
202a30c: 82 10 63 fc or %g1, 0x3fc, %g1 ! 206ebfc <rtems_global_user_env><== NOT EXECUTED
202a310: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
202a314: 02 80 00 18 be 202a374 <free_user_env+0x70> <== NOT EXECUTED
202a318: 01 00 00 00 nop <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
202a31c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
202a320: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a324: 22 80 00 09 be,a 202a348 <free_user_env+0x44> <== NOT EXECUTED
202a328: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
202a32c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a330: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a334: 22 80 00 05 be,a 202a348 <free_user_env+0x44> <== NOT EXECUTED
202a338: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
202a33c: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a340: 90 06 20 04 add %i0, 4, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
202a344: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
202a348: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a34c: 02 80 00 08 be 202a36c <free_user_env+0x68> <== NOT EXECUTED
202a350: 01 00 00 00 nop <== NOT EXECUTED
202a354: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a358: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a35c: 02 80 00 04 be 202a36c <free_user_env+0x68> <== NOT EXECUTED
202a360: 01 00 00 00 nop <== NOT EXECUTED
202a364: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a368: 90 06 20 18 add %i0, 0x18, %o0 <== NOT EXECUTED
free(env);
202a36c: 7f ff 77 bd call 2008260 <free> <== NOT EXECUTED
202a370: 81 e8 00 00 restore <== NOT EXECUTED
202a374: 81 c7 e0 08 ret <== NOT EXECUTED
202a378: 81 e8 00 00 restore <== NOT EXECUTED
0201b2ec <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
201b2ec: 9d e3 bf a0 save %sp, -96, %sp
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
201b2f0: 80 a6 60 00 cmp %i1, 0
201b2f4: 32 80 00 06 bne,a 201b30c <fstat+0x20>
201b2f8: 03 00 80 75 sethi %hi(0x201d400), %g1
rtems_set_errno_and_return_minus_one( EFAULT );
201b2fc: 7f ff d5 93 call 2010948 <__errno>
201b300: 01 00 00 00 nop
201b304: 10 80 00 12 b 201b34c <fstat+0x60>
201b308: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe>
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
201b30c: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1
201b310: 80 a6 00 01 cmp %i0, %g1
201b314: 1a 80 00 0b bcc 201b340 <fstat+0x54>
201b318: 03 00 80 78 sethi %hi(0x201e000), %g1
201b31c: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 <rtems_libio_iops>
201b320: 85 2e 20 06 sll %i0, 6, %g2
201b324: b1 2e 20 03 sll %i0, 3, %i0
201b328: b0 06 00 02 add %i0, %g2, %i0
201b32c: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_fd( fd );
rtems_libio_check_is_open(iop);
201b330: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
201b334: 80 88 61 00 btst 0x100, %g1
201b338: 32 80 00 08 bne,a 201b358 <fstat+0x6c> <== ALWAYS TAKEN
201b33c: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
rtems_libio_check_fd( fd );
201b340: 7f ff d5 82 call 2010948 <__errno>
201b344: 01 00 00 00 nop
201b348: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
201b34c: c2 22 00 00 st %g1, [ %o0 ]
201b350: 10 80 00 15 b 201b3a4 <fstat+0xb8>
201b354: 90 10 3f ff mov -1, %o0
rtems_libio_check_is_open(iop);
if ( !iop->handlers )
201b358: 80 a0 60 00 cmp %g1, 0
201b35c: 02 bf ff f9 be 201b340 <fstat+0x54> <== NEVER TAKEN
201b360: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EBADF );
if ( !iop->handlers->fstat_h )
201b364: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
201b368: 80 a0 60 00 cmp %g1, 0
201b36c: 12 80 00 06 bne 201b384 <fstat+0x98> <== ALWAYS TAKEN
201b370: 92 10 20 00 clr %o1
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b374: 7f ff d5 75 call 2010948 <__errno> <== NOT EXECUTED
201b378: 01 00 00 00 nop <== NOT EXECUTED
201b37c: 10 bf ff f4 b 201b34c <fstat+0x60> <== NOT EXECUTED
201b380: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
201b384: 94 10 20 48 mov 0x48, %o2
201b388: 7f ff d7 eb call 2011334 <memset>
201b38c: 90 10 00 19 mov %i1, %o0
return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf );
201b390: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
201b394: 90 06 20 1c add %i0, 0x1c, %o0
201b398: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
201b39c: 9f c0 40 00 call %g1
201b3a0: 92 10 00 19 mov %i1, %o1
}
201b3a4: 81 c7 e0 08 ret
201b3a8: 91 e8 00 08 restore %g0, %o0, %o0
02028e98 <fsync>:
#include <rtems/seterr.h>
int fsync(
int fd
)
{
2028e98: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
2028e9c: 03 00 81 aa sethi %hi(0x206a800), %g1
2028ea0: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <rtems_libio_number_iops>
2028ea4: 80 a6 00 01 cmp %i0, %g1
2028ea8: 1a 80 00 10 bcc 2028ee8 <fsync+0x50> <== NEVER TAKEN
2028eac: 01 00 00 00 nop
iop = rtems_libio_iop( fd );
2028eb0: 03 00 81 ba sethi %hi(0x206e800), %g1
2028eb4: d0 00 63 a4 ld [ %g1 + 0x3a4 ], %o0 ! 206eba4 <rtems_libio_iops>
2028eb8: 83 2e 20 06 sll %i0, 6, %g1
2028ebc: b1 2e 20 03 sll %i0, 3, %i0
2028ec0: b0 06 00 01 add %i0, %g1, %i0
2028ec4: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
2028ec8: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
2028ecc: 80 88 61 00 btst 0x100, %g1
2028ed0: 02 80 00 06 be 2028ee8 <fsync+0x50> <== NEVER TAKEN
2028ed4: 01 00 00 00 nop
/*
* Now process the fsync().
*/
if ( !iop->handlers )
2028ed8: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
2028edc: 80 a0 60 00 cmp %g1, 0
2028ee0: 32 80 00 06 bne,a 2028ef8 <fsync+0x60> <== ALWAYS TAKEN
2028ee4: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
rtems_set_errno_and_return_minus_one( EBADF );
2028ee8: 40 00 6c eb call 2044294 <__errno> <== NOT EXECUTED
2028eec: 01 00 00 00 nop <== NOT EXECUTED
2028ef0: 10 80 00 08 b 2028f10 <fsync+0x78> <== NOT EXECUTED
2028ef4: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
if ( !iop->handlers->fsync_h )
2028ef8: 80 a0 60 00 cmp %g1, 0
2028efc: 12 80 00 08 bne 2028f1c <fsync+0x84>
2028f00: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
2028f04: 40 00 6c e4 call 2044294 <__errno>
2028f08: 01 00 00 00 nop
2028f0c: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86>
2028f10: c2 22 00 00 st %g1, [ %o0 ]
2028f14: 10 80 00 04 b 2028f24 <fsync+0x8c>
2028f18: 90 10 3f ff mov -1, %o0
return (*iop->handlers->fsync_h)( iop );
2028f1c: 9f c0 40 00 call %g1
2028f20: 01 00 00 00 nop
}
2028f24: 81 c7 e0 08 ret
2028f28: 91 e8 00 08 restore %g0, %o0, %o0
0200be64 <ftruncate>:
int ftruncate(
int fd,
off_t length
)
{
200be64: 9d e3 bf 88 save %sp, -120, %sp
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
200be68: 03 00 80 75 sethi %hi(0x201d400), %g1
200be6c: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 <rtems_libio_number_iops>
200be70: 80 a6 00 01 cmp %i0, %g1
200be74: 1a 80 00 0b bcc 200bea0 <ftruncate+0x3c> <== NEVER TAKEN
200be78: 85 2e 20 06 sll %i0, 6, %g2
iop = rtems_libio_iop( fd );
200be7c: 03 00 80 78 sethi %hi(0x201e000), %g1
200be80: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 <rtems_libio_iops>
200be84: b1 2e 20 03 sll %i0, 3, %i0
200be88: b0 06 00 02 add %i0, %g2, %i0
200be8c: b0 00 40 18 add %g1, %i0, %i0
rtems_libio_check_is_open(iop);
200be90: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200be94: 80 88 61 00 btst 0x100, %g1
200be98: 12 80 00 06 bne 200beb0 <ftruncate+0x4c> <== ALWAYS TAKEN
200be9c: 80 88 60 04 btst 4, %g1
200bea0: 40 00 12 aa call 2010948 <__errno> <== NOT EXECUTED
200bea4: 01 00 00 00 nop <== NOT EXECUTED
200bea8: 10 80 00 24 b 200bf38 <ftruncate+0xd4> <== NOT EXECUTED
200beac: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200beb0: 02 80 00 17 be 200bf0c <ftruncate+0xa8> <== NEVER TAKEN
200beb4: a0 07 bf ec add %fp, -20, %l0
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
200beb8: 92 06 20 1c add %i0, 0x1c, %o1
200bebc: 90 10 00 10 mov %l0, %o0
200bec0: 40 00 14 de call 2011238 <memcpy>
200bec4: 94 10 20 14 mov 0x14, %o2
if ( !loc.ops->node_type_h )
200bec8: c2 07 bf f8 ld [ %fp + -8 ], %g1
200becc: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
200bed0: 80 a0 60 00 cmp %g1, 0
200bed4: 02 80 00 16 be 200bf2c <ftruncate+0xc8> <== NEVER TAKEN
200bed8: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
200bedc: 9f c0 40 00 call %g1
200bee0: 90 10 00 10 mov %l0, %o0
200bee4: 80 a2 20 01 cmp %o0, 1
200bee8: 32 80 00 06 bne,a 200bf00 <ftruncate+0x9c>
200beec: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
rtems_set_errno_and_return_minus_one( EISDIR );
200bef0: 40 00 12 96 call 2010948 <__errno>
200bef4: 01 00 00 00 nop
200bef8: 10 80 00 10 b 200bf38 <ftruncate+0xd4>
200befc: 82 10 20 15 mov 0x15, %g1 ! 15 <PROM_START+0x15>
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
200bf00: 80 88 60 04 btst 4, %g1
200bf04: 32 80 00 06 bne,a 200bf1c <ftruncate+0xb8> <== ALWAYS TAKEN
200bf08: c2 06 20 40 ld [ %i0 + 0x40 ], %g1
200bf0c: 40 00 12 8f call 2010948 <__errno> <== NOT EXECUTED
200bf10: 01 00 00 00 nop <== NOT EXECUTED
200bf14: 10 80 00 09 b 200bf38 <ftruncate+0xd4> <== NOT EXECUTED
200bf18: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
if ( !iop->handlers->ftruncate_h )
200bf1c: c2 00 60 20 ld [ %g1 + 0x20 ], %g1
200bf20: 80 a0 60 00 cmp %g1, 0
200bf24: 32 80 00 08 bne,a 200bf44 <ftruncate+0xe0> <== ALWAYS TAKEN
200bf28: 90 10 00 18 mov %i0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
200bf2c: 40 00 12 87 call 2010948 <__errno> <== NOT EXECUTED
200bf30: 01 00 00 00 nop <== NOT EXECUTED
200bf34: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
200bf38: c2 22 00 00 st %g1, [ %o0 ]
200bf3c: 10 80 00 05 b 200bf50 <ftruncate+0xec>
200bf40: 90 10 3f ff mov -1, %o0
return (*iop->handlers->ftruncate_h)( iop, length );
200bf44: 92 10 00 19 mov %i1, %o1
200bf48: 9f c0 40 00 call %g1
200bf4c: 94 10 00 1a mov %i2, %o2
}
200bf50: 81 c7 e0 08 ret
200bf54: 91 e8 00 08 restore %g0, %o0, %o0
02002810 <get_disk_entry>:
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_filesystem_split_dev_t(dev, major, minor);
if (major < disktab_size && disktab != NULL) {
2002810: 03 00 80 86 sethi %hi(0x2021800), %g1
2002814: c2 00 63 0c ld [ %g1 + 0x30c ], %g1 ! 2021b0c <disktab_size>
2002818: 80 a2 00 01 cmp %o0, %g1
200281c: 3a 80 00 20 bcc,a 200289c <get_disk_entry+0x8c> <== NEVER TAKEN
2002820: 90 10 20 00 clr %o0 <== NOT EXECUTED
2002824: 03 00 80 86 sethi %hi(0x2021800), %g1
2002828: c2 00 63 08 ld [ %g1 + 0x308 ], %g1 ! 2021b08 <disktab>
200282c: 80 a0 60 00 cmp %g1, 0
2002830: 22 80 00 1b be,a 200289c <get_disk_entry+0x8c> <== NEVER TAKEN
2002834: 90 10 20 00 clr %o0 <== NOT EXECUTED
rtems_disk_device_table *dtab = disktab + major;
2002838: 91 2a 20 03 sll %o0, 3, %o0
200283c: 84 00 40 08 add %g1, %o0, %g2
if (minor < dtab->size && dtab->minor != NULL) {
2002840: c4 00 a0 04 ld [ %g2 + 4 ], %g2
2002844: 80 a2 40 02 cmp %o1, %g2
2002848: 3a 80 00 15 bcc,a 200289c <get_disk_entry+0x8c> <== NEVER TAKEN
200284c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2002850: c2 00 40 08 ld [ %g1 + %o0 ], %g1
2002854: 80 a0 60 00 cmp %g1, 0
2002858: 02 80 00 10 be 2002898 <get_disk_entry+0x88> <== NEVER TAKEN
200285c: 93 2a 60 02 sll %o1, 2, %o1
rtems_disk_device *dd = dtab->minor [minor];
2002860: d0 00 40 09 ld [ %g1 + %o1 ], %o0
if (dd != NULL && !lookup_only) {
2002864: 80 a2 20 00 cmp %o0, 0
2002868: 02 80 00 0d be 200289c <get_disk_entry+0x8c>
200286c: 80 8a a0 ff btst 0xff, %o2
2002870: 12 80 00 0b bne 200289c <get_disk_entry+0x8c>
2002874: 01 00 00 00 nop
if (!dd->deleted) {
2002878: c2 0a 20 30 ldub [ %o0 + 0x30 ], %g1
200287c: 80 a0 60 00 cmp %g1, 0
2002880: 32 80 00 07 bne,a 200289c <get_disk_entry+0x8c>
2002884: 90 10 20 00 clr %o0
++dd->uses;
2002888: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
200288c: 82 00 60 01 inc %g1
2002890: 81 c3 e0 08 retl
2002894: c2 22 20 14 st %g1, [ %o0 + 0x14 ]
2002898: 90 10 20 00 clr %o0 <== NOT EXECUTED
return dd;
}
}
return NULL;
}
200289c: 81 c3 e0 08 retl
0205de08 <getdents>:
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
205de08: 9d e3 bf 88 save %sp, -120, %sp
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
205de0c: 03 00 81 aa sethi %hi(0x206a800), %g1
205de10: c2 00 61 34 ld [ %g1 + 0x134 ], %g1 ! 206a934 <rtems_libio_number_iops>
205de14: 80 a6 00 01 cmp %i0, %g1
205de18: 1a 80 00 08 bcc 205de38 <getdents+0x30> <== NEVER TAKEN
205de1c: a0 10 20 00 clr %l0
205de20: 03 00 81 ba sethi %hi(0x206e800), %g1
205de24: e0 00 63 a4 ld [ %g1 + 0x3a4 ], %l0 ! 206eba4 <rtems_libio_iops>
205de28: 83 2e 20 06 sll %i0, 6, %g1
205de2c: b1 2e 20 03 sll %i0, 3, %i0
205de30: b0 06 00 01 add %i0, %g1, %i0
205de34: a0 04 00 18 add %l0, %i0, %l0
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
205de38: a2 07 bf ec add %fp, -20, %l1
205de3c: 92 04 20 1c add %l0, 0x1c, %o1
205de40: 90 10 00 11 mov %l1, %o0
205de44: 7f ff a6 60 call 20477c4 <memcpy>
205de48: 94 10 20 14 mov 0x14, %o2
if ( !loc.ops->node_type_h )
205de4c: c2 07 bf f8 ld [ %fp + -8 ], %g1
205de50: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
205de54: 80 a0 60 00 cmp %g1, 0
205de58: 02 80 00 11 be 205de9c <getdents+0x94> <== NEVER TAKEN
205de5c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
205de60: 9f c0 40 00 call %g1
205de64: 90 10 00 11 mov %l1, %o0
205de68: 80 a2 20 01 cmp %o0, 1
205de6c: 22 80 00 08 be,a 205de8c <getdents+0x84>
205de70: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
rtems_set_errno_and_return_minus_one( ENOTDIR );
205de74: 7f ff 99 08 call 2044294 <__errno>
205de78: 01 00 00 00 nop
205de7c: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14>
205de80: c2 22 00 00 st %g1, [ %o0 ]
205de84: 10 80 00 0d b 205deb8 <getdents+0xb0>
205de88: 90 10 3f ff mov -1, %o0
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
if ( !iop->handlers->read_h )
205de8c: c2 00 60 08 ld [ %g1 + 8 ], %g1
205de90: 80 a0 60 00 cmp %g1, 0
205de94: 32 80 00 06 bne,a 205deac <getdents+0xa4> <== ALWAYS TAKEN
205de98: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
205de9c: 7f ff 98 fe call 2044294 <__errno> <== NOT EXECUTED
205dea0: 01 00 00 00 nop <== NOT EXECUTED
205dea4: 10 bf ff f7 b 205de80 <getdents+0x78> <== NOT EXECUTED
205dea8: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
205deac: 92 10 00 19 mov %i1, %o1
205deb0: 9f c0 40 00 call %g1
205deb4: 94 10 00 1a mov %i2, %o2
}
205deb8: 81 c7 e0 08 ret
205debc: 91 e8 00 08 restore %g0, %o0, %o0
02029040 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
2029040: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2029044: c2 00 61 64 ld [ %g1 + 0x164 ], %g1 ! 206ad64 <rtems_current_user_env><== NOT EXECUTED
return _POSIX_types_Gid;
}
2029048: 81 c3 e0 08 retl <== NOT EXECUTED
202904c: d0 10 60 34 lduh [ %g1 + 0x34 ], %o0 <== NOT EXECUTED
020296cc <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
20296cc: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
int match;
init_etc_passwd_group();
20296d0: 7f ff ff b6 call 20295a8 <init_etc_passwd_group>
20296d4: 01 00 00 00 nop
if ((fp = fopen("/etc/group", "r")) == NULL) {
20296d8: 11 00 81 93 sethi %hi(0x2064c00), %o0
20296dc: 13 00 81 93 sethi %hi(0x2064c00), %o1
20296e0: 90 12 21 58 or %o0, 0x158, %o0
20296e4: 40 00 6d 94 call 2044d34 <fopen>
20296e8: 92 12 60 e0 or %o1, 0xe0, %o1
20296ec: a0 92 20 00 orcc %o0, 0, %l0
20296f0: 12 80 00 08 bne 2029710 <getgr_r+0x44> <== ALWAYS TAKEN
20296f4: 92 10 00 1a mov %i2, %o1
errno = EINVAL;
20296f8: 40 00 6a e7 call 2044294 <__errno> <== NOT EXECUTED
20296fc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029700: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2029704: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029708: 81 c7 e0 08 ret <== NOT EXECUTED
202970c: 81 e8 00 00 restore <== NOT EXECUTED
return -1;
}
for(;;) {
if (!scangr(fp, grp, buffer, bufsize)) {
2029710: 94 10 00 1b mov %i3, %o2
2029714: 96 10 00 1c mov %i4, %o3
2029718: 7f ff fe ea call 20292c0 <scangr>
202971c: 90 10 00 10 mov %l0, %o0
2029720: 80 a2 20 00 cmp %o0, 0
2029724: 12 80 00 0a bne 202974c <getgr_r+0x80> <== ALWAYS TAKEN
2029728: 80 a6 20 00 cmp %i0, 0
errno = EINVAL;
202972c: 40 00 6a da call 2044294 <__errno> <== NOT EXECUTED
2029730: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029734: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2029738: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
fclose(fp);
202973c: 40 00 6b 2e call 20443f4 <fclose> <== NOT EXECUTED
2029740: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
2029744: 81 c7 e0 08 ret <== NOT EXECUTED
2029748: 81 e8 00 00 restore <== NOT EXECUTED
}
if (name) {
202974c: 22 80 00 07 be,a 2029768 <getgr_r+0x9c> <== NEVER TAKEN
2029750: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED
match = (strcmp(grp->gr_name, name) == 0);
2029754: d0 06 80 00 ld [ %i2 ], %o0
2029758: 40 00 84 8a call 204a980 <strcmp>
202975c: 92 10 00 18 mov %i0, %o1
2029760: 10 80 00 04 b 2029770 <getgr_r+0xa4>
2029764: 80 a0 00 08 cmp %g0, %o0
}
else {
match = (grp->gr_gid == gid);
2029768: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED
202976c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2029770: 82 60 3f ff subx %g0, -1, %g1
}
if (match) {
2029774: 80 a0 60 00 cmp %g1, 0
2029778: 02 bf ff e6 be 2029710 <getgr_r+0x44>
202977c: 92 10 00 1a mov %i2, %o1
fclose(fp);
2029780: 90 10 00 10 mov %l0, %o0
2029784: 40 00 6b 1c call 20443f4 <fclose>
2029788: b0 10 20 00 clr %i0
*result = grp;
202978c: f4 27 40 00 st %i2, [ %i5 ]
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
2029790: 81 c7 e0 08 ret
2029794: 81 e8 00 00 restore
020293fc <getgrent>:
return NULL;
return p;
}
struct group *getgrent(void)
{
20293fc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (group_fp == NULL)
2029400: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2029404: d0 00 60 9c ld [ %g1 + 0x9c ], %o0 ! 206e89c <group_fp> <== NOT EXECUTED
2029408: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202940c: 22 80 00 0c be,a 202943c <getgrent+0x40> <== NOT EXECUTED
2029410: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
2029414: 31 00 81 ba sethi %hi(0x206e800), %i0 <== NOT EXECUTED
2029418: 15 00 81 ba sethi %hi(0x206e800), %o2 <== NOT EXECUTED
202941c: 92 16 21 68 or %i0, 0x168, %o1 <== NOT EXECUTED
2029420: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED
2029424: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
2029428: 7f ff ff a6 call 20292c0 <scangr> <== NOT EXECUTED
202942c: b0 16 21 68 or %i0, 0x168, %i0 <== NOT EXECUTED
2029430: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029434: 22 80 00 02 be,a 202943c <getgrent+0x40> <== NOT EXECUTED
2029438: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
return &grent;
}
202943c: 81 c7 e0 08 ret <== NOT EXECUTED
2029440: 81 e8 00 00 restore <== NOT EXECUTED
020297cc <getgrgid>:
}
struct group *getgrgid(
gid_t gid
)
{
20297cc: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
20297d0: 13 00 81 ba sethi %hi(0x206e800), %o1 <== NOT EXECUTED
20297d4: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED
20297d8: 92 12 61 68 or %o1, 0x168, %o1 <== NOT EXECUTED
20297dc: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
20297e0: 15 00 81 ba sethi %hi(0x206e800), %o2 <== NOT EXECUTED
20297e4: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
20297e8: 94 12 a0 a0 or %o2, 0xa0, %o2 <== NOT EXECUTED
20297ec: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
20297f0: 7f ff ff ea call 2029798 <getgrgid_r> <== NOT EXECUTED
20297f4: b0 10 20 00 clr %i0 <== NOT EXECUTED
20297f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20297fc: 22 80 00 02 be,a 2029804 <getgrgid+0x38> <== NOT EXECUTED
2029800: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
return NULL;
return p;
}
2029804: 81 c7 e0 08 ret <== NOT EXECUTED
2029808: 81 e8 00 00 restore <== NOT EXECUTED
02029798 <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
2029798: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED
202979c: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
20297a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
20297a4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
20297a8: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
20297ac: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED
20297b0: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED
20297b4: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
20297b8: 90 10 20 00 clr %o0 <== NOT EXECUTED
20297bc: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20297c0: 7f ff ff c3 call 20296cc <getgr_r> <== NOT EXECUTED
20297c4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02029838 <getgrnam>:
}
struct group *getgrnam(
const char *name
)
{
2029838: 9d e3 bf 98 save %sp, -104, %sp
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
202983c: 13 00 81 ba sethi %hi(0x206e800), %o1
2029840: 90 10 00 18 mov %i0, %o0
2029844: 92 12 61 68 or %o1, 0x168, %o1
2029848: 15 00 81 ba sethi %hi(0x206e800), %o2
202984c: 96 10 20 c8 mov 0xc8, %o3
2029850: 94 12 a0 a0 or %o2, 0xa0, %o2
2029854: 98 07 bf fc add %fp, -4, %o4
2029858: 7f ff ff ed call 202980c <getgrnam_r>
202985c: b0 10 20 00 clr %i0
2029860: 80 a2 20 00 cmp %o0, 0
2029864: 22 80 00 02 be,a 202986c <getgrnam+0x34> <== ALWAYS TAKEN
2029868: f0 07 bf fc ld [ %fp + -4 ], %i0
return NULL;
return p;
}
202986c: 81 c7 e0 08 ret
2029870: 81 e8 00 00 restore
020298c0 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
20298c0: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
int match;
init_etc_passwd_group();
20298c4: 7f ff ff 39 call 20295a8 <init_etc_passwd_group>
20298c8: 01 00 00 00 nop
if ((fp = fopen("/etc/passwd", "r")) == NULL) {
20298cc: 11 00 81 93 sethi %hi(0x2064c00), %o0
20298d0: 13 00 81 93 sethi %hi(0x2064c00), %o1
20298d4: 90 12 20 d0 or %o0, 0xd0, %o0
20298d8: 40 00 6d 17 call 2044d34 <fopen>
20298dc: 92 12 60 e0 or %o1, 0xe0, %o1
20298e0: a0 92 20 00 orcc %o0, 0, %l0
20298e4: 12 80 00 08 bne 2029904 <getpw_r+0x44> <== ALWAYS TAKEN
20298e8: 92 10 00 1a mov %i2, %o1
errno = EINVAL;
20298ec: 40 00 6a 6a call 2044294 <__errno> <== NOT EXECUTED
20298f0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20298f4: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20298f8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20298fc: 81 c7 e0 08 ret <== NOT EXECUTED
2029900: 81 e8 00 00 restore <== NOT EXECUTED
return -1;
}
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize)) {
2029904: 94 10 00 1b mov %i3, %o2
2029908: 96 10 00 1c mov %i4, %o3
202990c: 7f ff fe ce call 2029444 <scanpw>
2029910: 90 10 00 10 mov %l0, %o0
2029914: 80 a2 20 00 cmp %o0, 0
2029918: 12 80 00 0a bne 2029940 <getpw_r+0x80> <== ALWAYS TAKEN
202991c: 80 a6 20 00 cmp %i0, 0
errno = EINVAL;
2029920: 40 00 6a 5d call 2044294 <__errno> <== NOT EXECUTED
2029924: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029928: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
202992c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
fclose(fp);
2029930: 40 00 6a b1 call 20443f4 <fclose> <== NOT EXECUTED
2029934: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return -1;
2029938: 81 c7 e0 08 ret <== NOT EXECUTED
202993c: 81 e8 00 00 restore <== NOT EXECUTED
}
if (name) {
2029940: 22 80 00 07 be,a 202995c <getpw_r+0x9c> <== NEVER TAKEN
2029944: c2 16 a0 08 lduh [ %i2 + 8 ], %g1 <== NOT EXECUTED
match = (strcmp(pwd->pw_name, name) == 0);
2029948: d0 06 80 00 ld [ %i2 ], %o0
202994c: 40 00 84 0d call 204a980 <strcmp>
2029950: 92 10 00 18 mov %i0, %o1
2029954: 10 80 00 04 b 2029964 <getpw_r+0xa4>
2029958: 80 a0 00 08 cmp %g0, %o0
}
else {
match = (pwd->pw_uid == uid);
202995c: 82 18 40 19 xor %g1, %i1, %g1 <== NOT EXECUTED
2029960: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2029964: 82 60 3f ff subx %g0, -1, %g1
}
if (match) {
2029968: 80 a0 60 00 cmp %g1, 0
202996c: 02 bf ff e6 be 2029904 <getpw_r+0x44>
2029970: 92 10 00 1a mov %i2, %o1
fclose(fp);
2029974: 90 10 00 10 mov %l0, %o0
2029978: 40 00 6a 9f call 20443f4 <fclose>
202997c: b0 10 20 00 clr %i0
*result = pwd;
2029980: f4 27 40 00 st %i2, [ %i5 ]
}
}
fclose(fp);
errno = EINVAL;
return -1;
}
2029984: 81 c7 e0 08 ret
2029988: 81 e8 00 00 restore
02029560 <getpwent>:
return NULL;
return p;
}
struct passwd *getpwent(void)
{
2029560: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (passwd_fp == NULL)
2029564: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
2029568: d0 00 63 b4 ld [ %g1 + 0x3b4 ], %o0 ! 206e7b4 <passwd_fp> <== NOT EXECUTED
202956c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029570: 22 80 00 0c be,a 20295a0 <getpwent+0x40> <== NOT EXECUTED
2029574: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
2029578: 31 00 81 ba sethi %hi(0x206e800), %i0 <== NOT EXECUTED
202957c: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED
2029580: 92 16 20 80 or %i0, 0x80, %o1 <== NOT EXECUTED
2029584: 94 12 a3 b8 or %o2, 0x3b8, %o2 <== NOT EXECUTED
2029588: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
202958c: 7f ff ff ae call 2029444 <scanpw> <== NOT EXECUTED
2029590: b0 16 20 80 or %i0, 0x80, %i0 <== NOT EXECUTED
2029594: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029598: 22 80 00 02 be,a 20295a0 <getpwent+0x40> <== NOT EXECUTED
202959c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return NULL;
return &pwent;
}
20295a0: 81 c7 e0 08 ret <== NOT EXECUTED
20295a4: 81 e8 00 00 restore <== NOT EXECUTED
02029a2c <getpwnam>:
}
struct passwd *getpwnam(
const char *name
)
{
2029a2c: 9d e3 bf 98 save %sp, -104, %sp
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
2029a30: 13 00 81 ba sethi %hi(0x206e800), %o1
2029a34: 90 10 00 18 mov %i0, %o0
2029a38: 92 12 60 80 or %o1, 0x80, %o1
2029a3c: 15 00 81 b9 sethi %hi(0x206e400), %o2
2029a40: 96 10 20 c8 mov 0xc8, %o3
2029a44: 94 12 a3 b8 or %o2, 0x3b8, %o2
2029a48: 98 07 bf fc add %fp, -4, %o4
2029a4c: 7f ff ff ed call 2029a00 <getpwnam_r>
2029a50: b0 10 20 00 clr %i0
2029a54: 80 a2 20 00 cmp %o0, 0
2029a58: 22 80 00 02 be,a 2029a60 <getpwnam+0x34> <== ALWAYS TAKEN
2029a5c: f0 07 bf fc ld [ %fp + -4 ], %i0
return NULL;
return p;
}
2029a60: 81 c7 e0 08 ret
2029a64: 81 e8 00 00 restore
020299c0 <getpwuid>:
}
struct passwd *getpwuid(
uid_t uid
)
{
20299c0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
20299c4: 13 00 81 ba sethi %hi(0x206e800), %o1 <== NOT EXECUTED
20299c8: 91 2e 20 10 sll %i0, 0x10, %o0 <== NOT EXECUTED
20299cc: 92 12 60 80 or %o1, 0x80, %o1 <== NOT EXECUTED
20299d0: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
20299d4: 15 00 81 b9 sethi %hi(0x206e400), %o2 <== NOT EXECUTED
20299d8: 96 10 20 c8 mov 0xc8, %o3 <== NOT EXECUTED
20299dc: 94 12 a3 b8 or %o2, 0x3b8, %o2 <== NOT EXECUTED
20299e0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
20299e4: 7f ff ff ea call 202998c <getpwuid_r> <== NOT EXECUTED
20299e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
20299ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20299f0: 22 80 00 02 be,a 20299f8 <getpwuid+0x38> <== NOT EXECUTED
20299f4: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
return NULL;
return p;
}
20299f8: 81 c7 e0 08 ret <== NOT EXECUTED
20299fc: 81 e8 00 00 restore <== NOT EXECUTED
0202998c <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
202998c: 84 10 00 0a mov %o2, %g2 <== NOT EXECUTED
2029990: 82 10 00 0b mov %o3, %g1 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
2029994: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
2029998: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
202999c: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
20299a0: 96 10 00 02 mov %g2, %o3 <== NOT EXECUTED
20299a4: 93 32 20 10 srl %o0, 0x10, %o1 <== NOT EXECUTED
20299a8: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
20299ac: 90 10 20 00 clr %o0 <== NOT EXECUTED
20299b0: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20299b4: 7f ff ff c3 call 20298c0 <getpw_r> <== NOT EXECUTED
20299b8: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02002ba4 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
2002ba4: 9d e3 bf 98 save %sp, -104, %sp
/* struct timezone* tzp = (struct timezone*) __tz; */
if ( !tp ) {
2002ba8: 80 a6 20 00 cmp %i0, 0
2002bac: 12 80 00 08 bne 2002bcc <gettimeofday+0x28> <== ALWAYS TAKEN
2002bb0: 01 00 00 00 nop
errno = EFAULT;
2002bb4: 40 00 37 65 call 2010948 <__errno> <== NOT EXECUTED
2002bb8: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2002bbc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
2002bc0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
2002bc4: 81 c7 e0 08 ret <== NOT EXECUTED
2002bc8: 81 e8 00 00 restore <== NOT EXECUTED
{
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
2002bcc: 7f ff fc fe call 2001fc4 <sparc_disable_interrupts>
2002bd0: 01 00 00 00 nop
2002bd4: a0 10 00 08 mov %o0, %l0
_TOD_Get( &now );
2002bd8: 40 00 11 70 call 2007198 <_TOD_Get>
2002bdc: 90 07 bf f8 add %fp, -8, %o0
_ISR_Enable(level);
2002be0: 7f ff fc fd call 2001fd4 <sparc_enable_interrupts>
2002be4: 90 10 00 10 mov %l0, %o0
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
2002be8: d0 07 bf fc ld [ %fp + -4 ], %o0
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
2002bec: c2 07 bf f8 ld [ %fp + -8 ], %g1
time->tv_usec = useconds;
2002bf0: 92 10 23 e8 mov 0x3e8, %o1
2002bf4: 40 00 5c aa call 2019e9c <.div>
2002bf8: c2 26 00 00 st %g1, [ %i0 ]
2002bfc: d0 26 20 04 st %o0, [ %i0 + 4 ]
* with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X
* do it. This puts us in good company.
*/
return 0;
}
2002c00: 81 c7 e0 08 ret
2002c04: 91 e8 20 00 restore %g0, 0, %o0
02008394 <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
2008394: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2008398: c2 00 61 64 ld [ %g1 + 0x164 ], %g1 ! 206ad64 <rtems_current_user_env><== NOT EXECUTED
return _POSIX_types_Uid;
}
200839c: 81 c3 e0 08 retl <== NOT EXECUTED
20083a0: d0 10 60 32 lduh [ %g1 + 0x32 ], %o0 <== NOT EXECUTED
0200f28c <imfs_dir_open>:
)
{
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->file_info;
200f28c: c4 02 20 3c ld [ %o0 + 0x3c ], %g2
200f290: c4 00 a0 4c ld [ %g2 + 0x4c ], %g2
200f294: 80 a0 a0 01 cmp %g2, 1
200f298: 12 80 00 05 bne 200f2ac <imfs_dir_open+0x20> <== NEVER TAKEN
200f29c: 82 10 3f ff mov -1, %g1
if ( the_jnode->type != IMFS_DIRECTORY )
return -1; /* It wasn't a directory --> return error */
iop->offset = 0;
200f2a0: c0 22 20 10 clr [ %o0 + 0x10 ]
200f2a4: c0 22 20 14 clr [ %o0 + 0x14 ]
200f2a8: 82 10 20 00 clr %g1
return 0;
}
200f2ac: 81 c3 e0 08 retl
200f2b0: 90 10 00 01 mov %g1, %o0
0200f3e8 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200f3e8: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200f3ec: e0 06 40 00 ld [ %i1 ], %l0
200f3f0: c4 04 20 50 ld [ %l0 + 0x50 ], %g2
200f3f4: 82 04 20 54 add %l0, 0x54, %g1
200f3f8: 80 a0 80 01 cmp %g2, %g1
200f3fc: 22 80 00 06 be,a 200f414 <imfs_dir_rmnod+0x2c>
200f400: c2 06 60 10 ld [ %i1 + 0x10 ], %g1
/*
* You cannot remove a node that still has children
*/
if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) )
rtems_set_errno_and_return_minus_one( ENOTEMPTY );
200f404: 40 00 05 51 call 2010948 <__errno>
200f408: 01 00 00 00 nop
200f40c: 10 80 00 0d b 200f440 <imfs_dir_rmnod+0x58>
200f410: 82 10 20 5a mov 0x5a, %g1 ! 5a <PROM_START+0x5a>
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
200f414: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200f418: 80 a0 40 10 cmp %g1, %l0
200f41c: 02 80 00 06 be 200f434 <imfs_dir_rmnod+0x4c>
200f420: 01 00 00 00 nop
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
200f424: c2 04 20 5c ld [ %l0 + 0x5c ], %g1
200f428: 80 a0 60 00 cmp %g1, 0
200f42c: 22 80 00 08 be,a 200f44c <imfs_dir_rmnod+0x64> <== ALWAYS TAKEN
200f430: c2 04 20 08 ld [ %l0 + 8 ], %g1
rtems_set_errno_and_return_minus_one( EBUSY );
200f434: 40 00 05 45 call 2010948 <__errno>
200f438: 01 00 00 00 nop
200f43c: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10>
200f440: c2 22 00 00 st %g1, [ %o0 ]
200f444: 81 c7 e0 08 ret
200f448: 91 e8 3f ff restore %g0, -1, %o0
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
200f44c: 80 a0 60 00 cmp %g1, 0
200f450: 22 80 00 06 be,a 200f468 <imfs_dir_rmnod+0x80>
200f454: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200f458: 7f ff de 3d call 2006d4c <_Chain_Extract>
200f45c: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200f460: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200f464: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200f468: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200f46c: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200f470: 90 07 bf f8 add %fp, -8, %o0
200f474: 7f ff cd cc call 2002ba4 <gettimeofday>
200f478: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200f47c: c2 07 bf f8 ld [ %fp + -8 ], %g1
/*
* The file cannot be open and the link must be less than 1 to free.
*/
if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
200f480: 90 10 00 10 mov %l0, %o0
200f484: 7f ff f2 d6 call 200bfdc <rtems_libio_is_file_open>
200f488: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
200f48c: 80 a2 20 00 cmp %o0, 0
200f490: 12 80 00 11 bne 200f4d4 <imfs_dir_rmnod+0xec>
200f494: 01 00 00 00 nop
200f498: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
200f49c: 80 a0 60 00 cmp %g1, 0
200f4a0: 12 80 00 0d bne 200f4d4 <imfs_dir_rmnod+0xec>
200f4a4: 03 00 80 76 sethi %hi(0x201d800), %g1
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == pathloc->node_access )
200f4a8: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 <rtems_current_user_env>
200f4ac: c4 06 40 00 ld [ %i1 ], %g2
200f4b0: c6 00 60 04 ld [ %g1 + 4 ], %g3
200f4b4: 80 a0 c0 02 cmp %g3, %g2
200f4b8: 22 80 00 02 be,a 200f4c0 <imfs_dir_rmnod+0xd8> <== NEVER TAKEN
200f4bc: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
/*
* Free memory associated with a memory file.
*/
free( the_jnode );
200f4c0: 90 10 00 10 mov %l0, %o0
200f4c4: 7f ff cd 8e call 2002afc <free>
200f4c8: b0 10 20 00 clr %i0
200f4cc: 81 c7 e0 08 ret
200f4d0: 81 e8 00 00 restore
}
return 0;
}
200f4d4: 81 c7 e0 08 ret
200f4d8: 91 e8 20 00 restore %g0, 0, %o0
020295a8 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
20295a8: 9d e3 bf a0 save %sp, -96, %sp
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
20295ac: 03 00 81 b9 sethi %hi(0x206e400), %g1
20295b0: c4 48 63 b0 ldsb [ %g1 + 0x3b0 ], %g2 ! 206e7b0 <etc_passwd_initted.6451>
20295b4: 80 a0 a0 00 cmp %g2, 0
20295b8: 12 80 00 30 bne 2029678 <init_etc_passwd_group+0xd0>
20295bc: 84 10 20 01 mov 1, %g2
return;
etc_passwd_initted = 1;
mkdir("/etc", 0777);
20295c0: 92 10 21 ff mov 0x1ff, %o1
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
return;
etc_passwd_initted = 1;
20295c4: c4 28 63 b0 stb %g2, [ %g1 + 0x3b0 ]
mkdir("/etc", 0777);
20295c8: 11 00 81 93 sethi %hi(0x2064c00), %o0
20295cc: 7f ff 7d 5d call 2008b40 <mkdir>
20295d0: 90 12 20 c8 or %o0, 0xc8, %o0 ! 2064cc8 <IMFS_memfile_handlers+0xa8>
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
20295d4: 21 00 81 93 sethi %hi(0x2064c00), %l0
20295d8: 13 00 81 93 sethi %hi(0x2064c00), %o1
20295dc: 90 14 20 d0 or %l0, 0xd0, %o0
20295e0: 40 00 6d d5 call 2044d34 <fopen>
20295e4: 92 12 60 e0 or %o1, 0xe0, %o1
20295e8: 80 a2 20 00 cmp %o0, 0
20295ec: 12 80 00 0d bne 2029620 <init_etc_passwd_group+0x78> <== NEVER TAKEN
20295f0: 01 00 00 00 nop
fclose(fp);
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
20295f4: 90 14 20 d0 or %l0, 0xd0, %o0
20295f8: 13 00 81 93 sethi %hi(0x2064c00), %o1
20295fc: 40 00 6d ce call 2044d34 <fopen>
2029600: 92 12 60 e8 or %o1, 0xe8, %o1 ! 2064ce8 <IMFS_memfile_handlers+0xc8>
2029604: b0 92 20 00 orcc %o0, 0, %i0
2029608: 02 80 00 08 be 2029628 <init_etc_passwd_group+0x80> <== NEVER TAKEN
202960c: 11 00 81 93 sethi %hi(0x2064c00), %o0
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
2029610: 92 10 00 18 mov %i0, %o1
2029614: 40 00 6e 2e call 2044ecc <fputs>
2029618: 90 12 20 f0 or %o0, 0xf0, %o0
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
202961c: 90 10 00 18 mov %i0, %o0
2029620: 40 00 6b 75 call 20443f4 <fclose>
2029624: 01 00 00 00 nop
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
2029628: 21 00 81 93 sethi %hi(0x2064c00), %l0
202962c: 13 00 81 93 sethi %hi(0x2064c00), %o1
2029630: 90 14 21 58 or %l0, 0x158, %o0
2029634: 40 00 6d c0 call 2044d34 <fopen>
2029638: 92 12 60 e0 or %o1, 0xe0, %o1
202963c: 80 a2 20 00 cmp %o0, 0
2029640: 12 80 00 0c bne 2029670 <init_etc_passwd_group+0xc8> <== NEVER TAKEN
2029644: b0 10 00 08 mov %o0, %i0
fclose(fp);
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
2029648: 90 14 21 58 or %l0, 0x158, %o0
202964c: 13 00 81 93 sethi %hi(0x2064c00), %o1
2029650: 40 00 6d b9 call 2044d34 <fopen>
2029654: 92 12 60 e8 or %o1, 0xe8, %o1 ! 2064ce8 <IMFS_memfile_handlers+0xc8>
2029658: b0 92 20 00 orcc %o0, 0, %i0
202965c: 02 80 00 07 be 2029678 <init_etc_passwd_group+0xd0> <== NEVER TAKEN
2029660: 11 00 81 93 sethi %hi(0x2064c00), %o0
fprintf( fp, "root:x:0:root\n"
2029664: 92 10 00 18 mov %i0, %o1
2029668: 40 00 6e 19 call 2044ecc <fputs>
202966c: 90 12 21 68 or %o0, 0x168, %o0
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
2029670: 40 00 6b 61 call 20443f4 <fclose>
2029674: 81 e8 00 00 restore
2029678: 81 c7 e0 08 ret
202967c: 81 e8 00 00 restore
02006360 <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
2006360: 9d e3 bf 98 save %sp, -104, %sp
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
2006364: 03 00 80 85 sethi %hi(0x2021400), %g1
2006368: c2 00 63 94 ld [ %g1 + 0x394 ], %g1 ! 2021794 <rtems_libio_number_iops>
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
200636c: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
2006370: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
2006374: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
2006378: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
200637c: 80 a6 00 01 cmp %i0, %g1
2006380: 1a 80 00 11 bcc 20063c4 <ioctl+0x64>
2006384: 92 10 00 19 mov %i1, %o1
iop = rtems_libio_iop( fd );
2006388: 03 00 80 88 sethi %hi(0x2022000), %g1
200638c: d0 00 62 78 ld [ %g1 + 0x278 ], %o0 ! 2022278 <rtems_libio_iops>
2006390: 83 2e 20 06 sll %i0, 6, %g1
2006394: b1 2e 20 03 sll %i0, 3, %i0
2006398: b0 06 00 01 add %i0, %g1, %i0
200639c: 90 02 00 18 add %o0, %i0, %o0
rtems_libio_check_is_open(iop);
20063a0: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
20063a4: 80 88 61 00 btst 0x100, %g1
20063a8: 02 80 00 07 be 20063c4 <ioctl+0x64> <== NEVER TAKEN
20063ac: 84 07 a0 50 add %fp, 0x50, %g2
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
20063b0: c2 02 20 40 ld [ %o0 + 0x40 ], %g1
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open(iop);
va_start(ap, command);
buffer = va_arg(ap, void *);
20063b4: c4 27 bf fc st %g2, [ %fp + -4 ]
/*
* Now process the ioctl().
*/
if ( !iop->handlers )
20063b8: 80 a0 60 00 cmp %g1, 0
20063bc: 12 80 00 06 bne 20063d4 <ioctl+0x74> <== ALWAYS TAKEN
20063c0: 94 10 00 1a mov %i2, %o2
rtems_set_errno_and_return_minus_one( EBADF );
20063c4: 40 00 3a 4c call 2014cf4 <__errno>
20063c8: 01 00 00 00 nop
20063cc: 10 80 00 09 b 20063f0 <ioctl+0x90>
20063d0: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
if ( !iop->handlers->ioctl_h )
20063d4: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
20063d8: 80 a0 60 00 cmp %g1, 0
20063dc: 12 80 00 08 bne 20063fc <ioctl+0x9c> <== ALWAYS TAKEN
20063e0: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
20063e4: 40 00 3a 44 call 2014cf4 <__errno> <== NOT EXECUTED
20063e8: 01 00 00 00 nop <== NOT EXECUTED
20063ec: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
20063f0: c2 22 00 00 st %g1, [ %o0 ]
20063f4: 10 80 00 04 b 2006404 <ioctl+0xa4>
20063f8: 90 10 3f ff mov -1, %o0
rc = (*iop->handlers->ioctl_h)( iop, command, buffer );
20063fc: 9f c0 40 00 call %g1
2006400: 01 00 00 00 nop
return rc;
}
2006404: 81 c7 e0 08 ret
2006408: 91 e8 00 08 restore %g0, %o0, %o0
0200466c <iproc>:
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
200466c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
2004670: c2 06 60 30 ld [ %i1 + 0x30 ], %g1 <== NOT EXECUTED
2004674: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2004678: 02 80 00 03 be 2004684 <iproc+0x18> <== NOT EXECUTED
200467c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
c &= 0x7f;
2004680: a0 0e 20 7f and %i0, 0x7f, %l0 <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
2004684: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
2004688: 02 80 00 0c be 20046b8 <iproc+0x4c> <== NOT EXECUTED
200468c: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED
c = tolower (c);
2004690: 05 00 80 76 sethi %hi(0x201d800), %g2 <== NOT EXECUTED
2004694: c4 00 a1 1c ld [ %g2 + 0x11c ], %g2 ! 201d91c <__ctype_ptr__><== NOT EXECUTED
2004698: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED
200469c: 84 00 80 10 add %g2, %l0, %g2 <== NOT EXECUTED
20046a0: c4 08 a0 01 ldub [ %g2 + 1 ], %g2 <== NOT EXECUTED
20046a4: 84 08 a0 03 and %g2, 3, %g2 <== NOT EXECUTED
20046a8: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
20046ac: 22 80 00 02 be,a 20046b4 <iproc+0x48> <== NOT EXECUTED
20046b0: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED
if (c == '\r') {
20046b4: 84 0c 20 ff and %l0, 0xff, %g2 <== NOT EXECUTED
20046b8: 80 a0 a0 0d cmp %g2, 0xd <== NOT EXECUTED
20046bc: 12 80 00 09 bne 20046e0 <iproc+0x74> <== NOT EXECUTED
20046c0: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
20046c4: 80 88 60 80 btst 0x80, %g1 <== NOT EXECUTED
20046c8: 12 80 00 5d bne 200483c <iproc+0x1d0> <== NOT EXECUTED
20046cc: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
return 0;
if (tty->termios.c_iflag & ICRNL)
20046d0: 32 80 00 0d bne,a 2004704 <iproc+0x98> <== NOT EXECUTED
20046d4: a0 10 20 0a mov 0xa, %l0 <== NOT EXECUTED
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
20046d8: 10 80 00 0c b 2004708 <iproc+0x9c> <== NOT EXECUTED
20046dc: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
return 0;
if (tty->termios.c_iflag & ICRNL)
c = '\n';
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
20046e0: 12 80 00 07 bne 20046fc <iproc+0x90> <== NOT EXECUTED
20046e4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20046e8: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED
20046ec: 32 80 00 06 bne,a 2004704 <iproc+0x98> <== NOT EXECUTED
20046f0: a0 10 20 0d mov 0xd, %l0 <== NOT EXECUTED
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
20046f4: 10 80 00 05 b 2004708 <iproc+0x9c> <== NOT EXECUTED
20046f8: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED
20046fc: 02 80 00 3c be 20047ec <iproc+0x180> <== NOT EXECUTED
2004700: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
2004704: c4 06 60 3c ld [ %i1 + 0x3c ], %g2 <== NOT EXECUTED
2004708: 80 88 a0 02 btst 2, %g2 <== NOT EXECUTED
200470c: 02 80 00 38 be 20047ec <iproc+0x180> <== NOT EXECUTED
2004710: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
2004714: c6 0e 60 43 ldub [ %i1 + 0x43 ], %g3 <== NOT EXECUTED
2004718: 82 0c 20 ff and %l0, 0xff, %g1 <== NOT EXECUTED
erase (tty, 0);
200471c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
}
else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
if (c == tty->termios.c_cc[VERASE]) {
2004720: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2004724: 02 80 00 08 be 2004744 <iproc+0xd8> <== NOT EXECUTED
2004728: 92 10 20 00 clr %o1 <== NOT EXECUTED
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
200472c: c6 0e 60 44 ldub [ %i1 + 0x44 ], %g3 <== NOT EXECUTED
2004730: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2004734: 32 80 00 07 bne,a 2004750 <iproc+0xe4> <== NOT EXECUTED
2004738: c6 0e 60 45 ldub [ %i1 + 0x45 ], %g3 <== NOT EXECUTED
erase (tty, 1);
200473c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2004740: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2004744: 7f ff ff 3f call 2004440 <erase> <== NOT EXECUTED
2004748: b0 10 20 00 clr %i0 <== NOT EXECUTED
200474c: 30 80 00 3d b,a 2004840 <iproc+0x1d4> <== NOT EXECUTED
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
2004750: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2004754: 02 80 00 3b be 2004840 <iproc+0x1d4> <== NOT EXECUTED
2004758: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
}
else if (c == '\n') {
200475c: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
2004760: 32 80 00 0f bne,a 200479c <iproc+0x130> <== NOT EXECUTED
2004764: c6 0e 60 4c ldub [ %i1 + 0x4c ], %g3 <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
2004768: 80 88 a0 48 btst 0x48, %g2 <== NOT EXECUTED
200476c: 22 80 00 06 be,a 2004784 <iproc+0x118> <== NOT EXECUTED
2004770: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
echo (c, tty);
2004774: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
2004778: 7f ff ff 0e call 20043b0 <echo> <== NOT EXECUTED
200477c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
2004780: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2004784: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
2004788: 86 10 20 0a mov 0xa, %g3 <== NOT EXECUTED
200478c: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
2004790: 82 00 60 01 inc %g1 <== NOT EXECUTED
2004794: 10 80 00 14 b 20047e4 <iproc+0x178> <== NOT EXECUTED
2004798: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED
return 1;
}
else if ((c == tty->termios.c_cc[VEOL])
200479c: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20047a0: 02 80 00 07 be 20047bc <iproc+0x150> <== NOT EXECUTED
20047a4: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
|| (c == tty->termios.c_cc[VEOL2])) {
20047a8: c6 0e 60 51 ldub [ %i1 + 0x51 ], %g3 <== NOT EXECUTED
20047ac: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20047b0: 12 80 00 0f bne 20047ec <iproc+0x180> <== NOT EXECUTED
20047b4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
20047b8: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
20047bc: 22 80 00 06 be,a 20047d4 <iproc+0x168> <== NOT EXECUTED
20047c0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
echo (c, tty);
20047c4: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED
20047c8: 7f ff fe fa call 20043b0 <echo> <== NOT EXECUTED
20047cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
20047d0: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
20047d4: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED
20047d8: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
20047dc: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED
20047e0: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
return 1;
20047e4: 81 c7 e0 08 ret <== NOT EXECUTED
20047e8: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
20047ec: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
20047f0: c2 00 60 60 ld [ %g1 + 0x60 ], %g1 <== NOT EXECUTED
20047f4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
20047f8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
20047fc: 16 80 00 11 bge 2004840 <iproc+0x1d4> <== NOT EXECUTED
2004800: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
2004804: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
2004808: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
200480c: 22 80 00 06 be,a 2004824 <iproc+0x1b8> <== NOT EXECUTED
2004810: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
echo (c, tty);
2004814: 90 0c 20 ff and %l0, 0xff, %o0 <== NOT EXECUTED
2004818: 7f ff fe e6 call 20043b0 <echo> <== NOT EXECUTED
200481c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
2004820: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2004824: c6 06 60 1c ld [ %i1 + 0x1c ], %g3 <== NOT EXECUTED
2004828: 84 00 60 01 add %g1, 1, %g2 <== NOT EXECUTED
200482c: e0 28 c0 01 stb %l0, [ %g3 + %g1 ] <== NOT EXECUTED
2004830: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
2004834: 81 c7 e0 08 ret <== NOT EXECUTED
2004838: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
200483c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
return 0;
}
2004840: 81 c7 e0 08 ret <== NOT EXECUTED
2004844: 81 e8 00 00 restore <== NOT EXECUTED
0200fab4 <killinfo>:
int killinfo(
pid_t pid,
int sig,
const union sigval *value
)
{
200fab4: 9d e3 bf 90 save %sp, -112, %sp
POSIX_signals_Siginfo_node *psiginfo;
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid != getpid() )
200fab8: 7f ff f1 30 call 200bf78 <getpid>
200fabc: 01 00 00 00 nop
200fac0: 80 a6 00 08 cmp %i0, %o0
200fac4: 02 80 00 06 be 200fadc <killinfo+0x28> <== ALWAYS TAKEN
200fac8: 80 a6 60 00 cmp %i1, 0
rtems_set_errno_and_return_minus_one( ESRCH );
200facc: 40 00 03 9f call 2010948 <__errno> <== NOT EXECUTED
200fad0: 01 00 00 00 nop <== NOT EXECUTED
200fad4: 10 80 00 07 b 200faf0 <killinfo+0x3c> <== NOT EXECUTED
200fad8: 82 10 20 03 mov 3, %g1 ! 3 <PROM_START+0x3> <== NOT EXECUTED
/*
* Validate the signal passed.
*/
if ( !sig )
200fadc: 12 80 00 08 bne 200fafc <killinfo+0x48> <== ALWAYS TAKEN
200fae0: 82 06 7f ff add %i1, -1, %g1
rtems_set_errno_and_return_minus_one( EINVAL );
200fae4: 40 00 03 99 call 2010948 <__errno> <== NOT EXECUTED
200fae8: 01 00 00 00 nop <== NOT EXECUTED
200faec: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
200faf0: c2 22 00 00 st %g1, [ %o0 ]
200faf4: 10 80 00 a5 b 200fd88 <killinfo+0x2d4>
200faf8: 90 10 3f ff mov -1, %o0
if ( !is_valid_signo(sig) )
200fafc: 80 a0 60 1f cmp %g1, 0x1f
200fb00: 18 bf ff f9 bgu 200fae4 <killinfo+0x30> <== NEVER TAKEN
200fb04: 85 2e 60 02 sll %i1, 2, %g2
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* If the signal is being ignored, then we are out of here.
*/
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )
200fb08: 87 2e 60 04 sll %i1, 4, %g3
200fb0c: 86 20 c0 02 sub %g3, %g2, %g3
200fb10: 05 00 80 7a sethi %hi(0x201e800), %g2
200fb14: 84 10 a0 18 or %g2, 0x18, %g2 ! 201e818 <_POSIX_signals_Vectors>
200fb18: 84 00 80 03 add %g2, %g3, %g2
200fb1c: c4 00 a0 08 ld [ %g2 + 8 ], %g2
200fb20: 80 a0 a0 01 cmp %g2, 1
200fb24: 02 80 00 99 be 200fd88 <killinfo+0x2d4>
200fb28: 90 10 20 00 clr %o0
/*
* P1003.1c/Draft 10, p. 33 says that certain signals should always
* be directed to the executing thread such as those caused by hardware
* faults.
*/
if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )
200fb2c: 80 a6 60 04 cmp %i1, 4
200fb30: 02 80 00 06 be 200fb48 <killinfo+0x94>
200fb34: 80 a6 60 08 cmp %i1, 8
200fb38: 02 80 00 04 be 200fb48 <killinfo+0x94>
200fb3c: 80 a6 60 0b cmp %i1, 0xb
200fb40: 12 80 00 08 bne 200fb60 <killinfo+0xac>
200fb44: a0 10 20 01 mov 1, %l0
return pthread_kill( pthread_self(), sig );
200fb48: 40 00 01 df call 20102c4 <pthread_self>
200fb4c: 01 00 00 00 nop
200fb50: 40 00 01 a2 call 20101d8 <pthread_kill>
200fb54: 92 10 00 19 mov %i1, %o1
200fb58: 81 c7 e0 08 ret
200fb5c: 91 e8 00 08 restore %g0, %o0, %o0
/*
* Build up a siginfo structure
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
200fb60: f2 27 bf f4 st %i1, [ %fp + -12 ]
siginfo->si_code = SI_USER;
200fb64: e0 27 bf f8 st %l0, [ %fp + -8 ]
if ( !value ) {
200fb68: 80 a6 a0 00 cmp %i2, 0
200fb6c: 12 80 00 04 bne 200fb7c <killinfo+0xc8>
200fb70: a1 2c 00 01 sll %l0, %g1, %l0
siginfo->si_value.sival_int = 0;
200fb74: 10 80 00 04 b 200fb84 <killinfo+0xd0>
200fb78: c0 27 bf fc clr [ %fp + -4 ]
} else {
siginfo->si_value = *value;
200fb7c: c2 06 80 00 ld [ %i2 ], %g1
200fb80: c2 27 bf fc st %g1, [ %fp + -4 ]
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
200fb84: 03 00 80 78 sethi %hi(0x201e000), %g1
200fb88: c4 00 62 90 ld [ %g1 + 0x290 ], %g2 ! 201e290 <_Thread_Dispatch_disable_level>
200fb8c: 84 00 a0 01 inc %g2
200fb90: c4 20 62 90 st %g2, [ %g1 + 0x290 ]
/*
* Is the currently executing thread interested? If so then it will
* get it an execute it as soon as the dispatcher executes.
*/
the_thread = _Thread_Executing;
200fb94: 03 00 80 78 sethi %hi(0x201e000), %g1
200fb98: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
200fb9c: c4 00 61 6c ld [ %g1 + 0x16c ], %g2
200fba0: c4 00 a0 cc ld [ %g2 + 0xcc ], %g2
200fba4: 80 ac 00 02 andncc %l0, %g2, %g0
200fba8: 12 80 00 4e bne 200fce0 <killinfo+0x22c>
200fbac: 07 00 80 7a sethi %hi(0x201e800), %g3
/* XXX violation of visibility -- need to define thread queue support */
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
200fbb0: 03 00 80 7a sethi %hi(0x201e800), %g1
200fbb4: c4 00 61 a4 ld [ %g1 + 0x1a4 ], %g2 ! 201e9a4 <_POSIX_signals_Wait_queue>
200fbb8: 10 80 00 0b b 200fbe4 <killinfo+0x130>
200fbbc: 86 10 e1 a8 or %g3, 0x1a8, %g3
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
the_thread = (Thread_Control *)the_node;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
200fbc0: c8 00 a1 6c ld [ %g2 + 0x16c ], %g4
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
200fbc4: 80 8c 00 01 btst %l0, %g1
200fbc8: 12 80 00 46 bne 200fce0 <killinfo+0x22c>
200fbcc: 82 10 00 02 mov %g2, %g1
/*
* Is this thread is blocked waiting for another signal but has
* not blocked this one?
*/
if (~api->signals_blocked & mask)
200fbd0: c8 01 20 cc ld [ %g4 + 0xcc ], %g4
200fbd4: 80 ac 00 04 andncc %l0, %g4, %g0
200fbd8: 32 80 00 43 bne,a 200fce4 <killinfo+0x230>
200fbdc: 84 10 20 01 mov 1, %g2
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = the_chain->first ;
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
200fbe0: c4 00 80 00 ld [ %g2 ], %g2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200fbe4: 80 a0 80 03 cmp %g2, %g3
200fbe8: 32 bf ff f6 bne,a 200fbc0 <killinfo+0x10c>
200fbec: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1
* NOTES:
*
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
200fbf0: 03 00 80 75 sethi %hi(0x201d400), %g1
200fbf4: c8 08 63 54 ldub [ %g1 + 0x354 ], %g4 ! 201d754 <rtems_maximum_priority>
200fbf8: 05 00 80 78 sethi %hi(0x201e000), %g2
200fbfc: 88 01 20 01 inc %g4
200fc00: 84 10 a1 f8 or %g2, 0x1f8, %g2
*/
#define _POSIX_signals_Is_interested( _api, _mask ) \
( ~(_api)->signals_blocked & (_mask) )
int killinfo(
200fc04: 82 10 20 00 clr %g1
200fc08: 90 00 a0 0c add %g2, 0xc, %o0
continue;
}
DEBUG_STEP("6");
/* prefer blocked/interruptible over blocked/not interruptible */
if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
200fc0c: 17 04 00 00 sethi %hi(0x10000000), %o3
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
/*
* This can occur when no one is interested and ITRON is not configured.
*/
if ( !_Objects_Information_table[ the_api ] )
200fc10: c6 00 80 00 ld [ %g2 ], %g3
200fc14: 80 a0 e0 00 cmp %g3, 0
200fc18: 22 80 00 2c be,a 200fcc8 <killinfo+0x214>
200fc1c: 84 00 a0 04 add %g2, 4, %g2
continue;
the_info = _Objects_Information_table[ the_api ][ 1 ];
200fc20: c6 00 e0 04 ld [ %g3 + 4 ], %g3
if ( !the_info )
continue;
#endif
maximum = the_info->maximum;
object_table = the_info->local_table;
200fc24: 9a 10 20 01 mov 1, %o5
200fc28: f4 00 e0 1c ld [ %g3 + 0x1c ], %i2
for ( index = 1 ; index <= maximum ; index++ ) {
200fc2c: 10 80 00 23 b 200fcb8 <killinfo+0x204>
200fc30: de 10 e0 10 lduh [ %g3 + 0x10 ], %o7
the_thread = (Thread_Control *) object_table[ index ];
200fc34: c6 06 80 03 ld [ %i2 + %g3 ], %g3
if ( !the_thread )
200fc38: 80 a0 e0 00 cmp %g3, 0
200fc3c: 02 80 00 1d be 200fcb0 <killinfo+0x1fc>
200fc40: 98 10 00 04 mov %g4, %o4
/*
* If this thread is of lower priority than the interested thread,
* go on to the next thread.
*/
if ( the_thread->current_priority > interested_priority )
200fc44: d8 00 e0 14 ld [ %g3 + 0x14 ], %o4
200fc48: 80 a3 00 04 cmp %o4, %g4
200fc4c: 38 80 00 19 bgu,a 200fcb0 <killinfo+0x1fc>
200fc50: 98 10 00 04 mov %g4, %o4
DEBUG_STEP("2");
/*
* If this thread is not interested, then go on to the next thread.
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
200fc54: d4 00 e1 6c ld [ %g3 + 0x16c ], %o2
200fc58: d4 02 a0 cc ld [ %o2 + 0xcc ], %o2
200fc5c: 80 ac 00 0a andncc %l0, %o2, %g0
200fc60: 22 80 00 14 be,a 200fcb0 <killinfo+0x1fc>
200fc64: 98 10 00 04 mov %g4, %o4
*
* NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
* so we never have to worry about deferencing a NULL
* interested thread.
*/
if ( the_thread->current_priority < interested_priority ) {
200fc68: 80 a3 00 04 cmp %o4, %g4
200fc6c: 2a 80 00 11 bcs,a 200fcb0 <killinfo+0x1fc>
200fc70: 82 10 00 03 mov %g3, %g1
* and blocking interruptibutable by signal.
*
* If the interested thread is ready, don't think about changing.
*/
if ( !_States_Is_ready( interested->current_state ) ) {
200fc74: d2 00 60 10 ld [ %g1 + 0x10 ], %o1
200fc78: 80 a2 60 00 cmp %o1, 0
200fc7c: 22 80 00 0d be,a 200fcb0 <killinfo+0x1fc> <== NEVER TAKEN
200fc80: 98 10 00 04 mov %g4, %o4 <== NOT EXECUTED
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {
200fc84: d4 00 e0 10 ld [ %g3 + 0x10 ], %o2
200fc88: 80 a2 a0 00 cmp %o2, 0
200fc8c: 22 80 00 09 be,a 200fcb0 <killinfo+0x1fc>
200fc90: 82 10 00 03 mov %g3, %g1
continue;
}
DEBUG_STEP("6");
/* prefer blocked/interruptible over blocked/not interruptible */
if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
200fc94: 80 8a 40 0b btst %o1, %o3
200fc98: 32 80 00 06 bne,a 200fcb0 <killinfo+0x1fc>
200fc9c: 98 10 00 04 mov %g4, %o4
DEBUG_STEP("7");
if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
200fca0: 80 8a 80 0b btst %o2, %o3
200fca4: 32 80 00 03 bne,a 200fcb0 <killinfo+0x1fc>
200fca8: 82 10 00 03 mov %g3, %g1
200fcac: 98 10 00 04 mov %g4, %o4
#endif
maximum = the_info->maximum;
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
200fcb0: 9a 03 60 01 inc %o5
200fcb4: 88 10 00 0c mov %o4, %g4
200fcb8: 80 a3 40 0f cmp %o5, %o7
200fcbc: 28 bf ff de bleu,a 200fc34 <killinfo+0x180>
200fcc0: 87 2b 60 02 sll %o5, 2, %g3
200fcc4: 84 00 a0 04 add %g2, 4, %g2
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
200fcc8: 80 a0 80 08 cmp %g2, %o0
200fccc: 32 bf ff d2 bne,a 200fc14 <killinfo+0x160>
200fcd0: c6 00 80 00 ld [ %g2 ], %g3
}
}
}
}
if ( interested ) {
200fcd4: 80 a0 60 00 cmp %g1, 0
200fcd8: 02 80 00 0b be 200fd04 <killinfo+0x250>
200fcdc: 01 00 00 00 nop
* thread needs to do the post context switch extension so it can
* evaluate the signals pending.
*/
process_it:
the_thread->do_post_task_switch_extension = true;
200fce0: 84 10 20 01 mov 1, %g2 ! 1 <PROM_START+0x1>
/*
* Returns true if the signal was synchronously given to a thread
* blocked waiting for the signal.
*/
if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {
200fce4: 90 10 00 01 mov %g1, %o0
* thread needs to do the post context switch extension so it can
* evaluate the signals pending.
*/
process_it:
the_thread->do_post_task_switch_extension = true;
200fce8: c4 28 60 74 stb %g2, [ %g1 + 0x74 ]
/*
* Returns true if the signal was synchronously given to a thread
* blocked waiting for the signal.
*/
if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {
200fcec: 92 10 00 19 mov %i1, %o1
200fcf0: 40 00 00 aa call 200ff98 <_POSIX_signals_Unblock_thread>
200fcf4: 94 07 bf f4 add %fp, -12, %o2
200fcf8: 80 8a 20 ff btst 0xff, %o0
200fcfc: 12 80 00 20 bne 200fd7c <killinfo+0x2c8>
200fd00: 01 00 00 00 nop
/*
* We may have woken up a thread but we definitely need to post the
* signal to the process wide information set.
*/
_POSIX_signals_Set_process_signals( mask );
200fd04: 40 00 00 94 call 200ff54 <_POSIX_signals_Set_process_signals>
200fd08: 90 10 00 10 mov %l0, %o0
if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {
200fd0c: 83 2e 60 04 sll %i1, 4, %g1
200fd10: b3 2e 60 02 sll %i1, 2, %i1
200fd14: b2 20 40 19 sub %g1, %i1, %i1
200fd18: 03 00 80 7a sethi %hi(0x201e800), %g1
200fd1c: 82 10 60 18 or %g1, 0x18, %g1 ! 201e818 <_POSIX_signals_Vectors>
200fd20: c2 00 40 19 ld [ %g1 + %i1 ], %g1
200fd24: 80 a0 60 02 cmp %g1, 2
200fd28: 12 80 00 15 bne 200fd7c <killinfo+0x2c8>
200fd2c: 11 00 80 7a sethi %hi(0x201e800), %o0
psiginfo = (POSIX_signals_Siginfo_node *)
200fd30: 7f ff dc 11 call 2006d74 <_Chain_Get>
200fd34: 90 12 21 98 or %o0, 0x198, %o0 ! 201e998 <_POSIX_signals_Inactive_siginfo>
_Chain_Get( &_POSIX_signals_Inactive_siginfo );
if ( !psiginfo ) {
200fd38: a0 92 20 00 orcc %o0, 0, %l0
200fd3c: 12 80 00 08 bne 200fd5c <killinfo+0x2a8>
200fd40: 92 07 bf f4 add %fp, -12, %o1
_Thread_Enable_dispatch();
200fd44: 7f ff e2 38 call 2008624 <_Thread_Enable_dispatch>
200fd48: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EAGAIN );
200fd4c: 40 00 02 ff call 2010948 <__errno>
200fd50: 01 00 00 00 nop
200fd54: 10 bf ff 67 b 200faf0 <killinfo+0x3c>
200fd58: 82 10 20 0b mov 0xb, %g1 ! b <PROM_START+0xb>
}
psiginfo->Info = *siginfo;
200fd5c: 90 04 20 08 add %l0, 8, %o0
200fd60: 40 00 05 36 call 2011238 <memcpy>
200fd64: 94 10 20 0c mov 0xc, %o2
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
200fd68: 11 00 80 7a sethi %hi(0x201e800), %o0
200fd6c: 92 10 00 10 mov %l0, %o1
200fd70: 90 12 22 10 or %o0, 0x210, %o0
200fd74: 7f ff db ea call 2006d1c <_Chain_Append>
200fd78: 90 02 00 19 add %o0, %i1, %o0
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
200fd7c: 7f ff e2 2a call 2008624 <_Thread_Enable_dispatch>
200fd80: 01 00 00 00 nop
200fd84: 90 10 20 00 clr %o0 ! 0 <PROM_START>
return 0;
}
200fd88: b0 10 00 08 mov %o0, %i0
200fd8c: 81 c7 e0 08 ret
200fd90: 81 e8 00 00 restore
0201b528 <libc_wrapup>:
extern void _wrapup_reent(struct _reent *);
extern void _reclaim_reent(struct _reent *);
void libc_wrapup(void)
{
201b528: 9d e3 bf a0 save %sp, -96, %sp
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
201b52c: 03 00 80 79 sethi %hi(0x201e400), %g1
201b530: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current>
201b534: 80 a0 60 03 cmp %g1, 3
201b538: 12 80 00 16 bne 201b590 <libc_wrapup+0x68> <== NEVER TAKEN
201b53c: 03 00 80 74 sethi %hi(0x201d000), %g1
/*
* This was already done if the user called exit() directly .
_wrapup_reent(0);
*/
if (_REENT != _global_impure_ptr) {
201b540: 23 00 80 76 sethi %hi(0x201d800), %l1
201b544: e0 00 61 c0 ld [ %g1 + 0x1c0 ], %l0
201b548: c2 04 61 20 ld [ %l1 + 0x120 ], %g1
201b54c: 80 a0 40 10 cmp %g1, %l0
201b550: 22 80 00 06 be,a 201b568 <libc_wrapup+0x40>
201b554: 21 00 80 76 sethi %hi(0x201d800), %l0
_wrapup_reent(_global_impure_ptr);
201b558: 40 00 01 83 call 201bb64 <_wrapup_reent>
201b55c: 90 10 00 10 mov %l0, %o0
/* Don't reclaim this one, just in case we do printfs
* on the way out to ROM.
*/
_reclaim_reent(&libc_global_reent);
#endif
_REENT = _global_impure_ptr;
201b560: e0 24 61 20 st %l0, [ %l1 + 0x120 ]
*
* Should this be changed to do *all* file streams?
* _fwalk (_REENT, fclose);
*/
fclose (stdin);
201b564: 21 00 80 76 sethi %hi(0x201d800), %l0
201b568: c2 04 21 20 ld [ %l0 + 0x120 ], %g1 ! 201d920 <_impure_ptr>
201b56c: 7f ff d5 4f call 2010aa8 <fclose>
201b570: d0 00 60 04 ld [ %g1 + 4 ], %o0
fclose (stdout);
201b574: c2 04 21 20 ld [ %l0 + 0x120 ], %g1
201b578: 7f ff d5 4c call 2010aa8 <fclose>
201b57c: d0 00 60 08 ld [ %g1 + 8 ], %o0
fclose (stderr);
201b580: c2 04 21 20 ld [ %l0 + 0x120 ], %g1
201b584: f0 00 60 0c ld [ %g1 + 0xc ], %i0
201b588: 7f ff d5 48 call 2010aa8 <fclose>
201b58c: 81 e8 00 00 restore
201b590: 81 c7 e0 08 ret <== NOT EXECUTED
201b594: 81 e8 00 00 restore <== NOT EXECUTED
02029a68 <link>:
int link(
const char *existing,
const char *new
)
{
2029a68: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
2029a6c: 40 00 85 c6 call 204b184 <strlen>
2029a70: 90 10 00 18 mov %i0, %o0
2029a74: a0 07 bf e4 add %fp, -28, %l0
2029a78: 92 10 00 08 mov %o0, %o1
2029a7c: 94 10 20 00 clr %o2
2029a80: 90 10 00 18 mov %i0, %o0
2029a84: 96 10 00 10 mov %l0, %o3
2029a88: 98 10 20 01 mov 1, %o4
2029a8c: 7f ff 79 d8 call 20081ec <rtems_filesystem_evaluate_path>
2029a90: b0 10 3f ff mov -1, %i0
0, &existing_loc, true );
if ( result != 0 )
2029a94: 80 a2 20 00 cmp %o0, 0
2029a98: 12 80 00 28 bne 2029b38 <link+0xd0>
2029a9c: a2 07 bf d0 add %fp, -48, %l1
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
2029aa0: 90 10 00 19 mov %i1, %o0
2029aa4: 92 07 bf fc add %fp, -4, %o1
2029aa8: 7f ff 80 72 call 2009c70 <rtems_filesystem_get_start_loc>
2029aac: 94 10 00 11 mov %l1, %o2
if ( !parent_loc.ops->evalformake_h ) {
2029ab0: c2 07 bf dc ld [ %fp + -36 ], %g1
2029ab4: c2 00 60 04 ld [ %g1 + 4 ], %g1
2029ab8: 80 a0 60 00 cmp %g1, 0
2029abc: 12 80 00 0b bne 2029ae8 <link+0x80> <== ALWAYS TAKEN
2029ac0: d0 07 bf fc ld [ %fp + -4 ], %o0
rtems_filesystem_freenode( &existing_loc );
2029ac4: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2029ac8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029acc: 02 80 00 51 be 2029c10 <link+0x1a8> <== NOT EXECUTED
2029ad0: 01 00 00 00 nop <== NOT EXECUTED
2029ad4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029ad8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029adc: 12 80 00 4b bne 2029c08 <link+0x1a0> <== NOT EXECUTED
2029ae0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2029ae4: 30 80 00 4b b,a 2029c10 <link+0x1a8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
2029ae8: 92 10 00 11 mov %l1, %o1
2029aec: 90 06 40 08 add %i1, %o0, %o0
2029af0: 9f c0 40 00 call %g1
2029af4: 94 07 bf f8 add %fp, -8, %o2
if ( result != 0 ) {
2029af8: b2 92 20 00 orcc %o0, 0, %i1
2029afc: 02 80 00 11 be 2029b40 <link+0xd8>
2029b00: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &existing_loc );
2029b04: c2 07 bf f0 ld [ %fp + -16 ], %g1
2029b08: 80 a0 60 00 cmp %g1, 0
2029b0c: 02 80 00 08 be 2029b2c <link+0xc4> <== NEVER TAKEN
2029b10: 01 00 00 00 nop
2029b14: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029b18: 80 a0 60 00 cmp %g1, 0
2029b1c: 02 80 00 04 be 2029b2c <link+0xc4> <== NEVER TAKEN
2029b20: 01 00 00 00 nop
2029b24: 9f c0 40 00 call %g1
2029b28: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( result );
2029b2c: 40 00 69 da call 2044294 <__errno>
2029b30: b0 10 3f ff mov -1, %i0
2029b34: f2 22 00 00 st %i1, [ %o0 ]
2029b38: 81 c7 e0 08 ret
2029b3c: 81 e8 00 00 restore
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
2029b40: c4 07 bf e0 ld [ %fp + -32 ], %g2
2029b44: 80 a0 80 01 cmp %g2, %g1
2029b48: 02 80 00 1a be 2029bb0 <link+0x148>
2029b4c: c2 07 bf dc ld [ %fp + -36 ], %g1
rtems_filesystem_freenode( &existing_loc );
2029b50: c2 07 bf f0 ld [ %fp + -16 ], %g1
2029b54: 80 a0 60 00 cmp %g1, 0
2029b58: 22 80 00 09 be,a 2029b7c <link+0x114> <== NEVER TAKEN
2029b5c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029b60: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029b64: 80 a0 60 00 cmp %g1, 0
2029b68: 22 80 00 05 be,a 2029b7c <link+0x114> <== NEVER TAKEN
2029b6c: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029b70: 9f c0 40 00 call %g1
2029b74: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &parent_loc );
2029b78: c2 07 bf dc ld [ %fp + -36 ], %g1
2029b7c: 80 a0 60 00 cmp %g1, 0
2029b80: 02 80 00 08 be 2029ba0 <link+0x138> <== NEVER TAKEN
2029b84: 01 00 00 00 nop
2029b88: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029b8c: 80 a0 60 00 cmp %g1, 0
2029b90: 02 80 00 04 be 2029ba0 <link+0x138> <== NEVER TAKEN
2029b94: 01 00 00 00 nop
2029b98: 9f c0 40 00 call %g1
2029b9c: 90 07 bf d0 add %fp, -48, %o0
rtems_set_errno_and_return_minus_one( EXDEV );
2029ba0: 40 00 69 bd call 2044294 <__errno>
2029ba4: b0 10 3f ff mov -1, %i0
2029ba8: 10 80 00 1d b 2029c1c <link+0x1b4>
2029bac: 82 10 20 12 mov 0x12, %g1
}
if ( !parent_loc.ops->link_h ) {
2029bb0: c2 00 60 08 ld [ %g1 + 8 ], %g1
2029bb4: 80 a0 60 00 cmp %g1, 0
2029bb8: 12 80 00 1c bne 2029c28 <link+0x1c0> <== ALWAYS TAKEN
2029bbc: d4 07 bf f8 ld [ %fp + -8 ], %o2
rtems_filesystem_freenode( &existing_loc );
2029bc0: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
2029bc4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029bc8: 22 80 00 09 be,a 2029bec <link+0x184> <== NOT EXECUTED
2029bcc: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029bd0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029bd4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029bd8: 22 80 00 05 be,a 2029bec <link+0x184> <== NOT EXECUTED
2029bdc: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029be0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029be4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
2029be8: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029bec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029bf0: 02 80 00 08 be 2029c10 <link+0x1a8> <== NOT EXECUTED
2029bf4: 01 00 00 00 nop <== NOT EXECUTED
2029bf8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029bfc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029c00: 02 80 00 04 be 2029c10 <link+0x1a8> <== NOT EXECUTED
2029c04: 90 07 bf d0 add %fp, -48, %o0 <== NOT EXECUTED
2029c08: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029c0c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2029c10: 40 00 69 a1 call 2044294 <__errno> <== NOT EXECUTED
2029c14: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2029c18: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2029c1c: c2 22 00 00 st %g1, [ %o0 ]
2029c20: 81 c7 e0 08 ret
2029c24: 81 e8 00 00 restore
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
2029c28: 92 10 00 11 mov %l1, %o1
2029c2c: 9f c0 40 00 call %g1
2029c30: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &existing_loc );
2029c34: c2 07 bf f0 ld [ %fp + -16 ], %g1
2029c38: 80 a0 60 00 cmp %g1, 0
2029c3c: 02 80 00 08 be 2029c5c <link+0x1f4> <== NEVER TAKEN
2029c40: b0 10 00 08 mov %o0, %i0
2029c44: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029c48: 80 a0 60 00 cmp %g1, 0
2029c4c: 22 80 00 05 be,a 2029c60 <link+0x1f8> <== NEVER TAKEN
2029c50: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
2029c54: 9f c0 40 00 call %g1
2029c58: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &parent_loc );
2029c5c: c2 07 bf dc ld [ %fp + -36 ], %g1
2029c60: 80 a0 60 00 cmp %g1, 0
2029c64: 02 80 00 08 be 2029c84 <link+0x21c> <== NEVER TAKEN
2029c68: 01 00 00 00 nop
2029c6c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2029c70: 80 a0 60 00 cmp %g1, 0
2029c74: 02 80 00 04 be 2029c84 <link+0x21c> <== NEVER TAKEN
2029c78: 01 00 00 00 nop
2029c7c: 9f c0 40 00 call %g1
2029c80: 90 07 bf d0 add %fp, -48, %o0
return result;
}
2029c84: 81 c7 e0 08 ret
2029c88: 81 e8 00 00 restore
0201b3d8 <lseek>:
off_t lseek(
int fd,
off_t offset,
int whence
)
{
201b3d8: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
201b3dc: 03 00 80 75 sethi %hi(0x201d400), %g1
201b3e0: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 <rtems_libio_number_iops>
off_t lseek(
int fd,
off_t offset,
int whence
)
{
201b3e4: 96 10 00 1b mov %i3, %o3
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
201b3e8: 80 a6 00 01 cmp %i0, %g1
off_t lseek(
int fd,
off_t offset,
int whence
)
{
201b3ec: 84 10 00 19 mov %i1, %g2
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
201b3f0: 1a 80 00 0c bcc 201b420 <lseek+0x48> <== NEVER TAKEN
201b3f4: 86 10 00 1a mov %i2, %g3
iop = rtems_libio_iop( fd );
201b3f8: 03 00 80 78 sethi %hi(0x201e000), %g1
201b3fc: e0 00 60 b4 ld [ %g1 + 0xb4 ], %l0 ! 201e0b4 <rtems_libio_iops>
201b400: 83 2e 20 06 sll %i0, 6, %g1
201b404: b1 2e 20 03 sll %i0, 3, %i0
201b408: b0 06 00 01 add %i0, %g1, %i0
201b40c: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open(iop);
201b410: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201b414: 80 88 61 00 btst 0x100, %g1
201b418: 32 80 00 06 bne,a 201b430 <lseek+0x58> <== ALWAYS TAKEN
201b41c: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201b420: 7f ff d5 4a call 2010948 <__errno> <== NOT EXECUTED
201b424: 01 00 00 00 nop <== NOT EXECUTED
201b428: 10 80 00 1e b 201b4a0 <lseek+0xc8> <== NOT EXECUTED
201b42c: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
/*
* Check as many errors as possible before touching iop->offset.
*/
if ( !iop->handlers->lseek_h )
201b430: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
201b434: 80 a0 60 00 cmp %g1, 0
201b438: 12 80 00 06 bne 201b450 <lseek+0x78> <== ALWAYS TAKEN
201b43c: 80 a6 e0 01 cmp %i3, 1
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b440: 7f ff d5 42 call 2010948 <__errno> <== NOT EXECUTED
201b444: 01 00 00 00 nop <== NOT EXECUTED
201b448: 10 80 00 16 b 201b4a0 <lseek+0xc8> <== NOT EXECUTED
201b44c: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
switch ( whence ) {
201b450: 02 80 00 09 be 201b474 <lseek+0x9c>
201b454: e4 1c 20 10 ldd [ %l0 + 0x10 ], %l2
201b458: 80 a6 e0 02 cmp %i3, 2
201b45c: 02 80 00 09 be 201b480 <lseek+0xa8>
201b460: 80 a6 e0 00 cmp %i3, 0
201b464: 12 80 00 0c bne 201b494 <lseek+0xbc>
201b468: 01 00 00 00 nop
case SEEK_SET:
iop->offset = offset;
break;
201b46c: 10 80 00 12 b 201b4b4 <lseek+0xdc>
201b470: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
case SEEK_CUR:
iop->offset += offset;
201b474: 9a 86 80 13 addcc %i2, %l3, %o5
201b478: 10 80 00 05 b 201b48c <lseek+0xb4>
201b47c: 98 46 40 12 addx %i1, %l2, %o4
break;
case SEEK_END:
iop->offset = iop->size + offset;
201b480: d8 1c 20 08 ldd [ %l0 + 8 ], %o4
201b484: 9a 86 80 0d addcc %i2, %o5, %o5
201b488: 98 46 40 0c addx %i1, %o4, %o4
break;
201b48c: 10 80 00 0a b 201b4b4 <lseek+0xdc>
201b490: d8 3c 20 10 std %o4, [ %l0 + 0x10 ]
default:
rtems_set_errno_and_return_minus_one( EINVAL );
201b494: 7f ff d5 2d call 2010948 <__errno>
201b498: 01 00 00 00 nop
201b49c: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
201b4a0: c2 22 00 00 st %g1, [ %o0 ]
201b4a4: 11 3f ff ff sethi %hi(0xfffffc00), %o0
201b4a8: 90 12 23 ff or %o0, 0x3ff, %o0 ! ffffffff <RAM_END+0xfdbfffff>
201b4ac: 10 80 00 0e b 201b4e4 <lseek+0x10c>
201b4b0: 92 10 00 08 mov %o0, %o1
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->handlers->lseek_h)( iop, offset, whence );
201b4b4: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201b4b8: 92 10 00 02 mov %g2, %o1
201b4bc: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
201b4c0: 94 10 00 03 mov %g3, %o2
201b4c4: 9f c0 40 00 call %g1
201b4c8: 90 10 00 10 mov %l0, %o0
if ( status == (off_t) -1 )
201b4cc: 80 a2 3f ff cmp %o0, -1
201b4d0: 12 80 00 06 bne 201b4e8 <lseek+0x110>
201b4d4: b2 10 00 09 mov %o1, %i1
201b4d8: 80 a2 7f ff cmp %o1, -1
201b4dc: 22 80 00 03 be,a 201b4e8 <lseek+0x110> <== ALWAYS TAKEN
201b4e0: e4 3c 20 10 std %l2, [ %l0 + 0x10 ]
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
201b4e4: b2 10 00 09 mov %o1, %i1
201b4e8: 81 c7 e0 08 ret
201b4ec: 91 e8 00 08 restore %g0, %o0, %o0
02029de0 <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
2029de0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
2029de4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2029de8: 12 80 00 06 bne 2029e00 <lstat+0x20> <== NOT EXECUTED
2029dec: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
2029df0: 40 00 69 29 call 2044294 <__errno> <== NOT EXECUTED
2029df4: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2029df8: 10 80 00 20 b 2029e78 <lstat+0x98> <== NOT EXECUTED
2029dfc: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
2029e00: 40 00 84 e1 call 204b184 <strlen> <== NOT EXECUTED
2029e04: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2029e08: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
2029e0c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2029e10: 94 10 20 00 clr %o2 <== NOT EXECUTED
2029e14: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2029e18: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2029e1c: 98 10 20 00 clr %o4 <== NOT EXECUTED
2029e20: 7f ff 78 f3 call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2029e24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
2029e28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029e2c: 12 80 00 14 bne 2029e7c <lstat+0x9c> <== NOT EXECUTED
2029e30: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return -1;
if ( !loc.handlers->fstat_h ){
2029e34: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2029e38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029e3c: 12 80 00 12 bne 2029e84 <lstat+0xa4> <== NOT EXECUTED
2029e40: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
2029e44: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2029e48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029e4c: 02 80 00 08 be 2029e6c <lstat+0x8c> <== NOT EXECUTED
2029e50: 01 00 00 00 nop <== NOT EXECUTED
2029e54: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029e58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029e5c: 02 80 00 04 be 2029e6c <lstat+0x8c> <== NOT EXECUTED
2029e60: 01 00 00 00 nop <== NOT EXECUTED
2029e64: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029e68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2029e6c: 40 00 69 0a call 2044294 <__errno> <== NOT EXECUTED
2029e70: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2029e74: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2029e78: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2029e7c: 81 c7 e0 08 ret <== NOT EXECUTED
2029e80: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
2029e84: 94 10 20 48 mov 0x48, %o2 <== NOT EXECUTED
2029e88: 40 00 76 e2 call 2047a10 <memset> <== NOT EXECUTED
2029e8c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
2029e90: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2029e94: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2029e98: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2029e9c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029ea0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
2029ea4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2029ea8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029eac: 02 bf ff f4 be 2029e7c <lstat+0x9c> <== NOT EXECUTED
2029eb0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2029eb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2029eb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2029ebc: 02 80 00 04 be 2029ecc <lstat+0xec> <== NOT EXECUTED
2029ec0: 01 00 00 00 nop <== NOT EXECUTED
2029ec4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2029ec8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return status;
}
2029ecc: 81 c7 e0 08 ret <== NOT EXECUTED
2029ed0: 81 e8 00 00 restore <== NOT EXECUTED
02002e78 <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
2002e78: 9d e3 bf a0 save %sp, -96, %sp
2002e7c: 03 00 80 78 sethi %hi(0x201e000), %g1
2002e80: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 <rtems_malloc_statistics>
2002e84: c4 00 60 04 ld [ %g1 + 4 ], %g2
2002e88: a0 10 00 18 mov %i0, %l0
2002e8c: 84 00 a0 01 inc %g2
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
2002e90: 7f ff ff b1 call 2002d54 <malloc_deferred_frees_process>
2002e94: c4 20 60 04 st %g2, [ %g1 + 4 ]
/*
* Validate the parameters
*/
if ( !size )
2002e98: 80 a6 20 00 cmp %i0, 0
2002e9c: 02 80 00 35 be 2002f70 <malloc+0xf8> <== NEVER TAKEN
2002ea0: 03 00 80 79 sethi %hi(0x201e400), %g1
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
2002ea4: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current>
2002ea8: 80 a0 60 03 cmp %g1, 3
2002eac: 12 80 00 07 bne 2002ec8 <malloc+0x50>
2002eb0: 03 00 80 75 sethi %hi(0x201d400), %g1
2002eb4: 7f ff ff 8f call 2002cf0 <malloc_is_system_state_OK>
2002eb8: 01 00 00 00 nop
2002ebc: 80 8a 20 ff btst 0xff, %o0
2002ec0: 02 80 00 2c be 2002f70 <malloc+0xf8> <== NEVER TAKEN
2002ec4: 03 00 80 75 sethi %hi(0x201d400), %g1
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
2002ec8: d0 00 62 b0 ld [ %g1 + 0x2b0 ], %o0 ! 201d6b0 <RTEMS_Malloc_Heap>
2002ecc: 92 10 00 10 mov %l0, %o1
2002ed0: 94 10 20 00 clr %o2
2002ed4: 40 00 14 18 call 2007f34 <_Protected_heap_Allocate_aligned_with_boundary>
2002ed8: 96 10 20 00 clr %o3
* If this fails then return a NULL pointer.
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
2002edc: b0 92 20 00 orcc %o0, 0, %i0
2002ee0: 12 80 00 13 bne 2002f2c <malloc+0xb4>
2002ee4: a2 10 00 18 mov %i0, %l1
if (rtems_malloc_sbrk_helpers)
2002ee8: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002eec: c2 00 61 dc ld [ %g1 + 0x1dc ], %g1 ! 201dddc <rtems_malloc_sbrk_helpers>
2002ef0: 80 a0 60 00 cmp %g1, 0
2002ef4: 02 80 00 08 be 2002f14 <malloc+0x9c> <== ALWAYS TAKEN
2002ef8: 01 00 00 00 nop
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
2002efc: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2002f00: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002f04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( !return_this ) {
2002f08: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2002f0c: 12 80 00 09 bne 2002f30 <malloc+0xb8> <== NOT EXECUTED
2002f10: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
errno = ENOMEM;
2002f14: 40 00 36 8d call 2010948 <__errno>
2002f18: 01 00 00 00 nop
2002f1c: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc>
2002f20: c2 22 00 00 st %g1, [ %o0 ]
return (void *) 0;
2002f24: 81 c7 e0 08 ret
2002f28: 81 e8 00 00 restore
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
2002f2c: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002f30: c2 00 61 e0 ld [ %g1 + 0x1e0 ], %g1 ! 201dde0 <rtems_malloc_dirty_helper>
2002f34: 80 a0 60 00 cmp %g1, 0
2002f38: 02 80 00 04 be 2002f48 <malloc+0xd0> <== ALWAYS TAKEN
2002f3c: 92 10 00 10 mov %l0, %o1
(*rtems_malloc_dirty_helper)( return_this, size );
2002f40: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002f44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
2002f48: 03 00 80 77 sethi %hi(0x201dc00), %g1
2002f4c: c2 00 61 d8 ld [ %g1 + 0x1d8 ], %g1 ! 201ddd8 <rtems_malloc_statistics_helpers>
2002f50: 80 a0 60 00 cmp %g1, 0
2002f54: 02 bf ff f4 be 2002f24 <malloc+0xac>
2002f58: b0 10 00 11 mov %l1, %i0
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
2002f5c: c2 00 60 04 ld [ %g1 + 4 ], %g1
2002f60: 9f c0 40 00 call %g1
2002f64: 90 10 00 11 mov %l1, %o0
2002f68: 81 c7 e0 08 ret
2002f6c: 81 e8 00 00 restore
2002f70: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
return return_this;
}
2002f74: 81 c7 e0 08 ret <== NOT EXECUTED
2002f78: 81 e8 00 00 restore <== NOT EXECUTED
02002d38 <malloc_deferred_free>:
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
2002d38: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2002d3c: 11 00 80 78 sethi %hi(0x201e000), %o0 <== NOT EXECUTED
2002d40: 90 12 20 c0 or %o0, 0xc0, %o0 ! 201e0c0 <RTEMS_Malloc_GC_list><== NOT EXECUTED
2002d44: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2002d48: 40 00 0f f5 call 2006d1c <_Chain_Append> <== NOT EXECUTED
2002d4c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02002d54 <malloc_deferred_frees_process>:
void malloc_deferred_frees_process(void)
{
2002d54: 9d e3 bf a0 save %sp, -96, %sp
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
2002d58: 21 00 80 78 sethi %hi(0x201e000), %l0
rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
2002d5c: 10 80 00 04 b 2002d6c <malloc_deferred_frees_process+0x18>
2002d60: a0 14 20 c0 or %l0, 0xc0, %l0 ! 201e0c0 <RTEMS_Malloc_GC_list>
free(to_be_freed);
2002d64: 7f ff ff 66 call 2002afc <free> <== NOT EXECUTED
2002d68: 01 00 00 00 nop <== NOT EXECUTED
2002d6c: 40 00 10 02 call 2006d74 <_Chain_Get>
2002d70: 90 10 00 10 mov %l0, %o0
rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
2002d74: 80 a2 20 00 cmp %o0, 0
2002d78: 12 bf ff fb bne 2002d64 <malloc_deferred_frees_process+0x10><== NEVER TAKEN
2002d7c: 01 00 00 00 nop
free(to_be_freed);
}
2002d80: 81 c7 e0 08 ret
2002d84: 81 e8 00 00 restore
02002cf0 <malloc_is_system_state_OK>:
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
{
if ( _Thread_Dispatch_disable_level > 0 )
2002cf0: 03 00 80 78 sethi %hi(0x201e000), %g1
2002cf4: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 201e290 <_Thread_Dispatch_disable_level>
2002cf8: 80 a0 60 00 cmp %g1, 0
2002cfc: 12 80 00 06 bne 2002d14 <malloc_is_system_state_OK+0x24> <== NEVER TAKEN
2002d00: 90 10 20 00 clr %o0
return false;
if ( _ISR_Nest_level > 0 )
2002d04: 03 00 80 78 sethi %hi(0x201e000), %g1
2002d08: c2 00 63 2c ld [ %g1 + 0x32c ], %g1 ! 201e32c <_ISR_Nest_level>
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
2002d0c: 80 a0 00 01 cmp %g0, %g1
2002d10: 90 60 3f ff subx %g0, -1, %o0
if ( _ISR_Nest_level > 0 )
return false;
return true;
}
2002d14: 81 c3 e0 08 retl
0200df54 <memfile_alloc_block>:
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
200df54: 9d e3 bf a0 save %sp, -96, %sp
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
200df58: 03 00 80 77 sethi %hi(0x201dc00), %g1
200df5c: d2 00 62 28 ld [ %g1 + 0x228 ], %o1 ! 201de28 <imfs_memfile_bytes_per_block>
200df60: 7f ff d2 55 call 20028b4 <calloc>
200df64: 90 10 20 01 mov 1, %o0
if ( memory )
200df68: 80 a2 20 00 cmp %o0, 0
200df6c: 02 80 00 05 be 200df80 <memfile_alloc_block+0x2c> <== NEVER TAKEN
200df70: 03 00 80 77 sethi %hi(0x201dc00), %g1
memfile_blocks_allocated++;
200df74: c4 00 63 3c ld [ %g1 + 0x33c ], %g2 ! 201df3c <memfile_blocks_allocated>
200df78: 84 00 a0 01 inc %g2
200df7c: c4 20 63 3c st %g2, [ %g1 + 0x33c ]
return memory;
}
200df80: 81 c7 e0 08 ret
200df84: 91 e8 00 08 restore %g0, %o0, %o0
0200e48c <memfile_check_rmnod>:
return memfile_check_rmnod( the_jnode );
}
int memfile_check_rmnod( IMFS_jnode_t *the_jnode ){
200e48c: 9d e3 bf a0 save %sp, -96, %sp
/*
* The file cannot be open and the link must be less than 1 to free.
*/
if ( !rtems_libio_is_file_open( the_jnode ) && (the_jnode->st_nlink < 1) ) {
200e490: 7f ff f6 d3 call 200bfdc <rtems_libio_is_file_open>
200e494: 90 10 00 18 mov %i0, %o0
200e498: 80 a2 20 00 cmp %o0, 0
200e49c: 12 80 00 13 bne 200e4e8 <memfile_check_rmnod+0x5c>
200e4a0: 01 00 00 00 nop
200e4a4: c2 16 20 34 lduh [ %i0 + 0x34 ], %g1
200e4a8: 80 a0 60 00 cmp %g1, 0
200e4ac: 12 80 00 0f bne 200e4e8 <memfile_check_rmnod+0x5c> <== NEVER TAKEN
200e4b0: 03 00 80 76 sethi %hi(0x201d800), %g1
/*
* Is the rtems_filesystem_current is this node?
*/
if ( rtems_filesystem_current.node_access == the_jnode )
200e4b4: c2 00 60 70 ld [ %g1 + 0x70 ], %g1 ! 201d870 <rtems_current_user_env>
200e4b8: c4 00 60 04 ld [ %g1 + 4 ], %g2
200e4bc: 80 a0 80 18 cmp %g2, %i0
200e4c0: 22 80 00 02 be,a 200e4c8 <memfile_check_rmnod+0x3c> <== NEVER TAKEN
200e4c4: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
rtems_filesystem_current.node_access = NULL;
/*
* Free memory associated with a memory file.
*/
if (the_jnode->type != IMFS_LINEAR_FILE)
200e4c8: c2 06 20 4c ld [ %i0 + 0x4c ], %g1
200e4cc: 80 a0 60 06 cmp %g1, 6
200e4d0: 02 80 00 04 be 200e4e0 <memfile_check_rmnod+0x54> <== NEVER TAKEN
200e4d4: 01 00 00 00 nop
IMFS_memfile_remove( the_jnode );
200e4d8: 7f ff ff 8c call 200e308 <IMFS_memfile_remove>
200e4dc: 90 10 00 18 mov %i0, %o0
free( the_jnode );
200e4e0: 7f ff d1 87 call 2002afc <free>
200e4e4: 90 10 00 18 mov %i0, %o0
}
return 0;
}
200e4e8: 81 c7 e0 08 ret
200e4ec: 91 e8 20 00 restore %g0, 0, %o0
0200e240 <memfile_free_blocks_in_table>:
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
200e240: 9d e3 bf a0 save %sp, -96, %sp
/*
* Perform internal consistency checks
*/
assert( block_table );
200e244: 80 a6 20 00 cmp %i0, 0
200e248: 32 80 00 0a bne,a 200e270 <memfile_free_blocks_in_table+0x30><== ALWAYS TAKEN
200e24c: e0 06 00 00 ld [ %i0 ], %l0
200e250: 11 00 80 72 sethi %hi(0x201c800), %o0 <== NOT EXECUTED
200e254: 15 00 80 73 sethi %hi(0x201cc00), %o2 <== NOT EXECUTED
200e258: 17 00 80 73 sethi %hi(0x201cc00), %o3 <== NOT EXECUTED
200e25c: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
200e260: 94 12 a1 80 or %o2, 0x180, %o2 <== NOT EXECUTED
200e264: 96 12 e0 68 or %o3, 0x68, %o3 <== NOT EXECUTED
200e268: 7f ff f6 be call 200bd60 <__assert_func> <== NOT EXECUTED
200e26c: 92 10 21 b3 mov 0x1b3, %o1 <== NOT EXECUTED
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
200e270: 10 80 00 09 b 200e294 <memfile_free_blocks_in_table+0x54>
200e274: a2 10 20 00 clr %l1
if ( b[i] ) {
200e278: 80 a2 20 00 cmp %o0, 0
200e27c: 02 80 00 05 be 200e290 <memfile_free_blocks_in_table+0x50>
200e280: a2 04 60 01 inc %l1
memfile_free_block( b[i] );
200e284: 7f ff ff 2b call 200df30 <memfile_free_block>
200e288: 01 00 00 00 nop
b[i] = 0;
200e28c: c0 24 00 00 clr [ %l0 ]
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
200e290: a0 04 20 04 add %l0, 4, %l0
200e294: 80 a4 40 19 cmp %l1, %i1
200e298: 26 bf ff f8 bl,a 200e278 <memfile_free_blocks_in_table+0x38>
200e29c: d0 04 00 00 ld [ %l0 ], %o0
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
200e2a0: 7f ff ff 24 call 200df30 <memfile_free_block>
200e2a4: d0 06 00 00 ld [ %i0 ], %o0
*block_table = 0;
200e2a8: c0 26 00 00 clr [ %i0 ]
}
200e2ac: 81 c7 e0 08 ret
200e2b0: 81 e8 00 00 restore
0200e7a0 <memfile_ftruncate>:
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
200e7a0: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200e7a4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
200e7a8: 92 10 00 19 mov %i1, %o1
* POSIX 1003.1b does not specify what happens if you truncate a file
* and the new length is greater than the current size. We treat this
* as an extend operation.
*/
if ( length > the_jnode->info.file.size )
200e7ac: c2 04 20 50 ld [ %l0 + 0x50 ], %g1
200e7b0: 80 a0 40 19 cmp %g1, %i1
200e7b4: 06 80 00 09 bl 200e7d8 <memfile_ftruncate+0x38> <== NEVER TAKEN
200e7b8: 94 10 00 1a mov %i2, %o2
200e7bc: 80 a0 40 19 cmp %g1, %i1
200e7c0: 32 80 00 0a bne,a 200e7e8 <memfile_ftruncate+0x48> <== NEVER TAKEN
200e7c4: d2 24 20 50 st %o1, [ %l0 + 0x50 ] <== NOT EXECUTED
200e7c8: c2 04 20 54 ld [ %l0 + 0x54 ], %g1
200e7cc: 80 a0 40 1a cmp %g1, %i2
200e7d0: 3a 80 00 06 bcc,a 200e7e8 <memfile_ftruncate+0x48> <== ALWAYS TAKEN
200e7d4: d2 24 20 50 st %o1, [ %l0 + 0x50 ]
return IMFS_memfile_extend( the_jnode, length );
200e7d8: 7f ff ff 8f call 200e614 <IMFS_memfile_extend> <== NOT EXECUTED
200e7dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200e7e0: 81 c7 e0 08 ret <== NOT EXECUTED
200e7e4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
* The in-memory files do not currently reclaim memory until the file is
* deleted. So we leave the previously allocated blocks in place for
* future use and just set the length.
*/
the_jnode->info.file.size = length;
200e7e8: d4 24 20 54 st %o2, [ %l0 + 0x54 ]
iop->size = the_jnode->info.file.size;
200e7ec: d2 26 20 08 st %o1, [ %i0 + 8 ]
200e7f0: d4 26 20 0c st %o2, [ %i0 + 0xc ]
IMFS_update_atime( the_jnode );
200e7f4: 90 07 bf f8 add %fp, -8, %o0
200e7f8: 7f ff d0 eb call 2002ba4 <gettimeofday>
200e7fc: 92 10 20 00 clr %o1
200e800: c2 07 bf f8 ld [ %fp + -8 ], %g1
200e804: 90 10 20 00 clr %o0
200e808: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
return 0;
}
200e80c: b0 10 00 08 mov %o0, %i0
200e810: 81 c7 e0 08 ret
200e814: 81 e8 00 00 restore
0200e818 <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
200e818: 9d e3 bf a0 save %sp, -96, %sp
IMFS_jnode_t *the_jnode;
the_jnode = iop->file_info;
200e81c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
if (the_jnode->type == IMFS_LINEAR_FILE) {
200e820: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200e824: 80 a0 60 06 cmp %g1, 6
200e828: 32 80 00 11 bne,a 200e86c <memfile_lseek+0x54> <== ALWAYS TAKEN
200e82c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
if (iop->offset > the_jnode->info.linearfile.size)
200e830: c2 04 20 50 ld [ %l0 + 0x50 ], %g1 <== NOT EXECUTED
200e834: c6 06 20 10 ld [ %i0 + 0x10 ], %g3 <== NOT EXECUTED
200e838: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
200e83c: 14 80 00 09 bg 200e860 <memfile_lseek+0x48> <== NOT EXECUTED
200e840: c4 04 20 54 ld [ %l0 + 0x54 ], %g2 <== NOT EXECUTED
200e844: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
200e848: 32 80 00 1a bne,a 200e8b0 <memfile_lseek+0x98> <== NOT EXECUTED
200e84c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
200e850: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
200e854: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
200e858: 28 80 00 16 bleu,a 200e8b0 <memfile_lseek+0x98> <== NOT EXECUTED
200e85c: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
200e860: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
200e864: 10 80 00 12 b 200e8ac <memfile_lseek+0x94> <== NOT EXECUTED
200e868: c4 26 20 14 st %g2, [ %i0 + 0x14 ] <== NOT EXECUTED
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
200e86c: 90 10 00 10 mov %l0, %o0
200e870: 92 10 00 02 mov %g2, %o1
200e874: 7f ff ff 68 call 200e614 <IMFS_memfile_extend>
200e878: 94 10 00 03 mov %g3, %o2
200e87c: 80 a2 20 00 cmp %o0, 0
200e880: 22 80 00 0a be,a 200e8a8 <memfile_lseek+0x90> <== ALWAYS TAKEN
200e884: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2
rtems_set_errno_and_return_minus_one( ENOSPC );
200e888: 40 00 08 30 call 2010948 <__errno> <== NOT EXECUTED
200e88c: 01 00 00 00 nop <== NOT EXECUTED
200e890: 82 10 20 1c mov 0x1c, %g1 ! 1c <PROM_START+0x1c> <== NOT EXECUTED
200e894: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
200e898: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200e89c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
200e8a0: 10 80 00 04 b 200e8b0 <memfile_lseek+0x98> <== NOT EXECUTED
200e8a4: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
200e8a8: c4 3e 20 08 std %g2, [ %i0 + 8 ]
}
return iop->offset;
200e8ac: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2
}
200e8b0: b2 10 00 03 mov %g3, %i1
200e8b4: 81 c7 e0 08 ret
200e8b8: 91 e8 00 02 restore %g0, %g2, %o0
0200eb84 <memfile_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200eb84: 9d e3 bf a0 save %sp, -96, %sp
the_jnode = iop->file_info;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
200eb88: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
200eb8c: a2 10 00 18 mov %i0, %l1
the_jnode = iop->file_info;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
200eb90: 80 88 62 04 btst 0x204, %g1
200eb94: 02 80 00 19 be 200ebf8 <memfile_open+0x74>
200eb98: e0 06 20 3c ld [ %i0 + 0x3c ], %l0
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
200eb9c: c2 04 20 4c ld [ %l0 + 0x4c ], %g1
200eba0: 80 a0 60 06 cmp %g1, 6
200eba4: 32 80 00 16 bne,a 200ebfc <memfile_open+0x78> <== ALWAYS TAKEN
200eba8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
uint32_t count = the_jnode->info.linearfile.size;
200ebac: d8 04 20 54 ld [ %l0 + 0x54 ], %o4 <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
200ebb0: d6 04 20 58 ld [ %l0 + 0x58 ], %o3 <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
200ebb4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
the_jnode->info.file.size = 0;
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
200ebb8: c0 24 20 5c clr [ %l0 + 0x5c ] <== NOT EXECUTED
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
uint32_t count = the_jnode->info.linearfile.size;
const unsigned char *buffer = the_jnode->info.linearfile.direct;
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
200ebbc: c0 24 20 50 clr [ %l0 + 0x50 ] <== NOT EXECUTED
200ebc0: c0 24 20 54 clr [ %l0 + 0x54 ] <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
200ebc4: c0 24 20 60 clr [ %l0 + 0x60 ] <== NOT EXECUTED
uint32_t count = the_jnode->info.linearfile.size;
const unsigned char *buffer = the_jnode->info.linearfile.direct;
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
the_jnode->info.file.indirect = 0;
200ebc8: c0 24 20 58 clr [ %l0 + 0x58 ] <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
if ((count != 0)
200ebcc: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
200ebd0: 02 80 00 0a be 200ebf8 <memfile_open+0x74> <== NOT EXECUTED
200ebd4: c2 24 20 4c st %g1, [ %l0 + 0x4c ] <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
200ebd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200ebdc: 92 10 20 00 clr %o1 <== NOT EXECUTED
200ebe0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200ebe4: 7f ff ff 36 call 200e8bc <IMFS_memfile_write> <== NOT EXECUTED
200ebe8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
if ((count != 0)
200ebec: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
200ebf0: 02 80 00 0a be 200ec18 <memfile_open+0x94> <== NOT EXECUTED
200ebf4: 01 00 00 00 nop <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
200ebf8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
200ebfc: 80 88 62 00 btst 0x200, %g1
200ec00: 02 80 00 04 be 200ec10 <memfile_open+0x8c>
200ec04: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2
iop->offset = the_jnode->info.file.size;
200ec08: c4 3c 60 10 std %g2, [ %l1 + 0x10 ]
iop->size = the_jnode->info.file.size;
200ec0c: c4 1c 20 50 ldd [ %l0 + 0x50 ], %g2
200ec10: b0 10 20 00 clr %i0
200ec14: c4 3c 60 08 std %g2, [ %l1 + 8 ]
return 0;
}
200ec18: 81 c7 e0 08 ret
200ec1c: 81 e8 00 00 restore
0200e4f0 <memfile_rmnod>:
int memfile_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
200e4f0: 9d e3 bf 98 save %sp, -104, %sp
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
200e4f4: e0 06 40 00 ld [ %i1 ], %l0
/*
* Take the node out of the parent's chain that contains this node
*/
if ( the_jnode->Parent != NULL ) {
200e4f8: c2 04 20 08 ld [ %l0 + 8 ], %g1
200e4fc: 80 a0 60 00 cmp %g1, 0
200e500: 22 80 00 06 be,a 200e518 <memfile_rmnod+0x28> <== NEVER TAKEN
200e504: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
200e508: 7f ff e2 11 call 2006d4c <_Chain_Extract>
200e50c: 90 10 00 10 mov %l0, %o0
rtems_chain_extract( (rtems_chain_node *) the_jnode );
the_jnode->Parent = NULL;
200e510: c0 24 20 08 clr [ %l0 + 8 ]
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200e514: c2 14 20 34 lduh [ %l0 + 0x34 ], %g1
IMFS_update_ctime( the_jnode );
200e518: 92 10 20 00 clr %o1
/*
* Decrement the link counter and see if we can free the space.
*/
the_jnode->st_nlink--;
200e51c: 82 00 7f ff add %g1, -1, %g1
IMFS_update_ctime( the_jnode );
200e520: 90 07 bf f8 add %fp, -8, %o0
200e524: 7f ff d1 a0 call 2002ba4 <gettimeofday>
200e528: c2 34 20 34 sth %g1, [ %l0 + 0x34 ]
200e52c: c2 07 bf f8 ld [ %fp + -8 ], %g1
return memfile_check_rmnod( the_jnode );
200e530: 90 10 00 10 mov %l0, %o0
200e534: 7f ff ff d6 call 200e48c <memfile_check_rmnod>
200e538: c2 24 20 48 st %g1, [ %l0 + 0x48 ]
}
200e53c: 81 c7 e0 08 ret
200e540: 91 e8 00 08 restore %g0, %o0, %o0
02002f9c <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
2002f9c: 9d e3 bf 80 save %sp, -128, %sp
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
2002fa0: 03 00 00 3c sethi %hi(0xf000), %g1
2002fa4: 05 00 00 10 sethi %hi(0x4000), %g2
2002fa8: 82 0e 40 01 and %i1, %g1, %g1
2002fac: 80 a0 40 02 cmp %g1, %g2
2002fb0: 02 80 00 15 be 2003004 <mknod+0x68>
2002fb4: a0 07 bf e4 add %fp, -28, %l0
2002fb8: 18 80 00 08 bgu 2002fd8 <mknod+0x3c>
2002fbc: 05 00 00 18 sethi %hi(0x6000), %g2
2002fc0: 05 00 00 04 sethi %hi(0x1000), %g2
2002fc4: 80 a0 40 02 cmp %g1, %g2
2002fc8: 02 80 00 0f be 2003004 <mknod+0x68>
2002fcc: 05 00 00 08 sethi %hi(0x2000), %g2
2002fd0: 10 80 00 06 b 2002fe8 <mknod+0x4c>
2002fd4: 80 a0 40 02 cmp %g1, %g2
2002fd8: 80 a0 40 02 cmp %g1, %g2
2002fdc: 02 80 00 09 be 2003000 <mknod+0x64>
2002fe0: 05 00 00 20 sethi %hi(0x8000), %g2
2002fe4: 80 a0 40 02 cmp %g1, %g2
2002fe8: 22 80 00 07 be,a 2003004 <mknod+0x68> <== ALWAYS TAKEN
2002fec: a0 07 bf e4 add %fp, -28, %l0
case S_IFBLK:
case S_IFREG:
case S_IFIFO:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
2002ff0: 40 00 36 56 call 2010948 <__errno> <== NOT EXECUTED
2002ff4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002ff8: 10 80 00 21 b 200307c <mknod+0xe0> <== NOT EXECUTED
2002ffc: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
}
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
2003000: a0 07 bf e4 add %fp, -28, %l0
2003004: 90 10 00 18 mov %i0, %o0
2003008: 92 07 bf fc add %fp, -4, %o1
200300c: 40 00 02 9a call 2003a74 <rtems_filesystem_get_start_loc>
2003010: 94 10 00 10 mov %l0, %o2
if ( !temp_loc.ops->evalformake_h ) {
2003014: c2 07 bf f0 ld [ %fp + -16 ], %g1
2003018: c2 00 60 04 ld [ %g1 + 4 ], %g1
200301c: 80 a0 60 00 cmp %g1, 0
2003020: 02 80 00 14 be 2003070 <mknod+0xd4> <== NEVER TAKEN
2003024: d0 07 bf fc ld [ %fp + -4 ], %o0
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*temp_loc.ops->evalformake_h)(
2003028: 92 10 00 10 mov %l0, %o1
200302c: 90 06 00 08 add %i0, %o0, %o0
2003030: 94 07 bf f8 add %fp, -8, %o2
2003034: 9f c0 40 00 call %g1
2003038: b0 10 3f ff mov -1, %i0
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
200303c: 80 a2 20 00 cmp %o0, 0
2003040: 12 80 00 10 bne 2003080 <mknod+0xe4>
2003044: c4 07 bf f0 ld [ %fp + -16 ], %g2
return -1;
if ( !temp_loc.ops->mknod_h ) {
2003048: c2 00 a0 14 ld [ %g2 + 0x14 ], %g1
200304c: 80 a0 60 00 cmp %g1, 0
2003050: 12 80 00 0e bne 2003088 <mknod+0xec> <== ALWAYS TAKEN
2003054: d0 07 bf f8 ld [ %fp + -8 ], %o0
rtems_filesystem_freenode( &temp_loc );
2003058: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
200305c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003060: 02 80 00 04 be 2003070 <mknod+0xd4> <== NOT EXECUTED
2003064: 01 00 00 00 nop <== NOT EXECUTED
2003068: 9f c0 40 00 call %g1 <== NOT EXECUTED
200306c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2003070: 40 00 36 36 call 2010948 <__errno> <== NOT EXECUTED
2003074: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2003078: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200307c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2003080: 81 c7 e0 08 ret
2003084: 81 e8 00 00 restore
}
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
2003088: 92 10 00 19 mov %i1, %o1
200308c: 94 10 00 1a mov %i2, %o2
2003090: 96 10 00 1b mov %i3, %o3
2003094: 9f c0 40 00 call %g1
2003098: 98 10 00 10 mov %l0, %o4
rtems_filesystem_freenode( &temp_loc );
200309c: c2 07 bf f0 ld [ %fp + -16 ], %g1
20030a0: 80 a0 60 00 cmp %g1, 0
20030a4: 02 bf ff f7 be 2003080 <mknod+0xe4> <== NEVER TAKEN
20030a8: b0 10 00 08 mov %o0, %i0
20030ac: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
20030b0: 80 a0 60 00 cmp %g1, 0
20030b4: 02 80 00 04 be 20030c4 <mknod+0x128>
20030b8: 01 00 00 00 nop
20030bc: 9f c0 40 00 call %g1
20030c0: 90 10 00 10 mov %l0, %o0
return result;
}
20030c4: 81 c7 e0 08 ret
20030c8: 81 e8 00 00 restore
02003154 <mount>:
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
2003154: 9d e3 bf 88 save %sp, -120, %sp
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
2003158: 80 a6 e0 01 cmp %i3, 1
200315c: 18 80 00 07 bgu 2003178 <mount+0x24>
2003160: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
2003164: 40 00 24 a2 call 200c3ec <rtems_filesystem_get_mount_handler>
2003168: 90 10 00 1a mov %i2, %o0
if ( !mount_h )
200316c: a4 92 20 00 orcc %o0, 0, %l2
2003170: 12 80 00 06 bne 2003188 <mount+0x34>
2003174: 80 a0 00 19 cmp %g0, %i1
rtems_set_errno_and_return_minus_one( EINVAL );
2003178: 40 00 35 f4 call 2010948 <__errno>
200317c: 01 00 00 00 nop
2003180: 10 80 00 3b b 200326c <mount+0x118>
2003184: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
2003188: 29 00 80 71 sethi %hi(0x201c400), %l4
{
rtems_filesystem_fsmount_me_t mount_h = NULL;
rtems_filesystem_location_info_t loc;
rtems_filesystem_mount_table_entry_t *mt_entry = NULL;
rtems_filesystem_location_info_t *loc_to_free = NULL;
bool has_target = target != NULL;
200318c: a2 40 20 00 addx %g0, 0, %l1
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
2003190: 80 a4 60 00 cmp %l1, 0
2003194: 02 80 00 03 be 20031a0 <mount+0x4c>
2003198: a8 15 20 10 or %l4, 0x10, %l4
200319c: a8 10 00 19 mov %i1, %l4
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
20031a0: 40 00 39 b7 call 201187c <strlen>
20031a4: 90 10 00 1a mov %i2, %o0
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
20031a8: 80 a6 20 00 cmp %i0, 0
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
20031ac: ac 02 20 01 add %o0, 1, %l6
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
20031b0: 02 80 00 05 be 20031c4 <mount+0x70>
20031b4: aa 10 20 00 clr %l5
20031b8: 40 00 39 b1 call 201187c <strlen>
20031bc: 90 10 00 18 mov %i0, %o0
20031c0: aa 02 20 01 add %o0, 1, %l5
size_t target_length = strlen( target );
20031c4: 40 00 39 ae call 201187c <strlen>
20031c8: 90 10 00 14 mov %l4, %o0
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_length + 1;
rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size );
20031cc: 92 05 a0 75 add %l6, 0x75, %o1
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
size_t target_length = strlen( target );
20031d0: a6 10 00 08 mov %o0, %l3
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_length + 1;
rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size );
20031d4: 92 02 40 08 add %o1, %o0, %o1
20031d8: 90 10 20 01 mov 1, %o0
20031dc: 7f ff fd b6 call 20028b4 <calloc>
20031e0: 92 02 40 15 add %o1, %l5, %o1
if ( mt_entry != NULL ) {
20031e4: a0 92 20 00 orcc %o0, 0, %l0
20031e8: 02 80 00 1e be 2003260 <mount+0x10c> <== NEVER TAKEN
20031ec: 92 10 00 1a mov %i2, %o1
char *str = (char *) mt_entry + sizeof( *mt_entry );
20031f0: b4 04 20 74 add %l0, 0x74, %i2
strcpy( str, filesystemtype );
20031f4: 40 00 39 6a call 201179c <strcpy>
20031f8: 90 10 00 1a mov %i2, %o0
mt_entry->type = str;
20031fc: f4 24 20 6c st %i2, [ %l0 + 0x6c ]
str += filesystemtype_size;
if ( source_or_null != NULL ) {
2003200: 80 a6 20 00 cmp %i0, 0
2003204: 02 80 00 07 be 2003220 <mount+0xcc>
2003208: b4 06 80 16 add %i2, %l6, %i2
strcpy( str, source_or_null );
200320c: 90 10 00 1a mov %i2, %o0
2003210: 40 00 39 63 call 201179c <strcpy>
2003214: 92 10 00 18 mov %i0, %o1
mt_entry->dev = str;
2003218: f4 24 20 70 st %i2, [ %l0 + 0x70 ]
str += source_size;
200321c: b4 06 80 15 add %i2, %l5, %i2
}
strcpy( str, target );
2003220: 92 10 00 14 mov %l4, %o1
2003224: 40 00 39 5e call 201179c <strcpy>
2003228: 90 10 00 1a mov %i2, %o0
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
mt_entry->options = options;
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
200322c: 13 00 80 71 sethi %hi(0x201c400), %o1
mt_entry->dev = str;
str += source_size;
}
strcpy( str, target );
mt_entry->target = str;
2003230: f4 24 20 68 st %i2, [ %l0 + 0x68 ]
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
mt_entry->options = options;
2003234: f6 24 20 30 st %i3, [ %l0 + 0x30 ]
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
2003238: e0 24 20 2c st %l0, [ %l0 + 0x2c ]
mt_entry->options = options;
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
200323c: 92 12 60 18 or %o1, 0x18, %o1
2003240: 90 04 20 38 add %l0, 0x38, %o0
2003244: 40 00 37 fd call 2011238 <memcpy>
2003248: 94 10 20 30 mov 0x30, %o2
/*
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
200324c: 80 a4 60 00 cmp %l1, 0
2003250: 02 80 00 3e be 2003348 <mount+0x1f4>
2003254: 03 00 80 76 sethi %hi(0x201d800), %g1
if ( rtems_filesystem_evaluate_path(
2003258: 10 80 00 07 b 2003274 <mount+0x120>
200325c: 90 10 00 19 mov %i1, %o0
target,
filesystemtype,
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
2003260: 40 00 35 ba call 2010948 <__errno> <== NOT EXECUTED
2003264: 01 00 00 00 nop <== NOT EXECUTED
2003268: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
200326c: 10 80 00 74 b 200343c <mount+0x2e8>
2003270: c2 22 00 00 st %g1, [ %o0 ]
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
if ( rtems_filesystem_evaluate_path(
2003274: 92 10 00 13 mov %l3, %o1
2003278: b6 07 bf ec add %fp, -20, %i3
200327c: 94 10 20 07 mov 7, %o2
2003280: 96 10 00 1b mov %i3, %o3
2003284: 7f ff fe 01 call 2002a88 <rtems_filesystem_evaluate_path>
2003288: 98 10 20 01 mov 1, %o4
200328c: 80 a2 3f ff cmp %o0, -1
2003290: 02 80 00 5b be 20033fc <mount+0x2a8> <== NEVER TAKEN
2003294: c2 07 bf f8 ld [ %fp + -8 ], %g1
/*
* Test for node_type_h
*/
if (!loc.ops->node_type_h) {
2003298: c2 00 60 10 ld [ %g1 + 0x10 ], %g1
200329c: 80 a0 60 00 cmp %g1, 0
20032a0: 02 80 00 20 be 2003320 <mount+0x1cc> <== NEVER TAKEN
20032a4: 01 00 00 00 nop
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
20032a8: 9f c0 40 00 call %g1
20032ac: 90 10 00 1b mov %i3, %o0
20032b0: 80 a2 20 01 cmp %o0, 1
20032b4: 02 80 00 07 be 20032d0 <mount+0x17c>
20032b8: d2 07 bf ec ld [ %fp + -20 ], %o1
errno = ENOTDIR;
20032bc: 40 00 35 a3 call 2010948 <__errno>
20032c0: 01 00 00 00 nop
20032c4: 82 10 20 14 mov 0x14, %g1 ! 14 <PROM_START+0x14>
goto cleanup_and_bail;
20032c8: 10 80 00 4e b 2003400 <mount+0x2ac>
20032cc: c2 22 00 00 st %g1, [ %o0 ]
/*
* You can only mount one file system onto a single mount point.
*/
if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
20032d0: 11 00 80 0c sethi %hi(0x2003000), %o0
20032d4: 7f ff ff 83 call 20030e0 <rtems_filesystem_mount_iterate>
20032d8: 90 12 20 cc or %o0, 0xcc, %o0 ! 20030cc <is_node_fs_root>
20032dc: 80 8a 20 ff btst 0xff, %o0
20032e0: 02 80 00 06 be 20032f8 <mount+0x1a4>
20032e4: c6 07 bf ec ld [ %fp + -20 ], %g3
errno = EBUSY;
20032e8: 40 00 35 98 call 2010948 <__errno>
20032ec: 01 00 00 00 nop
20032f0: 10 bf ff f6 b 20032c8 <mount+0x174>
20032f4: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10>
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
mt_entry->mt_point_node.handlers = loc.handlers;
mt_entry->mt_point_node.ops = loc.ops;
20032f8: c4 07 bf f8 ld [ %fp + -8 ], %g2
* may have been allocated in loc should not be sent to freenode
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
20032fc: c6 24 20 08 st %g3, [ %l0 + 8 ]
mt_entry->mt_point_node.handlers = loc.handlers;
2003300: c6 07 bf f4 ld [ %fp + -12 ], %g3
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
2003304: c2 00 a0 20 ld [ %g2 + 0x20 ], %g1
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
mt_entry->mt_point_node.handlers = loc.handlers;
2003308: c6 24 20 10 st %g3, [ %l0 + 0x10 ]
mt_entry->mt_point_node.ops = loc.ops;
mt_entry->mt_point_node.mt_entry = loc.mt_entry;
200330c: c6 07 bf fc ld [ %fp + -4 ], %g3
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
mt_entry->mt_point_node.handlers = loc.handlers;
mt_entry->mt_point_node.ops = loc.ops;
2003310: c4 24 20 14 st %g2, [ %l0 + 0x14 ]
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( !loc.ops->mount_h ){
2003314: 80 a0 60 00 cmp %g1, 0
2003318: 12 80 00 06 bne 2003330 <mount+0x1dc> <== ALWAYS TAKEN
200331c: c6 24 20 18 st %g3, [ %l0 + 0x18 ]
errno = ENOTSUP;
2003320: 40 00 35 8a call 2010948 <__errno> <== NOT EXECUTED
2003324: 01 00 00 00 nop <== NOT EXECUTED
2003328: 10 bf ff e8 b 20032c8 <mount+0x174> <== NOT EXECUTED
200332c: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
goto cleanup_and_bail;
}
if ( loc.ops->mount_h( mt_entry ) ) {
2003330: 9f c0 40 00 call %g1
2003334: 90 10 00 10 mov %l0, %o0
2003338: 80 a2 20 00 cmp %o0, 0
200333c: 02 80 00 0e be 2003374 <mount+0x220> <== ALWAYS TAKEN
2003340: 92 10 00 1c mov %i4, %o1
2003344: 30 80 00 2f b,a 2003400 <mount+0x2ac> <== NOT EXECUTED
2003348: c4 00 60 50 ld [ %g1 + 0x50 ], %g2
}
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
200334c: 82 10 60 50 or %g1, 0x50, %g1
2003350: 82 00 60 04 add %g1, 4, %g1
2003354: 80 a0 80 01 cmp %g2, %g1
2003358: 02 80 00 06 be 2003370 <mount+0x21c> <== ALWAYS TAKEN
200335c: b6 10 20 00 clr %i3
errno = EINVAL;
2003360: 40 00 35 7a call 2010948 <__errno> <== NOT EXECUTED
2003364: 01 00 00 00 nop <== NOT EXECUTED
2003368: 10 bf ff d8 b 20032c8 <mount+0x174> <== NOT EXECUTED
200336c: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
* mt_point_node.node_access will be left to null to indicate that this
* is the root of the entire file system.
*/
}
if ( (*mount_h)( mt_entry, data ) ) {
2003370: 92 10 00 1c mov %i4, %o1
2003374: 9f c4 80 00 call %l2
2003378: 90 10 00 10 mov %l0, %o0
200337c: 80 a2 20 00 cmp %o0, 0
2003380: 22 80 00 0a be,a 20033a8 <mount+0x254> <== ALWAYS TAKEN
2003384: 25 00 80 78 sethi %hi(0x201e000), %l2
/*
* Try to undo the mount operation
*/
if ( loc.ops->unmount_h ) {
2003388: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
200338c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED
2003390: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003394: 02 80 00 1b be 2003400 <mount+0x2ac> <== NOT EXECUTED
2003398: 01 00 00 00 nop <== NOT EXECUTED
loc.ops->unmount_h( mt_entry );
200339c: 9f c0 40 00 call %g1 <== NOT EXECUTED
20033a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20033a4: 30 80 00 17 b,a 2003400 <mount+0x2ac> <== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
20033a8: d0 04 a0 bc ld [ %l2 + 0xbc ], %o0
20033ac: 94 10 20 00 clr %o2
20033b0: 40 00 0b e5 call 2006344 <rtems_semaphore_obtain>
20033b4: 92 10 20 00 clr %o1
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
20033b8: 92 10 00 10 mov %l0, %o1
20033bc: 11 00 80 76 sethi %hi(0x201d800), %o0
20033c0: 40 00 0e 57 call 2006d1c <_Chain_Append>
20033c4: 90 12 20 50 or %o0, 0x50, %o0 ! 201d850 <mount_chain>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
20033c8: d0 04 a0 bc ld [ %l2 + 0xbc ], %o0
20033cc: 40 00 0c 25 call 2006460 <rtems_semaphore_release>
20033d0: b0 10 20 00 clr %i0
*/
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
20033d4: 80 a4 60 00 cmp %l1, 0
20033d8: 12 80 00 07 bne 20033f4 <mount+0x2a0>
20033dc: 03 00 80 76 sethi %hi(0x201d800), %g1
rtems_filesystem_root = mt_entry->mt_fs_root;
20033e0: d0 00 60 70 ld [ %g1 + 0x70 ], %o0 ! 201d870 <rtems_current_user_env>
20033e4: 92 04 20 1c add %l0, 0x1c, %o1
20033e8: 94 10 20 14 mov 0x14, %o2
20033ec: 40 00 37 93 call 2011238 <memcpy>
20033f0: 90 02 20 18 add %o0, 0x18, %o0
20033f4: 81 c7 e0 08 ret
20033f8: 81 e8 00 00 restore
20033fc: b6 10 20 00 clr %i3 <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( mt_entry );
2003400: 7f ff fd bf call 2002afc <free>
2003404: 90 10 00 10 mov %l0, %o0
if ( loc_to_free )
2003408: 80 a6 e0 00 cmp %i3, 0
200340c: 02 bf ff fa be 20033f4 <mount+0x2a0> <== NEVER TAKEN
2003410: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( loc_to_free );
2003414: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
2003418: 80 a0 60 00 cmp %g1, 0
200341c: 02 80 00 09 be 2003440 <mount+0x2ec> <== NEVER TAKEN
2003420: 01 00 00 00 nop
2003424: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2003428: 80 a0 60 00 cmp %g1, 0
200342c: 02 80 00 05 be 2003440 <mount+0x2ec> <== NEVER TAKEN
2003430: 01 00 00 00 nop
2003434: 9f c0 40 00 call %g1
2003438: 90 10 00 1b mov %i3, %o0
200343c: b0 10 3f ff mov -1, %i0
return -1;
}
2003440: 81 c7 e0 08 ret
2003444: 81 e8 00 00 restore
020366c8 <msdos_creat_node>:
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
20366c8: 9d e3 bf 00 save %sp, -256, %sp <== NOT EXECUTED
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
20366cc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
uint32_t sec = 0;
uint32_t byte = 0;
fat_dir_pos_init(&dir_pos);
memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
20366d0: a6 07 bf c8 add %fp, -56, %l3 <== NOT EXECUTED
mode_t mode,
const fat_file_fd_t *link_fd)
{
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
20366d4: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
20366d8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
uint32_t sec = 0;
uint32_t byte = 0;
fat_dir_pos_init(&dir_pos);
memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
20366dc: 92 10 20 00 clr %o1 <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
20366e0: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
20366e4: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
20366e8: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
{
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
fat_file_fd_t *parent_fat_fd = parent_loc->node_access;
fat_file_fd_t *fat_fd = NULL;
20366ec: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
time_t time_ret = 0;
uint16_t time_val = 0;
20366f0: c0 37 bf fe clrh [ %fp + -2 ] <== NOT EXECUTED
uint16_t date = 0;
20366f4: c0 37 bf fc clrh [ %fp + -4 ] <== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
20366f8: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
dir_pos->sname.ofs = 0;
20366fc: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
const fat_file_fd_t *link_fd)
{
int rc = RC_OK;
ssize_t ret = 0;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
fat_file_fd_t *parent_fat_fd = parent_loc->node_access;
2036700: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED
uint32_t sec = 0;
uint32_t byte = 0;
fat_dir_pos_init(&dir_pos);
memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2036704: 40 00 44 c3 call 2047a10 <memset> <== NOT EXECUTED
2036708: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
203670c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036710: 94 10 20 40 mov 0x40, %o2 <== NOT EXECUTED
2036714: 40 00 44 bf call 2047a10 <memset> <== NOT EXECUTED
2036718: 90 07 bf 68 add %fp, -152, %o0 <== NOT EXECUTED
name_type = msdos_long_to_short (name, name_len,
203671c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2036720: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2036724: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2036728: 40 00 08 4a call 2038850 <msdos_long_to_short> <== NOT EXECUTED
203672c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
msdos_node_type_t type,
const char *name,
int name_len,
mode_t mode,
const fat_file_fd_t *link_fd)
{
2036730: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
fat_dir_pos_init(&dir_pos);
memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);
name_type = msdos_long_to_short (name, name_len,
2036734: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
MSDOS_DIR_NAME(short_node),
MSDOS_NAME_MAX);
/* fill reserved field */
*MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;
2036738: c0 2c e0 0c clrb [ %l3 + 0xc ] <== NOT EXECUTED
/* set up last write date and time */
time_ret = time(NULL);
203673c: 40 00 67 8c call 205056c <time> <== NOT EXECUTED
2036740: 90 10 20 00 clr %o0 <== NOT EXECUTED
if ( time_ret == -1 )
2036744: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2036748: 02 80 00 cf be 2036a84 <msdos_creat_node+0x3bc> <== NOT EXECUTED
203674c: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
2036750: 40 00 2f df call 20426cc <msdos_date_unix2dos> <== NOT EXECUTED
2036754: 94 07 bf fe add %fp, -2, %o2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2036758: c4 17 bf fe lduh [ %fp + -2 ], %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203675c: c2 17 bf fc lduh [ %fp + -4 ], %g1 <== NOT EXECUTED
time_ret = time(NULL);
if ( time_ret == -1 )
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2036760: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2036764: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
time_ret = time(NULL);
if ( time_ret == -1 )
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2036768: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203676c: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
time_ret = time(NULL);
if ( time_ret == -1 )
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2036770: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
2036774: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
time_ret = time(NULL);
if ( time_ret == -1 )
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2036778: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
203677c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
2036780: c0 27 bf e4 clr [ %fp + -28 ] <== NOT EXECUTED
time_ret = time(NULL);
if ( time_ret == -1 )
return -1;
msdos_date_unix2dos(time_ret, &date, &time_val);
*MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);
2036784: c4 34 e0 16 sth %g2, [ %l3 + 0x16 ] <== NOT EXECUTED
*MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);
/* initialize directory/file size */
*MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;
if (type == MSDOS_DIRECTORY) {
2036788: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
203678c: 12 80 00 05 bne 20367a0 <msdos_creat_node+0xd8> <== NOT EXECUTED
2036790: c2 34 e0 18 sth %g1, [ %l3 + 0x18 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;
2036794: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
2036798: 10 80 00 3b b 2036884 <msdos_creat_node+0x1bc> <== NOT EXECUTED
203679c: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED
}
else if (type == MSDOS_HARD_LINK) {
20367a0: 80 a6 60 03 cmp %i1, 3 <== NOT EXECUTED
20367a4: 12 80 00 37 bne 2036880 <msdos_creat_node+0x1b8> <== NOT EXECUTED
20367a8: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
* node to the newly created
*/
/*
* read the original directory entry
*/
sec = fat_cluster_num_to_sector_num(parent_loc->mt_entry,
20367ac: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
20367b0: c6 07 60 20 ld [ %i5 + 0x20 ], %g3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20367b4: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
20367b8: 12 80 00 08 bne 20367d8 <msdos_creat_node+0x110> <== NOT EXECUTED
20367bc: c2 02 20 34 ld [ %o0 + 0x34 ], %g1 <== NOT EXECUTED
20367c0: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
20367c4: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
20367c8: 22 80 00 05 be,a 20367dc <msdos_creat_node+0x114> <== NOT EXECUTED
20367cc: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20367d0: 10 80 00 07 b 20367ec <msdos_creat_node+0x124> <== NOT EXECUTED
20367d4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20367d8: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
20367dc: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
20367e0: 84 00 ff fe add %g3, -2, %g2 <== NOT EXECUTED
20367e4: 85 28 80 01 sll %g2, %g1, %g2 <== NOT EXECUTED
20367e8: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
link_fd->dir_pos.sname.cln);
sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
20367ec: c2 07 60 24 ld [ %i5 + 0x24 ], %g1 <== NOT EXECUTED
byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
ret = _fat_block_read(parent_loc->mt_entry,
20367f0: d2 0c 60 02 ldub [ %l1 + 2 ], %o1 <== NOT EXECUTED
20367f4: d4 14 40 00 lduh [ %l1 ], %o2 <== NOT EXECUTED
20367f8: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED
20367fc: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2036800: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED
2036804: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
2036808: a6 07 bf a8 add %fp, -88, %l3 <== NOT EXECUTED
203680c: 96 10 20 20 mov 0x20, %o3 <== NOT EXECUTED
2036810: 7f ff bf 05 call 2026424 <_fat_block_read> <== NOT EXECUTED
2036814: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
link_node);
if (ret < 0) {
2036818: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203681c: 06 80 00 8e bl 2036a54 <msdos_creat_node+0x38c> <== NOT EXECUTED
2036820: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
/*
* copy/set "file size", "first cluster"
*/
*MSDOS_DIR_FILE_SIZE(short_node) =*MSDOS_DIR_FILE_SIZE(link_node);
2036824: c2 04 e0 1c ld [ %l3 + 0x1c ], %g1 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
2036828: c8 14 e0 14 lduh [ %l3 + 0x14 ], %g4 <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
/*
* copy/set "file size", "first cluster"
*/
*MSDOS_DIR_FILE_SIZE(short_node) =*MSDOS_DIR_FILE_SIZE(link_node);
203682c: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
*MSDOS_DIR_FIRST_CLUSTER_HI(link_node);
/*
* set "archive bit" due to changes
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
2036830: c2 0f bf b3 ldub [ %fp + -77 ], %g1 <== NOT EXECUTED
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
2036834: d6 14 e0 0e lduh [ %l3 + 0xe ], %o3 <== NOT EXECUTED
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
2036838: d8 14 e0 10 lduh [ %l3 + 0x10 ], %o4 <== NOT EXECUTED
/*
* copy/set "file size", "first cluster"
*/
*MSDOS_DIR_FILE_SIZE(short_node) =*MSDOS_DIR_FILE_SIZE(link_node);
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
203683c: da 14 e0 1a lduh [ %l3 + 0x1a ], %o5 <== NOT EXECUTED
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
2036840: c4 17 bf fc lduh [ %fp + -4 ], %g2 <== NOT EXECUTED
}
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
2036844: d4 0f bf b5 ldub [ %fp + -75 ], %o2 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
*MSDOS_DIR_FIRST_CLUSTER_HI(link_node);
/*
* set "archive bit" due to changes
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
2036848: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
203684c: c2 2f bf d3 stb %g1, [ %fp + -45 ] <== NOT EXECUTED
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
2036850: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
return -1;
}
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
2036854: 82 07 bf c8 add %fp, -56, %g1 <== NOT EXECUTED
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
2036858: 87 30 a0 18 srl %g2, 0x18, %g3 <== NOT EXECUTED
}
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
203685c: d4 28 60 0d stb %o2, [ %g1 + 0xd ] <== NOT EXECUTED
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
2036860: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
/*
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
2036864: d6 30 60 0e sth %o3, [ %g1 + 0xe ] <== NOT EXECUTED
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
2036868: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
* copy various attributes
*/
*MSDOS_DIR_ATTR(short_node) =*MSDOS_DIR_ATTR(link_node);
*MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
*MSDOS_DIR_CRT_TIME(short_node) =*MSDOS_DIR_CRT_TIME(link_node);
*MSDOS_DIR_CRT_DATE(short_node) =*MSDOS_DIR_CRT_DATE(link_node);
203686c: d8 30 60 10 sth %o4, [ %g1 + 0x10 ] <== NOT EXECUTED
/*
* copy/set "file size", "first cluster"
*/
*MSDOS_DIR_FILE_SIZE(short_node) =*MSDOS_DIR_FILE_SIZE(link_node);
*MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =
2036870: da 30 60 1a sth %o5, [ %g1 + 0x1a ] <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);
*MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =
2036874: c8 30 60 14 sth %g4, [ %g1 + 0x14 ] <== NOT EXECUTED
*/
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
/*
* set "last access" date to today
*/
*MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);
2036878: 10 80 00 04 b 2036888 <msdos_creat_node+0x1c0> <== NOT EXECUTED
203687c: c4 30 60 12 sth %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
}
else { /* regular file... */
*MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;
2036880: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
2036884: c2 2c e0 0b stb %g1, [ %l3 + 0xb ] <== NOT EXECUTED
/*
* find free space in the parent directory and write new initialized
* FAT 32 Bytes Directory Entry Structure to the disk
*/
rc = msdos_get_name_node(parent_loc, true, name, name_len,
2036888: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
203688c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2036890: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2036894: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED
2036898: a6 07 bf c8 add %fp, -56, %l3 <== NOT EXECUTED
203689c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20368a0: e6 23 a0 5c st %l3, [ %sp + 0x5c ] <== NOT EXECUTED
20368a4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
20368a8: 40 00 09 10 call 2038ce8 <msdos_get_name_node> <== NOT EXECUTED
20368ac: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
name_type, &dir_pos, short_node);
if ( rc != RC_OK )
20368b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20368b4: 12 80 00 68 bne 2036a54 <msdos_creat_node+0x38c> <== NOT EXECUTED
20368b8: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
/*
* if we create a new file we are done, if directory there are more steps
* to do
*/
if (type == MSDOS_DIRECTORY)
20368bc: 12 80 00 66 bne 2036a54 <msdos_creat_node+0x38c> <== NOT EXECUTED
20368c0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
{
/* open new directory as fat-file */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
20368c4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
20368c8: 7f ff bc 20 call 2025948 <fat_file_open> <== NOT EXECUTED
20368cc: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
if (rc != RC_OK)
20368d0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20368d4: 32 80 00 67 bne,a 2036a70 <msdos_creat_node+0x3a8> <== NOT EXECUTED
20368d8: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
/*
* we opened fat-file for node we just created, so initialize fat-file
* descritor
*/
fat_fd->fat_file_size = 0;
20368dc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
20368e0: 05 00 08 00 sethi %hi(0x200000), %g2 <== NOT EXECUTED
/*
* we opened fat-file for node we just created, so initialize fat-file
* descritor
*/
fat_fd->fat_file_size = 0;
fat_fd->fat_file_type = FAT_DIRECTORY;
20368e4: f2 20 60 10 st %i1, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
20368e8: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
/*
* we opened fat-file for node we just created, so initialize fat-file
* descritor
*/
fat_fd->fat_file_size = 0;
20368ec: c0 20 60 18 clr [ %g1 + 0x18 ] <== NOT EXECUTED
/*
* dot and dotdot entries are identical to new node except the
* names
*/
memcpy(DOT_NODE_P(dot_dotdot), short_node,
20368f0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20368f4: a8 07 bf 68 add %fp, -152, %l4 <== NOT EXECUTED
20368f8: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
20368fc: 40 00 43 b2 call 20477c4 <memcpy> <== NOT EXECUTED
2036900: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,
2036904: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2036908: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
203690c: a6 07 bf 88 add %fp, -120, %l3 <== NOT EXECUTED
2036910: 40 00 43 ad call 20477c4 <memcpy> <== NOT EXECUTED
2036914: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
2036918: 03 00 81 ad sethi %hi(0x206b400), %g1 <== NOT EXECUTED
203691c: d2 00 60 ac ld [ %g1 + 0xac ], %o1 ! 206b4ac <MSDOS_DOT_NAME><== NOT EXECUTED
2036920: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
2036924: 40 00 43 a8 call 20477c4 <memcpy> <== NOT EXECUTED
2036928: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
MSDOS_NAME_MAX);
memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
203692c: 03 00 81 ad sethi %hi(0x206b400), %g1 <== NOT EXECUTED
2036930: d2 00 60 b0 ld [ %g1 + 0xb0 ], %o1 ! 206b4b0 <MSDOS_DOTDOT_NAME><== NOT EXECUTED
2036934: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2036938: 40 00 43 a3 call 20477c4 <memcpy> <== NOT EXECUTED
203693c: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
/*
* here we can ommit FAT32 condition because for all FAT types dirs
* right under root dir should contain 0 in dotdot entry but for
* FAT12/16 parent_fat_fd->cluster_num always contains such value
*/
if ((FAT_FD_OF_ROOT_DIR(parent_fat_fd)) &&
2036940: c2 04 a0 20 ld [ %l2 + 0x20 ], %g1 <== NOT EXECUTED
2036944: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036948: 32 80 00 0d bne,a 203697c <msdos_creat_node+0x2b4> <== NOT EXECUTED
203694c: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3 <== NOT EXECUTED
2036950: c2 04 a0 24 ld [ %l2 + 0x24 ], %g1 <== NOT EXECUTED
2036954: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2036958: 32 80 00 09 bne,a 203697c <msdos_creat_node+0x2b4> <== NOT EXECUTED
203695c: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3 <== NOT EXECUTED
(fs_info->fat.vol.type & FAT_FAT32))
2036960: c2 0c 60 0a ldub [ %l1 + 0xa ], %g1 <== NOT EXECUTED
2036964: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2036968: 22 80 00 05 be,a 203697c <msdos_creat_node+0x2b4> <== NOT EXECUTED
203696c: c6 04 a0 1c ld [ %l2 + 0x1c ], %g3 <== NOT EXECUTED
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
2036970: c0 35 20 34 clrh [ %l4 + 0x34 ] <== NOT EXECUTED
/*
* here we can ommit FAT32 condition because for all FAT types dirs
* right under root dir should contain 0 in dotdot entry but for
* FAT12/16 parent_fat_fd->cluster_num always contains such value
*/
if ((FAT_FD_OF_ROOT_DIR(parent_fat_fd)) &&
2036974: 10 80 00 0e b 20369ac <msdos_creat_node+0x2e4> <== NOT EXECUTED
2036978: c0 35 20 3a clrh [ %l4 + 0x3a ] <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
203697c: 82 07 bf 68 add %fp, -152, %g1 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )(((parent_fat_fd->cln) & 0xFFFF0000)>>16));
2036980: 85 30 e0 10 srl %g3, 0x10, %g2 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
2036984: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
2036988: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
203698c: 9b 30 e0 18 srl %g3, 0x18, %o5 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
2036990: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
2036994: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
2036998: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
203699c: 86 10 c0 0d or %g3, %o5, %g3 <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
20369a0: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
}
else
{
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) =
20369a4: c6 30 60 3a sth %g3, [ %g1 + 0x3a ] <== NOT EXECUTED
CT_LE_W((uint16_t )((parent_fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =
20369a8: c4 30 60 34 sth %g2, [ %g1 + 0x34 ] <== NOT EXECUTED
/*
* write dot and dotdot entries to new fat-file: currently fat-file
* correspondes to a new node is zero length, so it will be extended
* by one cluster and entries will be written
*/
ret = fat_file_write(parent_loc->mt_entry, fat_fd, 0,
20369ac: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
20369b0: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
20369b4: a4 07 bf 68 add %fp, -152, %l2 <== NOT EXECUTED
20369b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20369bc: 96 10 20 40 mov 0x40, %o3 <== NOT EXECUTED
20369c0: 7f ff ba 9a call 2025428 <fat_file_write> <== NOT EXECUTED
20369c4: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,
(uint8_t *)dot_dotdot);
if (ret < 0)
20369c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20369cc: 06 80 00 24 bl 2036a5c <msdos_creat_node+0x394> <== NOT EXECUTED
20369d0: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
rc = -1;
goto error;
}
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
20369d4: c2 14 60 06 lduh [ %l1 + 6 ], %g1 <== NOT EXECUTED
20369d8: c6 02 60 18 ld [ %o1 + 0x18 ], %g3 <== NOT EXECUTED
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
20369dc: c4 02 60 1c ld [ %o1 + 0x1c ], %g2 <== NOT EXECUTED
rc = -1;
goto error;
}
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
20369e0: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )(((fat_fd->cln) & 0xFFFF0000) >> 16));
/* rewrite dot entry */
ret = fat_file_write(parent_loc->mt_entry, fat_fd, 0,
20369e4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
rc = -1;
goto error;
}
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
20369e8: c2 22 60 18 st %g1, [ %o1 + 0x18 ] <== NOT EXECUTED
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
CT_LE_W((uint16_t )(((fat_fd->cln) & 0xFFFF0000) >> 16));
20369ec: 83 30 a0 10 srl %g2, 0x10, %g1 <== NOT EXECUTED
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
20369f0: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
20369f4: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
20369f8: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
20369fc: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
2036a00: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
2036a04: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
2036a08: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
2036a0c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
CT_LE_W((uint16_t )(((fat_fd->cln) & 0xFFFF0000) >> 16));
/* rewrite dot entry */
ret = fat_file_write(parent_loc->mt_entry, fat_fd, 0,
2036a10: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
/* increment fat-file size by cluster size */
fat_fd->fat_file_size += fs_info->fat.vol.bpc;
/* set up cluster num for dot entry */
*MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =
2036a14: c4 34 a0 1a sth %g2, [ %l2 + 0x1a ] <== NOT EXECUTED
CT_LE_W((uint16_t )((fat_fd->cln) & 0x0000FFFF));
*MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =
2036a18: c2 34 a0 14 sth %g1, [ %l2 + 0x14 ] <== NOT EXECUTED
CT_LE_W((uint16_t )(((fat_fd->cln) & 0xFFFF0000) >> 16));
/* rewrite dot entry */
ret = fat_file_write(parent_loc->mt_entry, fat_fd, 0,
2036a1c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036a20: 7f ff ba 82 call 2025428 <fat_file_write> <== NOT EXECUTED
2036a24: 96 10 20 20 mov 0x20, %o3 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
(uint8_t *)DOT_NODE_P(dot_dotdot));
if (ret < 0)
2036a28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036a2c: 06 80 00 0d bl 2036a60 <msdos_creat_node+0x398> <== NOT EXECUTED
2036a30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rc = -1;
goto error;
}
/* write first cluster num of a new directory to disk */
rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
2036a34: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2036a38: 40 00 06 5e call 20383b0 <msdos_set_first_cluster_num> <== NOT EXECUTED
2036a3c: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036a40: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036a44: 12 80 00 08 bne 2036a64 <msdos_creat_node+0x39c> <== NOT EXECUTED
2036a48: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
goto error;
fat_file_close(parent_loc->mt_entry, fat_fd);
2036a4c: 7f ff bb 90 call 202588c <fat_file_close> <== NOT EXECUTED
2036a50: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
2036a54: 81 c7 e0 08 ret <== NOT EXECUTED
2036a58: 81 e8 00 00 restore <== NOT EXECUTED
2036a5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
return RC_OK;
error:
fat_file_close(parent_loc->mt_entry, fat_fd);
2036a60: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2036a64: 7f ff bb 8a call 202588c <fat_file_close> <== NOT EXECUTED
2036a68: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
err:
/* mark the used 32bytes structure on the disk as free */
msdos_set_first_char4file_name(parent_loc->mt_entry, &dir_pos, 0xE5);
2036a6c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2036a70: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2036a74: 40 00 06 88 call 2038494 <msdos_set_first_char4file_name> <== NOT EXECUTED
2036a78: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
return rc;
2036a7c: 81 c7 e0 08 ret <== NOT EXECUTED
2036a80: 81 e8 00 00 restore <== NOT EXECUTED
2036a84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
2036a88: 81 c7 e0 08 ret <== NOT EXECUTED
2036a8c: 81 e8 00 00 restore <== NOT EXECUTED
02042814 <msdos_date_dos2unix>:
* called from the stat(), and fstat() system calls and so probably need
* not be too efficient.
*/
unsigned int
msdos_date_dos2unix(unsigned int dd, unsigned int dt)
{
2042814: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
+ ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;
/*
* If the year, month, and day from the last conversion are the
* same then use the saved value.
*/
if (lastdosdate != dd) {
2042818: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
204281c: c4 10 61 a0 lduh [ %g1 + 0x1a0 ], %g2 ! 206e9a0 <lastdosdate><== NOT EXECUTED
2042820: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED
2042824: 02 80 00 34 be 20428f4 <msdos_date_dos2unix+0xe0> <== NOT EXECUTED
2042828: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
lastdosdate = dd;
204282c: f0 30 61 a0 sth %i0, [ %g1 + 0x1a0 ] <== NOT EXECUTED
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
2042830: 84 10 20 00 clr %g2 <== NOT EXECUTED
2042834: 86 10 e2 00 or %g3, 0x200, %g3 <== NOT EXECUTED
2042838: 82 10 20 00 clr %g1 <== NOT EXECUTED
204283c: 86 0e 00 03 and %i0, %g3, %g3 <== NOT EXECUTED
for (y = 0; y < year; y++)
days += y & 0x03 ? 365 : 366;
2042840: 88 10 21 6e mov 0x16e, %g4 <== NOT EXECUTED
*/
if (lastdosdate != dd) {
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
2042844: 10 80 00 06 b 204285c <msdos_date_dos2unix+0x48> <== NOT EXECUTED
2042848: 87 30 e0 09 srl %g3, 9, %g3 <== NOT EXECUTED
204284c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
2042850: 80 a0 00 0d cmp %g0, %o5 <== NOT EXECUTED
2042854: 9a 61 20 00 subx %g4, 0, %o5 <== NOT EXECUTED
2042858: 82 00 40 0d add %g1, %o5, %g1 <== NOT EXECUTED
*/
if (lastdosdate != dd) {
lastdosdate = dd;
days = 0;
year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;
for (y = 0; y < year; y++)
204285c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2042860: 0a bf ff fb bcs 204284c <msdos_date_dos2unix+0x38> <== NOT EXECUTED
2042864: 9a 08 a0 03 and %g2, 3, %o5 <== NOT EXECUTED
days += y & 0x03 ? 365 : 366;
months = year & 0x03 ? regyear : leapyear;
2042868: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
204286c: 07 00 81 ad sethi %hi(0x206b400), %g3 <== NOT EXECUTED
2042870: 12 80 00 04 bne 2042880 <msdos_date_dos2unix+0x6c> <== NOT EXECUTED
2042874: 86 10 e1 0c or %g3, 0x10c, %g3 ! 206b50c <regyear> <== NOT EXECUTED
2042878: 07 00 81 ad sethi %hi(0x206b400), %g3 <== NOT EXECUTED
204287c: 86 10 e1 24 or %g3, 0x124, %g3 ! 206b524 <leapyear> <== NOT EXECUTED
/*
* Prevent going from 0 to 0xffffffff in the following
* loop.
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
2042880: 84 0e 21 e0 and %i0, 0x1e0, %g2 <== NOT EXECUTED
2042884: 85 30 a0 05 srl %g2, 5, %g2 <== NOT EXECUTED
if (month == 0) {
2042888: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
204288c: 22 80 00 02 be,a 2042894 <msdos_date_dos2unix+0x80> <== NOT EXECUTED
2042890: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
month = 1;
}
for (m = 0; m < month - 1; m++)
2042894: 88 00 bf ff add %g2, -1, %g4 <== NOT EXECUTED
2042898: 10 80 00 05 b 20428ac <msdos_date_dos2unix+0x98> <== NOT EXECUTED
204289c: 84 10 20 00 clr %g2 <== NOT EXECUTED
days += months[m];
20428a0: da 10 c0 0d lduh [ %g3 + %o5 ], %o5 <== NOT EXECUTED
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
if (month == 0) {
month = 1;
}
for (m = 0; m < month - 1; m++)
20428a4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
days += months[m];
20428a8: 82 00 40 0d add %g1, %o5, %g1 <== NOT EXECUTED
*/
month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;
if (month == 0) {
month = 1;
}
for (m = 0; m < month - 1; m++)
20428ac: 80 a0 80 04 cmp %g2, %g4 <== NOT EXECUTED
20428b0: 0a bf ff fc bcs 20428a0 <msdos_date_dos2unix+0x8c> <== NOT EXECUTED
20428b4: 9b 28 a0 01 sll %g2, 1, %o5 <== NOT EXECUTED
days += months[m];
days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;
lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;
20428b8: b0 0e 20 1f and %i0, 0x1f, %i0 <== NOT EXECUTED
20428bc: b0 06 3f ff add %i0, -1, %i0 <== NOT EXECUTED
20428c0: 82 06 00 01 add %i0, %g1, %g1 <== NOT EXECUTED
20428c4: 85 28 60 09 sll %g1, 9, %g2 <== NOT EXECUTED
20428c8: 83 28 60 07 sll %g1, 7, %g1 <== NOT EXECUTED
20428cc: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
20428d0: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
20428d4: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
20428d8: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
20428dc: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
20428e0: 05 04 b3 a9 sethi %hi(0x12cea400), %g2 <== NOT EXECUTED
20428e4: 84 10 a2 00 or %g2, 0x200, %g2 ! 12cea600 <RAM_END+0x108ea600><== NOT EXECUTED
20428e8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20428ec: 05 00 81 ba sethi %hi(0x206e800), %g2 <== NOT EXECUTED
20428f0: c2 20 a1 a4 st %g1, [ %g2 + 0x1a4 ] ! 206e9a4 <lastseconds><== NOT EXECUTED
20428f4: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
20428f8: c4 00 61 a4 ld [ %g1 + 0x1a4 ], %g2 ! 206e9a4 <lastseconds><== NOT EXECUTED
20428fc: b0 0e 60 1f and %i1, 0x1f, %i0 <== NOT EXECUTED
2042900: 82 0e 67 e0 and %i1, 0x7e0, %g1 <== NOT EXECUTED
2042904: b3 36 60 0b srl %i1, 0xb, %i1 <== NOT EXECUTED
2042908: b0 06 00 02 add %i0, %g2, %i0 <== NOT EXECUTED
204290c: 84 0e 60 1f and %i1, 0x1f, %g2 <== NOT EXECUTED
2042910: b3 28 a0 08 sll %g2, 8, %i1 <== NOT EXECUTED
2042914: 85 28 a0 04 sll %g2, 4, %g2 <== NOT EXECUTED
2042918: 83 30 60 05 srl %g1, 5, %g1 <== NOT EXECUTED
204291c: b2 26 40 02 sub %i1, %g2, %i1 <== NOT EXECUTED
2042920: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
2042924: 85 2e 60 04 sll %i1, 4, %g2 <== NOT EXECUTED
2042928: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
204292c: b2 20 80 19 sub %g2, %i1, %i1 <== NOT EXECUTED
2042930: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
2042934: b0 06 00 19 add %i0, %i1, %i0 <== NOT EXECUTED
}
return seconds + lastseconds;
}
2042938: 81 c7 e0 08 ret <== NOT EXECUTED
204293c: 91 ee 00 01 restore %i0, %g1, %o0 <== NOT EXECUTED
020426cc <msdos_date_unix2dos>:
* file timestamps. The passed in unix time is assumed to be in GMT.
*/
void
msdos_date_unix2dos(unsigned int t, uint16_t *ddp,
uint16_t *dtp)
{
20426cc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* If the time from the last conversion is the same as now, then
* skip the computations and use the saved result.
*/
if (lasttime != t) {
20426d0: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
20426d4: c4 00 61 94 ld [ %g1 + 0x194 ], %g2 ! 206e994 <lasttime> <== NOT EXECUTED
20426d8: 80 a0 80 18 cmp %g2, %i0 <== NOT EXECUTED
20426dc: 02 80 00 46 be 20427f4 <msdos_date_unix2dos+0x128> <== NOT EXECUTED
20426e0: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
lasttime = t;
20426e4: f0 20 61 94 st %i0, [ %g1 + 0x194 ] <== NOT EXECUTED
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
20426e8: 40 00 68 2c call 205c798 <.udiv> <== NOT EXECUTED
20426ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20426f0: 40 00 68 d6 call 205ca48 <.urem> <== NOT EXECUTED
20426f4: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
20426f8: 92 10 2e 10 mov 0xe10, %o1 <== NOT EXECUTED
20426fc: a1 2a 20 05 sll %o0, 5, %l0 <== NOT EXECUTED
2042700: 40 00 68 26 call 205c798 <.udiv> <== NOT EXECUTED
2042704: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042708: 40 00 68 d0 call 205ca48 <.urem> <== NOT EXECUTED
204270c: 92 10 20 18 mov 0x18, %o1 <== NOT EXECUTED
2042710: 91 2a 20 0b sll %o0, 0xb, %o0 <== NOT EXECUTED
2042714: 92 10 20 3c mov 0x3c, %o1 <== NOT EXECUTED
2042718: a0 04 00 08 add %l0, %o0, %l0 <== NOT EXECUTED
204271c: 40 00 68 cb call 205ca48 <.urem> <== NOT EXECUTED
2042720: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2042724: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2042728: 91 32 20 01 srl %o0, 1, %o0 <== NOT EXECUTED
/*
* If the number of days since 1970 is the same as the last
* time we did the computation then skip all this leap year
* and month stuff.
*/
days = t / (SECONDSPERDAY);
204272c: 13 00 00 54 sethi %hi(0x15000), %o1 <== NOT EXECUTED
* If the time from the last conversion is the same as now, then
* skip the computations and use the saved result.
*/
if (lasttime != t) {
lasttime = t;
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
2042730: a0 04 00 08 add %l0, %o0, %l0 <== NOT EXECUTED
/*
* If the number of days since 1970 is the same as the last
* time we did the computation then skip all this leap year
* and month stuff.
*/
days = t / (SECONDSPERDAY);
2042734: 92 12 61 80 or %o1, 0x180, %o1 <== NOT EXECUTED
* If the time from the last conversion is the same as now, then
* skip the computations and use the saved result.
*/
if (lasttime != t) {
lasttime = t;
lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)
2042738: e0 30 61 9e sth %l0, [ %g1 + 0x19e ] <== NOT EXECUTED
/*
* If the number of days since 1970 is the same as the last
* time we did the computation then skip all this leap year
* and month stuff.
*/
days = t / (SECONDSPERDAY);
204273c: 40 00 68 17 call 205c798 <.udiv> <== NOT EXECUTED
2042740: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (days != lastday) {
2042744: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2042748: c4 00 61 98 ld [ %g1 + 0x198 ], %g2 ! 206e998 <lastday> <== NOT EXECUTED
204274c: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
2042750: 22 80 00 2a be,a 20427f8 <msdos_date_unix2dos+0x12c> <== NOT EXECUTED
2042754: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
lastday = days;
2042758: d0 20 61 98 st %o0, [ %g1 + 0x198 ] ! 206e998 <lastday> <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
204275c: 88 10 21 6e mov 0x16e, %g4 <== NOT EXECUTED
* time we did the computation then skip all this leap year
* and month stuff.
*/
days = t / (SECONDSPERDAY);
if (days != lastday) {
lastday = days;
2042760: 82 10 27 b2 mov 0x7b2, %g1 <== NOT EXECUTED
for (year = 1970;; year++) {
inc = year & 0x03 ? 365 : 366;
2042764: 84 08 60 03 and %g1, 3, %g2 <== NOT EXECUTED
2042768: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
204276c: 86 61 20 00 subx %g4, 0, %g3 <== NOT EXECUTED
if (days < inc)
2042770: 80 a2 00 03 cmp %o0, %g3 <== NOT EXECUTED
2042774: 2a 80 00 05 bcs,a 2042788 <msdos_date_unix2dos+0xbc> <== NOT EXECUTED
2042778: 07 00 81 ad sethi %hi(0x206b400), %g3 <== NOT EXECUTED
break;
days -= inc;
204277c: 90 22 00 03 sub %o0, %g3, %o0 <== NOT EXECUTED
}
2042780: 10 bf ff f9 b 2042764 <msdos_date_unix2dos+0x98> <== NOT EXECUTED
2042784: 82 00 60 01 inc %g1 <== NOT EXECUTED
months = year & 0x03 ? regyear : leapyear;
2042788: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
204278c: 12 80 00 04 bne 204279c <msdos_date_unix2dos+0xd0> <== NOT EXECUTED
2042790: 86 10 e1 0c or %g3, 0x10c, %g3 <== NOT EXECUTED
2042794: 07 00 81 ad sethi %hi(0x206b400), %g3 <== NOT EXECUTED
2042798: 86 10 e1 24 or %g3, 0x124, %g3 ! 206b524 <leapyear> <== NOT EXECUTED
204279c: 84 10 20 00 clr %g2 <== NOT EXECUTED
for (month = 0; month < 12; month++) {
if (days < months[month])
20427a0: 89 28 a0 01 sll %g2, 1, %g4 <== NOT EXECUTED
20427a4: c8 10 c0 04 lduh [ %g3 + %g4 ], %g4 <== NOT EXECUTED
20427a8: 80 a2 00 04 cmp %o0, %g4 <== NOT EXECUTED
20427ac: 2a 80 00 07 bcs,a 20427c8 <msdos_date_unix2dos+0xfc> <== NOT EXECUTED
20427b0: 90 02 20 01 inc %o0 <== NOT EXECUTED
if (days < inc)
break;
days -= inc;
}
months = year & 0x03 ? regyear : leapyear;
for (month = 0; month < 12; month++) {
20427b4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20427b8: 80 a0 a0 0c cmp %g2, 0xc <== NOT EXECUTED
20427bc: 12 bf ff f9 bne 20427a0 <msdos_date_unix2dos+0xd4> <== NOT EXECUTED
20427c0: 90 22 00 04 sub %o0, %g4, %o0 <== NOT EXECUTED
if (days < months[month])
break;
days -= months[month];
}
lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)
20427c4: 90 02 20 01 inc %o0 <== NOT EXECUTED
20427c8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20427cc: 07 00 81 ba sethi %hi(0x206e800), %g3 <== NOT EXECUTED
20427d0: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
20427d4: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
* Remember dos's idea of time is relative to 1980.
* unix's is relative to 1970. If somehow we get a
* time before 1980 then don't give totally crazy
* results.
*/
if (year > 1980)
20427d8: 80 a0 67 bc cmp %g1, 0x7bc <== NOT EXECUTED
20427dc: 08 80 00 06 bleu 20427f4 <msdos_date_unix2dos+0x128> <== NOT EXECUTED
20427e0: d0 30 e1 9c sth %o0, [ %g3 + 0x19c ] <== NOT EXECUTED
lastddate += (year - 1980) <<
20427e4: 82 00 78 44 add %g1, -1980, %g1 <== NOT EXECUTED
20427e8: 83 28 60 09 sll %g1, 9, %g1 <== NOT EXECUTED
20427ec: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
20427f0: d0 30 e1 9c sth %o0, [ %g3 + 0x19c ] <== NOT EXECUTED
MSDOS_DD_YEAR_SHIFT;
}
}
*dtp = lastdtime;
20427f4: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
20427f8: c2 10 61 9e lduh [ %g1 + 0x19e ], %g1 ! 206e99e <lastdtime><== NOT EXECUTED
20427fc: c2 36 80 00 sth %g1, [ %i2 ] <== NOT EXECUTED
*ddp = lastddate;
2042800: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2042804: c2 10 61 9c lduh [ %g1 + 0x19c ], %g1 ! 206e99c <lastddate><== NOT EXECUTED
2042808: c2 36 40 00 sth %g1, [ %i1 ] <== NOT EXECUTED
}
204280c: 81 c7 e0 08 ret <== NOT EXECUTED
2042810: 81 e8 00 00 restore <== NOT EXECUTED
02042ab4 <msdos_dir_chmod>:
int
msdos_dir_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
return RC_OK;
}
2042ab4: 81 c3 e0 08 retl <== NOT EXECUTED
2042ab8: 90 10 20 00 clr %o0 <== NOT EXECUTED
0204320c <msdos_dir_close>:
* RC_OK, if directory closed successfully, or -1 if error occured (errno
* set apropriately.
*/
int
msdos_dir_close(rtems_libio_t *iop)
{
204320c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2043210: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2043214: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
int
msdos_dir_close(rtems_libio_t *iop)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2043218: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
204321c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2043220: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2043224: 7f ff 26 33 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2043228: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
204322c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043230: 22 80 00 08 be,a 2043250 <msdos_dir_close+0x44> <== NOT EXECUTED
2043234: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2043238: 40 00 04 17 call 2044294 <__errno> <== NOT EXECUTED
204323c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2043240: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2043244: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2043248: 81 c7 e0 08 ret <== NOT EXECUTED
204324c: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
2043250: 7f ff 89 8f call 202588c <fat_file_close> <== NOT EXECUTED
2043254: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2043258: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RC_OK)
204325c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
2043260: 02 80 00 06 be 2043278 <msdos_dir_close+0x6c> <== NOT EXECUTED
2043264: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2043268: 7f ff 26 69 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
204326c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
2043270: 81 c7 e0 08 ret <== NOT EXECUTED
2043274: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_semaphore_release(fs_info->vol_sema);
2043278: 7f ff 26 65 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
204327c: 01 00 00 00 nop <== NOT EXECUTED
return RC_OK;
}
2043280: 81 c7 e0 08 ret <== NOT EXECUTED
2043284: 81 e8 00 00 restore <== NOT EXECUTED
020381c4 <msdos_dir_is_empty>:
msdos_dir_is_empty(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd,
bool *ret_val
)
{
20381c4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
20381c8: 27 00 81 ad sethi %hi(0x206b400), %l3 <== NOT EXECUTED
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
20381cc: 25 00 81 ad sethi %hi(0x206b400), %l2 <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
20381d0: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
20381d4: a6 14 e0 ac or %l3, 0xac, %l3 <== NOT EXECUTED
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
20381d8: a4 14 a0 b0 or %l2, 0xb0, %l2 <== NOT EXECUTED
fat_file_fd_t *fat_fd,
bool *ret_val
)
{
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
20381dc: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
20381e0: 10 80 00 36 b 20382b8 <msdos_dir_is_empty+0xf4> <== NOT EXECUTED
20381e4: a2 10 20 00 clr %l1 <== NOT EXECUTED
fs_info->fat.vol.bps,
fs_info->cl_buf)) != FAT_EOF)
{
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
20381e8: 34 80 00 04 bg,a 20381f8 <msdos_dir_is_empty+0x34> <== NOT EXECUTED
20381ec: c2 14 00 00 lduh [ %l0 ], %g1 <== NOT EXECUTED
20381f0: 81 c7 e0 08 ret <== NOT EXECUTED
20381f4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
20381f8: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20381fc: 02 80 00 2a be 20382a4 <msdos_dir_is_empty+0xe0> <== NOT EXECUTED
2038200: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
2038204: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2038208: 15 00 81 a0 sethi %hi(0x2068000), %o2 <== NOT EXECUTED
203820c: 17 00 81 a0 sethi %hi(0x2068000), %o3 <== NOT EXECUTED
2038210: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED
2038214: 94 12 a2 d8 or %o2, 0x2d8, %o2 <== NOT EXECUTED
2038218: 96 12 e2 00 or %o3, 0x200, %o3 <== NOT EXECUTED
203821c: 7f ff c1 77 call 20287f8 <__assert_func> <== NOT EXECUTED
2038220: 92 10 23 b5 mov 0x3b5, %o1 <== NOT EXECUTED
* then consider it as empty.
*
* Just ignore long file name entries. They must have a short entry to
* be valid.
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
2038224: ec 0d 40 14 ldub [ %l5 + %l4 ], %l6 <== NOT EXECUTED
2038228: 80 a5 a0 e5 cmp %l6, 0xe5 <== NOT EXECUTED
203822c: 02 80 00 15 be 2038280 <msdos_dir_is_empty+0xbc> <== NOT EXECUTED
2038230: aa 05 40 14 add %l5, %l4, %l5 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
2038234: c2 0d 60 0b ldub [ %l5 + 0xb ], %g1 <== NOT EXECUTED
2038238: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
203823c: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
2038240: 22 80 00 1a be,a 20382a8 <msdos_dir_is_empty+0xe4> <== NOT EXECUTED
2038244: a8 05 20 20 add %l4, 0x20, %l4 <== NOT EXECUTED
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
2038248: d2 04 c0 00 ld [ %l3 ], %o1 <== NOT EXECUTED
203824c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2038250: 40 00 4c 35 call 204b324 <strncmp> <== NOT EXECUTED
2038254: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
* then consider it as empty.
*
* Just ignore long file name entries. They must have a short entry to
* be valid.
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
2038258: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203825c: 22 80 00 13 be,a 20382a8 <msdos_dir_is_empty+0xe4> <== NOT EXECUTED
2038260: a8 05 20 20 add %l4, 0x20, %l4 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY) ||
((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
MSDOS_ATTR_LFN) ||
(strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,
MSDOS_SHORT_NAME_LEN) == 0) ||
(strncmp(MSDOS_DIR_NAME((entry)),
2038264: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
2038268: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203826c: 40 00 4c 2e call 204b324 <strncmp> <== NOT EXECUTED
2038270: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
* then consider it as empty.
*
* Just ignore long file name entries. They must have a short entry to
* be valid.
*/
if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
2038274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038278: 32 80 00 04 bne,a 2038288 <msdos_dir_is_empty+0xc4> <== NOT EXECUTED
203827c: ad 2d a0 18 sll %l6, 0x18, %l6 <== NOT EXECUTED
assert(ret == fs_info->fat.vol.bps);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
i < fs_info->fat.vol.bps;
i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2038280: 10 80 00 0a b 20382a8 <msdos_dir_is_empty+0xe4> <== NOT EXECUTED
2038284: a8 05 20 20 add %l4, 0x20, %l4 <== NOT EXECUTED
continue;
/*
* Nothing more to look at.
*/
if ((*MSDOS_DIR_NAME(entry)) ==
2038288: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203828c: 12 80 00 04 bne 203829c <msdos_dir_is_empty+0xd8> <== NOT EXECUTED
2038290: b0 10 20 00 clr %i0 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
*ret_val = true;
2038294: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2038298: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return RC_OK;
203829c: 81 c7 e0 08 ret <== NOT EXECUTED
20382a0: 81 e8 00 00 restore <== NOT EXECUTED
20382a4: a8 10 20 00 clr %l4 <== NOT EXECUTED
return -1;
assert(ret == fs_info->fat.vol.bps);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (i = 0;
20382a8: 80 a5 00 17 cmp %l4, %l7 <== NOT EXECUTED
20382ac: 2a bf ff de bcs,a 2038224 <msdos_dir_is_empty+0x60> <== NOT EXECUTED
20382b0: ea 04 20 9c ld [ %l0 + 0x9c ], %l5 <== NOT EXECUTED
/*
* Short file name entries mean not empty.
*/
return RC_OK;
}
j++;
20382b4: a2 04 60 01 inc %l1 <== NOT EXECUTED
uint32_t j = 0, i = 0;
/* dir is not empty */
*ret_val = false;
while ((ret = fat_file_read(mt_entry, fat_fd, j * fs_info->fat.vol.bps,
20382b8: e8 14 00 00 lduh [ %l0 ], %l4 <== NOT EXECUTED
20382bc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20382c0: 7f ff 29 ce call 20029f8 <.umul> <== NOT EXECUTED
20382c4: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20382c8: d8 04 20 9c ld [ %l0 + 0x9c ], %o4 <== NOT EXECUTED
20382cc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
20382d0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20382d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20382d8: 7f ff b4 ec call 2025688 <fat_file_read> <== NOT EXECUTED
20382dc: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
20382e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20382e4: 12 bf ff c1 bne 20381e8 <msdos_dir_is_empty+0x24> <== NOT EXECUTED
20382e8: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
*/
return RC_OK;
}
j++;
}
*ret_val = true;
20382ec: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20382f0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20382f4: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return RC_OK;
}
20382f8: 81 c7 e0 08 ret <== NOT EXECUTED
20382fc: 81 e8 00 00 restore <== NOT EXECUTED
02042abc <msdos_dir_lseek>:
* RC_OK on success, or -1 if error occured (errno
* set apropriately).
*/
rtems_off64_t
msdos_dir_lseek(rtems_libio_t *iop, rtems_off64_t offset, int whence)
{
2042abc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
switch (whence)
2042ac0: 84 10 20 00 clr %g2 <== NOT EXECUTED
2042ac4: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
2042ac8: 08 80 00 09 bleu 2042aec <msdos_dir_lseek+0x30> <== NOT EXECUTED
2042acc: 86 10 20 00 clr %g3 <== NOT EXECUTED
* Movement past the end of the directory via lseek is not a
* permitted operation
*/
case SEEK_END:
default:
rtems_set_errno_and_return_minus_one( EINVAL );
2042ad0: 40 00 05 f1 call 2044294 <__errno> <== NOT EXECUTED
2042ad4: 01 00 00 00 nop <== NOT EXECUTED
2042ad8: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
2042adc: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
2042ae0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2042ae4: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2042ae8: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
break;
}
return RC_OK;
}
2042aec: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
2042af0: 81 c7 e0 08 ret <== NOT EXECUTED
2042af4: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02043288 <msdos_dir_open>:
* set apropriately)
*/
int
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
2043288: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
204328c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2043290: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
msdos_dir_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2043294: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2043298: 92 10 20 00 clr %o1 <== NOT EXECUTED
204329c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
20432a0: 94 10 20 00 clr %o2 <== NOT EXECUTED
20432a4: 7f ff 26 13 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20432a8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20432ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20432b0: 02 80 00 08 be 20432d0 <msdos_dir_open+0x48> <== NOT EXECUTED
20432b4: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
20432b8: 40 00 03 f7 call 2044294 <__errno> <== NOT EXECUTED
20432bc: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
20432c0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20432c4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20432c8: 81 c7 e0 08 ret <== NOT EXECUTED
20432cc: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
20432d0: 7f ff 86 a9 call 2024d74 <fat_file_reopen> <== NOT EXECUTED
20432d4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20432d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RC_OK)
20432dc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
20432e0: 02 80 00 06 be 20432f8 <msdos_dir_open+0x70> <== NOT EXECUTED
20432e4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20432e8: 7f ff 26 49 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20432ec: 01 00 00 00 nop <== NOT EXECUTED
return rc;
20432f0: 81 c7 e0 08 ret <== NOT EXECUTED
20432f4: 81 e8 00 00 restore <== NOT EXECUTED
}
iop->offset = 0;
20432f8: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20432fc: 7f ff 26 44 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2043300: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
return RC_OK;
}
2043304: 81 c7 e0 08 ret <== NOT EXECUTED
2043308: 81 e8 00 00 restore <== NOT EXECUTED
02042cf4 <msdos_dir_read>:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
{
2042cf4: 9d e3 be 68 save %sp, -408, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
fat_file_fd_t *fat_fd = iop->file_info;
2042cf8: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2042cfc: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
* optimization: we know that root directory for FAT12/16 volumes is
* sequential set of sectors and any cluster is sequential set of sectors
* too, so read such set of sectors is quick operation for low-level IO
* layer.
*/
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2042d00: c4 04 60 20 ld [ %l1 + 0x20 ], %g2 <== NOT EXECUTED
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
{
2042d04: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
2042d08: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
* optimization: we know that root directory for FAT12/16 volumes is
* sequential set of sectors and any cluster is sequential set of sectors
* too, so read such set of sectors is quick operation for low-level IO
* layer.
*/
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2042d0c: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2042d10: e6 00 60 34 ld [ %g1 + 0x34 ], %l3 <== NOT EXECUTED
* optimization: we know that root directory for FAT12/16 volumes is
* sequential set of sectors and any cluster is sequential set of sectors
* too, so read such set of sectors is quick operation for low-level IO
* layer.
*/
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2042d14: 12 80 00 0c bne 2042d44 <msdos_dir_read+0x50> <== NOT EXECUTED
2042d18: e8 1e 20 10 ldd [ %i0 + 0x10 ], %l4 <== NOT EXECUTED
2042d1c: c2 04 60 24 ld [ %l1 + 0x24 ], %g1 <== NOT EXECUTED
2042d20: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042d24: 32 80 00 09 bne,a 2042d48 <msdos_dir_read+0x54> <== NOT EXECUTED
2042d28: f2 14 e0 06 lduh [ %l3 + 6 ], %i1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
2042d2c: c2 0c e0 0a ldub [ %l3 + 0xa ], %g1 <== NOT EXECUTED
2042d30: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2042d34: 22 80 00 05 be,a 2042d48 <msdos_dir_read+0x54> <== NOT EXECUTED
2042d38: f2 14 e0 06 lduh [ %l3 + 6 ], %i1 <== NOT EXECUTED
* optimization: we know that root directory for FAT12/16 volumes is
* sequential set of sectors and any cluster is sequential set of sectors
* too, so read such set of sectors is quick operation for low-level IO
* layer.
*/
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2042d3c: 10 80 00 03 b 2042d48 <msdos_dir_read+0x54> <== NOT EXECUTED
2042d40: f2 04 60 18 ld [ %l1 + 0x18 ], %i1 <== NOT EXECUTED
2042d44: f2 14 e0 06 lduh [ %l3 + 6 ], %i1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
fat_fd->fat_file_size :
fs_info->fat.vol.bpc;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2042d48: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
fat_file_fd_t *fat_fd = iop->file_info;
fat_file_fd_t *tmp_fat_fd = NULL;
2042d4c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t start = 0;
ssize_t ret = 0;
uint32_t cmpltd = 0;
uint32_t j = 0, i = 0;
uint32_t bts2rd = 0;
uint32_t cur_cln = 0;
2042d50: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?
fat_fd->fat_file_size :
fs_info->fat.vol.bpc;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2042d54: 92 10 20 00 clr %o1 <== NOT EXECUTED
2042d58: 7f ff 27 66 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2042d5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2042d60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042d64: 12 80 00 17 bne 2042dc0 <msdos_dir_read+0xcc> <== NOT EXECUTED
2042d68: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
/*
* cast start and count - protect against using sizes that are not exact
* multiples of the -dirent- size. These could result in unexpected
* results
*/
start = iop->offset / sizeof(struct dirent);
2042d6c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2042d70: 96 10 21 18 mov 0x118, %o3 <== NOT EXECUTED
2042d74: 40 00 68 67 call 205cf10 <__divdi3> <== NOT EXECUTED
2042d78: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
2042d7c: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
/*
* cast start and count - protect against using sizes that are not exact
* multiples of the -dirent- size. These could result in unexpected
* results
*/
start = iop->offset / sizeof(struct dirent);
2042d80: b6 10 00 09 mov %o1, %i3 <== NOT EXECUTED
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
2042d84: 40 00 66 85 call 205c798 <.udiv> <== NOT EXECUTED
2042d88: 92 10 21 18 mov 0x118, %o1 <== NOT EXECUTED
2042d8c: 83 2a 20 05 sll %o0, 5, %g1 <== NOT EXECUTED
2042d90: b9 2a 20 03 sll %o0, 3, %i4 <== NOT EXECUTED
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
2042d94: 35 00 81 ad sethi %hi(0x206b400), %i2 <== NOT EXECUTED
* cast start and count - protect against using sizes that are not exact
* multiples of the -dirent- size. These could result in unexpected
* results
*/
start = iop->offset / sizeof(struct dirent);
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
2042d98: b8 07 00 01 add %i4, %g1, %i4 <== NOT EXECUTED
2042d9c: ba 10 20 00 clr %i5 <== NOT EXECUTED
2042da0: 83 2f 20 03 sll %i4, 3, %g1 <== NOT EXECUTED
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
2042da4: b4 16 a1 3c or %i2, 0x13c, %i2 <== NOT EXECUTED
* cast start and count - protect against using sizes that are not exact
* multiples of the -dirent- size. These could result in unexpected
* results
*/
start = iop->offset / sizeof(struct dirent);
count = (count / sizeof(struct dirent)) * sizeof(struct dirent);
2042da8: b8 20 40 1c sub %g1, %i4, %i4 <== NOT EXECUTED
2042dac: ac 10 20 00 clr %l6 <== NOT EXECUTED
2042db0: a8 10 20 00 clr %l4 <== NOT EXECUTED
2042db4: b0 10 20 00 clr %i0 <== NOT EXECUTED
2042db8: 10 80 01 01 b 20431bc <msdos_dir_read+0x4c8> <== NOT EXECUTED
2042dbc: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
fs_info->fat.vol.bpc;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
2042dc0: 10 80 00 0f b 2042dfc <msdos_dir_read+0x108> <== NOT EXECUTED
2042dc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
* fat-file is already opened by open call, so read it
* Always read directory fat-file from the beggining because of MSDOS
* directories feature :( - we should count elements currently
* present in the directory because there may be holes :)
*/
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, (j * bts2rd),
2042dc8: d8 04 e0 9c ld [ %l3 + 0x9c ], %o4 <== NOT EXECUTED
2042dcc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042dd0: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2042dd4: 7f ff 8a 2d call 2025688 <fat_file_read> <== NOT EXECUTED
2042dd8: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
bts2rd, fs_info->cl_buf);
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2042ddc: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
2042de0: 04 80 00 04 ble 2042df0 <msdos_dir_read+0xfc> <== NOT EXECUTED
2042de4: d0 27 be cc st %o0, [ %fp + -308 ] <== NOT EXECUTED
2042de8: 10 80 00 f0 b 20431a8 <msdos_dir_read+0x4b4> <== NOT EXECUTED
2042dec: aa 10 20 00 clr %l5 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2042df0: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
2042df4: 7f ff 27 86 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042df8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2042dfc: 40 00 05 26 call 2044294 <__errno> <== NOT EXECUTED
2042e00: 01 00 00 00 nop <== NOT EXECUTED
2042e04: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2042e08: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2042e0c: 81 c7 e0 08 ret <== NOT EXECUTED
2042e10: 81 e8 00 00 restore <== NOT EXECUTED
char* entry = (char*) fs_info->cl_buf + i;
/*
* Is this directory from here on empty ?
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
2042e14: c2 0c 80 15 ldub [ %l2 + %l5 ], %g1 <== NOT EXECUTED
2042e18: 84 88 60 ff andcc %g1, 0xff, %g2 <== NOT EXECUTED
2042e1c: 12 80 00 05 bne 2042e30 <msdos_dir_read+0x13c> <== NOT EXECUTED
2042e20: a4 04 80 15 add %l2, %l5, %l2 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
{
rtems_semaphore_release(fs_info->vol_sema);
2042e24: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
return cmpltd;
2042e28: 10 80 00 d6 b 2043180 <msdos_dir_read+0x48c> <== NOT EXECUTED
2042e2c: b0 10 00 16 mov %l6, %i0 <== NOT EXECUTED
}
/* Is the directory entry empty */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
2042e30: 80 a0 a0 e5 cmp %g2, 0xe5 <== NOT EXECUTED
2042e34: 22 80 00 dd be,a 20431a8 <msdos_dir_read+0x4b4> <== NOT EXECUTED
2042e38: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
continue;
/* Is the directory entry empty a volume label */
if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&
2042e3c: c4 0c a0 0b ldub [ %l2 + 0xb ], %g2 <== NOT EXECUTED
2042e40: 80 88 a0 08 btst 8, %g2 <== NOT EXECUTED
2042e44: 22 80 00 07 be,a 2042e60 <msdos_dir_read+0x16c> <== NOT EXECUTED
2042e48: 84 08 a0 3f and %g2, 0x3f, %g2 <== NOT EXECUTED
2042e4c: 86 08 a0 3f and %g2, 0x3f, %g3 <== NOT EXECUTED
2042e50: 80 a0 e0 0f cmp %g3, 0xf <== NOT EXECUTED
2042e54: 32 80 00 d5 bne,a 20431a8 <msdos_dir_read+0x4b4> <== NOT EXECUTED
2042e58: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
/*
* Check the attribute to see if the entry is for a long file
* name.
*/
if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
2042e5c: 84 08 a0 3f and %g2, 0x3f, %g2 <== NOT EXECUTED
2042e60: 80 a0 a0 0f cmp %g2, 0xf <== NOT EXECUTED
2042e64: 12 80 00 3e bne 2042f5c <msdos_dir_read+0x268> <== NOT EXECUTED
2042e68: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
int q;
/*
* Is this is the first entry of a LFN ?
*/
if (lfn_start == FAT_FILE_SHORT_NAME)
2042e6c: 80 a5 ff ff cmp %l7, -1 <== NOT EXECUTED
2042e70: 32 80 00 0f bne,a 2042eac <msdos_dir_read+0x1b8> <== NOT EXECUTED
2042e74: c2 0c 80 00 ldub [ %l2 ], %g1 <== NOT EXECUTED
{
/*
* The first entry must have the last long entry flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
2042e78: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2042e7c: 80 88 60 40 btst 0x40, %g1 <== NOT EXECUTED
2042e80: 22 80 00 ca be,a 20431a8 <msdos_dir_read+0x4b4> <== NOT EXECUTED
2042e84: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
2042e88: ae 05 40 1d add %l5, %i5, %l7 <== NOT EXECUTED
/*
* Get the number of entries so we can count down and
* also the checksum of the short entry.
*/
lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &
2042e8c: a8 08 60 3f and %g1, 0x3f, %l4 <== NOT EXECUTED
continue;
/*
* Remember the start location of the long file name.
*/
lfn_start =
2042e90: af 35 e0 05 srl %l7, 5, %l7 <== NOT EXECUTED
* Get the number of entries so we can count down and
* also the checksum of the short entry.
*/
lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &
MSDOS_LAST_LONG_ENTRY_MASK);
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
2042e94: f0 0c a0 0d ldub [ %l2 + 0xd ], %i0 <== NOT EXECUTED
memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
2042e98: 90 07 be e4 add %fp, -284, %o0 <== NOT EXECUTED
2042e9c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2042ea0: 40 00 12 dc call 2047a10 <memset> <== NOT EXECUTED
2042ea4: 94 10 21 00 mov 0x100, %o2 <== NOT EXECUTED
* If the entry number or the check sum do not match
* forget this series of long directory entries. These could
* be orphaned entries depending on the history of the
* disk.
*/
if ((lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &
2042ea8: c2 0c 80 00 ldub [ %l2 ], %g1 <== NOT EXECUTED
2042eac: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
2042eb0: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
2042eb4: 32 80 00 bc bne,a 20431a4 <msdos_dir_read+0x4b0> <== NOT EXECUTED
2042eb8: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
2042ebc: c2 0c a0 0d ldub [ %l2 + 0xd ], %g1 <== NOT EXECUTED
2042ec0: 84 0e 20 ff and %i0, 0xff, %g2 <== NOT EXECUTED
2042ec4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2042ec8: 32 80 00 b7 bne,a 20431a4 <msdos_dir_read+0x4b0> <== NOT EXECUTED
2042ecc: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
* The DOS maximum length is 255 characters without the
* trailing nul character. We need to range check the length to
* fit in the directory entry name field.
*/
lfn_entries--;
2042ed0: a8 05 3f ff add %l4, -1, %l4 <== NOT EXECUTED
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
2042ed4: 83 2d 20 02 sll %l4, 2, %g1 <== NOT EXECUTED
2042ed8: 85 2d 20 04 sll %l4, 4, %g2 <== NOT EXECUTED
2042edc: 88 07 be d0 add %fp, -304, %g4 <== NOT EXECUTED
2042ee0: 84 20 80 01 sub %g2, %g1, %g2 <== NOT EXECUTED
* trailing nul character. We need to range check the length to
* fit in the directory entry name field.
*/
lfn_entries--;
p = entry + 1;
2042ee4: a4 04 a0 01 inc %l2 <== NOT EXECUTED
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
2042ee8: 84 00 80 14 add %g2, %l4, %g2 <== NOT EXECUTED
2042eec: 82 10 20 00 clr %g1 <== NOT EXECUTED
2042ef0: 86 01 00 02 add %g4, %g2, %g3 <== NOT EXECUTED
2042ef4: 86 00 e0 14 add %g3, 0x14, %g3 <== NOT EXECUTED
for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
2042ef8: 80 a0 a0 fe cmp %g2, 0xfe <== NOT EXECUTED
2042efc: 38 80 00 ab bgu,a 20431a8 <msdos_dir_read+0x4b4> <== NOT EXECUTED
2042f00: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
break;
tmp_dirent.d_name[o++] = *p;
2042f04: c8 0c 80 00 ldub [ %l2 ], %g4 <== NOT EXECUTED
2042f08: c8 28 c0 00 stb %g4, [ %g3 ] <== NOT EXECUTED
if (*p == '\0')
2042f0c: c8 4c 80 00 ldsb [ %l2 ], %g4 <== NOT EXECUTED
2042f10: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
2042f14: 02 80 00 a4 be 20431a4 <msdos_dir_read+0x4b0> <== NOT EXECUTED
2042f18: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
break;
switch (q)
2042f1c: 02 80 00 06 be 2042f34 <msdos_dir_read+0x240> <== NOT EXECUTED
2042f20: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
2042f24: 32 80 00 08 bne,a 2042f44 <msdos_dir_read+0x250> <== NOT EXECUTED
2042f28: a4 04 a0 02 add %l2, 2, %l2 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
2042f2c: 10 80 00 04 b 2042f3c <msdos_dir_read+0x248> <== NOT EXECUTED
2042f30: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
switch (q)
{
case 4:
p += 5;
break;
2042f34: 10 80 00 04 b 2042f44 <msdos_dir_read+0x250> <== NOT EXECUTED
2042f38: a4 04 a0 05 add %l2, 5, %l2 <== NOT EXECUTED
case 10:
p += 4;
break;
2042f3c: 10 80 00 03 b 2042f48 <msdos_dir_read+0x254> <== NOT EXECUTED
2042f40: 82 00 60 01 inc %g1 <== NOT EXECUTED
lfn_entries--;
p = entry + 1;
o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;
for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)
2042f44: 82 00 60 01 inc %g1 <== NOT EXECUTED
2042f48: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED
2042f4c: 02 80 00 96 be 20431a4 <msdos_dir_read+0x4b0> <== NOT EXECUTED
2042f50: 86 00 e0 01 inc %g3 <== NOT EXECUTED
{
if (o >= (sizeof(tmp_dirent.d_name) - 1))
break;
tmp_dirent.d_name[o++] = *p;
2042f54: 10 bf ff e9 b 2042ef8 <msdos_dir_read+0x204> <== NOT EXECUTED
2042f58: 84 00 a0 01 inc %g2 <== NOT EXECUTED
fat_dir_pos_t dir_pos;
/*
* Skip active entries until get the entry to start from.
*/
if (start)
2042f5c: 22 80 00 04 be,a 2042f6c <msdos_dir_read+0x278> <== NOT EXECUTED
2042f60: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
lfn_start = FAT_FILE_SHORT_NAME;
start--;
2042f64: 10 80 00 8f b 20431a0 <msdos_dir_read+0x4ac> <== NOT EXECUTED
2042f68: b6 06 ff ff add %i3, -1, %i3 <== NOT EXECUTED
* unfortunately there is no method to extract ino except to
* open fat-file descriptor :( ... so, open it
*/
/* get number of cluster we are working with */
rc = fat_file_ioctl(iop->pathinfo.mt_entry, fat_fd, F_CLU_NUM,
2042f6c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042f70: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2042f74: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2042f78: 7f ff 88 39 call 202505c <fat_file_ioctl> <== NOT EXECUTED
2042f7c: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
j * bts2rd, &cur_cln);
if (rc != RC_OK)
2042f80: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042f84: 12 80 00 7d bne 2043178 <msdos_dir_read+0x484> <== NOT EXECUTED
2042f88: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
}
fat_dir_pos_init(&dir_pos);
dir_pos.sname.cln = cur_cln;
dir_pos.sname.ofs = i;
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
2042f8c: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2042f90: 9a 10 3f ff mov -1, %o5 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
fat_dir_pos_init(&dir_pos);
dir_pos.sname.cln = cur_cln;
2042f94: c2 27 bf e8 st %g1, [ %fp + -24 ] <== NOT EXECUTED
2042f98: da 27 bf f0 st %o5, [ %fp + -16 ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2042f9c: da 27 bf f4 st %o5, [ %fp + -12 ] <== NOT EXECUTED
dir_pos.sname.ofs = i;
2042fa0: ea 27 bf ec st %l5, [ %fp + -20 ] <== NOT EXECUTED
rc = fat_file_open(iop->pathinfo.mt_entry, &dir_pos, &tmp_fat_fd);
2042fa4: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2042fa8: 7f ff 8a 68 call 2025948 <fat_file_open> <== NOT EXECUTED
2042fac: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2042fb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042fb4: 12 80 00 71 bne 2043178 <msdos_dir_read+0x484> <== NOT EXECUTED
2042fb8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
}
/* fill in dirent structure */
/* XXX: from what and in what d_off should be computed ?! */
tmp_dirent.d_off = start + cmpltd;
2042fbc: c0 27 be d8 clr [ %fp + -296 ] <== NOT EXECUTED
tmp_dirent.d_reclen = sizeof(struct dirent);
tmp_dirent.d_ino = tmp_fat_fd->ino;
2042fc0: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
return rc;
}
/* fill in dirent structure */
/* XXX: from what and in what d_off should be computed ?! */
tmp_dirent.d_off = start + cmpltd;
2042fc4: ec 27 be dc st %l6, [ %fp + -292 ] <== NOT EXECUTED
tmp_dirent.d_reclen = sizeof(struct dirent);
tmp_dirent.d_ino = tmp_fat_fd->ino;
2042fc8: c2 27 be d0 st %g1, [ %fp + -304 ] <== NOT EXECUTED
}
/* fill in dirent structure */
/* XXX: from what and in what d_off should be computed ?! */
tmp_dirent.d_off = start + cmpltd;
tmp_dirent.d_reclen = sizeof(struct dirent);
2042fcc: 82 10 21 18 mov 0x118, %g1 <== NOT EXECUTED
/*
* If a long file name check if the correct number of
* entries have been found and if the checksum is correct.
* If not return the short file name.
*/
if (lfn_start != FAT_FILE_SHORT_NAME)
2042fd0: 80 a5 ff ff cmp %l7, -1 <== NOT EXECUTED
2042fd4: 02 80 00 1e be 204304c <msdos_dir_read+0x358> <== NOT EXECUTED
2042fd8: c2 37 be e0 sth %g1, [ %fp + -288 ] <== NOT EXECUTED
2042fdc: 82 10 20 00 clr %g1 <== NOT EXECUTED
2042fe0: 84 10 20 00 clr %g2 <== NOT EXECUTED
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2042fe4: c6 0c 80 01 ldub [ %l2 + %g1 ], %g3 <== NOT EXECUTED
2042fe8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
2042fec: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2042ff0: 89 30 a0 01 srl %g2, 1, %g4 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
2042ff4: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2042ff8: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
2042ffc: 84 08 a0 01 and %g2, 1, %g2 <== NOT EXECUTED
2043000: 84 20 00 02 neg %g2 <== NOT EXECUTED
2043004: 84 08 a0 80 and %g2, 0x80, %g2 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) entry;
int i;
for (i = 0; i < 11; i++, p++)
2043008: 12 bf ff f7 bne 2042fe4 <msdos_dir_read+0x2f0> <== NOT EXECUTED
204300c: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entries || (lfn_checksum != cs))
2043010: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2043014: 82 0e 20 ff and %i0, 0xff, %g1 <== NOT EXECUTED
2043018: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
204301c: 12 80 00 0d bne 2043050 <msdos_dir_read+0x35c> <== NOT EXECUTED
2043020: 84 10 20 08 mov 8, %g2 <== NOT EXECUTED
2043024: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
2043028: 12 80 00 0b bne 2043054 <msdos_dir_read+0x360> <== NOT EXECUTED
204302c: 82 04 80 02 add %l2, %g2, %g1 <== NOT EXECUTED
2043030: 30 80 00 6b b,a 20431dc <msdos_dir_read+0x4e8> <== NOT EXECUTED
const char *src_tmp;
/*
* find last non-blank character of base name
*/
for ((i = MSDOS_SHORT_BASE_LEN ,
2043034: 32 80 00 08 bne,a 2043054 <msdos_dir_read+0x360> <== NOT EXECUTED
2043038: 82 04 80 02 add %l2, %g2, %g1 <== NOT EXECUTED
204303c: 9a 10 00 02 mov %g2, %o5 <== NOT EXECUTED
2043040: 86 10 20 00 clr %g3 <== NOT EXECUTED
2043044: 10 80 00 15 b 2043098 <msdos_dir_read+0x3a4> <== NOT EXECUTED
2043048: 82 07 be e4 add %fp, -284, %g1 <== NOT EXECUTED
204304c: 84 10 20 08 mov 8, %g2 <== NOT EXECUTED
2043050: 82 04 80 02 add %l2, %g2, %g1 <== NOT EXECUTED
2043054: c2 48 7f ff ldsb [ %g1 + -1 ], %g1 <== NOT EXECUTED
2043058: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
204305c: 22 bf ff f6 be,a 2043034 <msdos_dir_read+0x340> <== NOT EXECUTED
2043060: 84 80 bf ff addcc %g2, -1, %g2 <== NOT EXECUTED
2043064: 10 bf ff f7 b 2043040 <msdos_dir_read+0x34c> <== NOT EXECUTED
2043068: 9a 10 00 02 mov %g2, %o5 <== NOT EXECUTED
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
204306c: d6 06 80 00 ld [ %i2 ], %o3 <== NOT EXECUTED
2043070: 88 10 00 0c mov %o4, %g4 <== NOT EXECUTED
2043074: 98 02 c0 0c add %o3, %o4, %o4 <== NOT EXECUTED
2043078: d8 0b 20 01 ldub [ %o4 + 1 ], %o4 <== NOT EXECUTED
204307c: 98 0b 20 03 and %o4, 3, %o4 <== NOT EXECUTED
2043080: 80 a3 20 01 cmp %o4, 1 <== NOT EXECUTED
2043084: 12 80 00 03 bne 2043090 <msdos_dir_read+0x39c> <== NOT EXECUTED
2043088: 86 00 e0 01 inc %g3 <== NOT EXECUTED
204308c: 88 01 20 20 add %g4, 0x20, %g4 <== NOT EXECUTED
2043090: c8 28 40 00 stb %g4, [ %g1 ] <== NOT EXECUTED
2043094: 82 00 60 01 inc %g1 <== NOT EXECUTED
* RETURNS:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
2043098: 88 20 80 03 sub %g2, %g3, %g4 <== NOT EXECUTED
/*
* copy base name to destination
*/
src_tmp = src;
len = i;
while (i-- > 0) {
204309c: 80 a1 20 00 cmp %g4, 0 <== NOT EXECUTED
20430a0: 34 bf ff f3 bg,a 204306c <msdos_dir_read+0x378> <== NOT EXECUTED
20430a4: d8 0c 80 03 ldub [ %l2 + %g3 ], %o4 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
20430a8: c6 4c a0 0a ldsb [ %l2 + 0xa ], %g3 <== NOT EXECUTED
20430ac: 88 10 20 03 mov 3, %g4 <== NOT EXECUTED
20430b0: 80 a0 e0 20 cmp %g3, 0x20 <== NOT EXECUTED
20430b4: 12 80 00 4f bne 20431f0 <msdos_dir_read+0x4fc> <== NOT EXECUTED
20430b8: 86 10 20 03 mov 3, %g3 <== NOT EXECUTED
20430bc: c6 4c a0 09 ldsb [ %l2 + 9 ], %g3 <== NOT EXECUTED
src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);
((i > 0) &&
(*src_tmp == ' '));
i--,src_tmp--)
20430c0: 98 04 a0 09 add %l2, 9, %o4 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
}
/*
* find last non-blank character of extension
*/
for ((i = MSDOS_SHORT_EXT_LEN ,
20430c4: 80 a0 e0 20 cmp %g3, 0x20 <== NOT EXECUTED
20430c8: 88 10 20 02 mov 2, %g4 <== NOT EXECUTED
20430cc: 12 80 00 49 bne 20431f0 <msdos_dir_read+0x4fc> <== NOT EXECUTED
20430d0: 86 10 20 02 mov 2, %g3 <== NOT EXECUTED
20430d4: c6 4b 3f ff ldsb [ %o4 + -1 ], %g3 <== NOT EXECUTED
20430d8: 80 a0 e0 20 cmp %g3, 0x20 <== NOT EXECUTED
20430dc: 22 80 00 16 be,a 2043134 <msdos_dir_read+0x440> <== NOT EXECUTED
20430e0: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
tmp_dirent.d_name, entry); /* src text */
}
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
20430e4: 10 80 00 42 b 20431ec <msdos_dir_read+0x4f8> <== NOT EXECUTED
20430e8: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
20430ec: d8 0b 20 08 ldub [ %o4 + 8 ], %o4 <== NOT EXECUTED
20430f0: d6 06 80 00 ld [ %i2 ], %o3 <== NOT EXECUTED
20430f4: 9a 10 00 0c mov %o4, %o5 <== NOT EXECUTED
20430f8: 98 02 c0 0c add %o3, %o4, %o4 <== NOT EXECUTED
20430fc: d8 0b 20 01 ldub [ %o4 + 1 ], %o4 <== NOT EXECUTED
2043100: 98 0b 20 03 and %o4, 3, %o4 <== NOT EXECUTED
2043104: 80 a3 20 01 cmp %o4, 1 <== NOT EXECUTED
2043108: 12 80 00 03 bne 2043114 <msdos_dir_read+0x420> <== NOT EXECUTED
204310c: 86 00 e0 01 inc %g3 <== NOT EXECUTED
2043110: 9a 03 60 20 add %o5, 0x20, %o5 <== NOT EXECUTED
2043114: da 28 40 00 stb %o5, [ %g1 ] <== NOT EXECUTED
2043118: 82 00 60 01 inc %g1 <== NOT EXECUTED
* RETURNS:
* the number of bytes read on success, or -1 if error occured (errno
* set apropriately).
*/
ssize_t
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)
204311c: 9a 21 00 03 sub %g4, %g3, %o5 <== NOT EXECUTED
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
*dst++ = tolower((unsigned char)(*src_tmp++));
2043120: 98 04 80 03 add %l2, %g3, %o4 <== NOT EXECUTED
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
len += i + 1; /* extension + dot */
src_tmp = src + MSDOS_SHORT_BASE_LEN;
while (i-- > 0) {
2043124: 80 a3 60 00 cmp %o5, 0 <== NOT EXECUTED
2043128: 14 bf ff f1 bg 20430ec <msdos_dir_read+0x3f8> <== NOT EXECUTED
204312c: 9a 00 c0 02 add %g3, %g2, %o5 <== NOT EXECUTED
*dst++ = tolower((unsigned char)(*src_tmp++));
len++;
}
}
*dst = '\0'; /* terminate string */
2043130: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
{
/*
* convert dir entry from fixed 8+3 format (without dot)
* to 0..8 + 1dot + 0..3 format
*/
tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
2043134: da 37 be e2 sth %o5, [ %fp + -286 ] <== NOT EXECUTED
2043138: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
204313c: c8 07 a0 48 ld [ %fp + 0x48 ], %g4 <== NOT EXECUTED
2043140: 92 07 be d0 add %fp, -304, %o1 <== NOT EXECUTED
2043144: 94 10 21 18 mov 0x118, %o2 <== NOT EXECUTED
2043148: 40 00 11 9f call 20477c4 <memcpy> <== NOT EXECUTED
204314c: 90 01 00 16 add %g4, %l6, %o0 <== NOT EXECUTED
iop->offset = iop->offset + sizeof(struct dirent);
2043150: c4 1c 20 10 ldd [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
cmpltd += (sizeof(struct dirent));
count -= (sizeof(struct dirent));
/* inode number extracted, close fat-file */
rc = fat_file_close(iop->pathinfo.mt_entry, tmp_fat_fd);
2043154: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
2043158: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
}
memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
iop->offset = iop->offset + sizeof(struct dirent);
204315c: 86 80 e1 18 addcc %g3, 0x118, %g3 <== NOT EXECUTED
2043160: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED
cmpltd += (sizeof(struct dirent));
count -= (sizeof(struct dirent));
/* inode number extracted, close fat-file */
rc = fat_file_close(iop->pathinfo.mt_entry, tmp_fat_fd);
2043164: 7f ff 89 ca call 202588c <fat_file_close> <== NOT EXECUTED
2043168: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
if (rc != RC_OK)
204316c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043170: 22 80 00 08 be,a 2043190 <msdos_dir_read+0x49c> <== NOT EXECUTED
2043174: b8 87 3e e8 addcc %i4, -280, %i4 <== NOT EXECUTED
2043178: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
204317c: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
2043180: 7f ff 26 a3 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2043184: 01 00 00 00 nop <== NOT EXECUTED
return rc;
2043188: 81 c7 e0 08 ret <== NOT EXECUTED
204318c: 81 e8 00 00 restore <== NOT EXECUTED
}
}
if (count <= 0)
2043190: 12 80 00 05 bne 20431a4 <msdos_dir_read+0x4b0> <== NOT EXECUTED
2043194: ac 05 a1 18 add %l6, 0x118, %l6 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2043198: 10 80 00 09 b 20431bc <msdos_dir_read+0x4c8> <== NOT EXECUTED
204319c: ba 07 40 19 add %i5, %i1, %i5 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
}
if (count <= 0)
20431a0: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
rtems_set_errno_and_return_minus_one(EIO);
}
for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
20431a4: aa 05 60 20 add %l5, 0x20, %l5 <== NOT EXECUTED
20431a8: da 07 be cc ld [ %fp + -308 ], %o5 <== NOT EXECUTED
20431ac: 80 a5 40 0d cmp %l5, %o5 <== NOT EXECUTED
20431b0: 2a bf ff 19 bcs,a 2042e14 <msdos_dir_read+0x120> <== NOT EXECUTED
20431b4: e4 04 e0 9c ld [ %l3 + 0x9c ], %l2 <== NOT EXECUTED
20431b8: ba 07 40 19 add %i5, %i1, %i5 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
while (count > 0)
20431bc: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
20431c0: 32 bf ff 02 bne,a 2042dc8 <msdos_dir_read+0xd4> <== NOT EXECUTED
20431c4: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
break;
}
j++;
}
rtems_semaphore_release(fs_info->vol_sema);
20431c8: d0 04 e0 98 ld [ %l3 + 0x98 ], %o0 <== NOT EXECUTED
20431cc: 7f ff 26 90 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20431d0: b0 10 00 16 mov %l6, %i0 <== NOT EXECUTED
return cmpltd;
}
20431d4: 81 c7 e0 08 ret <== NOT EXECUTED
20431d8: 81 e8 00 00 restore <== NOT EXECUTED
tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
tmp_dirent.d_name, entry); /* src text */
}
else
{
tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);
20431dc: 40 00 1f ea call 204b184 <strlen> <== NOT EXECUTED
20431e0: 90 07 be e4 add %fp, -284, %o0 <== NOT EXECUTED
20431e4: 10 bf ff d6 b 204313c <msdos_dir_read+0x448> <== NOT EXECUTED
20431e8: d0 37 be e2 sth %o0, [ %fp + -286 ] <== NOT EXECUTED
20431ec: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
20431f0: 9a 10 20 2e mov 0x2e, %o5 <== NOT EXECUTED
len += i + 1; /* extension + dot */
20431f4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
20431f8: da 28 40 00 stb %o5, [ %g1 ] <== NOT EXECUTED
len += i + 1; /* extension + dot */
20431fc: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
{};
/*
* extension is not empty
*/
if (i > 0) {
*dst++ = '.'; /* append dot */
2043200: 82 00 60 01 inc %g1 <== NOT EXECUTED
len += i + 1; /* extension + dot */
2043204: 10 bf ff c6 b 204311c <msdos_dir_read+0x428> <== NOT EXECUTED
2043208: 86 10 20 00 clr %g3 <== NOT EXECUTED
02042b94 <msdos_dir_rmnod>:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_rmnod(rtems_filesystem_location_info_t *parent_pathloc,
rtems_filesystem_location_info_t *pathloc)
{
2042b94: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2042b98: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
bool is_empty = false;
2042b9c: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
msdos_dir_rmnod(rtems_filesystem_location_info_t *parent_pathloc,
rtems_filesystem_location_info_t *pathloc)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2042ba0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
2042ba4: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
bool is_empty = false;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2042ba8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2042bac: 92 10 20 00 clr %o1 <== NOT EXECUTED
2042bb0: 7f ff 27 d0 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2042bb4: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2042bb8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042bbc: 22 80 00 06 be,a 2042bd4 <msdos_dir_rmnod+0x40> <== NOT EXECUTED
2042bc0: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2042bc4: 40 00 05 b4 call 2044294 <__errno> <== NOT EXECUTED
2042bc8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2042bcc: 10 80 00 20 b 2042c4c <msdos_dir_rmnod+0xb8> <== NOT EXECUTED
2042bd0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
/*
* We deny attempts to delete open directory (if directory is current
* directory we assume it is open one)
*/
if (fat_fd->links_num > 1)
2042bd4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2042bd8: 18 80 00 17 bgu 2042c34 <msdos_dir_rmnod+0xa0> <== NOT EXECUTED
2042bdc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
}
/*
* You cannot remove a node that still has children
*/
rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
2042be0: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
2042be4: 7f ff d5 78 call 20381c4 <msdos_dir_is_empty> <== NOT EXECUTED
2042be8: 94 07 bf ff add %fp, -1, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2042bec: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042bf0: 12 80 00 1f bne 2042c6c <msdos_dir_rmnod+0xd8> <== NOT EXECUTED
2042bf4: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
if (!is_empty)
2042bf8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042bfc: 32 80 00 09 bne,a 2042c20 <msdos_dir_rmnod+0x8c> <== NOT EXECUTED
2042c00: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2042c04: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2042c08: 7f ff 28 01 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042c0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOTEMPTY);
2042c10: 40 00 05 a1 call 2044294 <__errno> <== NOT EXECUTED
2042c14: 01 00 00 00 nop <== NOT EXECUTED
2042c18: 10 80 00 0d b 2042c4c <msdos_dir_rmnod+0xb8> <== NOT EXECUTED
2042c1c: 82 10 20 5a mov 0x5a, %g1 ! 5a <PROM_START+0x5a> <== NOT EXECUTED
}
/*
* You cannot remove the file system root node.
*/
if (pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access)
2042c20: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2042c24: c4 02 20 1c ld [ %o0 + 0x1c ], %g2 <== NOT EXECUTED
2042c28: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2042c2c: 12 80 00 0b bne 2042c58 <msdos_dir_rmnod+0xc4> <== NOT EXECUTED
2042c30: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2042c34: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2042c38: 7f ff 27 f5 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042c3c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EBUSY);
2042c40: 40 00 05 95 call 2044294 <__errno> <== NOT EXECUTED
2042c44: 01 00 00 00 nop <== NOT EXECUTED
2042c48: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10> <== NOT EXECUTED
2042c4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2042c50: 81 c7 e0 08 ret <== NOT EXECUTED
2042c54: 81 e8 00 00 restore <== NOT EXECUTED
* You cannot remove a mountpoint.
* not used - mount() not implemenetd yet.
*/
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
2042c58: 7f ff d6 0f call 2038494 <msdos_set_first_char4file_name> <== NOT EXECUTED
2042c5c: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
2042c60: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2042c64: 22 80 00 06 be,a 2042c7c <msdos_dir_rmnod+0xe8> <== NOT EXECUTED
2042c68: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2042c6c: 7f ff 27 e8 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042c70: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2042c74: 81 c7 e0 08 ret <== NOT EXECUTED
2042c78: 81 e8 00 00 restore <== NOT EXECUTED
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
2042c7c: 7f ff 88 e3 call 2025008 <fat_file_mark_removed> <== NOT EXECUTED
2042c80: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2042c84: 7f ff 27 e2 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042c88: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2042c8c: 81 c7 e0 08 ret <== NOT EXECUTED
2042c90: 81 e8 00 00 restore <== NOT EXECUTED
02042af8 <msdos_dir_stat>:
int
msdos_dir_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
2042af8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
2042afc: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
2042b00: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
2042b04: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2042b08: 92 10 20 00 clr %o1 <== NOT EXECUTED
2042b0c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2042b10: 7f ff 27 f8 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2042b14: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2042b18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042b1c: 22 80 00 08 be,a 2042b3c <msdos_dir_stat+0x44> <== NOT EXECUTED
2042b20: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2042b24: 40 00 05 dc call 2044294 <__errno> <== NOT EXECUTED
2042b28: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2042b2c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2042b30: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2042b34: 81 c7 e0 08 ret <== NOT EXECUTED
2042b38: 81 e8 00 00 restore <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
2042b3c: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
buf->st_ino = fat_fd->ino;
2042b40: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
2042b44: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2042b48: 82 10 61 ff or %g1, 0x1ff, %g1 ! 41ff <PROM_START+0x41ff> <== NOT EXECUTED
2042b4c: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
2042b50: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
2042b54: c4 26 60 40 st %g2, [ %i1 + 0x40 ] <== NOT EXECUTED
buf->st_dev = fs_info->fat.vol.dev;
buf->st_ino = fat_fd->ino;
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
2042b58: 85 30 60 09 srl %g1, 9, %g2 <== NOT EXECUTED
2042b5c: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
2042b60: c8 04 60 40 ld [ %l1 + 0x40 ], %g4 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
2042b64: c4 1c 20 58 ldd [ %l0 + 0x58 ], %g2 <== NOT EXECUTED
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
2042b68: c8 26 60 30 st %g4, [ %i1 + 0x30 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2042b6c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
2042b70: c4 3e 40 00 std %g2, [ %i1 ] <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
buf->st_mode = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
2042b74: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2042b78: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
2042b7c: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
2042b80: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
rtems_semaphore_release(fs_info->vol_sema);
2042b84: 7f ff 28 22 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042b88: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2042b8c: 81 c7 e0 08 ret <== NOT EXECUTED
2042b90: 81 e8 00 00 restore <== NOT EXECUTED
02042c94 <msdos_dir_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*/
int
msdos_dir_sync(rtems_libio_t *iop)
{
2042c94: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2042c98: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
int
msdos_dir_sync(rtems_libio_t *iop)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
2042c9c: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2042ca0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2042ca4: 92 10 20 00 clr %o1 <== NOT EXECUTED
2042ca8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2042cac: 7f ff 27 91 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2042cb0: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2042cb4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2042cb8: 22 80 00 08 be,a 2042cd8 <msdos_dir_sync+0x44> <== NOT EXECUTED
2042cbc: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2042cc0: 40 00 05 75 call 2044294 <__errno> <== NOT EXECUTED
2042cc4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2042cc8: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2042ccc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2042cd0: 81 c7 e0 08 ret <== NOT EXECUTED
2042cd4: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
2042cd8: 7f ff 88 84 call 2024ee8 <fat_file_datasync> <== NOT EXECUTED
2042cdc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2042ce0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2042ce4: 7f ff 27 ca call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2042ce8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2042cec: 81 c7 e0 08 ret <== NOT EXECUTED
2042cf0: 81 e8 00 00 restore <== NOT EXECUTED
02036d1c <msdos_eval4make>:
msdos_eval4make(
const char *path,
rtems_filesystem_location_info_t *pathloc,
const char **name
)
{
2036d1c: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2036d20: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
int i = 0;
int token_len;
const char *token;
bool done = false;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036d24: 92 10 20 00 clr %o1 <== NOT EXECUTED
const char **name
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2036d28: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
int i = 0;
int token_len;
const char *token;
bool done = false;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036d2c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036d30: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2036d34: 7f ff 57 6f call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036d38: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036d3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036d40: 22 80 00 08 be,a 2036d60 <msdos_eval4make+0x44> <== NOT EXECUTED
2036d44: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036d48: 40 00 35 53 call 2044294 <__errno> <== NOT EXECUTED
2036d4c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036d50: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036d54: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036d58: 81 c7 e0 08 ret <== NOT EXECUTED
2036d5c: 81 e8 00 00 restore <== NOT EXECUTED
if (!pathloc->node_access)
2036d60: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036d64: 12 80 00 07 bne 2036d80 <msdos_eval4make+0x64> <== NOT EXECUTED
2036d68: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENOENT;
2036d6c: 40 00 35 4a call 2044294 <__errno> <== NOT EXECUTED
2036d70: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2036d74: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
rc = -1;
goto err;
2036d78: 10 80 00 9b b 2036fe4 <msdos_eval4make+0x2c8> <== NOT EXECUTED
2036d7c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
2036d80: 7f ff b7 fd call 2024d74 <fat_file_reopen> <== NOT EXECUTED
2036d84: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
2036d88: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036d8c: 12 80 00 96 bne 2036fe4 <msdos_eval4make+0x2c8> <== NOT EXECUTED
2036d90: 2b 00 81 ab sethi %hi(0x206ac00), %l5 <== NOT EXECUTED
2036d94: a4 10 20 00 clr %l2 <== NOT EXECUTED
/*
* Am I at the root of all filesystems?
* XXX: MSDOS is not supposed to be base fs.
*/
if (pathloc->node_access ==
rtems_filesystem_root.node_access)
2036d98: aa 15 61 64 or %l5, 0x164, %l5 <== NOT EXECUTED
if (rc != RC_OK)
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
2036d9c: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
2036da0: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
2036da4: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
2036da8: 40 00 50 f7 call 204b184 <strlen> <== NOT EXECUTED
2036dac: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2036db0: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2036db4: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2036db8: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2036dbc: 40 00 06 67 call 2038758 <msdos_get_token> <== NOT EXECUTED
2036dc0: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
i += token_len;
2036dc4: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
if (rc != RC_OK)
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
2036dc8: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
2036dcc: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
i += token_len;
2036dd0: a4 04 80 0a add %l2, %o2, %l2 <== NOT EXECUTED
fat_fd = pathloc->node_access;
switch (type)
2036dd4: 02 80 00 0f be 2036e10 <msdos_eval4make+0xf4> <== NOT EXECUTED
2036dd8: ec 06 40 00 ld [ %i1 ], %l6 <== NOT EXECUTED
2036ddc: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
2036de0: 18 80 00 07 bgu 2036dfc <msdos_eval4make+0xe0> <== NOT EXECUTED
2036de4: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2036de8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036dec: 02 80 00 4f be 2036f28 <msdos_eval4make+0x20c> <== NOT EXECUTED
2036df0: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
goto err;
while (!done)
{
type = msdos_get_token(&path[i], strlen(&path[i]), &token, &token_len);
2036df4: 10 bf ff ed b 2036da8 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036df8: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
2036dfc: 02 80 00 3c be 2036eec <msdos_eval4make+0x1d0> <== NOT EXECUTED
2036e00: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED
2036e04: 32 bf ff e9 bne,a 2036da8 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036e08: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
2036e0c: 30 80 00 4b b,a 2036f38 <msdos_eval4make+0x21c> <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
2036e10: c2 05 a0 10 ld [ %l6 + 0x10 ], %g1 <== NOT EXECUTED
2036e14: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036e18: 12 80 00 63 bne 2036fa4 <msdos_eval4make+0x288> <== NOT EXECUTED
2036e1c: 01 00 00 00 nop <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access)
2036e20: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
2036e24: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 <== NOT EXECUTED
2036e28: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
2036e2c: 32 80 00 22 bne,a 2036eb4 <msdos_eval4make+0x198> <== NOT EXECUTED
2036e30: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
/*
* Am I at the root of all filesystems?
* XXX: MSDOS is not supposed to be base fs.
*/
if (pathloc->node_access ==
rtems_filesystem_root.node_access)
2036e34: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED
2036e38: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2036e3c: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
2036e40: 22 bf ff da be,a 2036da8 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036e44: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
2036e48: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2036e4c: a6 07 bf e4 add %fp, -28, %l3 <== NOT EXECUTED
2036e50: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036e54: 40 00 42 5c call 20477c4 <memcpy> <== NOT EXECUTED
2036e58: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
*pathloc = newloc;
2036e5c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2036e60: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036e64: 40 00 42 58 call 20477c4 <memcpy> <== NOT EXECUTED
2036e68: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
2036e6c: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
2036e70: 7f ff ba 87 call 202588c <fat_file_close> <== NOT EXECUTED
2036e74: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036e78: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036e7c: 12 80 00 5a bne 2036fe4 <msdos_eval4make+0x2c8> <== NOT EXECUTED
2036e80: 01 00 00 00 nop <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
2036e84: 7f ff 57 62 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036e88: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(&path[i-token_len],
2036e8c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2036e90: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2036e94: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2036e98: a4 24 80 02 sub %l2, %g2, %l2 <== NOT EXECUTED
2036e9c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2036ea0: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
2036ea4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2036ea8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2036eac: 81 c7 e0 08 ret <== NOT EXECUTED
2036eb0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
pathloc, name);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
2036eb4: 40 00 07 d0 call 2038df4 <msdos_find_name> <== NOT EXECUTED
2036eb8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2036ebc: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2036ec0: 22 bf ff ba be,a 2036da8 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036ec4: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
2036ec8: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
2036ecc: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2036ed0: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2036ed4: 32 80 00 41 bne,a 2036fd8 <msdos_eval4make+0x2bc> <== NOT EXECUTED
2036ed8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
2036edc: 40 00 34 ee call 2044294 <__errno> <== NOT EXECUTED
2036ee0: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036ee4: 10 80 00 3c b 2036fd4 <msdos_eval4make+0x2b8> <== NOT EXECUTED
2036ee8: ee 22 00 00 st %l7, [ %o0 ] <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
2036eec: c2 05 a0 10 ld [ %l6 + 0x10 ], %g1 <== NOT EXECUTED
2036ef0: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036ef4: 12 80 00 2c bne 2036fa4 <msdos_eval4make+0x288> <== NOT EXECUTED
2036ef8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
/*
* Otherwise find the token name in the present location and
* set the node access to the point we have found.
*/
rc = msdos_find_name(pathloc, token, token_len);
2036efc: 40 00 07 be call 2038df4 <msdos_find_name> <== NOT EXECUTED
2036f00: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
if (rc)
2036f04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036f08: 22 bf ff a8 be,a 2036da8 <msdos_eval4make+0x8c> <== NOT EXECUTED
2036f0c: ac 04 40 12 add %l1, %l2, %l6 <== NOT EXECUTED
{
if (rc != MSDOS_NAME_NOT_FOUND_ERR)
2036f10: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
2036f14: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2036f18: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2036f1c: 22 80 00 0b be,a 2036f48 <msdos_eval4make+0x22c> <== NOT EXECUTED
2036f20: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2036f24: 30 80 00 13 b,a 2036f70 <msdos_eval4make+0x254> <== NOT EXECUTED
done = true;
}
break;
case MSDOS_NO_MORE_PATH:
errno = EEXIST;
2036f28: 40 00 34 db call 2044294 <__errno> <== NOT EXECUTED
2036f2c: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036f30: 10 80 00 20 b 2036fb0 <msdos_eval4make+0x294> <== NOT EXECUTED
2036f34: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
2036f38: 40 00 34 d7 call 2044294 <__errno> <== NOT EXECUTED
2036f3c: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036f40: 10 80 00 1c b 2036fb0 <msdos_eval4make+0x294> <== NOT EXECUTED
2036f44: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
break;
}
}
*name = &path[i - token_len];
2036f48: a6 04 40 12 add %l1, %l2, %l3 <== NOT EXECUTED
2036f4c: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED
2036f50: a2 04 40 12 add %l1, %l2, %l1 <== 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++)
2036f54: 10 80 00 0b b 2036f80 <msdos_eval4make+0x264> <== NOT EXECUTED
2036f58: e2 26 80 00 st %l1, [ %i2 ] <== NOT EXECUTED
{
if (!msdos_is_separator(path[i]))
2036f5c: 7f ff 4b 5c call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2036f60: 01 00 00 00 nop <== NOT EXECUTED
2036f64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036f68: 32 80 00 07 bne,a 2036f84 <msdos_eval4make+0x268> <== NOT EXECUTED
2036f6c: d0 4c c0 00 ldsb [ %l3 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
2036f70: 40 00 34 c9 call 2044294 <__errno> <== NOT EXECUTED
2036f74: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036f78: 10 80 00 0e b 2036fb0 <msdos_eval4make+0x294> <== NOT EXECUTED
2036f7c: 82 10 20 02 mov 2, %g1 <== 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++)
2036f80: d0 4c c0 00 ldsb [ %l3 ], %o0 <== NOT EXECUTED
2036f84: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036f88: 12 bf ff f5 bne 2036f5c <msdos_eval4make+0x240> <== NOT EXECUTED
2036f8c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
rc = -1;
goto error;
}
}
fat_fd = pathloc->node_access;
2036f90: ec 06 40 00 ld [ %i1 ], %l6 <== NOT EXECUTED
if (fat_fd->fat_file_type != FAT_DIRECTORY)
2036f94: c2 05 a0 10 ld [ %l6 + 0x10 ], %g1 <== NOT EXECUTED
2036f98: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036f9c: 22 80 00 07 be,a 2036fb8 <msdos_eval4make+0x29c> <== NOT EXECUTED
2036fa0: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
{
errno = ENOTDIR;
2036fa4: 40 00 34 bc call 2044294 <__errno> <== NOT EXECUTED
2036fa8: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036fac: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
rc = -1;
goto error;
2036fb0: 10 80 00 09 b 2036fd4 <msdos_eval4make+0x2b8> <== NOT EXECUTED
2036fb4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
2036fb8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
fat_file_fd_t *fat_fd = loc->node_access;
if (fat_fd->fat_file_type == FAT_DIRECTORY)
loc->handlers = fs_info->directory_handlers;
2036fbc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED
2036fc0: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 <== NOT EXECUTED
goto error;
}
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
2036fc4: 7f ff 57 12 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036fc8: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
return RC_OK;
2036fcc: 81 c7 e0 08 ret <== NOT EXECUTED
2036fd0: 81 e8 00 00 restore <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
2036fd4: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
2036fd8: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2036fdc: 7f ff ba 2c call 202588c <fat_file_close> <== NOT EXECUTED
2036fe0: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
2036fe4: 7f ff 57 0a call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036fe8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2036fec: 81 c7 e0 08 ret <== NOT EXECUTED
2036ff0: 81 e8 00 00 restore <== NOT EXECUTED
02036a90 <msdos_eval_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
2036a90: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2036a94: c2 06 e0 10 ld [ %i3 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = NULL;
rtems_filesystem_location_info_t newloc;
int i = 0;
int token_len = 0;
2036a98: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_filesystem_location_info_t *pathloc
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2036a9c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
int i = 0;
int token_len = 0;
msdos_token_types_t type = MSDOS_CURRENT_DIR;
const char *token;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2036aa0: 92 10 20 00 clr %o1 <== NOT EXECUTED
2036aa4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2036aa8: 94 10 20 00 clr %o2 <== NOT EXECUTED
2036aac: 7f ff 58 11 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2036ab0: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2036ab4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036ab8: 22 80 00 08 be,a 2036ad8 <msdos_eval_path+0x48> <== NOT EXECUTED
2036abc: d0 06 c0 00 ld [ %i3 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2036ac0: 40 00 35 f5 call 2044294 <__errno> <== NOT EXECUTED
2036ac4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2036ac8: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2036acc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2036ad0: 81 c7 e0 08 ret <== NOT EXECUTED
2036ad4: 81 e8 00 00 restore <== NOT EXECUTED
if (!pathloc->node_access)
2036ad8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2036adc: 12 80 00 07 bne 2036af8 <msdos_eval_path+0x68> <== NOT EXECUTED
2036ae0: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENOENT;
2036ae4: 40 00 35 ec call 2044294 <__errno> <== NOT EXECUTED
2036ae8: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2036aec: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
rc = -1;
goto err;
2036af0: 10 80 00 87 b 2036d0c <msdos_eval_path+0x27c> <== NOT EXECUTED
2036af4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
2036af8: 7f ff b8 9f call 2024d74 <fat_file_reopen> <== NOT EXECUTED
2036afc: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RC_OK)
2036b00: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036b04: 12 80 00 82 bne 2036d0c <msdos_eval_path+0x27c> <== NOT EXECUTED
2036b08: 2b 00 81 ab sethi %hi(0x206ac00), %l5 <== NOT EXECUTED
2036b0c: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
/*
* Am I at the root of all filesystems?
* XXX: MSDOS is not supposed to be base fs.
*/
if (pathloc->node_access ==
rtems_filesystem_root.node_access)
2036b10: aa 15 61 64 or %l5, 0x164, %l5 <== NOT EXECUTED
}
fat_fd = pathloc->node_access;
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
2036b14: a4 10 20 00 clr %l2 <== NOT EXECUTED
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
{
type = msdos_get_token(&pathname[i], pathnamelen, &token, &token_len);
2036b18: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
2036b1c: 10 80 00 65 b 2036cb0 <msdos_eval_path+0x220> <== NOT EXECUTED
2036b20: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
2036b24: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2036b28: 90 04 40 12 add %l1, %l2, %o0 <== NOT EXECUTED
2036b2c: 40 00 07 0b call 2038758 <msdos_get_token> <== NOT EXECUTED
2036b30: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
pathnamelen -= token_len;
2036b34: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
if (rc != RC_OK)
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
{
type = msdos_get_token(&pathname[i], pathnamelen, &token, &token_len);
2036b38: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
pathnamelen -= token_len;
i += token_len;
fat_fd = pathloc->node_access;
switch (type)
2036b3c: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
{
type = msdos_get_token(&pathname[i], pathnamelen, &token, &token_len);
pathnamelen -= token_len;
2036b40: b2 26 40 0a sub %i1, %o2, %i1 <== NOT EXECUTED
i += token_len;
2036b44: a4 04 80 0a add %l2, %o2, %l2 <== NOT EXECUTED
fat_fd = pathloc->node_access;
switch (type)
2036b48: 02 80 00 3f be 2036c44 <msdos_eval_path+0x1b4> <== NOT EXECUTED
2036b4c: ee 06 c0 00 ld [ %i3 ], %l7 <== NOT EXECUTED
2036b50: 80 a2 20 04 cmp %o0, 4 <== NOT EXECUTED
2036b54: 02 80 00 52 be 2036c9c <msdos_eval_path+0x20c> <== NOT EXECUTED
2036b58: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
2036b5c: 12 80 00 56 bne 2036cb4 <msdos_eval_path+0x224> <== NOT EXECUTED
2036b60: 80 a5 a0 04 cmp %l6, 4 <== NOT EXECUTED
{
case MSDOS_UP_DIR:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
2036b64: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
2036b68: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036b6c: 12 80 00 3a bne 2036c54 <msdos_eval_path+0x1c4> <== NOT EXECUTED
2036b70: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access)
2036b74: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 <== NOT EXECUTED
}
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
2036b78: c2 02 60 1c ld [ %o1 + 0x1c ], %g1 <== NOT EXECUTED
2036b7c: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
2036b80: 12 80 00 23 bne 2036c0c <msdos_eval_path+0x17c> <== NOT EXECUTED
2036b84: 01 00 00 00 nop <== NOT EXECUTED
/*
* Am I at the root of all filesystems?
* XXX: MSDOS is not supposed to be base fs.
*/
if (pathloc->node_access ==
rtems_filesystem_root.node_access)
2036b88: c2 05 40 00 ld [ %l5 ], %g1 <== NOT EXECUTED
2036b8c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2036b90: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
2036b94: 22 bf ff e4 be,a 2036b24 <msdos_eval_path+0x94> <== NOT EXECUTED
2036b98: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
break; /* Throw out the .. in this case */
}
else
{
newloc = pathloc->mt_entry->mt_point_node;
2036b9c: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2036ba0: a6 07 bf e4 add %fp, -28, %l3 <== NOT EXECUTED
2036ba4: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036ba8: 40 00 43 07 call 20477c4 <memcpy> <== NOT EXECUTED
2036bac: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
*pathloc = newloc;
2036bb0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2036bb4: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2036bb8: 40 00 43 03 call 20477c4 <memcpy> <== NOT EXECUTED
2036bbc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, fat_fd);
2036bc0: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
2036bc4: 7f ff bb 32 call 202588c <fat_file_close> <== NOT EXECUTED
2036bc8: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036bcc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2036bd0: 12 80 00 4f bne 2036d0c <msdos_eval_path+0x27c> <== NOT EXECUTED
2036bd4: 01 00 00 00 nop <== NOT EXECUTED
goto err;
rtems_semaphore_release(fs_info->vol_sema);
2036bd8: 7f ff 58 0d call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036bdc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(&(pathname[i-token_len]),
2036be0: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 <== NOT EXECUTED
2036be4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
2036be8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2036bec: 92 06 40 08 add %i1, %o0, %o1 <== NOT EXECUTED
2036bf0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2036bf4: 90 24 80 08 sub %l2, %o0, %o0 <== NOT EXECUTED
2036bf8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
2036bfc: 9f c0 40 00 call %g1 <== NOT EXECUTED
2036c00: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
2036c04: 81 c7 e0 08 ret <== NOT EXECUTED
2036c08: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
flags, pathloc);
}
}
else
{
rc = msdos_find_name(pathloc, token, token_len);
2036c0c: 40 00 08 7a call 2038df4 <msdos_find_name> <== NOT EXECUTED
2036c10: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036c14: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2036c18: 02 bf ff c3 be 2036b24 <msdos_eval_path+0x94> <== NOT EXECUTED
2036c1c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
2036c20: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
2036c24: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2036c28: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2036c2c: 32 80 00 35 bne,a 2036d00 <msdos_eval_path+0x270> <== NOT EXECUTED
2036c30: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
2036c34: 40 00 35 98 call 2044294 <__errno> <== NOT EXECUTED
2036c38: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036c3c: 10 80 00 30 b 2036cfc <msdos_eval_path+0x26c> <== NOT EXECUTED
2036c40: ec 22 00 00 st %l6, [ %o0 ] <== NOT EXECUTED
case MSDOS_NAME:
/*
* Only a directory can be decended into.
*/
if (fat_fd->fat_file_type != FAT_DIRECTORY)
2036c44: c2 05 e0 10 ld [ %l7 + 0x10 ], %g1 <== NOT EXECUTED
2036c48: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2036c4c: 02 80 00 06 be 2036c64 <msdos_eval_path+0x1d4> <== NOT EXECUTED
2036c50: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
{
errno = ENOTSUP;
2036c54: 40 00 35 90 call 2044294 <__errno> <== NOT EXECUTED
2036c58: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036c5c: 10 80 00 13 b 2036ca8 <msdos_eval_path+0x218> <== NOT EXECUTED
2036c60: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
/*
* Otherwise find the token name in the present location and
* set the node access to the point we have found.
*/
rc = msdos_find_name(pathloc, token, token_len);
2036c64: 40 00 08 64 call 2038df4 <msdos_find_name> <== NOT EXECUTED
2036c68: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
2036c6c: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2036c70: 02 bf ff ad be 2036b24 <msdos_eval_path+0x94> <== NOT EXECUTED
2036c74: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
2036c78: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
2036c7c: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2036c80: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2036c84: 32 80 00 1f bne,a 2036d00 <msdos_eval_path+0x270> <== NOT EXECUTED
2036c88: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
{
errno = ENOENT;
2036c8c: 40 00 35 82 call 2044294 <__errno> <== NOT EXECUTED
2036c90: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036c94: 10 80 00 05 b 2036ca8 <msdos_eval_path+0x218> <== NOT EXECUTED
2036c98: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
case MSDOS_NO_MORE_PATH:
case MSDOS_CURRENT_DIR:
break;
case MSDOS_INVALID_TOKEN:
errno = ENAMETOOLONG;
2036c9c: 40 00 35 7e call 2044294 <__errno> <== NOT EXECUTED
2036ca0: ba 10 3f ff mov -1, %i5 <== NOT EXECUTED
2036ca4: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
rc = -1;
goto error;
2036ca8: 10 80 00 15 b 2036cfc <msdos_eval_path+0x26c> <== NOT EXECUTED
2036cac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
if (rc != RC_OK)
goto err;
while ((type != MSDOS_NO_MORE_PATH) && (type != MSDOS_INVALID_TOKEN))
2036cb0: 80 a5 a0 04 cmp %l6, 4 <== NOT EXECUTED
2036cb4: 02 80 00 04 be 2036cc4 <msdos_eval_path+0x234> <== NOT EXECUTED
2036cb8: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
2036cbc: 12 bf ff 9a bne 2036b24 <msdos_eval_path+0x94> <== NOT EXECUTED
2036cc0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
*/
static void
msdos_set_handlers(rtems_filesystem_location_info_t *loc)
{
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
fat_file_fd_t *fat_fd = loc->node_access;
2036cc4: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
* None
*/
static void
msdos_set_handlers(rtems_filesystem_location_info_t *loc)
{
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
2036cc8: c2 06 e0 10 ld [ %i3 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
2036ccc: c4 00 a0 10 ld [ %g2 + 0x10 ], %g2 <== NOT EXECUTED
2036cd0: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2036cd4: 12 80 00 04 bne 2036ce4 <msdos_eval_path+0x254> <== NOT EXECUTED
2036cd8: c2 00 60 34 ld [ %g1 + 0x34 ], %g1 <== NOT EXECUTED
if (fat_fd->fat_file_type == FAT_DIRECTORY)
loc->handlers = fs_info->directory_handlers;
2036cdc: 10 80 00 03 b 2036ce8 <msdos_eval_path+0x258> <== NOT EXECUTED
2036ce0: c2 00 60 90 ld [ %g1 + 0x90 ], %g1 <== NOT EXECUTED
else
loc->handlers = fs_info->file_handlers;
2036ce4: c2 00 60 94 ld [ %g1 + 0x94 ], %g1 <== NOT EXECUTED
*/
fat_fd = pathloc->node_access;
msdos_set_handlers(pathloc);
rtems_semaphore_release(fs_info->vol_sema);
2036ce8: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2036cec: 7f ff 57 c8 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036cf0: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
return RC_OK;
2036cf4: 81 c7 e0 08 ret <== NOT EXECUTED
2036cf8: 81 e8 00 00 restore <== NOT EXECUTED
error:
fat_file_close(pathloc->mt_entry, fat_fd);
2036cfc: d0 06 e0 10 ld [ %i3 + 0x10 ], %o0 <== NOT EXECUTED
2036d00: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2036d04: 7f ff ba e2 call 202588c <fat_file_close> <== NOT EXECUTED
2036d08: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
err:
rtems_semaphore_release(fs_info->vol_sema);
2036d0c: 7f ff 57 c0 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2036d10: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2036d14: 81 c7 e0 08 ret <== NOT EXECUTED
2036d18: 81 e8 00 00 restore <== NOT EXECUTED
02036ffc <msdos_file_chmod>:
int
msdos_file_chmod(rtems_filesystem_location_info_t *pathloc,
mode_t mode)
{
return RC_OK;
}
2036ffc: 81 c3 e0 08 retl <== NOT EXECUTED
2037000: 90 10 20 00 clr %o0 <== NOT EXECUTED
02037528 <msdos_file_close>:
* RC_OK, if file closed successfully, or -1 if error occured (errno set
* appropriately)
*/
int
msdos_file_close(rtems_libio_t *iop)
{
2037528: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
203752c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2037530: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
int
msdos_file_close(rtems_libio_t *iop)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037534: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037538: 92 10 20 00 clr %o1 <== NOT EXECUTED
203753c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2037540: 94 10 20 00 clr %o2 <== NOT EXECUTED
2037544: 7f ff 55 6b call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2037548: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
203754c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037550: 22 80 00 08 be,a 2037570 <msdos_file_close+0x48> <== NOT EXECUTED
2037554: c2 0c a0 30 ldub [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2037558: 40 00 33 4f call 2044294 <__errno> <== NOT EXECUTED
203755c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2037560: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2037564: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2037568: 81 c7 e0 08 ret <== NOT EXECUTED
203756c: 81 e8 00 00 restore <== NOT EXECUTED
/*
* if fat-file descriptor is not marked as "removed", synchronize
* size, first cluster number, write time and date fields of the file
*/
if (!FAT_FILE_IS_REMOVED(fat_fd))
2037570: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2037574: 32 80 00 18 bne,a 20375d4 <msdos_file_close+0xac> <== NOT EXECUTED
2037578: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
203757c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
2037580: 40 00 03 8c call 20383b0 <msdos_set_first_cluster_num> <== NOT EXECUTED
2037584: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2037588: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203758c: 12 80 00 0e bne 20375c4 <msdos_file_close+0x9c> <== NOT EXECUTED
2037590: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);
2037594: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
2037598: 40 00 03 5a call 2038300 <msdos_set_file_size> <== NOT EXECUTED
203759c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20375a0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20375a4: 12 80 00 08 bne 20375c4 <msdos_file_close+0x9c> <== NOT EXECUTED
20375a8: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
20375ac: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
20375b0: 40 00 04 10 call 20385f0 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
20375b4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20375b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20375bc: 22 80 00 06 be,a 20375d4 <msdos_file_close+0xac> <== NOT EXECUTED
20375c0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20375c4: 7f ff 55 92 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20375c8: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
20375cc: 81 c7 e0 08 ret <== NOT EXECUTED
20375d0: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rc = fat_file_close(iop->pathinfo.mt_entry, fat_fd);
20375d4: 7f ff b8 ae call 202588c <fat_file_close> <== NOT EXECUTED
20375d8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20375dc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20375e0: 7f ff 55 8b call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20375e4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20375e8: 81 c7 e0 08 ret <== NOT EXECUTED
20375ec: 81 e8 00 00 restore <== NOT EXECUTED
02037124 <msdos_file_datasync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_datasync(rtems_libio_t *iop)
{
2037124: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037128: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
int
msdos_file_datasync(rtems_libio_t *iop)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
203712c: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037130: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037134: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037138: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203713c: 7f ff 56 6d call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2037140: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2037144: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037148: 22 80 00 08 be,a 2037168 <msdos_file_datasync+0x44> <== NOT EXECUTED
203714c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2037150: 40 00 34 51 call 2044294 <__errno> <== NOT EXECUTED
2037154: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2037158: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203715c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2037160: 81 c7 e0 08 ret <== NOT EXECUTED
2037164: 81 e8 00 00 restore <== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
2037168: 7f ff b7 60 call 2024ee8 <fat_file_datasync> <== NOT EXECUTED
203716c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2037170: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
2037174: 7f ff 56 a6 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037178: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
203717c: 81 c7 e0 08 ret <== NOT EXECUTED
2037180: 81 e8 00 00 restore <== NOT EXECUTED
02037258 <msdos_file_ftruncate>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately).
*/
int
msdos_file_ftruncate(rtems_libio_t *iop, rtems_off64_t length)
{
2037258: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
203725c: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
2037260: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
int
msdos_file_ftruncate(rtems_libio_t *iop, rtems_off64_t length)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037264: e4 00 60 34 ld [ %g1 + 0x34 ], %l2 <== NOT EXECUTED
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately).
*/
int
msdos_file_ftruncate(rtems_libio_t *iop, rtems_off64_t length)
{
2037268: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
fat_file_fd_t *fat_fd = iop->file_info;
if (length >= fat_fd->fat_file_size)
203726c: 82 10 20 00 clr %g1 <== NOT EXECUTED
2037270: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2037274: 14 80 00 09 bg 2037298 <msdos_file_ftruncate+0x40> <== NOT EXECUTED
2037278: c4 04 60 18 ld [ %l1 + 0x18 ], %g2 <== NOT EXECUTED
203727c: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
2037280: 12 80 00 04 bne 2037290 <msdos_file_ftruncate+0x38> <== NOT EXECUTED
2037284: 80 a0 80 1a cmp %g2, %i2 <== NOT EXECUTED
2037288: 38 80 00 05 bgu,a 203729c <msdos_file_ftruncate+0x44> <== NOT EXECUTED
203728c: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
2037290: 81 c7 e0 08 ret <== NOT EXECUTED
2037294: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
return RC_OK;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037298: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
203729c: 92 10 20 00 clr %o1 <== NOT EXECUTED
20372a0: 7f ff 56 14 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20372a4: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20372a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20372ac: 22 80 00 08 be,a 20372cc <msdos_file_ftruncate+0x74> <== NOT EXECUTED
20372b0: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20372b4: 40 00 33 f8 call 2044294 <__errno> <== NOT EXECUTED
20372b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20372bc: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20372c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20372c4: 81 c7 e0 08 ret <== NOT EXECUTED
20372c8: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_truncate(iop->pathinfo.mt_entry, fat_fd, length);
20372cc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20372d0: 7f ff b7 96 call 2025128 <fat_file_truncate> <== NOT EXECUTED
20372d4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (rc != RC_OK)
20372d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20372dc: 02 80 00 06 be 20372f4 <msdos_file_ftruncate+0x9c> <== NOT EXECUTED
20372e0: 80 a6 00 19 cmp %i0, %i1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20372e4: 7f ff 56 4a call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20372e8: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
20372ec: 81 c7 e0 08 ret <== NOT EXECUTED
20372f0: 81 e8 00 00 restore <== NOT EXECUTED
/*
* fat_file_truncate do nothing if new length >= fat-file size, so update
* file size only if length < fat-file size
*/
if (length < fat_fd->fat_file_size)
20372f4: 14 80 00 07 bg 2037310 <msdos_file_ftruncate+0xb8> <== NOT EXECUTED
20372f8: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
20372fc: 80 a6 00 19 cmp %i0, %i1 <== NOT EXECUTED
2037300: 12 80 00 07 bne 203731c <msdos_file_ftruncate+0xc4> <== NOT EXECUTED
2037304: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
2037308: 08 80 00 05 bleu 203731c <msdos_file_ftruncate+0xc4> <== NOT EXECUTED
203730c: 01 00 00 00 nop <== NOT EXECUTED
iop->size = fat_fd->fat_file_size = length;
2037310: f4 24 20 0c st %i2, [ %l0 + 0xc ] <== NOT EXECUTED
2037314: f4 24 60 18 st %i2, [ %l1 + 0x18 ] <== NOT EXECUTED
2037318: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203731c: 7f ff 56 3c call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037320: d0 04 a0 98 ld [ %l2 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
2037324: 81 c7 e0 08 ret <== NOT EXECUTED
2037328: 81 e8 00 00 restore <== NOT EXECUTED
02036ff4 <msdos_file_ioctl>:
msdos_file_ioctl(rtems_libio_t *iop,uint32_t command, void *buffer)
{
int rc = RC_OK;
return rc;
}
2036ff4: 81 c3 e0 08 retl <== NOT EXECUTED
2036ff8: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203732c <msdos_file_lseek>:
* new offset on success, or -1 if error occured (errno set
* appropriately).
*/
rtems_off64_t
msdos_file_lseek(rtems_libio_t *iop, rtems_off64_t offset, int whence)
{
203732c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037330: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
uint32_t real_size = 0;
2037334: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_off64_t
msdos_file_lseek(rtems_libio_t *iop, rtems_off64_t offset, int whence)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037338: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
203733c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
uint32_t real_size = 0;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037340: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2037344: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037348: 7f ff 55 ea call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203734c: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2037350: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037354: 22 80 00 0a be,a 203737c <msdos_file_lseek+0x50> <== NOT EXECUTED
2037358: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
203735c: 40 00 33 ce call 2044294 <__errno> <== NOT EXECUTED
2037360: 01 00 00 00 nop <== NOT EXECUTED
2037364: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2037368: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203736c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2037370: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2037374: 10 80 00 1b b 20373e0 <msdos_file_lseek+0xb4> <== NOT EXECUTED
2037378: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
rc = fat_file_extend(iop->pathinfo.mt_entry, fat_fd, iop->offset,
203737c: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
2037380: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2037384: 7f ff b7 ac call 2025234 <fat_file_extend> <== NOT EXECUTED
2037388: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
&real_size);
if (rc != RC_OK)
203738c: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2037390: 02 80 00 07 be 20373ac <msdos_file_lseek+0x80> <== NOT EXECUTED
2037394: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2037398: 7f ff 56 1d call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203739c: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
20373a0: 86 10 00 12 mov %l2, %g3 <== NOT EXECUTED
20373a4: 10 80 00 0f b 20373e0 <msdos_file_lseek+0xb4> <== NOT EXECUTED
20373a8: 85 3c a0 1f sra %l2, 0x1f, %g2 <== NOT EXECUTED
}
if (real_size > fat_fd->fat_file_size)
20373ac: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
20373b0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20373b4: 28 80 00 06 bleu,a 20373cc <msdos_file_lseek+0xa0> <== NOT EXECUTED
20373b8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset = real_size;
20373bc: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
20373c0: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
20373c4: c2 26 20 14 st %g1, [ %i0 + 0x14 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
20373c8: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20373cc: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
}
if (real_size > fat_fd->fat_file_size)
fat_fd->fat_file_size = iop->offset = real_size;
iop->size = fat_fd->fat_file_size;
20373d0: c2 26 20 0c st %g1, [ %i0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20373d4: 7f ff 56 0e call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20373d8: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
return iop->offset;
20373dc: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
20373e0: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20373e4: 81 c7 e0 08 ret <== NOT EXECUTED
20373e8: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
020375f0 <msdos_file_open>:
* and errno set appropriately
*/
int
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
20375f0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20375f4: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
20375f8: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
msdos_file_open(rtems_libio_t *iop, const char *pathname, uint32_t flag,
uint32_t mode)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20375fc: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037600: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037604: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2037608: 94 10 20 00 clr %o2 <== NOT EXECUTED
203760c: 7f ff 55 39 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2037610: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2037614: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037618: 02 80 00 08 be 2037638 <msdos_file_open+0x48> <== NOT EXECUTED
203761c: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2037620: 40 00 33 1d call 2044294 <__errno> <== NOT EXECUTED
2037624: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2037628: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203762c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2037630: 81 c7 e0 08 ret <== NOT EXECUTED
2037634: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_reopen(fat_fd);
2037638: 7f ff b5 cf call 2024d74 <fat_file_reopen> <== NOT EXECUTED
203763c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2037640: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037644: 22 80 00 06 be,a 203765c <msdos_file_open+0x6c> <== NOT EXECUTED
2037648: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
203764c: 7f ff 55 70 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037650: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2037654: 81 c7 e0 08 ret <== NOT EXECUTED
2037658: 81 e8 00 00 restore <== NOT EXECUTED
}
if (iop->flags & LIBIO_FLAGS_APPEND)
203765c: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
2037660: 02 80 00 05 be 2037674 <msdos_file_open+0x84> <== NOT EXECUTED
2037664: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
iop->offset = fat_fd->fat_file_size;
2037668: c0 24 20 10 clr [ %l0 + 0x10 ] <== NOT EXECUTED
203766c: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
2037670: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2037674: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
}
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = fat_fd->fat_file_size;
iop->size = fat_fd->fat_file_size;
2037678: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
203767c: 7f ff 55 64 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037680: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return RC_OK;
}
2037684: 81 c7 e0 08 ret <== NOT EXECUTED
2037688: 81 e8 00 00 restore <== NOT EXECUTED
020374bc <msdos_file_read>:
* the number of bytes read on success, or -1 if error occured (errno set
* appropriately)
*/
ssize_t
msdos_file_read(rtems_libio_t *iop, void *buffer, size_t count)
{
20374bc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
ssize_t ret = 0;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20374c0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
20374c4: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
ssize_t
msdos_file_read(rtems_libio_t *iop, void *buffer, size_t count)
{
ssize_t ret = 0;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20374c8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20374cc: 92 10 20 00 clr %o1 <== NOT EXECUTED
20374d0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20374d4: 7f ff 55 87 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20374d8: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20374dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20374e0: 22 80 00 08 be,a 2037500 <msdos_file_read+0x44> <== NOT EXECUTED
20374e4: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20374e8: 40 00 33 6b call 2044294 <__errno> <== NOT EXECUTED
20374ec: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20374f0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20374f4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20374f8: 81 c7 e0 08 ret <== NOT EXECUTED
20374fc: 81 e8 00 00 restore <== NOT EXECUTED
ret = fat_file_read(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
2037500: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
2037504: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2037508: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203750c: 7f ff b8 5f call 2025688 <fat_file_read> <== NOT EXECUTED
2037510: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2037514: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
buffer);
rtems_semaphore_release(fs_info->vol_sema);
2037518: 7f ff 55 bd call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203751c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return ret;
}
2037520: 81 c7 e0 08 ret <== NOT EXECUTED
2037524: 81 e8 00 00 restore <== NOT EXECUTED
020370a0 <msdos_file_rmnod>:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_rmnod(rtems_filesystem_location_info_t *parent_pathloc,
rtems_filesystem_location_info_t *pathloc)
{
20370a0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
20370a4: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
20370a8: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
msdos_file_rmnod(rtems_filesystem_location_info_t *parent_pathloc,
rtems_filesystem_location_info_t *pathloc)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
20370ac: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = pathloc->node_access;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20370b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20370b4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20370b8: 7f ff 56 8e call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20370bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20370c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20370c4: 22 80 00 08 be,a 20370e4 <msdos_file_rmnod+0x44> <== NOT EXECUTED
20370c8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20370cc: 40 00 34 72 call 2044294 <__errno> <== NOT EXECUTED
20370d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20370d4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20370d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20370dc: 81 c7 e0 08 ret <== NOT EXECUTED
20370e0: 81 e8 00 00 restore <== NOT EXECUTED
/* mark file removed */
rc = msdos_set_first_char4file_name(pathloc->mt_entry,
20370e4: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
20370e8: 40 00 04 eb call 2038494 <msdos_set_first_char4file_name> <== NOT EXECUTED
20370ec: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
&fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
if (rc != RC_OK)
20370f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20370f4: 22 80 00 06 be,a 203710c <msdos_file_rmnod+0x6c> <== NOT EXECUTED
20370f8: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
20370fc: 7f ff 56 c4 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037100: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2037104: 81 c7 e0 08 ret <== NOT EXECUTED
2037108: 81 e8 00 00 restore <== NOT EXECUTED
}
fat_file_mark_removed(pathloc->mt_entry, fat_fd);
203710c: 7f ff b7 bf call 2025008 <fat_file_mark_removed> <== NOT EXECUTED
2037110: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2037114: 7f ff 56 be call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037118: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return RC_OK;
}
203711c: 81 c7 e0 08 ret <== NOT EXECUTED
2037120: 81 e8 00 00 restore <== NOT EXECUTED
02037004 <msdos_file_stat>:
int
msdos_file_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
2037004: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
2037008: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
203700c: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;
2037010: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
fat_file_fd_t *fat_fd = loc->node_access;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037014: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037018: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203701c: 7f ff 56 b5 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2037020: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2037024: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037028: 22 80 00 08 be,a 2037048 <msdos_file_stat+0x44> <== NOT EXECUTED
203702c: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2037030: 40 00 34 99 call 2044294 <__errno> <== NOT EXECUTED
2037034: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2037038: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203703c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2037040: 81 c7 e0 08 ret <== NOT EXECUTED
2037044: 81 e8 00 00 restore <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
2037048: c4 14 00 00 lduh [ %l0 ], %g2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
buf->st_ino = fat_fd->ino;
203704c: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
2037050: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
2037054: 82 10 61 ff or %g1, 0x1ff, %g1 ! 81ff <PROM_START+0x81ff> <== NOT EXECUTED
2037058: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
203705c: c2 04 60 18 ld [ %l1 + 0x18 ], %g1 <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
2037060: c4 26 60 40 st %g2, [ %i1 + 0x40 ] <== NOT EXECUTED
buf->st_dev = fs_info->fat.vol.dev;
buf->st_ino = fat_fd->ino;
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
2037064: 85 30 60 09 srl %g1, 9, %g2 <== NOT EXECUTED
2037068: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
203706c: c8 04 60 40 ld [ %l1 + 0x40 ], %g4 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
2037070: c4 1c 20 58 ldd [ %l0 + 0x58 ], %g2 <== NOT EXECUTED
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
buf->st_size = fat_fd->fat_file_size;
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
2037074: c8 26 60 30 st %g4, [ %i1 + 0x30 ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
2037078: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_set_errno_and_return_minus_one(EIO);
buf->st_dev = fs_info->fat.vol.dev;
203707c: c4 3e 40 00 std %g2, [ %i1 ] <== NOT EXECUTED
buf->st_ino = fat_fd->ino;
buf->st_mode = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;
buf->st_rdev = 0ll;
2037080: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2037084: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
buf->st_size = fat_fd->fat_file_size;
2037088: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
203708c: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;
buf->st_blksize = fs_info->fat.vol.bps;
buf->st_mtime = fat_fd->mtime;
rtems_semaphore_release(fs_info->vol_sema);
2037090: 7f ff 56 df call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2037094: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2037098: 81 c7 e0 08 ret <== NOT EXECUTED
203709c: 81 e8 00 00 restore <== NOT EXECUTED
02037184 <msdos_file_sync>:
* RETURNS:
* RC_OK on success, or -1 if error occured (errno set appropriately)
*/
int
msdos_file_sync(rtems_libio_t *iop)
{
2037184: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037188: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
int
msdos_file_sync(rtems_libio_t *iop)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
fat_file_fd_t *fat_fd = iop->file_info;
203718c: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
2037190: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037194: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037198: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
203719c: 94 10 20 00 clr %o2 <== NOT EXECUTED
20371a0: 7f ff 56 54 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20371a4: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20371a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20371ac: 22 80 00 08 be,a 20371cc <msdos_file_sync+0x48> <== NOT EXECUTED
20371b0: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20371b4: 40 00 34 38 call 2044294 <__errno> <== NOT EXECUTED
20371b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20371bc: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20371c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20371c4: 81 c7 e0 08 ret <== NOT EXECUTED
20371c8: 81 e8 00 00 restore <== NOT EXECUTED
/* synchronize file data */
rc = fat_file_datasync(iop->pathinfo.mt_entry, fat_fd);
20371cc: 7f ff b7 47 call 2024ee8 <fat_file_datasync> <== NOT EXECUTED
20371d0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20371d4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20371d8: 12 80 00 18 bne 2037238 <msdos_file_sync+0xb4> <== NOT EXECUTED
20371dc: 01 00 00 00 nop <== NOT EXECUTED
/*
* if fat-file descriptor is not marked "removed" - synchronize file
* metadata
*/
if (!FAT_FILE_IS_REMOVED(fat_fd))
20371e0: c2 0c a0 30 ldub [ %l2 + 0x30 ], %g1 <== NOT EXECUTED
20371e4: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20371e8: 32 80 00 18 bne,a 2037248 <msdos_file_sync+0xc4> <== NOT EXECUTED
20371ec: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
20371f0: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
20371f4: 40 00 04 6f call 20383b0 <msdos_set_first_cluster_num> <== NOT EXECUTED
20371f8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
20371fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037200: 12 80 00 0e bne 2037238 <msdos_file_sync+0xb4> <== NOT EXECUTED
2037204: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);
2037208: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
203720c: 40 00 04 3d call 2038300 <msdos_set_file_size> <== NOT EXECUTED
2037210: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
2037214: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037218: 12 80 00 08 bne 2037238 <msdos_file_sync+0xb4> <== NOT EXECUTED
203721c: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
return rc;
}
rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
2037220: d0 04 60 2c ld [ %l1 + 0x2c ], %o0 <== NOT EXECUTED
2037224: 40 00 04 f3 call 20385f0 <msdos_set_dir_wrt_time_and_date><== NOT EXECUTED
2037228: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc != RC_OK)
203722c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037230: 22 80 00 06 be,a 2037248 <msdos_file_sync+0xc4> <== NOT EXECUTED
2037234: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2037238: 7f ff 56 75 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203723c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
2037240: 81 c7 e0 08 ret <== NOT EXECUTED
2037244: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems_semaphore_release(fs_info->vol_sema);
2037248: 7f ff 56 71 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203724c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RC_OK;
}
2037250: 81 c7 e0 08 ret <== NOT EXECUTED
2037254: 81 e8 00 00 restore <== NOT EXECUTED
020373ec <msdos_file_write>:
* the number of bytes written on success, or -1 if error occured
* and errno set appropriately
*/
ssize_t
msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count)
{
20373ec: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
ssize_t ret = 0;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20373f0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
20373f4: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
ssize_t
msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count)
{
ssize_t ret = 0;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = iop->pathinfo.mt_entry->fs_info;
20373f8: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = iop->file_info;
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20373fc: 92 10 20 00 clr %o1 <== NOT EXECUTED
2037400: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2037404: 94 10 20 00 clr %o2 <== NOT EXECUTED
2037408: 7f ff 55 ba call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203740c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2037410: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037414: 22 80 00 08 be,a 2037434 <msdos_file_write+0x48> <== NOT EXECUTED
2037418: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
203741c: 40 00 33 9e call 2044294 <__errno> <== NOT EXECUTED
2037420: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2037424: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2037428: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203742c: 81 c7 e0 08 ret <== NOT EXECUTED
2037430: 81 e8 00 00 restore <== NOT EXECUTED
ret = fat_file_write(iop->pathinfo.mt_entry, fat_fd, iop->offset, count,
2037434: d4 06 20 14 ld [ %i0 + 0x14 ], %o2 <== NOT EXECUTED
2037438: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203743c: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2037440: 7f ff b7 fa call 2025428 <fat_file_write> <== NOT EXECUTED
2037444: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
buffer);
if (ret < 0)
2037448: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203744c: 36 80 00 07 bge,a 2037468 <msdos_file_write+0x7c> <== NOT EXECUTED
2037450: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2037454: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
2037458: 7f ff 55 ed call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
203745c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
2037460: 81 c7 e0 08 ret <== NOT EXECUTED
2037464: 81 e8 00 00 restore <== NOT EXECUTED
/*
* update file size in both fat-file descriptor and file control block if
* file was extended
*/
if (iop->offset + ret > fat_fd->fat_file_size)
2037468: 85 3e 20 1f sra %i0, 0x1f, %g2 <== NOT EXECUTED
203746c: 86 86 00 0d addcc %i0, %o5, %g3 <== NOT EXECUTED
2037470: 84 40 80 0c addx %g2, %o4, %g2 <== NOT EXECUTED
2037474: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2037478: 14 80 00 08 bg 2037498 <msdos_file_write+0xac> <== NOT EXECUTED
203747c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
2037480: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2037484: 32 80 00 09 bne,a 20374a8 <msdos_file_write+0xbc> <== NOT EXECUTED
2037488: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203748c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
2037490: 28 80 00 06 bleu,a 20374a8 <msdos_file_write+0xbc> <== NOT EXECUTED
2037494: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
fat_fd->fat_file_size = iop->offset + ret;
2037498: 82 06 00 0d add %i0, %o5, %g1 <== NOT EXECUTED
203749c: c2 24 a0 18 st %g1, [ %l2 + 0x18 ] <== NOT EXECUTED
iop->size = fat_fd->fat_file_size;
20374a0: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20374a4: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
* file was extended
*/
if (iop->offset + ret > fat_fd->fat_file_size)
fat_fd->fat_file_size = iop->offset + ret;
iop->size = fat_fd->fat_file_size;
20374a8: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20374ac: 7f ff 55 d8 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20374b0: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
return ret;
}
20374b4: 81 c7 e0 08 ret <== NOT EXECUTED
20374b8: 81 e8 00 00 restore <== NOT EXECUTED
02042940 <msdos_filename_unix2dos>:
* Convert a unix filename to a DOS filename. Return -1 if wrong name is
* supplied.
*/
int
msdos_filename_unix2dos(const char *un, int unlen, char *dn)
{
2042940: 82 10 20 00 clr %g1 <== NOT EXECUTED
/*
* Fill the dos filename string with blanks. These are DOS's pad
* characters.
*/
for (i = 0; i <= 10; i++)
dn[i] = ' ';
2042944: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
2042948: c4 2a 80 01 stb %g2, [ %o2 + %g1 ] <== NOT EXECUTED
/*
* Fill the dos filename string with blanks. These are DOS's pad
* characters.
*/
for (i = 0; i <= 10; i++)
204294c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2042950: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2042954: 32 bf ff fe bne,a 204294c <msdos_filename_unix2dos+0xc> <== NOT EXECUTED
2042958: c4 2a 80 01 stb %g2, [ %o2 + %g1 ] <== NOT EXECUTED
/*
* The filenames "." and ".." are handled specially, since they
* don't follow dos filename rules.
*/
if (un[0] == '.' && unlen == 1) {
204295c: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED
2042960: 82 18 60 2e xor %g1, 0x2e, %g1 <== NOT EXECUTED
2042964: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2042968: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
204296c: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
2042970: 12 80 00 04 bne 2042980 <msdos_filename_unix2dos+0x40> <== NOT EXECUTED
2042974: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042978: 12 80 00 0c bne 20429a8 <msdos_filename_unix2dos+0x68> <== NOT EXECUTED
204297c: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED
dn[0] = '.';
return 0;
}
if (un[0] == '.' && un[1] == '.' && unlen == 2) {
2042980: 02 80 00 0e be 20429b8 <msdos_filename_unix2dos+0x78> <== NOT EXECUTED
2042984: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2042988: c2 4a 20 01 ldsb [ %o0 + 1 ], %g1 <== NOT EXECUTED
204298c: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2042990: 12 80 00 0a bne 20429b8 <msdos_filename_unix2dos+0x78> <== NOT EXECUTED
2042994: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2042998: 80 a2 60 02 cmp %o1, 2 <== NOT EXECUTED
204299c: 12 80 00 07 bne 20429b8 <msdos_filename_unix2dos+0x78> <== NOT EXECUTED
20429a0: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
dn[0] = '.';
dn[1] = '.';
20429a4: c2 2a a0 01 stb %g1, [ %o2 + 1 ] <== NOT EXECUTED
return 0;
20429a8: 10 80 00 41 b 2042aac <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
20429ac: c2 2a 80 00 stb %g1, [ %o2 ] <== NOT EXECUTED
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
un++;
unlen--;
20429b0: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
20429b4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20429b8: 32 80 00 06 bne,a 20429d0 <msdos_filename_unix2dos+0x90> <== NOT EXECUTED
20429bc: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED
* of string, a '.', or 8 characters. Whichever happens first stops
* us. This forms the name portion of the dos filename. Fold to
* upper case.
*/
for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {
if (msdos_map[c] == 0)
20429c0: 07 00 81 a4 sethi %hi(0x2069000), %g3 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
20429c4: 82 10 20 00 clr %g1 <== NOT EXECUTED
* of string, a '.', or 8 characters. Whichever happens first stops
* us. This forms the name portion of the dos filename. Fold to
* upper case.
*/
for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {
if (msdos_map[c] == 0)
20429c8: 10 80 00 0e b 2042a00 <msdos_filename_unix2dos+0xc0> <== NOT EXECUTED
20429cc: 86 10 e3 e0 or %g3, 0x3e0, %g3 <== NOT EXECUTED
}
/*
* Remove any dots from the start of a file name.
*/
while (unlen && (*un == '.')) {
20429d0: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20429d4: 22 bf ff f7 be,a 20429b0 <msdos_filename_unix2dos+0x70> <== NOT EXECUTED
20429d8: 90 02 20 01 inc %o0 <== NOT EXECUTED
* of string, a '.', or 8 characters. Whichever happens first stops
* us. This forms the name portion of the dos filename. Fold to
* upper case.
*/
for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {
if (msdos_map[c] == 0)
20429dc: 10 bf ff fa b 20429c4 <msdos_filename_unix2dos+0x84> <== NOT EXECUTED
20429e0: 07 00 81 a4 sethi %hi(0x2069000), %g3 <== NOT EXECUTED
20429e4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20429e8: 02 80 00 17 be 2042a44 <msdos_filename_unix2dos+0x104> <== NOT EXECUTED
20429ec: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
break;
dn[i] = msdos_map[c];
20429f0: c4 2a 80 01 stb %g2, [ %o2 + %g1 ] <== NOT EXECUTED
un++;
20429f4: 90 02 20 01 inc %o0 <== NOT EXECUTED
unlen--;
20429f8: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
* Copy the unix filename into the dos filename string upto the end
* of string, a '.', or 8 characters. Whichever happens first stops
* us. This forms the name portion of the dos filename. Fold to
* upper case.
*/
for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {
20429fc: 82 00 60 01 inc %g1 <== NOT EXECUTED
2042a00: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2042a04: 02 80 00 16 be 2042a5c <msdos_filename_unix2dos+0x11c> <== NOT EXECUTED
2042a08: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED
2042a0c: 14 80 00 0e bg 2042a44 <msdos_filename_unix2dos+0x104> <== NOT EXECUTED
2042a10: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2042a14: c4 0a 00 00 ldub [ %o0 ], %g2 <== NOT EXECUTED
2042a18: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2042a1c: 02 80 00 09 be 2042a40 <msdos_filename_unix2dos+0x100> <== NOT EXECUTED
2042a20: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
2042a24: 32 bf ff f0 bne,a 20429e4 <msdos_filename_unix2dos+0xa4> <== NOT EXECUTED
2042a28: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
2042a2c: 10 80 00 06 b 2042a44 <msdos_filename_unix2dos+0x104> <== NOT EXECUTED
2042a30: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
un++;
2042a34: 90 02 20 01 inc %o0 <== NOT EXECUTED
unlen--;
/* Make sure we've skipped over the dot before stopping. */
if (c == '.')
2042a38: 02 80 00 09 be 2042a5c <msdos_filename_unix2dos+0x11c> <== NOT EXECUTED
2042a3c: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
2042a40: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2042a44: 02 80 00 07 be 2042a60 <msdos_filename_unix2dos+0x120> <== NOT EXECUTED
2042a48: 07 00 81 a4 sethi %hi(0x2069000), %g3 <== NOT EXECUTED
2042a4c: c2 0a 00 00 ldub [ %o0 ], %g1 <== NOT EXECUTED
2042a50: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2042a54: 12 bf ff f8 bne 2042a34 <msdos_filename_unix2dos+0xf4> <== NOT EXECUTED
2042a58: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
* Copy in the extension part of the name, if any. Force to upper
* case. Note that the extension is allowed to contain '.'s.
* Filenames in this form are probably inaccessable under dos.
*/
for (i = 8; i <= 10 && unlen && (c = *un); i++) {
if (msdos_map[c] == 0)
2042a5c: 07 00 81 a4 sethi %hi(0x2069000), %g3 <== NOT EXECUTED
/*
* Strip any further characters up to a '.' or the end of the
* string.
*/
while (unlen && (c = *un)) {
2042a60: 82 10 20 08 mov 8, %g1 <== NOT EXECUTED
* Copy in the extension part of the name, if any. Force to upper
* case. Note that the extension is allowed to contain '.'s.
* Filenames in this form are probably inaccessable under dos.
*/
for (i = 8; i <= 10 && unlen && (c = *un); i++) {
if (msdos_map[c] == 0)
2042a64: 10 80 00 08 b 2042a84 <msdos_filename_unix2dos+0x144> <== NOT EXECUTED
2042a68: 86 10 e3 e0 or %g3, 0x3e0, %g3 <== NOT EXECUTED
2042a6c: c4 08 c0 02 ldub [ %g3 + %g2 ], %g2 <== NOT EXECUTED
2042a70: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2042a74: 02 80 00 0e be 2042aac <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2042a78: 01 00 00 00 nop <== NOT EXECUTED
break;
dn[i] = msdos_map[c];
2042a7c: c4 2a 80 01 stb %g2, [ %o2 + %g1 ] <== NOT EXECUTED
/*
* Copy in the extension part of the name, if any. Force to upper
* case. Note that the extension is allowed to contain '.'s.
* Filenames in this form are probably inaccessable under dos.
*/
for (i = 8; i <= 10 && unlen && (c = *un); i++) {
2042a80: 82 00 60 01 inc %g1 <== NOT EXECUTED
2042a84: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2042a88: 02 80 00 09 be 2042aac <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2042a8c: 84 02 00 01 add %o0, %g1, %g2 <== NOT EXECUTED
2042a90: 80 a0 60 0a cmp %g1, 0xa <== NOT EXECUTED
2042a94: 14 80 00 06 bg 2042aac <msdos_filename_unix2dos+0x16c> <== NOT EXECUTED
2042a98: 01 00 00 00 nop <== NOT EXECUTED
2042a9c: c4 08 bf f8 ldub [ %g2 + -8 ], %g2 <== NOT EXECUTED
2042aa0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2042aa4: 12 bf ff f2 bne 2042a6c <msdos_filename_unix2dos+0x12c> <== NOT EXECUTED
2042aa8: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
dn[i] = msdos_map[c];
un++;
unlen--;
}
return 0;
}
2042aac: 81 c3 e0 08 retl <== NOT EXECUTED
2042ab0: 90 10 20 00 clr %o0 <== NOT EXECUTED
02038df4 <msdos_find_name>:
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
2038df4: 9d e3 bf 60 save %sp, -160, %sp <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
2038df8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
fat_dir_pos_t dir_pos;
unsigned short time_val = 0;
unsigned short date = 0;
char node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE];
memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2038dfc: a2 07 bf c8 add %fp, -56, %l1 <== NOT EXECUTED
const char *name,
int name_len
)
{
int rc = RC_OK;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
2038e00: e6 00 60 34 ld [ %g1 + 0x34 ], %l3 <== NOT EXECUTED
fat_dir_pos_t dir_pos;
unsigned short time_val = 0;
unsigned short date = 0;
char node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE];
memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2038e04: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038e08: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
int name_len
)
{
int rc = RC_OK;
msdos_fs_info_t *fs_info = parent_loc->mt_entry->fs_info;
fat_file_fd_t *fat_fd = NULL;
2038e0c: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
fat_dir_pos_t dir_pos;
unsigned short time_val = 0;
unsigned short date = 0;
char node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE];
memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2038e10: 40 00 3b 00 call 2047a10 <memset> <== NOT EXECUTED
2038e14: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
name_type = msdos_long_to_short (name,
2038e18: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038e1c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2038e20: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2038e24: 7f ff fe 8b call 2038850 <msdos_long_to_short> <== NOT EXECUTED
2038e28: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
msdos_find_name(
rtems_filesystem_location_info_t *parent_loc,
const char *name,
int name_len
)
{
2038e2c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
unsigned short date = 0;
char node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE];
memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
name_type = msdos_long_to_short (name,
2038e30: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
/*
* find the node which correspondes to the name in the directory pointed by
* 'parent_loc'
*/
rc = msdos_get_name_node(parent_loc, false, name, name_len, name_type,
2038e34: e2 23 a0 5c st %l1, [ %sp + 0x5c ] <== NOT EXECUTED
2038e38: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2038e3c: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2038e40: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2038e44: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED
2038e48: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038e4c: 7f ff ff a7 call 2038ce8 <msdos_get_name_node> <== NOT EXECUTED
2038e50: 9a 10 00 12 mov %l2, %o5 <== NOT EXECUTED
&dir_pos, node_entry);
if (rc != RC_OK)
2038e54: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038e58: 12 80 00 6d bne 203900c <msdos_find_name+0x218> <== NOT EXECUTED
2038e5c: c2 0f bf d3 ldub [ %fp + -45 ], %g1 <== NOT EXECUTED
return rc;
if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||
2038e60: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
2038e64: 12 80 00 6f bne 2039020 <msdos_find_name+0x22c> <== NOT EXECUTED
2038e68: 82 08 60 3f and %g1, 0x3f, %g1 <== NOT EXECUTED
2038e6c: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
2038e70: 02 80 00 6c be 2039020 <msdos_find_name+0x22c> <== NOT EXECUTED
2038e74: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
return MSDOS_NAME_NOT_FOUND_ERR;
/* open fat-file corresponded to the found node */
rc = fat_file_open(parent_loc->mt_entry, &dir_pos, &fat_fd);
2038e78: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2038e7c: 7f ff b2 b3 call 2025948 <fat_file_open> <== NOT EXECUTED
2038e80: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2038e84: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038e88: 12 80 00 61 bne 203900c <msdos_find_name+0x218> <== NOT EXECUTED
2038e8c: f4 07 bf fc ld [ %fp + -4 ], %i2 <== NOT EXECUTED
return rc;
fat_fd->dir_pos = dir_pos;
2038e90: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2038e94: 90 06 a0 20 add %i2, 0x20, %o0 <== NOT EXECUTED
2038e98: 40 00 3a 4b call 20477c4 <memcpy> <== NOT EXECUTED
2038e9c: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
* size and first cluster num to the disk after each write operation
* (even if one byte is written - that is TOO slow) because
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
2038ea0: e4 06 a0 08 ld [ %i2 + 8 ], %l2 <== NOT EXECUTED
2038ea4: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED
2038ea8: 32 80 00 50 bne,a 2038fe8 <msdos_find_name+0x1f4> <== NOT EXECUTED
2038eac: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038eb0: da 14 60 1a lduh [ %l1 + 0x1a ], %o5 <== NOT EXECUTED
2038eb4: c8 14 60 14 lduh [ %l1 + 0x14 ], %g4 <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
2038eb8: d4 14 60 16 lduh [ %l1 + 0x16 ], %o2 <== NOT EXECUTED
date = *MSDOS_DIR_WRITE_DATE(node_entry);
2038ebc: c6 14 60 18 lduh [ %l1 + 0x18 ], %g3 <== NOT EXECUTED
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038ec0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038ec4: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2038ec8: 97 31 20 18 srl %g4, 0x18, %o3 <== NOT EXECUTED
2038ecc: 99 33 60 18 srl %o5, 0x18, %o4 <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
date = *MSDOS_DIR_WRITE_DATE(node_entry);
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
2038ed0: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2038ed4: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
2038ed8: 85 30 e0 18 srl %g3, 0x18, %g2 <== NOT EXECUTED
2038edc: 91 32 a0 18 srl %o2, 0x18, %o0 <== NOT EXECUTED
2038ee0: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
2038ee4: 95 32 a0 08 srl %o2, 8, %o2 <== NOT EXECUTED
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038ee8: 89 31 20 08 srl %g4, 8, %g4 <== NOT EXECUTED
2038eec: 9b 33 60 08 srl %o5, 8, %o5 <== NOT EXECUTED
2038ef0: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
2038ef4: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
date = *MSDOS_DIR_WRITE_DATE(node_entry);
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
2038ef8: 92 0a 80 01 and %o2, %g1, %o1 <== NOT EXECUTED
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038efc: 88 09 00 01 and %g4, %g1, %g4 <== NOT EXECUTED
2038f00: 9a 0b 40 01 and %o5, %g1, %o5 <== NOT EXECUTED
2038f04: 88 11 00 0b or %g4, %o3, %g4 <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
date = *MSDOS_DIR_WRITE_DATE(node_entry);
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
2038f08: 82 08 c0 01 and %g3, %g1, %g1 <== NOT EXECUTED
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038f0c: 9a 13 40 0c or %o5, %o4, %o5 <== NOT EXECUTED
2038f10: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038f14: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
date = *MSDOS_DIR_WRITE_DATE(node_entry);
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
2038f18: 92 12 40 08 or %o1, %o0, %o1 <== NOT EXECUTED
* otherwise real values of these fields stored in fat-file descriptor
* may be accidentally rewritten with wrong values stored on the disk
*/
if (fat_fd->links_num == 1)
{
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);
2038f1c: c8 26 a0 1c st %g4, [ %i2 + 0x1c ] <== NOT EXECUTED
time_val = *MSDOS_DIR_WRITE_TIME(node_entry);
date = *MSDOS_DIR_WRITE_DATE(node_entry);
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
2038f20: 40 00 26 3d call 2042814 <msdos_date_dos2unix> <== NOT EXECUTED
2038f24: 90 10 40 02 or %g1, %g2, %o0 <== NOT EXECUTED
2038f28: d0 26 a0 40 st %o0, [ %i2 + 0x40 ] <== NOT EXECUTED
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
2038f2c: c4 0f bf d3 ldub [ %fp + -45 ], %g2 <== NOT EXECUTED
2038f30: 80 88 a0 10 btst 0x10, %g2 <== NOT EXECUTED
2038f34: 02 80 00 0e be 2038f6c <msdos_find_name+0x178> <== NOT EXECUTED
2038f38: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
rc = fat_file_size(parent_loc->mt_entry, fat_fd);
2038f3c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
{
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
2038f40: 05 00 08 00 sethi %hi(0x200000), %g2 <== NOT EXECUTED
fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)
{
fat_fd->fat_file_type = FAT_DIRECTORY;
2038f44: e4 20 60 10 st %l2, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
rc = fat_file_size(parent_loc->mt_entry, fat_fd);
2038f48: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
2038f4c: 7f ff af 90 call 2024d8c <fat_file_size> <== NOT EXECUTED
2038f50: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
if (rc != RC_OK)
2038f54: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038f58: 02 80 00 17 be 2038fb4 <msdos_find_name+0x1c0> <== NOT EXECUTED
2038f5c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
2038f60: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2038f64: 10 80 00 28 b 2039004 <msdos_find_name+0x210> <== NOT EXECUTED
2038f68: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
2038f6c: c4 04 60 1c ld [ %l1 + 0x1c ], %g2 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
2038f70: 86 10 20 05 mov 5, %g3 <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
2038f74: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
2038f78: 9b 28 a0 18 sll %g2, 0x18, %o5 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
2038f7c: c6 20 60 10 st %g3, [ %g1 + 0x10 ] <== NOT EXECUTED
return rc;
}
}
else
{
fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
2038f80: 9a 13 40 04 or %o5, %g4, %o5 <== NOT EXECUTED
2038f84: 87 30 a0 10 srl %g2, 0x10, %g3 <== NOT EXECUTED
2038f88: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
2038f8c: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2038f90: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2038f94: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2038f98: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038f9c: 84 13 40 04 or %o5, %g4, %g2 <== NOT EXECUTED
2038fa0: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2038fa4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
2038fa8: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
2038fac: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
}
/* these data is not actual for zero-length fat-file */
fat_fd->map.file_cln = 0;
2038fb0: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
2038fb4: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
if ((fat_fd->fat_file_size != 0) &&
2038fb8: c6 00 60 18 ld [ %g1 + 0x18 ], %g3 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_FILE;
fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;
}
/* these data is not actual for zero-length fat-file */
fat_fd->map.file_cln = 0;
2038fbc: c0 20 60 34 clr [ %g1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
if ((fat_fd->fat_file_size != 0) &&
2038fc0: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2038fc4: 02 80 00 06 be 2038fdc <msdos_find_name+0x1e8> <== NOT EXECUTED
2038fc8: c4 20 60 38 st %g2, [ %g1 + 0x38 ] <== NOT EXECUTED
(fat_fd->fat_file_size <= fs_info->fat.vol.bpc))
2038fcc: c8 14 e0 06 lduh [ %l3 + 6 ], %g4 <== NOT EXECUTED
2038fd0: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
2038fd4: 28 80 00 04 bleu,a 2038fe4 <msdos_find_name+0x1f0> <== NOT EXECUTED
2038fd8: c4 20 60 3c st %g2, [ %g1 + 0x3c ] <== NOT EXECUTED
{
fat_fd->map.last_cln = fat_fd->cln;
}
else
{
fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;
2038fdc: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
2038fe0: c4 20 60 3c st %g2, [ %g1 + 0x3c ] <== NOT EXECUTED
}
}
/* close fat-file corresponded to the node we searched in */
rc = fat_file_close(parent_loc->mt_entry, parent_loc->node_access);
2038fe4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2038fe8: 7f ff b2 29 call 202588c <fat_file_close> <== NOT EXECUTED
2038fec: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
if (rc != RC_OK)
2038ff0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038ff4: 02 80 00 08 be 2039014 <msdos_find_name+0x220> <== NOT EXECUTED
2038ff8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
fat_file_close(parent_loc->mt_entry, fat_fd);
2038ffc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2039000: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
2039004: 7f ff b2 22 call 202588c <fat_file_close> <== NOT EXECUTED
2039008: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203900c: 81 c7 e0 08 ret <== NOT EXECUTED
2039010: 81 e8 00 00 restore <== NOT EXECUTED
}
/* update node_info_ptr field */
parent_loc->node_access = fat_fd;
2039014: c2 24 00 00 st %g1, [ %l0 ] <== NOT EXECUTED
return rc;
2039018: 81 c7 e0 08 ret <== NOT EXECUTED
203901c: 81 e8 00 00 restore <== NOT EXECUTED
2039020: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
2039024: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
}
2039028: 81 c7 e0 08 ret <== NOT EXECUTED
203902c: 81 e8 00 00 restore <== NOT EXECUTED
020378c0 <msdos_find_name_in_fat_file>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
20378c0: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
20378c4: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
20378c8: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
20378cc: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
20378d0: f4 2f bf ef stb %i2, [ %fp + -17 ] <== NOT EXECUTED
20378d4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
uint32_t empty_space_count = 0;
bool empty_space_found = false;
uint32_t entries_per_block;
bool read_cluster = false;
assert(name_len > 0);
20378d8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
20378dc: e4 07 a0 5c ld [ %fp + 0x5c ], %l2 <== NOT EXECUTED
20378e0: fa 07 a0 60 ld [ %fp + 0x60 ], %i5 <== NOT EXECUTED
uint32_t empty_space_count = 0;
bool empty_space_found = false;
uint32_t entries_per_block;
bool read_cluster = false;
assert(name_len > 0);
20378e4: 14 80 00 0a bg 203790c <msdos_find_name_in_fat_file+0x4c> <== NOT EXECUTED
20378e8: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 <== NOT EXECUTED
20378ec: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20378f0: 15 00 81 a0 sethi %hi(0x2068000), %o2 <== NOT EXECUTED
20378f4: 17 00 81 a0 sethi %hi(0x2068000), %o3 <== NOT EXECUTED
20378f8: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED
20378fc: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED
2037900: 96 12 e1 f0 or %o3, 0x1f0, %o3 <== NOT EXECUTED
2037904: 10 80 00 42 b 2037a0c <msdos_find_name_in_fat_file+0x14c> <== NOT EXECUTED
2037908: 92 10 24 19 mov 0x419, %o1 <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
203790c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2037910: c2 24 a0 0c st %g1, [ %l2 + 0xc ] <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2037914: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
* is short still check for possible long entries with the short name.
*
* In PR1491 we need to have a LFN for a short file name entry. To
* test this make this test always fail, ie add "0 &&".
*/
if (create_node && (name_type == MSDOS_NAME_SHORT))
2037918: c2 0f bf ef ldub [ %fp + -17 ], %g1 <== NOT EXECUTED
static inline void
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
203791c: c0 24 80 00 clr [ %l2 ] <== NOT EXECUTED
2037920: 80 88 60 ff btst 0xff, %g1 <== NOT EXECUTED
2037924: 02 80 00 06 be 203793c <msdos_find_name_in_fat_file+0x7c> <== NOT EXECUTED
2037928: c0 24 a0 04 clr [ %l2 + 4 ] <== NOT EXECUTED
203792c: c4 07 a0 58 ld [ %fp + 0x58 ], %g2 <== NOT EXECUTED
2037930: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
2037934: 02 80 00 07 be 2037950 <msdos_find_name_in_fat_file+0x90> <== NOT EXECUTED
2037938: a6 10 20 00 clr %l3 <== NOT EXECUTED
lfn_entries = 0;
else
lfn_entries =
203793c: c6 07 a0 54 ld [ %fp + 0x54 ], %g3 <== NOT EXECUTED
2037940: 92 10 20 0d mov 0xd, %o1 <== NOT EXECUTED
2037944: 40 00 93 97 call 205c7a0 <.div> <== NOT EXECUTED
2037948: 90 00 e0 0c add %g3, 0xc, %o0 <== NOT EXECUTED
203794c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2037950: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2037954: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2037958: 32 80 00 0b bne,a 2037984 <msdos_find_name_in_fat_file+0xc4><== NOT EXECUTED
203795c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
2037960: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2037964: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037968: 32 80 00 07 bne,a 2037984 <msdos_find_name_in_fat_file+0xc4><== NOT EXECUTED
203796c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
2037970: c2 0d 20 0a ldub [ %l4 + 0xa ], %g1 <== NOT EXECUTED
2037974: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2037978: 22 80 00 03 be,a 2037984 <msdos_find_name_in_fat_file+0xc4><== NOT EXECUTED
203797c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
2037980: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED
2037984: d4 0f bf ef ldub [ %fp + -17 ], %o2 <== NOT EXECUTED
assert(name_len > 0);
fat_dir_pos_init(dir_pos);
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
2037988: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
203798c: ac 10 20 00 clr %l6 <== NOT EXECUTED
2037990: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
2037994: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
2037998: 88 10 20 00 clr %g4 <== NOT EXECUTED
203799c: 82 10 20 00 clr %g1 <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
20379a0: 98 04 e0 01 add %l3, 1, %o4 <== NOT EXECUTED
20379a4: aa 10 00 10 mov %l0, %l5 <== NOT EXECUTED
20379a8: e4 27 bf e4 st %l2, [ %fp + -28 ] <== NOT EXECUTED
assert(name_len > 0);
fat_dir_pos_init(dir_pos);
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
20379ac: 9a 10 20 00 clr %o5 <== NOT EXECUTED
20379b0: b8 10 20 00 clr %i4 <== NOT EXECUTED
20379b4: ae 10 20 00 clr %l7 <== NOT EXECUTED
20379b8: b4 10 20 00 clr %i2 <== NOT EXECUTED
20379bc: b0 10 20 00 clr %i0 <== NOT EXECUTED
20379c0: d4 27 bf e0 st %o2, [ %fp + -32 ] <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
20379c4: d8 27 bf dc st %o4, [ %fp + -36 ] <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
20379c8: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
20379cc: b6 10 00 16 mov %l6, %i3 <== NOT EXECUTED
20379d0: a0 10 00 01 mov %g1, %l0 <== NOT EXECUTED
/*
* Scan the directory seeing if the file is present. While
* doing this see if a suitable location can be found to
* create the entry if the name is not found.
*/
while ((ret = fat_file_read(mt_entry, fat_fd, (dir_offset * bts2rd),
20379d4: 10 80 00 ef b 2037d90 <msdos_find_name_in_fat_file+0x4d0> <== NOT EXECUTED
20379d8: a4 10 00 04 mov %g4, %l2 <== NOT EXECUTED
bool remainder_empty = false;
#if MSDOS_FIND_PRINT
printf ("MSFS:[2] dir_offset:%li\n", dir_offset);
#endif
if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
20379dc: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
20379e0: 04 80 01 e6 ble 2038178 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
20379e4: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
20379e8: 02 80 00 0b be 2037a14 <msdos_find_name_in_fat_file+0x154><== NOT EXECUTED
20379ec: 82 10 20 00 clr %g1 <== NOT EXECUTED
20379f0: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20379f4: 15 00 81 a0 sethi %hi(0x2068000), %o2 <== NOT EXECUTED
20379f8: 17 00 81 a0 sethi %hi(0x2068000), %o3 <== NOT EXECUTED
20379fc: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED
2037a00: 94 12 a2 b8 or %o2, 0x2b8, %o2 <== NOT EXECUTED
2037a04: 96 12 e1 e0 or %o3, 0x1e0, %o3 <== NOT EXECUTED
2037a08: 92 10 24 49 mov 0x449, %o1 <== NOT EXECUTED
2037a0c: 7f ff c3 7b call 20287f8 <__assert_func> <== NOT EXECUTED
2037a10: 01 00 00 00 nop <== NOT EXECUTED
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
2037a14: c6 05 20 9c ld [ %l4 + 0x9c ], %g3 <== NOT EXECUTED
* to here and write the long file name if this is the start of
* a series of empty entries. If empty_space_count is 0 then
* we are currently not inside an empty series of entries. It
* is a count of empty entries.
*/
if (empty_space_count == 0)
2037a18: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
/*
* See if the entry is empty or the remainder of the directory is
* empty ? Localise to make the code read better.
*/
bool entry_empty = (*MSDOS_DIR_ENTRY_TYPE(entry) ==
2037a1c: c8 08 c0 01 ldub [ %g3 + %g1 ], %g4 <== NOT EXECUTED
* to here and write the long file name if this is the start of
* a series of empty entries. If empty_space_count is 0 then
* we are currently not inside an empty series of entries. It
* is a count of empty entries.
*/
if (empty_space_count == 0)
2037a20: 12 80 00 04 bne 2037a30 <msdos_find_name_in_fat_file+0x170><== NOT EXECUTED
2037a24: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
2037a28: ae 10 00 01 mov %g1, %l7 <== NOT EXECUTED
2037a2c: b6 10 00 18 mov %i0, %i3 <== NOT EXECUTED
{
empty_space_entry = dir_entry;
empty_space_offset = dir_offset;
}
if (remainder_empty)
2037a30: 98 89 20 ff andcc %g4, 0xff, %o4 <== NOT EXECUTED
2037a34: 12 80 00 10 bne 2037a74 <msdos_find_name_in_fat_file+0x1b4><== NOT EXECUTED
2037a38: 80 a3 20 e5 cmp %o4, 0xe5 <== NOT EXECUTED
#endif
/*
* If just looking and there is no more entries in the
* directory - return name-not-found
*/
if (!create_node)
2037a3c: de 0f bf ef ldub [ %fp + -17 ], %o7 <== NOT EXECUTED
2037a40: ac 10 00 1b mov %i3, %l6 <== NOT EXECUTED
2037a44: a0 10 00 15 mov %l5, %l0 <== NOT EXECUTED
2037a48: 80 8b e0 ff btst 0xff, %o7 <== NOT EXECUTED
2037a4c: 02 80 01 d8 be 20381ac <msdos_find_name_in_fat_file+0x8ec><== NOT EXECUTED
2037a50: e4 07 bf e4 ld [ %fp + -28 ], %l2 <== NOT EXECUTED
* Lets go and write the directory entries. If we have not found
* any available space add the remaining number of entries to any that
* we may have already found that are just before this entry. If more
* are needed FAT_EOF is returned by the read and we extend the file.
*/
if (!empty_space_found)
2037a54: 80 8b 60 ff btst 0xff, %o5 <== NOT EXECUTED
2037a58: 12 80 00 e1 bne 2037ddc <msdos_find_name_in_fat_file+0x51c><== NOT EXECUTED
2037a5c: d8 07 a0 58 ld [ %fp + 0x58 ], %o4 <== NOT EXECUTED
{
empty_space_count +=
2037a60: ab 30 60 05 srl %g1, 5, %l5 <== NOT EXECUTED
entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2037a64: 83 34 60 05 srl %l1, 5, %g1 <== NOT EXECUTED
2037a68: b8 07 00 01 add %i4, %g1, %i4 <== NOT EXECUTED
* we may have already found that are just before this entry. If more
* are needed FAT_EOF is returned by the read and we extend the file.
*/
if (!empty_space_found)
{
empty_space_count +=
2037a6c: 10 80 00 dc b 2037ddc <msdos_find_name_in_fat_file+0x51c> <== NOT EXECUTED
2037a70: b8 27 00 15 sub %i4, %l5, %i4 <== NOT EXECUTED
printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif
}
break;
}
else if (entry_empty)
2037a74: 12 80 00 0d bne 2037aa8 <msdos_find_name_in_fat_file+0x1e8><== NOT EXECUTED
2037a78: d4 07 bf e0 ld [ %fp + -32 ], %o2 <== NOT EXECUTED
{
if (create_node)
2037a7c: c6 07 bf e0 ld [ %fp + -32 ], %g3 <== NOT EXECUTED
2037a80: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2037a84: 22 80 00 be be,a 2037d7c <msdos_find_name_in_fat_file+0x4bc><== NOT EXECUTED
2037a88: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
if (empty_space_count == (lfn_entries + 1))
2037a8c: c8 07 bf dc ld [ %fp + -36 ], %g4 <== NOT EXECUTED
if (create_node)
{
/*
* Remainder is not empty so is this entry empty ?
*/
empty_space_count++;
2037a90: b8 07 20 01 inc %i4 <== NOT EXECUTED
if (empty_space_count == (lfn_entries + 1))
2037a94: 80 a7 00 04 cmp %i4, %g4 <== NOT EXECUTED
2037a98: 22 80 00 b8 be,a 2037d78 <msdos_find_name_in_fat_file+0x4b8><== NOT EXECUTED
2037a9c: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
assert(ret == bts2rd);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2037aa0: 10 80 00 b7 b 2037d7c <msdos_find_name_in_fat_file+0x4bc> <== NOT EXECUTED
2037aa4: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
* A valid entry so handle it.
*
* If empty space has not been found we need to start the
* count again.
*/
if (create_node && !empty_space_found)
2037aa8: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
2037aac: 02 80 00 07 be 2037ac8 <msdos_find_name_in_fat_file+0x208><== NOT EXECUTED
2037ab0: d8 08 e0 0b ldub [ %g3 + 0xb ], %o4 <== NOT EXECUTED
2037ab4: 80 8b 60 ff btst 0xff, %o5 <== NOT EXECUTED
2037ab8: 12 80 00 04 bne 2037ac8 <msdos_find_name_in_fat_file+0x208><== NOT EXECUTED
2037abc: 01 00 00 00 nop <== NOT EXECUTED
2037ac0: b8 10 20 00 clr %i4 ! 0 <PROM_START> <== NOT EXECUTED
2037ac4: ae 10 20 00 clr %l7 <== NOT EXECUTED
/*
* Check the attribute to see if the entry is for a long
* file name.
*/
if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==
2037ac8: 98 0b 20 3f and %o4, 0x3f, %o4 <== NOT EXECUTED
2037acc: 80 a3 20 0f cmp %o4, 0xf <== NOT EXECUTED
2037ad0: 12 80 00 56 bne 2037c28 <msdos_find_name_in_fat_file+0x368><== NOT EXECUTED
2037ad4: 80 8c 20 ff btst 0xff, %l0 <== NOT EXECUTED
#endif
/*
* If we are not already processing a LFN see if this is
* the first entry of a LFN ?
*/
if (lfn_start.cln == FAT_FILE_SHORT_NAME)
2037ad8: d8 07 bf f4 ld [ %fp + -12 ], %o4 <== NOT EXECUTED
2037adc: 80 a3 3f ff cmp %o4, -1 <== NOT EXECUTED
2037ae0: 32 80 00 10 bne,a 2037b20 <msdos_find_name_in_fat_file+0x260><== NOT EXECUTED
2037ae4: c8 08 c0 00 ldub [ %g3 ], %g4 <== NOT EXECUTED
/*
* The first entry must have the last long entry
* flag set.
*/
if ((*MSDOS_DIR_ENTRY_TYPE(entry) &
2037ae8: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2037aec: 80 89 20 40 btst 0x40, %g4 <== NOT EXECUTED
2037af0: 02 80 00 a2 be 2037d78 <msdos_find_name_in_fat_file+0x4b8><== NOT EXECUTED
2037af4: a0 10 20 00 clr %l0 <== NOT EXECUTED
* entry match the number we expect for this
* file name. Note we do not know the number of
* characters in the entry so this is check further
* on when the characters are checked.
*/
if (lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &
2037af8: 88 09 20 3f and %g4, 0x3f, %g4 <== NOT EXECUTED
2037afc: 80 a4 c0 04 cmp %l3, %g4 <== NOT EXECUTED
2037b00: 32 80 00 9f bne,a 2037d7c <msdos_find_name_in_fat_file+0x4bc><== NOT EXECUTED
2037b04: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
continue;
/*
* Get the checksum of the short entry.
*/
lfn_start.cln = dir_offset;
2037b08: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
lfn_start.ofs = dir_entry;
2037b0c: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
lfn_entry = lfn_entries;
lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
2037b10: e4 08 e0 0d ldub [ %g3 + 0xd ], %l2 <== NOT EXECUTED
2037b14: b4 10 00 13 mov %l3, %i2 <== NOT EXECUTED
2037b18: a0 10 20 00 clr %l0 <== NOT EXECUTED
* If the entry number or the check sum do not match
* forget this series of long directory entries. These
* could be orphaned entries depending on the history
* of the disk.
*/
if ((lfn_entry != (*MSDOS_DIR_ENTRY_TYPE(entry) &
2037b1c: c8 08 c0 00 ldub [ %g3 ], %g4 <== NOT EXECUTED
2037b20: 88 09 20 3f and %g4, 0x3f, %g4 <== NOT EXECUTED
2037b24: 80 a6 80 04 cmp %i2, %g4 <== NOT EXECUTED
2037b28: 32 80 00 94 bne,a 2037d78 <msdos_find_name_in_fat_file+0x4b8><== NOT EXECUTED
2037b2c: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
MSDOS_LAST_LONG_ENTRY_MASK)) ||
(lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
2037b30: c8 08 e0 0d ldub [ %g3 + 0xd ], %g4 <== NOT EXECUTED
2037b34: 98 0c a0 ff and %l2, 0xff, %o4 <== NOT EXECUTED
2037b38: 80 a3 00 04 cmp %o4, %g4 <== NOT EXECUTED
2037b3c: 02 80 00 04 be 2037b4c <msdos_find_name_in_fat_file+0x28c><== NOT EXECUTED
2037b40: de 07 a0 50 ld [ %fp + 0x50 ], %o7 <== NOT EXECUTED
{
#if MSDOS_FIND_PRINT
printf ("MSFS:[4.4] no match\n");
#endif
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
2037b44: 10 80 00 8d b 2037d78 <msdos_find_name_in_fat_file+0x4b8> <== NOT EXECUTED
2037b48: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
}
lfn_entry--;
2037b4c: 98 06 bf ff add %i2, -1, %o4 <== NOT EXECUTED
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
p = entry + 1;
2037b50: 86 00 e0 01 inc %g3 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
2037b54: 97 2b 20 02 sll %o4, 2, %o3 <== NOT EXECUTED
2037b58: 95 2b 20 04 sll %o4, 4, %o2 <== NOT EXECUTED
p = entry + 1;
2037b5c: 88 10 20 00 clr %g4 <== NOT EXECUTED
lfn_start.cln = FAT_FILE_SHORT_NAME;
continue;
}
lfn_entry--;
o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;
2037b60: 96 22 80 0b sub %o2, %o3, %o3 <== NOT EXECUTED
2037b64: 96 02 c0 0c add %o3, %o4, %o3 <== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
2037b68: 92 03 c0 0b add %o7, %o3, %o1 <== NOT EXECUTED
{
#if MSDOS_FIND_PRINT > 1
printf ("MSFS:[6] o:%i i:%i *p:%c(%02x) name[o + i]:%c(%02x)\n",
o, i, *p, *p, name[o + i], name[o + i]);
#endif
if (*p == '\0')
2037b6c: d4 48 c0 00 ldsb [ %g3 ], %o2 <== NOT EXECUTED
2037b70: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
2037b74: 12 80 00 0c bne 2037ba4 <msdos_find_name_in_fat_file+0x2e4><== NOT EXECUTED
2037b78: de 07 a0 54 ld [ %fp + 0x54 ], %o7 <== NOT EXECUTED
/*
* If this is the first entry, ie the last part of the
* long file name and the length does not match then
* the file names do not match.
*/
if (((lfn_entry + 1) == lfn_entries) &&
2037b7c: 80 a6 80 13 cmp %i2, %l3 <== NOT EXECUTED
2037b80: 12 80 00 22 bne 2037c08 <msdos_find_name_in_fat_file+0x348><== NOT EXECUTED
2037b84: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
2037b88: c6 07 a0 54 ld [ %fp + 0x54 ], %g3 <== NOT EXECUTED
2037b8c: 88 01 00 0b add %g4, %o3, %g4 <== NOT EXECUTED
2037b90: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
2037b94: 32 80 00 1c bne,a 2037c04 <msdos_find_name_in_fat_file+0x344><== NOT EXECUTED
2037b98: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
2037b9c: 10 80 00 1b b 2037c08 <msdos_find_name_in_fat_file+0x348> <== NOT EXECUTED
2037ba0: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
((o + i) != name_len))
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
}
if (((o + i) >= name_len) || (*p != name[o + i]))
2037ba4: 90 01 00 0b add %g4, %o3, %o0 <== NOT EXECUTED
2037ba8: 80 a2 00 0f cmp %o0, %o7 <== NOT EXECUTED
2037bac: 36 80 00 16 bge,a 2037c04 <msdos_find_name_in_fat_file+0x344><== NOT EXECUTED
2037bb0: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
2037bb4: d0 4a 40 04 ldsb [ %o1 + %g4 ], %o0 <== NOT EXECUTED
2037bb8: 80 a2 80 08 cmp %o2, %o0 <== NOT EXECUTED
2037bbc: 02 80 00 04 be 2037bcc <msdos_find_name_in_fat_file+0x30c><== NOT EXECUTED
2037bc0: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
{
lfn_start.cln = FAT_FILE_SHORT_NAME;
break;
2037bc4: 10 80 00 10 b 2037c04 <msdos_find_name_in_fat_file+0x344> <== NOT EXECUTED
2037bc8: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
}
switch (i)
2037bcc: 02 80 00 06 be 2037be4 <msdos_find_name_in_fat_file+0x324><== NOT EXECUTED
2037bd0: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
2037bd4: 32 80 00 08 bne,a 2037bf4 <msdos_find_name_in_fat_file+0x334><== NOT EXECUTED
2037bd8: 86 00 e0 02 add %g3, 2, %g3 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
2037bdc: 10 80 00 04 b 2037bec <msdos_find_name_in_fat_file+0x32c> <== NOT EXECUTED
2037be0: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
switch (i)
{
case 4:
p += 5;
break;
2037be4: 10 80 00 04 b 2037bf4 <msdos_find_name_in_fat_file+0x334> <== NOT EXECUTED
2037be8: 86 00 e0 05 add %g3, 5, %g3 <== NOT EXECUTED
case 10:
p += 4;
break;
2037bec: 10 80 00 03 b 2037bf8 <msdos_find_name_in_fat_file+0x338> <== NOT EXECUTED
2037bf0: 88 01 20 01 inc %g4 <== NOT EXECUTED
p = entry + 1;
#if MSDOS_FIND_PRINT
printf ("MSFS:[5] lfne:%i\n", lfn_entry);
#endif
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
2037bf4: 88 01 20 01 inc %g4 <== NOT EXECUTED
2037bf8: 80 a1 20 0d cmp %g4, 0xd <== NOT EXECUTED
2037bfc: 32 bf ff dd bne,a 2037b70 <msdos_find_name_in_fat_file+0x2b0><== NOT EXECUTED
2037c00: d4 48 c0 00 ldsb [ %g3 ], %o2 <== NOT EXECUTED
p += 2;
break;
}
}
lfn_matched = ((lfn_entry == 0) &&
2037c04: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
2037c08: 12 80 00 06 bne 2037c20 <msdos_find_name_in_fat_file+0x360><== NOT EXECUTED
2037c0c: a0 10 20 00 clr %l0 <== NOT EXECUTED
2037c10: c6 07 bf f4 ld [ %fp + -12 ], %g3 <== NOT EXECUTED
2037c14: 86 38 00 03 xnor %g0, %g3, %g3 <== NOT EXECUTED
2037c18: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
2037c1c: a0 40 20 00 addx %g0, 0, %l0 <== NOT EXECUTED
2037c20: 10 80 00 56 b 2037d78 <msdos_find_name_in_fat_file+0x4b8> <== NOT EXECUTED
2037c24: b4 10 00 0c mov %o4, %i2 <== NOT EXECUTED
* If a LFN has been found and it matched check the
* entries have all been found and the checksum is
* correct. If this is the case return the short file
* name entry.
*/
if (lfn_matched)
2037c28: 02 80 00 18 be 2037c88 <msdos_find_name_in_fat_file+0x3c8><== NOT EXECUTED
2037c2c: c8 07 a0 58 ld [ %fp + 0x58 ], %g4 <== NOT EXECUTED
2037c30: 88 10 20 00 clr %g4 <== NOT EXECUTED
2037c34: 98 10 20 00 clr %o4 <== NOT EXECUTED
uint8_t cs = 0;
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
int i;
for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2037c38: d6 08 c0 04 ldub [ %g3 + %g4 ], %o3 <== NOT EXECUTED
2037c3c: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
int i;
for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
2037c40: 88 01 20 01 inc %g4 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2037c44: 95 33 20 01 srl %o4, 1, %o2 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
int i;
for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
2037c48: 80 a1 20 0b cmp %g4, 0xb <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
2037c4c: 96 02 80 0b add %o2, %o3, %o3 <== NOT EXECUTED
2037c50: 98 0b 20 01 and %o4, 1, %o4 <== NOT EXECUTED
2037c54: 98 20 00 0c neg %o4 <== NOT EXECUTED
2037c58: 98 0b 20 80 and %o4, 0x80, %o4 <== NOT EXECUTED
{
uint8_t cs = 0;
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
int i;
for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
2037c5c: 12 bf ff f7 bne 2037c38 <msdos_find_name_in_fat_file+0x378><== NOT EXECUTED
2037c60: 98 02 c0 0c add %o3, %o4, %o4 <== NOT EXECUTED
cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
if (lfn_entry || (lfn_checksum != cs))
2037c64: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
2037c68: 88 0c a0 ff and %l2, 0xff, %g4 <== NOT EXECUTED
2037c6c: 80 a1 00 0c cmp %g4, %o4 <== NOT EXECUTED
2037c70: 12 80 00 06 bne 2037c88 <msdos_find_name_in_fat_file+0x3c8><== NOT EXECUTED
2037c74: c8 07 a0 58 ld [ %fp + 0x58 ], %g4 <== NOT EXECUTED
2037c78: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2037c7c: 22 80 00 19 be,a 2037ce0 <msdos_find_name_in_fat_file+0x420><== NOT EXECUTED
2037c80: e4 07 bf e4 ld [ %fp + -28 ], %l2 <== NOT EXECUTED
* short and they match then we have the entry. We will not
* match a long file name against a short file name because
* a long file name that generates a matching short file
* name is not a long file name.
*/
if (lfn_matched ||
2037c84: c8 07 a0 58 ld [ %fp + 0x58 ], %g4 <== NOT EXECUTED
2037c88: 80 a1 20 01 cmp %g4, 1 <== NOT EXECUTED
2037c8c: 32 80 00 3a bne,a 2037d74 <msdos_find_name_in_fat_file+0x4b4><== NOT EXECUTED
2037c90: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
2037c94: c8 07 bf f4 ld [ %fp + -12 ], %g4 <== NOT EXECUTED
2037c98: 80 a1 3f ff cmp %g4, -1 <== NOT EXECUTED
2037c9c: 32 80 00 36 bne,a 2037d74 <msdos_find_name_in_fat_file+0x4b4><== NOT EXECUTED
2037ca0: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
((name_type == MSDOS_NAME_SHORT) &&
(lfn_start.cln == FAT_FILE_SHORT_NAME) &&
(memcmp(MSDOS_DIR_NAME(entry),
2037ca4: 90 10 00 03 mov %g3, %o0 <== NOT EXECUTED
2037ca8: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED
2037cac: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED
2037cb0: c6 27 bf d8 st %g3, [ %fp + -40 ] <== NOT EXECUTED
2037cb4: da 27 bf d0 st %o5, [ %fp + -48 ] <== NOT EXECUTED
2037cb8: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
2037cbc: 40 00 3e 91 call 2047700 <memcmp> <== NOT EXECUTED
2037cc0: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
* short and they match then we have the entry. We will not
* match a long file name against a short file name because
* a long file name that generates a matching short file
* name is not a long file name.
*/
if (lfn_matched ||
2037cc4: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
2037cc8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037ccc: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED
2037cd0: c6 07 bf d8 ld [ %fp + -40 ], %g3 <== NOT EXECUTED
2037cd4: 12 80 00 27 bne 2037d70 <msdos_find_name_in_fat_file+0x4b0><== NOT EXECUTED
2037cd8: da 07 bf d0 ld [ %fp + -48 ], %o5 <== NOT EXECUTED
2037cdc: e4 07 bf e4 ld [ %fp + -28 ], %l2 <== NOT EXECUTED
2037ce0: a0 10 00 15 mov %l5, %l0 <== NOT EXECUTED
2037ce4: b6 10 00 03 mov %g3, %i3 <== NOT EXECUTED
2037ce8: aa 10 00 01 mov %g1, %l5 <== NOT EXECUTED
#endif
/*
* We get the entry we looked for - fill the position
* structure and the 32 bytes of the short entry
*/
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2037cec: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
2037cf0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037cf4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037cf8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2037cfc: 7f ff b4 d8 call 202505c <fat_file_ioctl> <== NOT EXECUTED
2037d00: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
dir_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
2037d04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037d08: 12 80 01 2d bne 20381bc <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
2037d0c: d2 07 bf f4 ld [ %fp + -12 ], %o1 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
2037d10: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
2037d14: 02 80 00 0d be 2037d48 <msdos_find_name_in_fat_file+0x488><== NOT EXECUTED
2037d18: ea 24 a0 04 st %l5, [ %l2 + 4 ] <== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2037d1c: 7f ff 2b 37 call 20029f8 <.umul> <== NOT EXECUTED
2037d20: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2037d24: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037d28: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2037d2c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2037d30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037d34: 7f ff b4 ca call 202505c <fat_file_ioctl> <== NOT EXECUTED
2037d38: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
2037d3c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037d40: 12 80 01 1f bne 20381bc <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
2037d44: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
2037d48: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
memcpy(name_dir_entry, entry,
2037d4c: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
&lfn_start.cln);
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
2037d50: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
2037d54: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
2037d58: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
dir_pos->lname.ofs = lfn_start.ofs;
2037d5c: c2 24 a0 0c st %g1, [ %l2 + 0xc ] <== NOT EXECUTED
memcpy(name_dir_entry, entry,
2037d60: 40 00 3e 99 call 20477c4 <memcpy> <== NOT EXECUTED
2037d64: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
2037d68: 10 80 01 15 b 20381bc <msdos_find_name_in_fat_file+0x8fc> <== NOT EXECUTED
2037d6c: 90 10 20 00 clr %o0 <== NOT EXECUTED
memcpy(name_dir_entry, entry,
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
}
lfn_start.cln = FAT_FILE_SHORT_NAME;
2037d70: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
2037d74: a0 10 20 00 clr %l0 <== NOT EXECUTED
assert(ret == bts2rd);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2037d78: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
assert(ret == bts2rd);
/* have to look at the DIR_NAME as "raw" 8-bit data */
for (dir_entry = 0;
2037d7c: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
2037d80: 2a bf ff 26 bcs,a 2037a18 <msdos_find_name_in_fat_file+0x158><== NOT EXECUTED
2037d84: c6 05 20 9c ld [ %l4 + 0x9c ], %g3 <== NOT EXECUTED
2037d88: ac 05 80 11 add %l6, %l1, %l6 <== NOT EXECUTED
}
if (remainder_empty)
break;
dir_offset++;
2037d8c: b0 06 20 01 inc %i0 <== NOT EXECUTED
/*
* Scan the directory seeing if the file is present. While
* doing this see if a suitable location can be found to
* create the entry if the name is not found.
*/
while ((ret = fat_file_read(mt_entry, fat_fd, (dir_offset * bts2rd),
2037d90: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
2037d94: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED
2037d98: da 27 bf d0 st %o5, [ %fp + -48 ] <== NOT EXECUTED
2037d9c: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2037da0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037da4: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2037da8: 7f ff b6 38 call 2025688 <fat_file_read> <== NOT EXECUTED
2037dac: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2037db0: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED
2037db4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037db8: 12 bf ff 09 bne 20379dc <msdos_find_name_in_fat_file+0x11c><== NOT EXECUTED
2037dbc: da 07 bf d0 ld [ %fp + -48 ], %o5 <== NOT EXECUTED
}
/*
* If we are not to create the entry return a not found error.
*/
if (!create_node)
2037dc0: d4 0f bf ef ldub [ %fp + -17 ], %o2 <== NOT EXECUTED
2037dc4: ac 10 00 1b mov %i3, %l6 <== NOT EXECUTED
2037dc8: a0 10 00 15 mov %l5, %l0 <== NOT EXECUTED
2037dcc: 80 8a a0 ff btst 0xff, %o2 <== NOT EXECUTED
2037dd0: 02 80 00 f7 be 20381ac <msdos_find_name_in_fat_file+0x8ec><== NOT EXECUTED
2037dd4: e4 07 bf e4 ld [ %fp + -28 ], %l2 <== NOT EXECUTED
* data to place in each long file name entry. First set the short
* file name to the slot of the SFN entry. This will mean no clashes
* in this directory.
*/
lfn_checksum = 0;
if (name_type == MSDOS_NAME_LONG)
2037dd8: d8 07 a0 58 ld [ %fp + 0x58 ], %o4 <== NOT EXECUTED
2037ddc: 80 a3 20 02 cmp %o4, 2 <== NOT EXECUTED
2037de0: 32 80 00 26 bne,a 2037e78 <msdos_find_name_in_fat_file+0x5b8><== NOT EXECUTED
2037de4: c0 2f bf ef clrb [ %fp + -17 ] <== NOT EXECUTED
{
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
2037de8: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2037dec: 7f ff 2b 03 call 20029f8 <.umul> <== NOT EXECUTED
2037df0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2037df4: aa 04 e0 01 add %l3, 1, %l5 <== NOT EXECUTED
2037df8: 90 02 00 17 add %o0, %l7, %o0 <== NOT EXECUTED
2037dfc: 82 10 20 00 clr %g1 <== NOT EXECUTED
2037e00: 91 32 20 05 srl %o0, 5, %o0 <== NOT EXECUTED
static const char* hex = "0123456789ABCDEF";
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
2037e04: 86 10 20 7e mov 0x7e, %g3 <== NOT EXECUTED
*/
lfn_checksum = 0;
if (name_type == MSDOS_NAME_LONG)
{
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
2037e08: aa 05 40 08 add %l5, %o0, %l5 <== NOT EXECUTED
{
static const char* hex = "0123456789ABCDEF";
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
2037e0c: c4 4f 40 01 ldsb [ %i5 + %g1 ], %g2 <== NOT EXECUTED
2037e10: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
2037e14: 22 80 00 06 be,a 2037e2c <msdos_find_name_in_fat_file+0x56c><== NOT EXECUTED
2037e18: c6 2f 40 01 stb %g3, [ %i5 + %g1 ] <== NOT EXECUTED
2037e1c: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
2037e20: 32 80 00 04 bne,a 2037e30 <msdos_find_name_in_fat_file+0x570><== NOT EXECUTED
2037e24: 82 00 60 01 inc %g1 <== NOT EXECUTED
*c = '~';
2037e28: c6 2f 40 01 stb %g3, [ %i5 + %g1 ] <== NOT EXECUTED
msdos_short_name_hex(char* sfn, int num)
{
static const char* hex = "0123456789ABCDEF";
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
2037e2c: 82 00 60 01 inc %g1 <== NOT EXECUTED
2037e30: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
2037e34: 32 bf ff f7 bne,a 2037e10 <msdos_find_name_in_fat_file+0x550><== NOT EXECUTED
2037e38: c4 4f 40 01 ldsb [ %i5 + %g1 ], %g2 <== NOT EXECUTED
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
2037e3c: 03 00 81 a0 sethi %hi(0x2068000), %g1 <== NOT EXECUTED
2037e40: c6 00 62 d4 ld [ %g1 + 0x2d4 ], %g3 ! 20682d4 <hex.7100> <== NOT EXECUTED
char* c = MSDOS_DIR_NAME(sfn);
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
2037e44: 82 10 20 7e mov 0x7e, %g1 <== NOT EXECUTED
2037e48: 84 07 60 04 add %i5, 4, %g2 <== NOT EXECUTED
2037e4c: c2 2f 60 03 stb %g1, [ %i5 + 3 ] <== NOT EXECUTED
for (i = 0; i < 4; i++, c++)
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
2037e50: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
2037e54: 89 3d 40 01 sra %l5, %g1, %g4 <== NOT EXECUTED
2037e58: 88 09 20 0f and %g4, 0xf, %g4 <== NOT EXECUTED
2037e5c: c8 08 c0 04 ldub [ %g3 + %g4 ], %g4 <== NOT EXECUTED
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
for (i = 0; i < 4; i++, c++)
2037e60: 82 00 7f fc add %g1, -4, %g1 <== NOT EXECUTED
*c = hex[(num >> ((3 - i) * 4)) & 0xf];
2037e64: c8 28 80 00 stb %g4, [ %g2 ] <== NOT EXECUTED
int i;
for (i = 0; i < 3; i++, c++)
if ((*c == ' ') || (*c == '.'))
*c = '~';
*c++ = '~';
for (i = 0; i < 4; i++, c++)
2037e68: 80 a0 7f fc cmp %g1, -4 <== NOT EXECUTED
2037e6c: 12 bf ff fa bne 2037e54 <msdos_find_name_in_fat_file+0x594><== NOT EXECUTED
2037e70: 84 00 a0 01 inc %g2 <== NOT EXECUTED
int slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
msdos_short_name_hex(MSDOS_DIR_NAME(name_dir_entry), slot);
}
if (lfn_entries)
2037e74: c0 2f bf ef clrb [ %fp + -17 ] <== NOT EXECUTED
2037e78: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2037e7c: 02 80 00 0f be 2037eb8 <msdos_find_name_in_fat_file+0x5f8><== NOT EXECUTED
2037e80: 82 10 20 00 clr %g1 <== NOT EXECUTED
2037e84: 84 10 20 00 clr %g2 <== NOT EXECUTED
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
lfn_checksum =
2037e88: c6 0f 40 01 ldub [ %i5 + %g1 ], %g3 <== NOT EXECUTED
2037e8c: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
if (lfn_entries)
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
2037e90: 82 00 60 01 inc %g1 <== NOT EXECUTED
lfn_checksum =
2037e94: 89 30 a0 01 srl %g2, 1, %g4 <== NOT EXECUTED
if (lfn_entries)
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
2037e98: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
lfn_checksum =
2037e9c: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
2037ea0: 84 08 a0 01 and %g2, 1, %g2 <== NOT EXECUTED
2037ea4: 84 20 00 02 neg %g2 <== NOT EXECUTED
2037ea8: 84 08 a0 80 and %g2, 0x80, %g2 <== NOT EXECUTED
if (lfn_entries)
{
uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);
int i;
for (i = 0; i < 11; i++, p++)
2037eac: 12 bf ff f7 bne 2037e88 <msdos_find_name_in_fat_file+0x5c8><== NOT EXECUTED
2037eb0: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2037eb4: c4 2f bf ef stb %g2, [ %fp + -17 ] <== NOT EXECUTED
* empty_space_count is a count of empty entries in the currently
* read cluster so if 0 there is no space. Note, dir_offset will
* be at the next cluster so we can just make empty_space_offset
* that value.
*/
if (empty_space_count == 0)
2037eb8: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
2037ebc: 12 80 00 05 bne 2037ed0 <msdos_find_name_in_fat_file+0x610><== NOT EXECUTED
2037ec0: 80 a6 00 16 cmp %i0, %l6 <== NOT EXECUTED
2037ec4: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
2037ec8: 10 80 00 05 b 2037edc <msdos_find_name_in_fat_file+0x61c> <== NOT EXECUTED
2037ecc: ae 10 20 00 clr %l7 <== NOT EXECUTED
}
/*
* Have we read past the empty block ? If so go back and read it again.
*/
if (dir_offset != empty_space_offset)
2037ed0: 12 80 00 04 bne 2037ee0 <msdos_find_name_in_fat_file+0x620><== NOT EXECUTED
2037ed4: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
2037ed8: b8 10 20 00 clr %i4 <== NOT EXECUTED
2037edc: ac 10 00 18 mov %i0, %l6 <== NOT EXECUTED
read_cluster = true;
/*
* Handle the entry writes.
*/
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
2037ee0: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2037ee4: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
read_cluster = true;
/*
* Handle the entry writes.
*/
lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;
2037ee8: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
2037eec: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2037ef0: 7f ff 2a c2 call 20029f8 <.umul> <== NOT EXECUTED
2037ef4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.4] clear write: %d\n", ret);
#endif
if (ret == -1)
return ret;
else if (ret != bts2rd)
2037ef8: 9e 04 e0 01 add %l3, 1, %o7 <== NOT EXECUTED
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2037efc: b6 10 20 00 clr %i3 <== NOT EXECUTED
2037f00: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.4] clear write: %d\n", ret);
#endif
if (ret == -1)
return ret;
else if (ret != bts2rd)
2037f04: de 27 bf e8 st %o7, [ %fp + -24 ] <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
2037f08: 10 80 00 a4 b 2038198 <msdos_find_name_in_fat_file+0x8d8> <== NOT EXECUTED
2037f0c: b0 10 00 1d mov %i5, %i0 <== NOT EXECUTED
{
int length = 0;
if (read_cluster)
2037f10: 02 80 00 26 be 2037fa8 <msdos_find_name_in_fat_file+0x6e8><== NOT EXECUTED
2037f14: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
{
uint32_t new_length;
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.1] eso:%li\n", empty_space_offset);
#endif
ret = fat_file_read(mt_entry, fat_fd,
2037f18: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
2037f1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037f20: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037f24: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2037f28: 7f ff b5 d8 call 2025688 <fat_file_read> <== NOT EXECUTED
2037f2c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
(empty_space_offset * bts2rd), bts2rd,
fs_info->cl_buf);
if (ret != bts2rd)
2037f30: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
2037f34: 02 80 00 1c be 2037fa4 <msdos_find_name_in_fat_file+0x6e4><== NOT EXECUTED
2037f38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
{
if (ret != FAT_EOF)
2037f3c: 12 80 00 8f bne 2038178 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2037f40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.2] extending file:%li\n", empty_space_offset);
#endif
ret = fat_file_extend (mt_entry, fat_fd, empty_space_offset * bts2rd,
2037f44: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037f48: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2037f4c: 7f ff b4 ba call 2025234 <fat_file_extend> <== NOT EXECUTED
2037f50: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
&new_length);
if (ret != RC_OK)
2037f54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037f58: 12 80 00 99 bne 20381bc <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
2037f5c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return ret;
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.3] extended: %d <-> %d\n", new_length, empty_space_offset * bts2rd);
#endif
if (new_length != (empty_space_offset * bts2rd))
2037f60: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2037f64: 12 80 00 85 bne 2038178 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2037f68: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
memset(fs_info->cl_buf, 0, bts2rd);
2037f6c: d0 05 20 9c ld [ %l4 + 0x9c ], %o0 <== NOT EXECUTED
2037f70: 40 00 3e a8 call 2047a10 <memset> <== NOT EXECUTED
2037f74: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
ret = fat_file_write(mt_entry, fat_fd,
2037f78: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
2037f7c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037f80: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037f84: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
2037f88: 7f ff b5 28 call 2025428 <fat_file_write> <== NOT EXECUTED
2037f8c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
empty_space_offset * bts2rd,
bts2rd, fs_info->cl_buf);
#if MSDOS_FIND_PRINT
printf ("MSFS:[9.4] clear write: %d\n", ret);
#endif
if (ret == -1)
2037f90: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2037f94: 02 80 00 89 be 20381b8 <msdos_find_name_in_fat_file+0x8f8><== NOT EXECUTED
2037f98: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
return ret;
else if (ret != bts2rd)
2037f9c: 12 80 00 77 bne 2038178 <msdos_find_name_in_fat_file+0x8b8><== NOT EXECUTED
2037fa0: 01 00 00 00 nop <== NOT EXECUTED
2037fa4: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
2037fa8: 86 38 00 1b xnor %g0, %i3, %g3 <== NOT EXECUTED
2037fac: 86 00 c0 13 add %g3, %l3, %g3 <== NOT EXECUTED
2037fb0: 82 06 e0 01 add %i3, 1, %g1 <== NOT EXECUTED
2037fb4: 89 28 e0 04 sll %g3, 4, %g4 <== NOT EXECUTED
2037fb8: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
2037fbc: 85 28 e0 02 sll %g3, 2, %g2 <== NOT EXECUTED
2037fc0: 84 21 00 02 sub %g4, %g2, %g2 <== NOT EXECUTED
2037fc4: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
2037fc8: c6 07 a0 50 ld [ %fp + 0x50 ], %g3 <== NOT EXECUTED
2037fcc: b8 10 00 17 mov %l7, %i4 <== NOT EXECUTED
2037fd0: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
2037fd4: 10 80 00 5a b 203813c <msdos_find_name_in_fat_file+0x87c> <== NOT EXECUTED
2037fd8: b4 10 20 00 clr %i2 <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
2037fdc: c8 07 bf e8 ld [ %fp + -24 ], %g4 <== NOT EXECUTED
char* p;
const char* n;
int i;
length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
lfn_entry++;
2037fe0: b6 06 e0 01 inc %i3 <== NOT EXECUTED
for (dir_entry = empty_space_entry;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + dir_entry;
2037fe4: ba 07 40 1c add %i5, %i4, %i5 <== NOT EXECUTED
length, lfn_entry);
#endif
/*
* Time to write the short file name entry.
*/
if (lfn_entry == (lfn_entries + 1))
2037fe8: 80 a6 c0 04 cmp %i3, %g4 <== NOT EXECUTED
2037fec: 12 80 00 23 bne 2038078 <msdos_find_name_in_fat_file+0x7b8><== NOT EXECUTED
2037ff0: b4 06 a0 20 add %i2, 0x20, %i2 <== NOT EXECUTED
{
/* get current cluster number */
int rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2037ff4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037ff8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037ffc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2038000: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
2038004: 7f ff b4 16 call 202505c <fat_file_ioctl> <== NOT EXECUTED
2038008: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
empty_space_offset * bts2rd,
&dir_pos->sname.cln);
if (rc != RC_OK)
203800c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038010: 12 80 00 6b bne 20381bc <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
2038014: d2 07 bf f4 ld [ %fp + -12 ], %o1 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = dir_entry;
if (lfn_start.cln != FAT_FILE_SHORT_NAME)
2038018: 80 a2 7f ff cmp %o1, -1 <== NOT EXECUTED
203801c: 02 80 00 0d be 2038050 <msdos_find_name_in_fat_file+0x790><== NOT EXECUTED
2038020: f8 24 a0 04 st %i4, [ %l2 + 4 ] <== NOT EXECUTED
{
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM,
2038024: 7f ff 2a 75 call 20029f8 <.umul> <== NOT EXECUTED
2038028: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203802c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2038030: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2038034: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2038038: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203803c: 7f ff b4 08 call 202505c <fat_file_ioctl> <== NOT EXECUTED
2038040: 98 07 bf f4 add %fp, -12, %o4 <== NOT EXECUTED
lfn_start.cln * bts2rd,
&lfn_start.cln);
if (rc != RC_OK)
2038044: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038048: 12 80 00 5d bne 20381bc <msdos_find_name_in_fat_file+0x8fc><== NOT EXECUTED
203804c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
2038050: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
2038054: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
&lfn_start.cln);
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
2038058: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = lfn_start.ofs;
203805c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
2038060: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
}
dir_pos->lname.cln = lfn_start.cln;
dir_pos->lname.ofs = lfn_start.ofs;
2038064: c2 24 a0 0c st %g1, [ %l2 + 0xc ] <== NOT EXECUTED
/* write new node entry */
memcpy (entry, (uint8_t *) name_dir_entry,
2038068: 40 00 3d d7 call 20477c4 <memcpy> <== NOT EXECUTED
203806c: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
break;
2038070: 10 80 00 37 b 203814c <msdos_find_name_in_fat_file+0x88c> <== NOT EXECUTED
2038074: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
* This is a long file name and we need to write
* a long file name entry. See if this is the
* first entry written and if so remember the
* the location of the long file name.
*/
if (lfn_start.cln == FAT_FILE_SHORT_NAME)
2038078: c6 07 bf f4 ld [ %fp + -12 ], %g3 <== NOT EXECUTED
203807c: 80 a0 ff ff cmp %g3, -1 <== NOT EXECUTED
2038080: 12 80 00 04 bne 2038090 <msdos_find_name_in_fat_file+0x7d0><== NOT EXECUTED
2038084: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
{
lfn_start.cln = empty_space_offset;
2038088: ec 27 bf f4 st %l6, [ %fp + -12 ] <== NOT EXECUTED
lfn_start.ofs = dir_entry;
203808c: f8 27 bf f8 st %i4, [ %fp + -8 ] <== NOT EXECUTED
}
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2038090: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED
2038094: c4 27 bf cc st %g2, [ %fp + -52 ] <== NOT EXECUTED
2038098: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
203809c: 40 00 3e 5d call 2047a10 <memset> <== NOT EXECUTED
20380a0: 92 10 20 00 clr %o1 <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
20380a4: d4 0f bf ef ldub [ %fp + -17 ], %o2 <== NOT EXECUTED
p = entry + 1;
20380a8: 86 07 60 01 add %i5, 1, %g3 <== NOT EXECUTED
/*
* Clear the entry before loading the data.
*/
memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
20380ac: d4 2f 60 0d stb %o2, [ %i5 + 0xd ] <== NOT EXECUTED
p = entry + 1;
20380b0: c4 07 bf cc ld [ %fp + -52 ], %g2 <== NOT EXECUTED
20380b4: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
20380b8: 9a 10 00 02 mov %g2, %o5 <== NOT EXECUTED
20380bc: 88 10 20 00 clr %g4 <== NOT EXECUTED
n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
{
*p = *n;
20380c0: d8 0b 40 00 ldub [ %o5 ], %o4 <== NOT EXECUTED
20380c4: d8 28 c0 00 stb %o4, [ %g3 ] <== NOT EXECUTED
if (*n != 0)
20380c8: d8 4b 40 00 ldsb [ %o5 ], %o4 <== NOT EXECUTED
n++;
20380cc: 80 a0 00 0c cmp %g0, %o4 <== NOT EXECUTED
20380d0: 9a 40 00 0d addx %g0, %o5, %o5 <== NOT EXECUTED
switch (i)
20380d4: 80 a1 20 04 cmp %g4, 4 <== NOT EXECUTED
20380d8: 02 80 00 06 be 20380f0 <msdos_find_name_in_fat_file+0x830><== NOT EXECUTED
20380dc: 80 a1 20 0a cmp %g4, 0xa <== NOT EXECUTED
20380e0: 32 80 00 08 bne,a 2038100 <msdos_find_name_in_fat_file+0x840><== NOT EXECUTED
20380e4: 86 00 e0 02 add %g3, 2, %g3 <== NOT EXECUTED
{
case 4:
p += 5;
break;
case 10:
p += 4;
20380e8: 10 80 00 04 b 20380f8 <msdos_find_name_in_fat_file+0x838> <== NOT EXECUTED
20380ec: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
switch (i)
{
case 4:
p += 5;
break;
20380f0: 10 80 00 04 b 2038100 <msdos_find_name_in_fat_file+0x840> <== NOT EXECUTED
20380f4: 86 00 e0 05 add %g3, 5, %g3 <== NOT EXECUTED
case 10:
p += 4;
break;
20380f8: 10 80 00 03 b 2038104 <msdos_find_name_in_fat_file+0x844> <== NOT EXECUTED
20380fc: 88 01 20 01 inc %g4 <== NOT EXECUTED
*MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;
p = entry + 1;
n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)
2038100: 88 01 20 01 inc %g4 <== NOT EXECUTED
2038104: 80 a1 20 0d cmp %g4, 0xd <== NOT EXECUTED
2038108: 32 bf ff ef bne,a 20380c4 <msdos_find_name_in_fat_file+0x804><== NOT EXECUTED
203810c: d8 0b 40 00 ldub [ %o5 ], %o4 <== NOT EXECUTED
break;
}
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
if (lfn_entry == 1)
2038110: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
2038114: 12 80 00 04 bne 2038124 <msdos_find_name_in_fat_file+0x864><== NOT EXECUTED
2038118: c2 2f 40 00 stb %g1, [ %i5 ] <== NOT EXECUTED
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
203811c: 86 10 60 40 or %g1, 0x40, %g3 <== NOT EXECUTED
2038120: c6 2f 40 00 stb %g3, [ %i5 ] <== NOT EXECUTED
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
2038124: c6 0f 60 0b ldub [ %i5 + 0xb ], %g3 <== NOT EXECUTED
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2038128: b8 07 20 20 add %i4, 0x20, %i4 <== NOT EXECUTED
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
if (lfn_entry == 1)
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
203812c: 86 10 e0 0f or %g3, 0xf, %g3 <== NOT EXECUTED
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2038130: 84 00 bf f3 add %g2, -13, %g2 <== NOT EXECUTED
}
*MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
if (lfn_entry == 1)
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
2038134: c6 2f 60 0b stb %g3, [ %i5 + 0xb ] <== NOT EXECUTED
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
dir_entry < bts2rd;
dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
2038138: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
#if MSDOS_FIND_PRINT
printf ("MSFS:[10] eso:%li\n", empty_space_offset);
#endif
for (dir_entry = empty_space_entry;
203813c: 80 a7 00 11 cmp %i4, %l1 <== NOT EXECUTED
2038140: 2a bf ff a7 bcs,a 2037fdc <msdos_find_name_in_fat_file+0x71c><== NOT EXECUTED
2038144: fa 05 20 9c ld [ %l4 + 0x9c ], %i5 <== NOT EXECUTED
if (lfn_entry == 1)
*MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
*MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;
}
ret = fat_file_write(mt_entry, fat_fd,
2038148: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
203814c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038150: 98 03 00 17 add %o4, %l7, %o4 <== NOT EXECUTED
2038154: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2038158: 94 05 40 17 add %l5, %l7, %o2 <== NOT EXECUTED
203815c: 7f ff b4 b3 call 2025428 <fat_file_write> <== NOT EXECUTED
2038160: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
(empty_space_offset * bts2rd) + empty_space_entry,
length, fs_info->cl_buf + empty_space_entry);
if (ret == -1)
2038164: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2038168: 02 80 00 14 be 20381b8 <msdos_find_name_in_fat_file+0x8f8><== NOT EXECUTED
203816c: 80 a2 00 1a cmp %o0, %i2 <== NOT EXECUTED
return ret;
else if (ret != length)
2038170: 02 80 00 07 be 203818c <msdos_find_name_in_fat_file+0x8cc><== NOT EXECUTED
2038174: aa 05 40 11 add %l5, %l1, %l5 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
2038178: 40 00 30 47 call 2044294 <__errno> <== NOT EXECUTED
203817c: 01 00 00 00 nop <== NOT EXECUTED
2038180: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2038184: 10 80 00 0d b 20381b8 <msdos_find_name_in_fat_file+0x8f8> <== NOT EXECUTED
2038188: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
empty_space_offset++;
203818c: ac 05 a0 01 inc %l6 <== NOT EXECUTED
2038190: ae 10 20 00 clr %l7 <== NOT EXECUTED
2038194: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
#endif
/*
* The one more is the short entry.
*/
while (lfn_entry < (lfn_entries + 1))
2038198: 80 a4 c0 1b cmp %l3, %i3 <== NOT EXECUTED
203819c: 16 bf ff 5d bge 2037f10 <msdos_find_name_in_fat_file+0x650><== NOT EXECUTED
20381a0: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
20381a4: 10 80 00 06 b 20381bc <msdos_find_name_in_fat_file+0x8fc> <== NOT EXECUTED
20381a8: 90 10 20 00 clr %o0 <== NOT EXECUTED
20381ac: 11 00 00 1f sethi %hi(0x7c00), %o0 <== NOT EXECUTED
20381b0: 10 80 00 03 b 20381bc <msdos_find_name_in_fat_file+0x8fc> <== NOT EXECUTED
20381b4: 90 12 21 01 or %o0, 0x101, %o0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
20381b8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
empty_space_entry = 0;
read_cluster = true;
}
return 0;
}
20381bc: 81 c7 e0 08 ret <== NOT EXECUTED
20381c0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203773c <msdos_find_node_by_cluster_num_in_fat_file>:
fat_file_fd_t *fat_fd,
uint32_t cl4find,
fat_dir_pos_t *dir_pos,
char *dir_entry
)
{
203773c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t bts2rd = 0;
uint32_t i = 0, j = 0;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2037740: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
2037744: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2037748: 12 80 00 0f bne 2037784 <msdos_find_node_by_cluster_num_in_fat_file+0x48><== NOT EXECUTED
203774c: e8 06 20 34 ld [ %i0 + 0x34 ], %l4 <== NOT EXECUTED
2037750: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
2037754: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2037758: 32 80 00 07 bne,a 2037774 <msdos_find_node_by_cluster_num_in_fat_file+0x38><== NOT EXECUTED
203775c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
2037760: c2 0d 20 0a ldub [ %l4 + 0xa ], %g1 <== NOT EXECUTED
2037764: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
2037768: 22 80 00 03 be,a 2037774 <msdos_find_node_by_cluster_num_in_fat_file+0x38><== NOT EXECUTED
203776c: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
bts2rd = fat_fd->fat_file_size;
2037770: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
2037774: 2b 00 00 3f sethi %hi(0xfc00), %l5 <== NOT EXECUTED
ssize_t ret = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t bts2rd = 0;
uint32_t i = 0, j = 0;
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
2037778: a6 10 20 00 clr %l3 <== NOT EXECUTED
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
203777c: 10 80 00 44 b 203788c <msdos_find_node_by_cluster_num_in_fat_file+0x150><== NOT EXECUTED
2037780: aa 15 63 ff or %l5, 0x3ff, %l5 <== NOT EXECUTED
if (FAT_FD_OF_ROOT_DIR(fat_fd) &&
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
2037784: 10 bf ff fc b 2037774 <msdos_find_node_by_cluster_num_in_fat_file+0x38><== NOT EXECUTED
2037788: e2 15 20 06 lduh [ %l4 + 6 ], %l1 <== NOT EXECUTED
while ((ret = fat_file_read(mt_entry, fat_fd, j * bts2rd, bts2rd,
fs_info->cl_buf)) != FAT_EOF)
{
if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )
203778c: 14 80 00 08 bg 20377ac <msdos_find_node_by_cluster_num_in_fat_file+0x70><== NOT EXECUTED
2037790: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2037794: 40 00 32 c0 call 2044294 <__errno> <== NOT EXECUTED
2037798: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203779c: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20377a0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20377a4: 81 c7 e0 08 ret <== NOT EXECUTED
20377a8: 81 e8 00 00 restore <== NOT EXECUTED
assert(ret == bts2rd);
20377ac: 22 80 00 0a be,a 20377d4 <msdos_find_node_by_cluster_num_in_fat_file+0x98><== NOT EXECUTED
20377b0: e0 05 20 9c ld [ %l4 + 0x9c ], %l0 <== NOT EXECUTED
20377b4: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20377b8: 15 00 81 a0 sethi %hi(0x2068000), %o2 <== NOT EXECUTED
20377bc: 17 00 81 a0 sethi %hi(0x2068000), %o3 <== NOT EXECUTED
20377c0: 90 12 21 88 or %o0, 0x188, %o0 <== NOT EXECUTED
20377c4: 94 12 a2 88 or %o2, 0x288, %o2 <== NOT EXECUTED
20377c8: 96 12 e1 e0 or %o3, 0x1e0, %o3 <== NOT EXECUTED
20377cc: 7f ff c4 0b call 20287f8 <__assert_func> <== NOT EXECUTED
20377d0: 92 10 26 95 mov 0x695, %o1 <== NOT EXECUTED
20377d4: a4 10 20 00 clr %l2 <== NOT EXECUTED
for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
{
char* entry = (char*) fs_info->cl_buf + i;
/* if this and all rest entries are empty - return not-found */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
20377d8: c2 0c 00 00 ldub [ %l0 ], %g1 <== NOT EXECUTED
20377dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20377e0: 02 80 00 34 be 20378b0 <msdos_find_node_by_cluster_num_in_fat_file+0x174><== NOT EXECUTED
20377e4: 80 a0 60 e5 cmp %g1, 0xe5 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)
return MSDOS_NAME_NOT_FOUND_ERR;
/* if this entry is empty - skip it */
if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==
20377e8: 22 80 00 25 be,a 203787c <msdos_find_node_by_cluster_num_in_fat_file+0x140><== NOT EXECUTED
20377ec: a4 04 a0 20 add %l2, 0x20, %l2 <== NOT EXECUTED
MSDOS_THIS_DIR_ENTRY_EMPTY)
continue;
/* if get a non-empty entry - compare clusters num */
if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)
20377f0: c2 14 20 1a lduh [ %l0 + 0x1a ], %g1 <== NOT EXECUTED
20377f4: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
20377f8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
20377fc: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2037800: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2037804: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
2037808: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
203780c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2037810: 82 08 40 15 and %g1, %l5, %g1 <== NOT EXECUTED
2037814: 84 08 80 15 and %g2, %l5, %g2 <== NOT EXECUTED
2037818: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203781c: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2037820: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2037824: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2037828: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203782c: 32 80 00 14 bne,a 203787c <msdos_find_node_by_cluster_num_in_fat_file+0x140><== NOT EXECUTED
2037830: a4 04 a0 20 add %l2, 0x20, %l2 <== NOT EXECUTED
{
/* on success fill aux structure and copy all 32 bytes */
rc = fat_file_ioctl(mt_entry, fat_fd, F_CLU_NUM, j * bts2rd,
2037834: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2037838: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203783c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2037840: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2037844: 7f ff b6 06 call 202505c <fat_file_ioctl> <== NOT EXECUTED
2037848: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
203784c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2037850: 12 bf ff d5 bne 20377a4 <msdos_find_node_by_cluster_num_in_fat_file+0x68><== NOT EXECUTED
2037854: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
return rc;
dir_pos->sname.ofs = i;
2037858: e4 26 e0 04 st %l2, [ %i3 + 4 ] <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
memcpy(dir_entry, entry,
203785c: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2037860: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
dir_pos->sname.ofs = i;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2037864: c2 26 e0 0c st %g1, [ %i3 + 0xc ] <== NOT EXECUTED
&dir_pos->sname.cln);
if (rc != RC_OK)
return rc;
dir_pos->sname.ofs = i;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2037868: c2 26 e0 08 st %g1, [ %i3 + 8 ] <== NOT EXECUTED
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
memcpy(dir_entry, entry,
203786c: 40 00 3f d6 call 20477c4 <memcpy> <== NOT EXECUTED
2037870: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
return RC_OK;
2037874: 81 c7 e0 08 ret <== NOT EXECUTED
2037878: 81 e8 00 00 restore <== NOT EXECUTED
if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )
rtems_set_errno_and_return_minus_one( EIO );
assert(ret == bts2rd);
for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
203787c: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
2037880: 0a bf ff d6 bcs 20377d8 <msdos_find_node_by_cluster_num_in_fat_file+0x9c><== NOT EXECUTED
2037884: a0 04 20 20 add %l0, 0x20, %l0 <== NOT EXECUTED
2037888: a6 04 c0 11 add %l3, %l1, %l3 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
bts2rd = fat_fd->fat_file_size;
else
bts2rd = fs_info->fat.vol.bpc;
while ((ret = fat_file_read(mt_entry, fat_fd, j * bts2rd, bts2rd,
203788c: d8 05 20 9c ld [ %l4 + 0x9c ], %o4 <== NOT EXECUTED
2037890: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2037894: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2037898: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203789c: 7f ff b7 7b call 2025688 <fat_file_read> <== NOT EXECUTED
20378a0: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
20378a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20378a8: 12 bf ff b9 bne 203778c <msdos_find_node_by_cluster_num_in_fat_file+0x50><== NOT EXECUTED
20378ac: 80 a2 20 1f cmp %o0, 0x1f <== NOT EXECUTED
20378b0: 31 00 00 1f sethi %hi(0x7c00), %i0 <== NOT EXECUTED
20378b4: b0 16 21 01 or %i0, 0x101, %i0 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
}
}
j++;
}
return MSDOS_NAME_NOT_FOUND_ERR;
}
20378b8: 81 c7 e0 08 ret <== NOT EXECUTED
20378bc: 81 e8 00 00 restore <== NOT EXECUTED
0201f3d0 <msdos_format>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f3d0: 9d e3 bc e8 save %sp, -792, %sp <== NOT EXECUTED
int ret_val = 0;
int fd = -1;
int i;
msdos_format_param_t fmt_params;
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
201f3d4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
201f3d8: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
201f3dc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f3e0: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f3e4: 7f ff ff 7b call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f3e8: 94 12 a2 30 or %o2, 0x230, %o2 ! 2063630 <C.6.6074+0xdb0> <== NOT EXECUTED
"formating: %s\n", devname);
/*
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f3ec: 96 10 00 18 mov %i0, %o3 <== NOT EXECUTED
201f3f0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f3f4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f3f8: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f3fc: 7f ff ff 75 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f400: 94 12 a2 40 or %o2, 0x240, %o2 ! 2063640 <C.6.6074+0xdc0> <== NOT EXECUTED
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
201f404: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f408: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
* sanity check on device
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"stat check: %s\n", devname);
if (ret_val == 0) {
rc = stat(devname, &stat_buf);
201f40c: 7f ff a9 d6 call 2009b64 <stat> <== NOT EXECUTED
201f410: 92 07 bf a8 add %fp, -88, %o1 <== NOT EXECUTED
ret_val = rc;
}
/* rtems feature: no block devices, all are character devices */
if ((ret_val == 0) &&
201f414: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201f418: 12 80 00 13 bne 201f464 <msdos_format+0x94> <== NOT EXECUTED
201f41c: a4 10 20 00 clr %l2 <== NOT EXECUTED
(!S_ISBLK(stat_buf.st_mode))) {
201f420: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
201f424: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
201f428: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
201f42c: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
201f430: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
201f434: 02 80 02 ec be 201ffe4 <msdos_format+0xc14> <== NOT EXECUTED
201f438: 01 00 00 00 nop <== NOT EXECUTED
errno = ENOTTY;
201f43c: 40 00 93 96 call 2044294 <__errno> <== NOT EXECUTED
201f440: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
201f444: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
201f448: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201f44c: 10 80 00 06 b 201f464 <msdos_format+0x94> <== NOT EXECUTED
201f450: a4 10 20 00 clr %l2 <== NOT EXECUTED
/* check that device is registered as block device and lock it */
if (ret_val == 0) {
dd = rtems_disk_obtain(stat_buf.st_rdev);
if (dd == NULL) {
errno = ENOTTY;
201f454: 40 00 93 90 call 2044294 <__errno> <== NOT EXECUTED
201f458: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201f45c: 82 10 20 19 mov 0x19, %g1 <== NOT EXECUTED
201f460: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
ret_val = msdos_format_determine_fmt_params(dd,rqdata,&fmt_params);
}
/*
* if requested, write whole disk/partition with 0xe5
*/
if ((ret_val == 0) &&
201f464: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f468: 12 80 02 d8 bne 201ffc8 <msdos_format+0xbf8> <== NOT EXECUTED
201f46c: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
201f470: 10 80 01 5f b 201f9ec <msdos_format+0x61c> <== NOT EXECUTED
201f474: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
201f478: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f47c: 12 80 00 04 bne 201f48c <msdos_format+0xbc> <== NOT EXECUTED
201f480: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
(rqdata->fat_num == 0)) {
fmt_params->fat_num = 2;
201f484: 10 80 00 04 b 201f494 <msdos_format+0xc4> <== NOT EXECUTED
201f488: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
}
else if (rqdata->fat_num <= 6) {
201f48c: 18 80 00 f8 bgu 201f86c <msdos_format+0x49c> <== NOT EXECUTED
201f490: a0 10 20 16 mov 0x16, %l0 <== NOT EXECUTED
fmt_params->fat_num = rqdata->fat_num;
201f494: c2 2f bf 88 stb %g1, [ %fp + -120 ] <== NOT EXECUTED
ret_val = EINVAL;
}
}
if (ret_val == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f498: d6 0f bf 88 ldub [ %fp + -120 ], %o3 <== NOT EXECUTED
201f49c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f4a0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f4a4: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f4a8: 7f ff ff 4a call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f4ac: 94 12 a2 50 or %o2, 0x250, %o2 ! 2063650 <C.6.6074+0xdd0> <== NOT EXECUTED
/*
* determine FAT type and sectors per cluster
* depends on
*/
if (ret_val == 0) {
fmt_params->sectors_per_cluster = 1;
201f4b0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
if ((rqdata != NULL) &&
201f4b4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f4b8: 02 80 00 15 be 201f50c <msdos_format+0x13c> <== NOT EXECUTED
201f4bc: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
201f4c0: c2 0e 60 14 ldub [ %i1 + 0x14 ], %g1 <== NOT EXECUTED
201f4c4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
201f4c8: 02 80 00 07 be 201f4e4 <msdos_format+0x114> <== NOT EXECUTED
201f4cc: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT12)) {
fmt_params->fattype = FAT_FAT12;
}
else if ((rqdata != NULL) &&
201f4d0: 02 80 00 05 be 201f4e4 <msdos_format+0x114> <== NOT EXECUTED
201f4d4: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT16)) {
fmt_params->fattype = FAT_FAT16;
}
else if ((rqdata != NULL) &&
201f4d8: 12 80 00 06 bne 201f4f0 <msdos_format+0x120> <== NOT EXECUTED
201f4dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
(rqdata->fattype == MSDOS_FMT_FAT32)) {
fmt_params->fattype = FAT_FAT32;
201f4e0: 82 10 20 04 mov 4, %g1 <== NOT EXECUTED
201f4e4: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
201f4e8: 10 80 00 32 b 201f5b0 <msdos_format+0x1e0> <== NOT EXECUTED
201f4ec: a0 10 20 00 clr %l0 <== NOT EXECUTED
}
else if ((rqdata != NULL) &&
201f4f0: 02 80 00 08 be 201f510 <msdos_format+0x140> <== NOT EXECUTED
201f4f4: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== NOT EXECUTED
(rqdata->fattype != MSDOS_FMT_FATANY)) {
ret_val = -1;
errno = EINVAL;
201f4f8: 40 00 93 67 call 2044294 <__errno> <== NOT EXECUTED
201f4fc: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
201f500: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201f504: 10 80 00 2b b 201f5b0 <msdos_format+0x1e0> <== NOT EXECUTED
201f508: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
/*
* limiting values for disk size, fat type, sectors per cluster
* NOTE: maximum sect_per_clust is arbitrarily choosen with values that
* are a compromise concerning capacity and efficency
*/
if (fmt_params->totl_sector_cnt
201f50c: c2 07 bf 5c ld [ %fp + -164 ], %g1 <== NOT EXECUTED
201f510: 05 00 00 1f sethi %hi(0x7c00), %g2 <== NOT EXECUTED
201f514: 84 10 a3 a7 or %g2, 0x3a7, %g2 ! 7fa7 <PROM_START+0x7fa7> <== NOT EXECUTED
201f518: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
201f51c: 18 80 00 04 bgu 201f52c <msdos_format+0x15c> <== NOT EXECUTED
201f520: 05 00 07 ff sethi %hi(0x1ffc00), %g2 <== NOT EXECUTED
< ((uint32_t)FAT_FAT12_MAX_CLN)*8) {
fmt_params->fattype = FAT_FAT12;
201f524: 10 80 00 07 b 201f540 <msdos_format+0x170> <== NOT EXECUTED
201f528: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else if (fmt_params->totl_sector_cnt
201f52c: 84 10 a2 9f or %g2, 0x29f, %g2 <== NOT EXECUTED
201f530: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
201f534: 18 80 00 06 bgu 201f54c <msdos_format+0x17c> <== NOT EXECUTED
201f538: 84 10 20 00 clr %g2 <== NOT EXECUTED
< ((uint32_t)FAT_FAT16_MAX_CLN)*32) {
fmt_params->fattype = FAT_FAT16;
201f53c: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
201f540: c2 2f bf 8a stb %g1, [ %fp + -118 ] <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
201f544: 10 80 00 15 b 201f598 <msdos_format+0x1c8> <== NOT EXECUTED
201f548: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
201f54c: 07 10 00 00 sethi %hi(0x40000000), %g3 <== NOT EXECUTED
201f550: aa 85 40 03 addcc %l5, %g3, %l5 <== NOT EXECUTED
201f554: 83 35 60 1e srl %l5, 0x1e, %g1 <== NOT EXECUTED
201f558: a8 45 00 02 addx %l4, %g2, %l4 <== NOT EXECUTED
int b;
fmt_params->fattype = FAT_FAT32;
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
201f55c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
/* start trying with small clusters */
fmt_params->sectors_per_cluster = 2;
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
201f560: a9 2d 20 02 sll %l4, 2, %l4 <== NOT EXECUTED
201f564: a8 15 00 01 or %l4, %g1, %l4 <== NOT EXECUTED
201f568: 82 10 20 1f mov 0x1f, %g1 <== NOT EXECUTED
int b;
fmt_params->fattype = FAT_FAT32;
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
201f56c: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
201f570: 80 88 c0 14 btst %g3, %l4 <== NOT EXECUTED
201f574: 32 80 00 06 bne,a 201f58c <msdos_format+0x1bc> <== NOT EXECUTED
201f578: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
int b;
fmt_params->fattype = FAT_FAT32;
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
201f57c: 82 80 7f ff addcc %g1, -1, %g1 <== NOT EXECUTED
201f580: 12 bf ff fc bne 201f570 <msdos_format+0x1a0> <== NOT EXECUTED
201f584: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
}
else {
#define ONE_GB (1024L * 1024L * 1024L)
uint32_t gigs = (total_size + ONE_GB) / ONE_GB;
int b;
fmt_params->fattype = FAT_FAT32;
201f588: 84 10 20 04 mov 4, %g2 <== NOT EXECUTED
201f58c: c4 2f bf 8a stb %g2, [ %fp + -118 ] <== NOT EXECUTED
/* scale with the size of disk... */
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
break;
fmt_params->sectors_per_cluster = 1 << b;
201f590: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
201f594: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
201f598: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
201f59c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f5a0: 12 80 00 04 bne 201f5b0 <msdos_format+0x1e0> <== NOT EXECUTED
201f5a4: a0 10 20 00 clr %l0 <== NOT EXECUTED
201f5a8: 10 80 00 06 b 201f5c0 <msdos_format+0x1f0> <== NOT EXECUTED
201f5ac: a0 10 00 19 mov %i1, %l0 <== NOT EXECUTED
(rqdata->sectors_per_cluster > 0)) {
201f5b0: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
}
}
/*
* try to use user requested cluster size
*/
if ((rqdata != NULL) &&
201f5b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f5b8: 32 80 00 02 bne,a 201f5c0 <msdos_format+0x1f0> <== NOT EXECUTED
201f5bc: c2 27 bf 64 st %g1, [ %fp + -156 ] <== NOT EXECUTED
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
if (fmt_params->sectors_per_cluster >= onebit) {
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
<= 32768L/fmt_params->bytes_per_sector) {
201f5c0: e6 07 bf 58 ld [ %fp + -168 ], %l3 <== NOT EXECUTED
201f5c4: d6 07 bf 64 ld [ %fp + -156 ], %o3 <== NOT EXECUTED
201f5c8: a8 10 20 80 mov 0x80, %l4 <== NOT EXECUTED
* must be power of 2
* must be smaller than or equal to 128
* sectors_per_cluster*bytes_per_sector must not be bigger than 32K
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
if (fmt_params->sectors_per_cluster >= onebit) {
201f5cc: 80 a2 c0 14 cmp %o3, %l4 <== NOT EXECUTED
201f5d0: 2a 80 00 0a bcs,a 201f5f8 <msdos_format+0x228> <== NOT EXECUTED
201f5d4: a9 35 20 01 srl %l4, 1, %l4 <== NOT EXECUTED
fmt_params->sectors_per_cluster = onebit;
if (fmt_params->sectors_per_cluster
201f5d8: 11 00 00 20 sethi %hi(0x8000), %o0 <== NOT EXECUTED
201f5dc: 40 00 f4 6f call 205c798 <.udiv> <== NOT EXECUTED
201f5e0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
201f5e4: 80 a5 00 08 cmp %l4, %o0 <== NOT EXECUTED
201f5e8: 18 80 00 03 bgu 201f5f4 <msdos_format+0x224> <== NOT EXECUTED
201f5ec: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
201f5f0: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
* check sectors per cluster.
* must be power of 2
* must be smaller than or equal to 128
* sectors_per_cluster*bytes_per_sector must not be bigger than 32K
*/
for (onebit = 128;onebit >= 1;onebit = onebit>>1) {
201f5f4: a9 35 20 01 srl %l4, 1, %l4 <== NOT EXECUTED
201f5f8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
201f5fc: 12 bf ff f5 bne 201f5d0 <msdos_format+0x200> <== NOT EXECUTED
201f600: 80 a2 c0 14 cmp %o3, %l4 <== NOT EXECUTED
}
}
}
}
if (ret_val == 0) {
201f604: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f608: 12 80 00 99 bne 201f86c <msdos_format+0x49c> <== NOT EXECUTED
201f60c: d6 27 bf 64 st %o3, [ %fp + -156 ] <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f610: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f614: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f618: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f61c: 7f ff fe ed call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f620: 94 12 a2 68 or %o2, 0x268, %o2 ! 2063668 <C.6.6074+0xde8> <== NOT EXECUTED
"sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
if (fmt_params->fattype == FAT_FAT32) {
201f624: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201f628: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
201f62c: 12 80 00 0a bne 201f654 <msdos_format+0x284> <== NOT EXECUTED
201f630: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
/* recommended: for FAT32, always set reserved sector count to 32 */
fmt_params->rsvd_sector_cnt = 32;
201f634: 82 10 20 20 mov 0x20, %g1 <== NOT EXECUTED
201f638: c2 27 bf 60 st %g1, [ %fp + -160 ] <== NOT EXECUTED
/* for FAT32, always set files per root directory 0 */
fmt_params->files_per_root_dir = 0;
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
201f63c: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED
if (fmt_params->fattype == FAT_FAT32) {
/* recommended: for FAT32, always set reserved sector count to 32 */
fmt_params->rsvd_sector_cnt = 32;
/* for FAT32, always set files per root directory 0 */
fmt_params->files_per_root_dir = 0;
201f640: c0 27 bf 70 clr [ %fp + -144 ] <== NOT EXECUTED
/* location of copy of MBR */
fmt_params->mbr_copy_sec = 6;
201f644: c2 27 bf 80 st %g1, [ %fp + -128 ] <== NOT EXECUTED
/* location of fsinfo sector */
fmt_params->fsinfo_sec = 1;
201f648: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
201f64c: 10 80 00 19 b 201f6b0 <msdos_format+0x2e0> <== NOT EXECUTED
201f650: c2 27 bf 84 st %g1, [ %fp + -124 ] <== NOT EXECUTED
/* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
fmt_params->rsvd_sector_cnt = 1;
/* recommended: for FAT16, set files per root directory to 512 */
/* for FAT12/FAT16, set files per root directory */
/* must fill up an even count of sectors */
if ((rqdata != NULL) &&
201f654: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f658: 02 80 00 06 be 201f670 <msdos_format+0x2a0> <== NOT EXECUTED
201f65c: c2 27 bf 60 st %g1, [ %fp + -160 ] <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
201f660: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
/* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
fmt_params->rsvd_sector_cnt = 1;
/* recommended: for FAT16, set files per root directory to 512 */
/* for FAT12/FAT16, set files per root directory */
/* must fill up an even count of sectors */
if ((rqdata != NULL) &&
201f664: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f668: 32 80 00 08 bne,a 201f688 <msdos_format+0x2b8> <== NOT EXECUTED
201f66c: c2 27 bf 70 st %g1, [ %fp + -144 ] <== NOT EXECUTED
(rqdata->files_per_root_dir > 0)) {
fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
}
else {
if (fmt_params->fattype == FAT_FAT16) {
201f670: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201f674: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
201f678: 32 80 00 03 bne,a 201f684 <msdos_format+0x2b4> <== NOT EXECUTED
201f67c: 82 10 20 40 mov 0x40, %g1 <== NOT EXECUTED
201f680: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
fmt_params->files_per_root_dir = 512;
}
else {
fmt_params->files_per_root_dir = 64;
201f684: c2 27 bf 70 st %g1, [ %fp + -144 ] <== NOT EXECUTED
}
}
fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
201f688: d2 07 bf 58 ld [ %fp + -168 ], %o1 <== NOT EXECUTED
201f68c: e6 07 bf 70 ld [ %fp + -144 ], %l3 <== NOT EXECUTED
201f690: 93 2a 60 01 sll %o1, 1, %o1 <== NOT EXECUTED
201f694: a6 04 ff ff add %l3, -1, %l3 <== NOT EXECUTED
201f698: 93 32 60 05 srl %o1, 5, %o1 <== NOT EXECUTED
201f69c: a6 04 c0 09 add %l3, %o1, %l3 <== NOT EXECUTED
(2*fmt_params->bytes_per_sector/
FAT_DIRENTRY_SIZE-1));
fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
201f6a0: 40 00 f4 ea call 205ca48 <.urem> <== NOT EXECUTED
201f6a4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
201f6a8: 90 24 c0 08 sub %l3, %o0, %o0 <== NOT EXECUTED
201f6ac: d0 27 bf 70 st %o0, [ %fp + -144 ] <== NOT EXECUTED
(2*fmt_params->bytes_per_sector
/FAT_DIRENTRY_SIZE));
}
fmt_params->root_dir_sectors =
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
201f6b0: c2 07 bf 70 ld [ %fp + -144 ], %g1 <== NOT EXECUTED
+ fmt_params->bytes_per_sector - 1)
201f6b4: f0 07 bf 58 ld [ %fp + -168 ], %i0 <== NOT EXECUTED
fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
(2*fmt_params->bytes_per_sector
/FAT_DIRENTRY_SIZE));
}
fmt_params->root_dir_sectors =
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
201f6b8: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
201f6bc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
201f6c0: 90 06 3f ff add %i0, -1, %o0 <== NOT EXECUTED
201f6c4: 40 00 f4 35 call 205c798 <.udiv> <== NOT EXECUTED
201f6c8: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
+ fmt_params->bytes_per_sector - 1)
/ fmt_params->bytes_per_sector);
}
if (ret_val == 0) {
fatdata_sect_cnt = (fmt_params->totl_sector_cnt -
201f6cc: c2 07 bf 60 ld [ %fp + -160 ], %g1 <== NOT EXECUTED
201f6d0: f4 07 bf 5c ld [ %fp + -164 ], %i2 <== NOT EXECUTED
FAT_DIRENTRY_SIZE-1));
fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
(2*fmt_params->bytes_per_sector
/FAT_DIRENTRY_SIZE));
}
fmt_params->root_dir_sectors =
201f6d4: d0 27 bf 74 st %o0, [ %fp + -140 ] <== NOT EXECUTED
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
+ fmt_params->bytes_per_sector - 1)
/ fmt_params->bytes_per_sector);
}
if (ret_val == 0) {
fatdata_sect_cnt = (fmt_params->totl_sector_cnt -
201f6d8: b4 26 80 01 sub %i2, %g1, %i2 <== NOT EXECUTED
uint32_t sectors_per_fat;
uint32_t data_cluster_cnt;
/*
* ensure, that maximum cluster size (32KByte) is not exceeded
*/
while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
201f6dc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
(((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)
+ fmt_params->bytes_per_sector - 1)
/ fmt_params->bytes_per_sector);
}
if (ret_val == 0) {
fatdata_sect_cnt = (fmt_params->totl_sector_cnt -
201f6e0: b4 26 80 08 sub %i2, %o0, %i2 <== NOT EXECUTED
/*
* check values to get legal arrangement of FAT type and cluster count
*/
ret_val = msdos_format_eval_sectors_per_cluster
201f6e4: ea 0f bf 8a ldub [ %fp + -118 ], %l5 <== NOT EXECUTED
uint32_t sectors_per_fat;
uint32_t data_cluster_cnt;
/*
* ensure, that maximum cluster size (32KByte) is not exceeded
*/
while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
201f6e8: 40 00 f4 2c call 205c798 <.udiv> <== NOT EXECUTED
201f6ec: 11 00 00 20 sethi %hi(0x8000), %o0 <== NOT EXECUTED
ret_val = msdos_format_eval_sectors_per_cluster
(fmt_params->fattype,
fmt_params->bytes_per_sector,
fatdata_sect_cnt,
fmt_params->fat_num,
201f6f0: f6 0f bf 88 ldub [ %fp + -120 ], %i3 <== NOT EXECUTED
201f6f4: e8 07 bf 64 ld [ %fp + -156 ], %l4 <== NOT EXECUTED
uint32_t sectors_per_fat;
uint32_t data_cluster_cnt;
/*
* ensure, that maximum cluster size (32KByte) is not exceeded
*/
while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
201f6f8: 80 a2 00 14 cmp %o0, %l4 <== NOT EXECUTED
201f6fc: 2a bf ff ff bcs,a 201f6f8 <msdos_format+0x328> <== NOT EXECUTED
201f700: a9 35 20 01 srl %l4, 1, %l4 <== NOT EXECUTED
+ (sectors_per_cluster - 1))
/ sectors_per_cluster));
/*
* data cluster count too big? then make sectors bigger
*/
if (((fattype == FAT_FAT12) && (data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
201f704: 39 00 00 3f sethi %hi(0xfc00), %i4 <== NOT EXECUTED
sectors_per_fat = ((fat_capacity
+ (bytes_per_sector - 1))
/ bytes_per_sector);
data_cluster_cnt = (fatdata_cluster_cnt -
201f708: b6 0e e0 ff and %i3, 0xff, %i3 <== NOT EXECUTED
+ (sectors_per_cluster - 1))
/ sectors_per_cluster));
/*
* data cluster count too big? then make sectors bigger
*/
if (((fattype == FAT_FAT12) && (data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
201f70c: b8 17 23 f5 or %i4, 0x3f5, %i4 <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
201f710: ba 06 3f ff add %i0, -1, %i5 <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
201f714: 2f 00 00 20 sethi %hi(0x8000), %l7 <== NOT EXECUTED
* compute number of data clusters for current data:
* - compute cluster count for data AND fat
* - compute storage size for FAT
* - subtract from total cluster count
*/
fatdata_cluster_cnt = fatdata_sec_cnt/sectors_per_cluster;
201f718: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
201f71c: 40 00 f4 1f call 205c798 <.udiv> <== NOT EXECUTED
201f720: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
if (fattype == FAT_FAT12) {
201f724: 80 a5 60 01 cmp %l5, 1 <== NOT EXECUTED
201f728: 12 80 00 06 bne 201f740 <msdos_format+0x370> <== NOT EXECUTED
201f72c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 3 / 2;
201f730: 91 2a 20 01 sll %o0, 1, %o0 <== NOT EXECUTED
201f734: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
201f738: 10 80 00 06 b 201f750 <msdos_format+0x380> <== NOT EXECUTED
201f73c: 91 32 20 01 srl %o0, 1, %o0 <== NOT EXECUTED
}
else if (fattype == FAT_FAT16) {
201f740: 80 a5 60 02 cmp %l5, 2 <== NOT EXECUTED
201f744: 12 80 00 03 bne 201f750 <msdos_format+0x380> <== NOT EXECUTED
201f748: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
fat_capacity = fatdata_cluster_cnt * 2;
201f74c: 91 2c e0 01 sll %l3, 1, %o0 <== NOT EXECUTED
}
else { /* FAT32 */
fat_capacity = fatdata_cluster_cnt * 4;
}
sectors_per_fat = ((fat_capacity
201f750: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
201f754: 40 00 f4 11 call 205c798 <.udiv> <== NOT EXECUTED
201f758: 90 07 40 08 add %i5, %o0, %o0 <== NOT EXECUTED
+ (bytes_per_sector - 1))
/ bytes_per_sector);
data_cluster_cnt = (fatdata_cluster_cnt -
201f75c: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
201f760: 7f ff 8c a6 call 20029f8 <.umul> <== NOT EXECUTED
201f764: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
201f768: 82 05 3f ff add %l4, -1, %g1 <== NOT EXECUTED
201f76c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
201f770: 40 00 f4 0a call 205c798 <.udiv> <== NOT EXECUTED
201f774: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
201f778: 90 24 c0 08 sub %l3, %o0, %o0 <== NOT EXECUTED
+ (sectors_per_cluster - 1))
/ sectors_per_cluster));
/*
* data cluster count too big? then make sectors bigger
*/
if (((fattype == FAT_FAT12) && (data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
201f77c: 80 a2 2f f5 cmp %o0, 0xff5 <== NOT EXECUTED
201f780: 08 80 00 06 bleu 201f798 <msdos_format+0x3c8> <== NOT EXECUTED
201f784: 80 a2 00 1c cmp %o0, %i4 <== NOT EXECUTED
201f788: 80 a5 60 01 cmp %l5, 1 <== NOT EXECUTED
201f78c: 22 80 00 0a be,a 201f7b4 <msdos_format+0x3e4> <== NOT EXECUTED
201f790: a9 2d 20 01 sll %l4, 1, %l4 <== NOT EXECUTED
201f794: 80 a2 00 1c cmp %o0, %i4 <== NOT EXECUTED
201f798: 08 80 00 08 bleu 201f7b8 <msdos_format+0x3e8> <== NOT EXECUTED
201f79c: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
201f7a0: 80 a5 60 02 cmp %l5, 2 <== NOT EXECUTED
201f7a4: 22 80 00 04 be,a 201f7b4 <msdos_format+0x3e4> <== NOT EXECUTED
201f7a8: a9 2d 20 01 sll %l4, 1, %l4 <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
201f7ac: 10 80 00 04 b 201f7bc <msdos_format+0x3ec> <== NOT EXECUTED
201f7b0: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
/*
* data cluster count too big? then make sectors bigger
*/
if (((fattype == FAT_FAT12) && (data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
((fattype == FAT_FAT16) && (data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
sectors_per_cluster *= 2;
201f7b4: a6 10 20 00 clr %l3 <== NOT EXECUTED
finished = true;
}
/*
* when maximum cluster size is exceeded, we have invalid data, abort...
*/
if ((sectors_per_cluster * bytes_per_sector)
201f7b8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
201f7bc: 7f ff 8c 8f call 20029f8 <.umul> <== NOT EXECUTED
201f7c0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
201f7c4: 80 a2 00 17 cmp %o0, %l7 <== NOT EXECUTED
201f7c8: 18 80 00 06 bgu 201f7e0 <msdos_format+0x410> <== NOT EXECUTED
201f7cc: 80 8c e0 ff btst 0xff, %l3 <== NOT EXECUTED
> MS_BYTES_PER_CLUSTER_LIMIT) {
ret_val = EINVAL;
finished = true;
}
} while (!finished);
201f7d0: 02 bf ff d3 be 201f71c <msdos_format+0x34c> <== NOT EXECUTED
201f7d4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
}
else {
*sectors_per_cluster_adj = sectors_per_cluster;
*sectors_per_fat_ptr = sectors_per_fat;
201f7d8: 10 80 00 07 b 201f7f4 <msdos_format+0x424> <== NOT EXECUTED
201f7dc: ec 27 bf 68 st %l6, [ %fp + -152 ] <== NOT EXECUTED
finished = true;
}
} while (!finished);
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
201f7e0: 40 00 92 ad call 2044294 <__errno> <== NOT EXECUTED
201f7e4: a8 10 20 00 clr %l4 <== NOT EXECUTED
201f7e8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201f7ec: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
201f7f0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
/*
* determine media code
*/
if (ret_val == 0) {
201f7f4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f7f8: 02 80 00 04 be 201f808 <msdos_format+0x438> <== NOT EXECUTED
201f7fc: e8 27 bf 64 st %l4, [ %fp + -156 ] <== NOT EXECUTED
201f800: 10 80 00 1b b 201f86c <msdos_format+0x49c> <== NOT EXECUTED
201f804: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
if ((rqdata != NULL) &&
201f808: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f80c: 02 80 00 17 be 201f868 <msdos_format+0x498> <== NOT EXECUTED
201f810: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
201f814: e8 0e 60 15 ldub [ %i1 + 0x15 ], %l4 <== NOT EXECUTED
201f818: 92 8d 20 ff andcc %l4, 0xff, %o1 <== NOT EXECUTED
201f81c: 22 80 00 14 be,a 201f86c <msdos_format+0x49c> <== NOT EXECUTED
201f820: c2 2f bf 89 stb %g1, [ %fp + -119 ] <== NOT EXECUTED
(rqdata->media != 0)) {
const char valid_media_codes[] =
{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};
201f824: 03 00 81 8d sethi %hi(0x2063400), %g1 <== NOT EXECUTED
201f828: c4 18 63 78 ldd [ %g1 + 0x378 ], %g2 ! 2063778 <C.13.7373><== NOT EXECUTED
201f82c: 82 10 63 78 or %g1, 0x378, %g1 <== NOT EXECUTED
201f830: c2 08 60 08 ldub [ %g1 + 8 ], %g1 <== NOT EXECUTED
201f834: c4 3f bf f0 std %g2, [ %fp + -16 ] <== NOT EXECUTED
201f838: c2 2f bf f8 stb %g1, [ %fp + -8 ] <== NOT EXECUTED
if (NULL==memchr(valid_media_codes,
201f83c: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
201f840: 40 00 9f 6e call 20475f8 <memchr> <== NOT EXECUTED
201f844: 94 10 20 09 mov 9, %o2 <== NOT EXECUTED
201f848: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f84c: 32 80 00 08 bne,a 201f86c <msdos_format+0x49c> <== NOT EXECUTED
201f850: e8 2f bf 89 stb %l4, [ %fp + -119 ] <== NOT EXECUTED
rqdata->media,
sizeof(valid_media_codes))) {
ret_val = -1;
errno = EINVAL;
201f854: 40 00 92 90 call 2044294 <__errno> <== NOT EXECUTED
201f858: a0 10 3f ff mov -1, %l0 <== NOT EXECUTED
201f85c: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201f860: 10 80 00 03 b 201f86c <msdos_format+0x49c> <== NOT EXECUTED
201f864: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
else {
fmt_params->media_code = rqdata->media;
}
}
else {
fmt_params->media_code = FAT_BR_MEDIA_FIXED;
201f868: c2 2f bf 89 stb %g1, [ %fp + -119 ] <== NOT EXECUTED
}
/*
* determine location and size of root directory
* for formatting
*/
if (fmt_params->root_dir_sectors > 0) {
201f86c: e8 07 bf 74 ld [ %fp + -140 ], %l4 <== NOT EXECUTED
201f870: d0 0f bf 88 ldub [ %fp + -120 ], %o0 <== NOT EXECUTED
201f874: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
201f878: 02 80 00 08 be 201f898 <msdos_format+0x4c8> <== NOT EXECUTED
201f87c: e6 07 bf 60 ld [ %fp + -160 ], %l3 <== NOT EXECUTED
fmt_params->root_dir_start_sec =
201f880: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
201f884: 7f ff 8c 5d call 20029f8 <.umul> <== NOT EXECUTED
201f888: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
fmt_params->rsvd_sector_cnt
+ (fmt_params-> fat_num*fmt_params->sectors_per_fat);
fmt_params->root_dir_fmt_sec_cnt = fmt_params->root_dir_sectors;
201f88c: e8 27 bf 7c st %l4, [ %fp + -132 ] <== NOT EXECUTED
/*
* determine location and size of root directory
* for formatting
*/
if (fmt_params->root_dir_sectors > 0) {
fmt_params->root_dir_start_sec =
201f890: 10 80 00 08 b 201f8b0 <msdos_format+0x4e0> <== NOT EXECUTED
201f894: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
201f898: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
201f89c: 7f ff 8c 57 call 20029f8 <.umul> <== NOT EXECUTED
201f8a0: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
fmt_params->rsvd_sector_cnt
+ (fmt_params-> fat_num*fmt_params->sectors_per_fat);
fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
201f8a4: c2 07 bf 64 ld [ %fp + -156 ], %g1 <== NOT EXECUTED
}
else {
/*
* for FAT32: root directory is in cluster 2
*/
fmt_params->root_dir_start_sec =
201f8a8: 90 02 00 13 add %o0, %l3, %o0 <== NOT EXECUTED
fmt_params->rsvd_sector_cnt
+ (fmt_params-> fat_num*fmt_params->sectors_per_fat);
fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
201f8ac: c2 27 bf 7c st %g1, [ %fp + -132 ] <== NOT EXECUTED
}
/*
* determine usable OEMName
*/
if (ret_val == 0) {
201f8b0: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f8b4: 12 80 00 49 bne 201f9d8 <msdos_format+0x608> <== NOT EXECUTED
201f8b8: d0 27 bf 78 st %o0, [ %fp + -136 ] <== NOT EXECUTED
const char *from;
char *to = fmt_params->OEMName;
int cnt;
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
201f8bc: 05 00 81 8d sethi %hi(0x2063400), %g2 <== NOT EXECUTED
201f8c0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f8c4: 02 80 00 08 be 201f8e4 <msdos_format+0x514> <== NOT EXECUTED
201f8c8: 84 10 a2 88 or %g2, 0x288, %g2 <== NOT EXECUTED
(rqdata->OEMName != NULL)) {
201f8cc: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
if (ret_val == 0) {
const char *from;
char *to = fmt_params->OEMName;
int cnt;
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
201f8d0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
201f8d4: 32 80 00 05 bne,a 201f8e8 <msdos_format+0x518> <== NOT EXECUTED
201f8d8: 03 00 81 ad sethi %hi(0x206b400), %g1 <== NOT EXECUTED
201f8dc: 05 00 81 8d sethi %hi(0x2063400), %g2 <== NOT EXECUTED
201f8e0: 84 10 a2 88 or %g2, 0x288, %g2 ! 2063688 <C.6.6074+0xe08> <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
201f8e4: 03 00 81 ad sethi %hi(0x206b400), %g1 <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
201f8e8: 98 07 bf 94 add %fp, -108, %o4 <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
201f8ec: c6 00 61 3c ld [ %g1 + 0x13c ], %g3 <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
201f8f0: 9a 10 20 20 mov 0x20, %o5 <== NOT EXECUTED
from = rqdata->OEMName;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->OEMName)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
201f8f4: 10 80 00 0c b 201f924 <msdos_format+0x554> <== NOT EXECUTED
201f8f8: 82 07 bf 8c add %fp, -116, %g1 <== NOT EXECUTED
201f8fc: 96 09 20 ff and %g4, 0xff, %o3 <== NOT EXECUTED
201f900: 96 00 c0 0b add %g3, %o3, %o3 <== NOT EXECUTED
201f904: d6 4a e0 01 ldsb [ %o3 + 1 ], %o3 <== NOT EXECUTED
201f908: 80 8a e0 97 btst 0x97, %o3 <== NOT EXECUTED
201f90c: 22 80 00 04 be,a 201f91c <msdos_format+0x54c> <== NOT EXECUTED
201f910: da 28 7f ff stb %o5, [ %g1 + -1 ] <== NOT EXECUTED
*to++ = *from++;
201f914: c8 28 7f ff stb %g4, [ %g1 + -1 ] <== NOT EXECUTED
201f918: 84 00 a0 01 inc %g2 <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
201f91c: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
201f920: 82 00 60 01 inc %g1 <== NOT EXECUTED
from = "RTEMS"; /* default: make "from" point to OS Name */
if ((rqdata != NULL) &&
(rqdata->OEMName != NULL)) {
from = rqdata->OEMName;
}
for (cnt = 0;
201f924: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
201f928: 32 bf ff f5 bne,a 201f8fc <msdos_format+0x52c> <== NOT EXECUTED
201f92c: c8 08 80 00 ldub [ %g2 ], %g4 <== NOT EXECUTED
if (ret_val == 0) {
const char *from;
char *to = fmt_params->VolLabel;
int cnt;
from = ""; /* default: make "from" point to empty string */
if ((rqdata != NULL) &&
201f930: 05 00 81 8d sethi %hi(0x2063400), %g2 <== NOT EXECUTED
201f934: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f938: 02 80 00 0a be 201f960 <msdos_format+0x590> <== NOT EXECUTED
201f93c: 84 10 a2 90 or %g2, 0x290, %g2 <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
201f940: c4 06 60 04 ld [ %i1 + 4 ], %g2 <== NOT EXECUTED
if (ret_val == 0) {
const char *from;
char *to = fmt_params->VolLabel;
int cnt;
from = ""; /* default: make "from" point to empty string */
if ((rqdata != NULL) &&
201f944: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
201f948: 32 80 00 05 bne,a 201f95c <msdos_format+0x58c> <== NOT EXECUTED
201f94c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
201f950: 05 00 81 8d sethi %hi(0x2063400), %g2 <== NOT EXECUTED
201f954: 10 80 00 03 b 201f960 <msdos_format+0x590> <== NOT EXECUTED
201f958: 84 10 a2 90 or %g2, 0x290, %g2 ! 2063690 <C.6.6074+0xe10> <== NOT EXECUTED
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
201f95c: c2 2f bf a0 stb %g1, [ %fp + -96 ] <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
201f960: 98 07 bf 58 add %fp, -168, %o4 <== NOT EXECUTED
int cnt;
from = ""; /* default: make "from" point to empty string */
if ((rqdata != NULL) &&
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
201f964: 82 07 bf 95 add %fp, -107, %g1 <== NOT EXECUTED
}
/*=========================================================================*\
| Function: |
\*-------------------------------------------------------------------------*/
int msdos_format
201f968: 98 03 20 48 add %o4, 0x48, %o4 <== NOT EXECUTED
/*
* non-printable character in given name, so keep stuck
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
201f96c: 10 80 00 0c b 201f99c <msdos_format+0x5cc> <== NOT EXECUTED
201f970: 9a 10 20 20 mov 0x20, %o5 <== NOT EXECUTED
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
cnt < (sizeof(fmt_params->VolLabel)-1);
cnt++) {
if (isprint((unsigned char)*from)) {
201f974: 96 09 20 ff and %g4, 0xff, %o3 <== NOT EXECUTED
201f978: 96 00 c0 0b add %g3, %o3, %o3 <== NOT EXECUTED
201f97c: d6 4a e0 01 ldsb [ %o3 + 1 ], %o3 <== NOT EXECUTED
201f980: 80 8a e0 97 btst 0x97, %o3 <== NOT EXECUTED
201f984: 22 80 00 04 be,a 201f994 <msdos_format+0x5c4> <== NOT EXECUTED
201f988: da 28 7f ff stb %o5, [ %g1 + -1 ] <== NOT EXECUTED
*to++ = *from++;
201f98c: c8 28 7f ff stb %g4, [ %g1 + -1 ] <== NOT EXECUTED
201f990: 84 00 a0 01 inc %g2 <== NOT EXECUTED
* at that character and replace all following characters
* with a ' '
*/
*to++=' ';
}
*to = '\0';
201f994: c0 28 40 00 clrb [ %g1 ] <== NOT EXECUTED
201f998: 82 00 60 01 inc %g1 <== NOT EXECUTED
if ((rqdata != NULL) &&
(rqdata->VolLabel != NULL)) {
from = rqdata->VolLabel;
fmt_params->VolLabel_present = true;
}
for (cnt = 0;
201f99c: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
201f9a0: 32 bf ff f5 bne,a 201f974 <msdos_format+0x5a4> <== NOT EXECUTED
201f9a4: c8 08 80 00 ldub [ %g2 ], %g4 <== NOT EXECUTED
{
int ret_val = 0;
int rc;
struct timeval time_value;
rc = rtems_clock_get_tod_timeval(&time_value);
201f9a8: 7f ff b2 5f call 200c324 <rtems_clock_get_tod_timeval> <== NOT EXECUTED
201f9ac: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
if (rc == RTEMS_SUCCESSFUL) {
201f9b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f9b4: 12 80 00 05 bne 201f9c8 <msdos_format+0x5f8> <== NOT EXECUTED
201f9b8: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
*volid_ptr = time_value.tv_sec + time_value.tv_sec;
201f9bc: 83 28 60 01 sll %g1, 1, %g1 <== NOT EXECUTED
201f9c0: 10 80 00 0a b 201f9e8 <msdos_format+0x618> <== NOT EXECUTED
201f9c4: c2 27 bf a4 st %g1, [ %fp + -92 ] <== NOT EXECUTED
}
else {
*volid_ptr = rand();
201f9c8: 40 00 a7 41 call 20496cc <rand> <== NOT EXECUTED
201f9cc: 01 00 00 00 nop <== NOT EXECUTED
201f9d0: 10 80 00 06 b 201f9e8 <msdos_format+0x618> <== NOT EXECUTED
201f9d4: d0 27 bf a4 st %o0, [ %fp + -92 ] <== NOT EXECUTED
}
/*
* Phuuu.... That's it.
*/
if (ret_val != 0) {
rtems_set_errno_and_return_minus_one(ret_val);
201f9d8: 40 00 92 2f call 2044294 <__errno> <== NOT EXECUTED
201f9dc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201f9e0: 10 80 01 75 b 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201f9e4: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
ret_val = msdos_format_determine_fmt_params(dd,rqdata,&fmt_params);
}
/*
* if requested, write whole disk/partition with 0xe5
*/
if ((ret_val == 0) &&
201f9e8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
201f9ec: 02 80 00 11 be 201fa30 <msdos_format+0x660> <== NOT EXECUTED
201f9f0: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
(rqdata != NULL) &&
!(rqdata->quick_format)) {
201f9f4: c2 0e 60 16 ldub [ %i1 + 0x16 ], %g1 <== NOT EXECUTED
201f9f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201f9fc: 12 80 00 0e bne 201fa34 <msdos_format+0x664> <== NOT EXECUTED
201fa00: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
201fa04: d6 07 bf 5c ld [ %fp + -164 ], %o3 <== NOT EXECUTED
201fa08: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
201fa0c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fa10: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
201fa14: 94 10 20 00 clr %o2 <== NOT EXECUTED
201fa18: 7f ff fe 1d call 201f28c <msdos_format_fill_sectors> <== NOT EXECUTED
201fa1c: 9a 10 3f e5 mov -27, %o5 <== NOT EXECUTED
0xe5);
}
/*
* create master boot record
*/
if (ret_val == 0) {
201fa20: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fa24: 12 80 01 65 bne 201ffb8 <msdos_format+0xbe8> <== NOT EXECUTED
201fa28: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
/*
* Read the current MBR to obtain the partition table.
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201fa2c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fa30: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201fa34: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201fa38: 7f ff fd e6 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201fa3c: 94 12 a2 98 or %o2, 0x298, %o2 ! 2063698 <C.6.6074+0xe18> <== NOT EXECUTED
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
201fa40: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* Read the current MBR to obtain the partition table.
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"read MRB sector\n");
ret_val = msdos_format_read_sec(fd,
201fa44: e0 07 bf 58 ld [ %fp + -168 ], %l0 <== NOT EXECUTED
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
201fa48: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fa4c: 94 10 20 00 clr %o2 <== NOT EXECUTED
201fa50: 40 00 28 95 call 2029ca4 <lseek> <== NOT EXECUTED
201fa54: 96 10 20 00 clr %o3 <== NOT EXECUTED
201fa58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201fa5c: 06 80 00 08 bl 201fa7c <msdos_format+0x6ac> <== NOT EXECUTED
201fa60: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > read(fd,buffer,sector_size)) {
201fa64: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fa68: 7f ff a7 24 call 20096f8 <read> <== NOT EXECUTED
201fa6c: 92 07 bd 58 add %fp, -680, %o1 <== NOT EXECUTED
201fa70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201fa74: 36 80 01 88 bge,a 2020094 <msdos_format+0xcc4> <== NOT EXECUTED
201fa78: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fa7c: 10 80 01 4e b 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201fa80: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
* finally we are there: let's fill in the values into the MBR
* but first clear the MRB leaving the partition table.
*/
#define RTEMS_IDE_PARTITION_TABLE_OFFSET 0x1be
#define RTEMS_IDE_PARTITION_TABLE_SIZE (4 * 16)
memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);
201fa84: a0 07 bd 58 add %fp, -680, %l0 <== NOT EXECUTED
201fa88: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fa8c: 94 10 21 be mov 0x1be, %o2 <== NOT EXECUTED
201fa90: 40 00 9f e0 call 2047a10 <memset> <== NOT EXECUTED
201fa94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
201fa98: 90 07 bd 5b add %fp, -677, %o0 <== NOT EXECUTED
* but first clear the MRB leaving the partition table.
*/
#define RTEMS_IDE_PARTITION_TABLE_OFFSET 0x1be
#define RTEMS_IDE_PARTITION_TABLE_SIZE (4 * 16)
memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);
memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
201fa9c: c0 37 bf 56 clrh [ %fp + -170 ] <== NOT EXECUTED
* with 0xEB,....
*/
/*
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
201faa0: 92 07 bf 8b add %fp, -117, %o1 <== NOT EXECUTED
201faa4: 40 00 9f 48 call 20477c4 <memcpy> <== NOT EXECUTED
201faa8: 94 10 20 08 mov 8, %o2 <== NOT EXECUTED
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
201faac: c8 07 bf 64 ld [ %fp + -156 ], %g4 <== NOT EXECUTED
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
201fab0: c6 07 bf 58 ld [ %fp + -168 ], %g3 <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
201fab4: c2 07 bf 70 ld [ %fp + -144 ], %g1 <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
201fab8: c4 07 bf 60 ld [ %fp + -160 ], %g2 <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
201fabc: d8 0f bf 8a ldub [ %fp + -118 ], %o4 <== NOT EXECUTED
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
201fac0: c8 2c 20 0d stb %g4, [ %l0 + 0xd ] <== NOT EXECUTED
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
201fac4: c8 0f bf 89 ldub [ %fp + -119 ], %g4 <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
201fac8: c2 2c 20 11 stb %g1, [ %l0 + 0x11 ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
201facc: c8 2c 20 15 stb %g4, [ %l0 + 0x15 ] <== NOT EXECUTED
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
201fad0: 89 30 e0 08 srl %g3, 8, %g4 <== NOT EXECUTED
201fad4: c8 2c 20 0c stb %g4, [ %l0 + 0xc ] <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
201fad8: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
201fadc: c8 2c 20 0f stb %g4, [ %l0 + 0xf ] <== NOT EXECUTED
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
201fae0: 89 30 60 08 srl %g1, 8, %g4 <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
201fae4: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
201fae8: c8 2c 20 12 stb %g4, [ %l0 + 0x12 ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
201faec: 89 36 20 08 srl %i0, 8, %g4 <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
201faf0: c2 2c 20 18 stb %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
201faf4: c8 2c 20 14 stb %g4, [ %l0 + 0x14 ] <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
201faf8: 82 10 20 06 mov 6, %g1 <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
201fafc: 89 35 20 18 srl %l4, 0x18, %g4 <== NOT EXECUTED
* fill OEMName
*/
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
201fb00: c6 2c 20 0b stb %g3, [ %l0 + 0xb ] <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
201fb04: c8 2c 20 23 stb %g4, [ %l0 + 0x23 ] <== NOT EXECUTED
201fb08: e8 2c 20 20 stb %l4, [ %l0 + 0x20 ] <== NOT EXECUTED
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
201fb0c: c2 2c 20 1a stb %g1, [ %l0 + 0x1a ] <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),
fmt_params->OEMName,
FAT_BR_OEMNAME_SIZE);
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
201fb10: c4 2c 20 0e stb %g2, [ %l0 + 0xe ] <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
201fb14: 83 35 20 10 srl %l4, 0x10, %g1 <== NOT EXECUTED
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
FAT_SET_BR_FILES_PER_ROOT_DIR(mbr , fmt_params->files_per_root_dir);
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
201fb18: f0 2c 20 13 stb %i0, [ %l0 + 0x13 ] <== NOT EXECUTED
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
201fb1c: c0 2c 20 19 clrb [ %l0 + 0x19 ] <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
201fb20: c0 2c 20 1b clrb [ %l0 + 0x1b ] <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
201fb24: c0 2c 20 1d clrb [ %l0 + 0x1d ] <== NOT EXECUTED
201fb28: c0 2c 20 1e clrb [ %l0 + 0x1e ] <== NOT EXECUTED
201fb2c: c0 2c 20 1f clrb [ %l0 + 0x1f ] <== NOT EXECUTED
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
201fb30: 9a 10 20 02 mov 2, %o5 <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
201fb34: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
FAT_SET_BR_BYTES_PER_SECTOR(mbr , fmt_params->bytes_per_sector);
FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);
/* number of FATs on medium */
FAT_SET_BR_FAT_NUM(mbr , 2); /* standard/recommended value */
201fb38: da 2c 20 10 stb %o5, [ %l0 + 0x10 ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);
FAT_SET_BR_MEDIA(mbr , fmt_params->media_code);
FAT_SET_BR_SECTORS_PER_TRACK(mbr , 255); /* only needed for INT13... */
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
201fb3c: c8 2c 20 1c stb %g4, [ %l0 + 0x1c ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
201fb40: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
201fb44: c2 2c 20 22 stb %g1, [ %l0 + 0x22 ] <== NOT EXECUTED
201fb48: 86 10 e3 ff or %g3, 0x3ff, %g3 <== NOT EXECUTED
201fb4c: a8 0d 00 03 and %l4, %g3, %l4 <== NOT EXECUTED
201fb50: a9 35 20 08 srl %l4, 8, %l4 <== NOT EXECUTED
201fb54: e8 2c 20 21 stb %l4, [ %l0 + 0x21 ] <== NOT EXECUTED
if (fmt_params->fattype != FAT_FAT32) {
201fb58: 80 a3 20 04 cmp %o4, 4 <== NOT EXECUTED
201fb5c: 02 80 00 1f be 201fbd8 <msdos_format+0x808> <== NOT EXECUTED
201fb60: c2 07 bf 68 ld [ %fp + -152 ], %g1 <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fb64: c4 07 bf a4 ld [ %fp + -92 ], %g2 <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
201fb68: 89 30 60 08 srl %g1, 8, %g4 <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fb6c: 86 08 80 03 and %g2, %g3, %g3 <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
201fb70: c8 2c 20 17 stb %g4, [ %l0 + 0x17 ] <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fb74: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
201fb78: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
FAT_SET_BR_NUMBER_OF_HEADS(mbr , 6); /* only needed for INT13... */
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
201fb7c: c2 2c 20 16 stb %g1, [ %l0 + 0x16 ] <== NOT EXECUTED
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fb80: c4 2c 20 27 stb %g2, [ %l0 + 0x27 ] <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
201fb84: 82 10 20 29 mov 0x29, %g1 <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fb88: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
201fb8c: c2 2c 20 26 stb %g1, [ %l0 + 0x26 ] <== NOT EXECUTED
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
201fb90: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fb94: c8 2c 20 2a stb %g4, [ %l0 + 0x2a ] <== NOT EXECUTED
201fb98: c6 2c 20 28 stb %g3, [ %l0 + 0x28 ] <== NOT EXECUTED
FAT_SET_BR_HIDDEN_SECTORS(mbr , 1); /* only needed for INT13... */
FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);
if (fmt_params->fattype != FAT_FAT32) {
FAT_SET_BR_SECTORS_PER_FAT(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_DRVNUM(mbr , 0); /* only needed for INT13... */
201fb9c: c0 2c 20 24 clrb [ %l0 + 0x24 ] <== NOT EXECUTED
FAT_SET_BR_RSVD1(mbr , 0); /* fill with zero */
201fba0: c0 2c 20 25 clrb [ %l0 + 0x25 ] <== NOT EXECUTED
FAT_SET_BR_BOOTSIG(mbr , FAT_BR_BOOTSIG_VAL);
FAT_SET_BR_VOLID(mbr , fmt_params->vol_id); /* volume id */
201fba4: c4 2c 20 29 stb %g2, [ %l0 + 0x29 ] <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),
201fba8: 90 07 bd 83 add %fp, -637, %o0 <== NOT EXECUTED
201fbac: 40 00 9f 06 call 20477c4 <memcpy> <== NOT EXECUTED
201fbb0: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
fmt_params->VolLabel,
FAT_BR_VOLLAB_SIZE);
memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),
201fbb4: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201fbb8: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED
201fbbc: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
201fbc0: 02 80 00 04 be 201fbd0 <msdos_format+0x800> <== NOT EXECUTED
201fbc4: 92 12 62 c0 or %o1, 0x2c0, %o1 <== NOT EXECUTED
201fbc8: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED
201fbcc: 92 12 62 b0 or %o1, 0x2b0, %o1 ! 20636b0 <C.6.6074+0xe30> <== NOT EXECUTED
201fbd0: 10 80 00 2b b 201fc7c <msdos_format+0x8ac> <== NOT EXECUTED
201fbd4: 90 07 bd 8e add %fp, -626, %o0 <== NOT EXECUTED
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_EXT_FLAGS(mbr , 0);
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
201fbd8: c4 07 bf 80 ld [ %fp + -128 ], %g2 <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
201fbdc: 86 08 40 03 and %g1, %g3, %g3 <== NOT EXECUTED
201fbe0: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
201fbe4: c8 2c 20 30 stb %g4, [ %l0 + 0x30 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
201fbe8: c6 2c 20 25 stb %g3, [ %l0 + 0x25 ] <== NOT EXECUTED
201fbec: 89 30 60 18 srl %g1, 0x18, %g4 <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
201fbf0: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
201fbf4: c2 2c 20 24 stb %g1, [ %l0 + 0x24 ] <== NOT EXECUTED
201fbf8: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
201fbfc: da 2c 20 2c stb %o5, [ %l0 + 0x2c ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
201fc00: c8 2c 20 27 stb %g4, [ %l0 + 0x27 ] <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
201fc04: c6 2c 20 33 stb %g3, [ %l0 + 0x33 ] <== NOT EXECUTED
201fc08: c4 2c 20 32 stb %g2, [ %l0 + 0x32 ] <== NOT EXECUTED
? "FAT12 "
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
201fc0c: c2 2c 20 26 stb %g1, [ %l0 + 0x26 ] <== NOT EXECUTED
FAT_SET_BR_EXT_FLAGS(mbr , 0);
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
201fc10: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fc14: 94 10 20 0c mov 0xc, %o2 <== NOT EXECUTED
: "FAT16 ",
FAT_BR_FILSYSTYPE_SIZE);
}
else {
FAT_SET_BR_SECTORS_PER_FAT32(mbr ,fmt_params->sectors_per_fat);
FAT_SET_BR_EXT_FLAGS(mbr , 0);
201fc18: c0 2c 20 28 clrb [ %l0 + 0x28 ] <== NOT EXECUTED
201fc1c: c0 2c 20 29 clrb [ %l0 + 0x29 ] <== NOT EXECUTED
FAT_SET_BR_FSVER(mbr , 0); /* FAT32 Version:0.0 */
201fc20: c0 2c 20 2a clrb [ %l0 + 0x2a ] <== NOT EXECUTED
201fc24: c0 2c 20 2b clrb [ %l0 + 0x2b ] <== NOT EXECUTED
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
201fc28: c0 2c 20 2d clrb [ %l0 + 0x2d ] <== NOT EXECUTED
201fc2c: c0 2c 20 2e clrb [ %l0 + 0x2e ] <== NOT EXECUTED
201fc30: c0 2c 20 2f clrb [ %l0 + 0x2f ] <== NOT EXECUTED
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
201fc34: c0 2c 20 31 clrb [ %l0 + 0x31 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
201fc38: 40 00 9f 76 call 2047a10 <memset> <== NOT EXECUTED
201fc3c: 90 07 bd 8c add %fp, -628, %o0 <== NOT EXECUTED
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_FAT32_BOOTSIG(mbr ,FAT_BR_FAT32_BOOTSIG_VAL);
201fc40: 82 10 20 29 mov 0x29, %g1 <== NOT EXECUTED
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
201fc44: 92 10 20 00 clr %o1 <== NOT EXECUTED
FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr , 2); /* put root dir to cluster 2 */
FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo to rsrvd sec 1*/
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
201fc48: c0 2c 20 40 clrb [ %l0 + 0x40 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
201fc4c: c0 2c 20 41 clrb [ %l0 + 0x41 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_BOOTSIG(mbr ,FAT_BR_FAT32_BOOTSIG_VAL);
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
201fc50: c0 2c 20 43 clrb [ %l0 + 0x43 ] <== NOT EXECUTED
201fc54: c0 2c 20 44 clrb [ %l0 + 0x44 ] <== NOT EXECUTED
201fc58: c0 2c 20 45 clrb [ %l0 + 0x45 ] <== NOT EXECUTED
201fc5c: c0 2c 20 46 clrb [ %l0 + 0x46 ] <== NOT EXECUTED
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
201fc60: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
FAT_SET_BR_FAT32_DRVNUM(mbr , 0); /* only needed for INT13... */
FAT_SET_BR_FAT32_RSVD1(mbr , 0); /* fill with zero */
FAT_SET_BR_FAT32_BOOTSIG(mbr ,FAT_BR_FAT32_BOOTSIG_VAL);
201fc64: c2 2c 20 42 stb %g1, [ %l0 + 0x42 ] <== NOT EXECUTED
FAT_SET_BR_FAT32_VOLID(mbr , 0); /* not set */
memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr) ,0,FAT_BR_VOLLAB_SIZE);
201fc68: 40 00 9f 6a call 2047a10 <memset> <== NOT EXECUTED
201fc6c: 90 07 bd 9f add %fp, -609, %o0 <== NOT EXECUTED
memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),
201fc70: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED
201fc74: 90 07 bd aa add %fp, -598, %o0 <== NOT EXECUTED
201fc78: 92 12 62 d0 or %o1, 0x2d0, %o1 <== NOT EXECUTED
201fc7c: 40 00 9e d2 call 20477c4 <memcpy> <== NOT EXECUTED
201fc80: 94 10 20 08 mov 8, %o2 <== NOT EXECUTED
FAT_BR_FILSYSTYPE_SIZE);
}
/*
* add boot record signature
*/
FAT_SET_BR_SIGNATURE(mbr, FAT_BR_SIGNATURE_VAL);
201fc84: 82 10 20 55 mov 0x55, %g1 <== NOT EXECUTED
201fc88: c2 2c 21 fe stb %g1, [ %l0 + 0x1fe ] <== NOT EXECUTED
201fc8c: 82 10 3f aa mov -86, %g1 <== NOT EXECUTED
201fc90: c2 2c 21 ff stb %g1, [ %l0 + 0x1ff ] <== NOT EXECUTED
/*
* add jump to boot loader at start of sector
*/
FAT_SET_VAL8(mbr,0,0xeb);
201fc94: 82 10 3f eb mov -21, %g1 <== NOT EXECUTED
201fc98: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
FAT_SET_VAL8(mbr,1,0x3c);
201fc9c: 82 10 20 3c mov 0x3c, %g1 <== NOT EXECUTED
201fca0: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
FAT_SET_VAL8(mbr,2,0x90);
201fca4: 82 10 3f 90 mov -112, %g1 <== NOT EXECUTED
/*
* write master boot record to disk
* also write copy of MBR to disk
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201fca8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fcac: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
/*
* add jump to boot loader at start of sector
*/
FAT_SET_VAL8(mbr,0,0xeb);
FAT_SET_VAL8(mbr,1,0x3c);
FAT_SET_VAL8(mbr,2,0x90);
201fcb0: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== NOT EXECUTED
/*
* write master boot record to disk
* also write copy of MBR to disk
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201fcb4: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201fcb8: 7f ff fd 46 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201fcbc: 94 12 a2 e0 or %o2, 0x2e0, %o2 ! 20636e0 <C.6.6074+0xe60> <== NOT EXECUTED
"write MRB sector\n");
ret_val = msdos_format_write_sec(fd,
201fcc0: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
201fcc4: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
201fcc8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fccc: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fcd0: 7f ff fd 55 call 201f224 <msdos_format_write_sec> <== NOT EXECUTED
201fcd4: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
0,
fmt_params.bytes_per_sector,
tmp_sec);
}
if ((ret_val == 0) &&
201fcd8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fcdc: 12 80 00 b6 bne 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201fce0: c2 07 bf 80 ld [ %fp + -128 ], %g1 <== NOT EXECUTED
201fce4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fce8: 02 80 00 0f be 201fd24 <msdos_format+0x954> <== NOT EXECUTED
201fcec: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED
(fmt_params.mbr_copy_sec != 0)) {
/*
* write copy of MBR
*/
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201fcf0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201fcf4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fcf8: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201fcfc: 7f ff fd 35 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201fd00: 94 12 a2 f8 or %o2, 0x2f8, %o2 ! 20636f8 <C.6.6074+0xe78> <== NOT EXECUTED
"write back up MRB sector\n");
ret_val = msdos_format_write_sec(fd,
201fd04: d2 07 bf 80 ld [ %fp + -128 ], %o1 <== NOT EXECUTED
201fd08: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
201fd0c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fd10: 7f ff fd 45 call 201f224 <msdos_format_write_sec> <== NOT EXECUTED
201fd14: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
}
}
/*
* for FAT32: initialize info sector on disk
*/
if ((ret_val == 0) &&
201fd18: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fd1c: 12 80 00 a6 bne 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201fd20: c2 07 bf 84 ld [ %fp + -124 ], %g1 <== NOT EXECUTED
201fd24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fd28: 02 80 00 e9 be 20200cc <msdos_format+0xcfc> <== NOT EXECUTED
201fd2c: d2 07 bf 84 ld [ %fp + -124 ], %o1 <== NOT EXECUTED
\*=========================================================================*/
{
/*
* clear fsinfo sector data
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
201fd30: 90 07 bd 58 add %fp, -680, %o0 <== NOT EXECUTED
201fd34: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fd38: 40 00 9f 36 call 2047a10 <memset> <== NOT EXECUTED
201fd3c: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
/*
* write "empty" values for free cluster count and next cluster number
*/
FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,
201fd40: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
201fd44: c2 2c 21 ef stb %g1, [ %l0 + 0x1ef ] <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
/*
* write "empty" values for free cluster count and next cluster number
*/
FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,
201fd48: c2 2c 21 e8 stb %g1, [ %l0 + 0x1e8 ] <== NOT EXECUTED
201fd4c: c2 2c 21 e9 stb %g1, [ %l0 + 0x1e9 ] <== NOT EXECUTED
201fd50: c2 2c 21 ea stb %g1, [ %l0 + 0x1ea ] <== NOT EXECUTED
201fd54: c2 2c 21 eb stb %g1, [ %l0 + 0x1eb ] <== NOT EXECUTED
0xffffffff);
FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,
201fd58: c2 2c 21 ec stb %g1, [ %l0 + 0x1ec ] <== NOT EXECUTED
201fd5c: c2 2c 21 ed stb %g1, [ %l0 + 0x1ed ] <== NOT EXECUTED
201fd60: c2 2c 21 ee stb %g1, [ %l0 + 0x1ee ] <== NOT EXECUTED
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
/*
* write LEADSIG, STRUCTSIG, TRAILSIG
*/
FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
201fd64: 82 10 20 52 mov 0x52, %g1 <== NOT EXECUTED
201fd68: c2 2c 20 01 stb %g1, [ %l0 + 1 ] <== NOT EXECUTED
201fd6c: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
201fd70: 82 10 20 61 mov 0x61, %g1 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
201fd74: c2 2c 21 e7 stb %g1, [ %l0 + 0x1e7 ] <== NOT EXECUTED
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
/*
* write LEADSIG, STRUCTSIG, TRAILSIG
*/
FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
201fd78: c2 2c 20 02 stb %g1, [ %l0 + 2 ] <== NOT EXECUTED
201fd7c: 82 10 20 41 mov 0x41, %g1 <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
201fd80: c2 2c 21 e6 stb %g1, [ %l0 + 0x1e6 ] <== NOT EXECUTED
*/
memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);
/*
* write LEADSIG, STRUCTSIG, TRAILSIG
*/
FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
201fd84: c2 2c 20 03 stb %g1, [ %l0 + 3 ] <== NOT EXECUTED
FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
201fd88: 82 10 20 72 mov 0x72, %g1 <== NOT EXECUTED
201fd8c: c2 2c 21 e5 stb %g1, [ %l0 + 0x1e5 ] <== NOT EXECUTED
201fd90: c2 2c 21 e4 stb %g1, [ %l0 + 0x1e4 ] <== NOT EXECUTED
FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
201fd94: 82 10 20 55 mov 0x55, %g1 <== NOT EXECUTED
201fd98: c2 2c 21 fe stb %g1, [ %l0 + 0x1fe ] <== NOT EXECUTED
201fd9c: 82 10 3f aa mov -86, %g1 <== NOT EXECUTED
201fda0: 10 80 00 ca b 20200c8 <msdos_format+0xcf8> <== NOT EXECUTED
201fda4: c2 2c 21 ff stb %g1, [ %l0 + 0x1ff ] <== NOT EXECUTED
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
201fda8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201fdac: 7f ff fd 1e call 201f224 <msdos_format_write_sec> <== NOT EXECUTED
201fdb0: 96 07 bd 58 add %fp, -680, %o3 <== NOT EXECUTED
}
/*
* write FAT as all empty
* -> write all FAT sectors as zero
*/
if (ret_val == 0) {
201fdb4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fdb8: 12 80 00 80 bne 201ffb8 <msdos_format+0xbe8> <== NOT EXECUTED
201fdbc: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
201fdc0: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
201fdc4: 7f ff 8b 0d call 20029f8 <.umul> <== NOT EXECUTED
201fdc8: d0 0f bf 88 ldub [ %fp + -120 ], %o0 <== NOT EXECUTED
201fdcc: d4 07 bf 60 ld [ %fp + -160 ], %o2 <== NOT EXECUTED
201fdd0: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
201fdd4: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
201fdd8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
201fddc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fde0: 7f ff fd 2b call 201f28c <msdos_format_fill_sectors> <== NOT EXECUTED
201fde4: 9a 10 20 00 clr %o5 <== NOT EXECUTED
}
/*
* clear/init root directory
* -> write all directory sectors as 0x00
*/
if (ret_val == 0) {
201fde8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fdec: 12 80 00 72 bne 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201fdf0: d4 1f bf 78 ldd [ %fp + -136 ], %o2 <== NOT EXECUTED
ret_val = msdos_format_fill_sectors
201fdf4: d8 07 bf 58 ld [ %fp + -168 ], %o4 <== NOT EXECUTED
201fdf8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fdfc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
201fe00: 7f ff fd 23 call 201f28c <msdos_format_fill_sectors> <== NOT EXECUTED
201fe04: 9a 10 20 00 clr %o5 <== NOT EXECUTED
0x00);
}
/*
* write volume label to first entry of directory
*/
if ((ret_val == 0) && fmt_params.VolLabel_present) {
201fe08: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
201fe0c: 12 80 00 6a bne 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201fe10: c2 0f bf a0 ldub [ %fp + -96 ], %g1 <== NOT EXECUTED
201fe14: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fe18: 02 80 00 17 be 201fe74 <msdos_format+0xaa4> <== NOT EXECUTED
201fe1c: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
memset(tmp_sec,0,sizeof(tmp_sec));
201fe20: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fe24: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
201fe28: 40 00 9e fa call 2047a10 <memset> <== NOT EXECUTED
201fe2c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
201fe30: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
201fe34: 94 10 20 0b mov 0xb, %o2 <== NOT EXECUTED
201fe38: 40 00 9e 63 call 20477c4 <memcpy> <== NOT EXECUTED
201fe3c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
ret_val = msdos_format_write_sec
201fe40: d2 07 bf 78 ld [ %fp + -136 ], %o1 <== NOT EXECUTED
201fe44: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
* write volume label to first entry of directory
*/
if ((ret_val == 0) && fmt_params.VolLabel_present) {
memset(tmp_sec,0,sizeof(tmp_sec));
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
201fe48: 82 10 20 08 mov 8, %g1 <== NOT EXECUTED
ret_val = msdos_format_write_sec
201fe4c: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
* write volume label to first entry of directory
*/
if ((ret_val == 0) && fmt_params.VolLabel_present) {
memset(tmp_sec,0,sizeof(tmp_sec));
memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
*MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;
201fe50: c2 2d 20 0b stb %g1, [ %l4 + 0xb ] <== NOT EXECUTED
ret_val = msdos_format_write_sec
201fe54: 7f ff fc f4 call 201f224 <msdos_format_write_sec> <== NOT EXECUTED
201fe58: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* write FAT entry 0 as (0xffffff00|Media_type)EOC,
* write FAT entry 1 as EOC
* allocate directory in a FAT32 FS
*/
if ((ret_val == 0) && fmt_params.VolLabel_present){
201fe5c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201fe60: 02 80 00 04 be 201fe70 <msdos_format+0xaa0> <== NOT EXECUTED
201fe64: c2 0f bf a0 ldub [ %fp + -96 ], %g1 <== NOT EXECUTED
201fe68: 10 80 00 53 b 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201fe6c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
201fe70: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
201fe74: 02 80 00 51 be 201ffb8 <msdos_format+0xbe8> <== NOT EXECUTED
201fe78: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
/*
* empty sector: all clusters are free/do not link further on
*/
memset(tmp_sec,0,sizeof(tmp_sec));
201fe7c: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
201fe80: 92 10 20 00 clr %o1 <== NOT EXECUTED
201fe84: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
201fe88: 40 00 9e e2 call 2047a10 <memset> <== NOT EXECUTED
201fe8c: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
switch(fmt_params.fattype) {
201fe90: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201fe94: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
201fe98: 02 80 00 0b be 201fec4 <msdos_format+0xaf4> <== NOT EXECUTED
201fe9c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
201fea0: 02 80 00 11 be 201fee4 <msdos_format+0xb14> <== NOT EXECUTED
201fea4: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
201fea8: 12 80 00 21 bne 201ff2c <msdos_format+0xb5c> <== NOT EXECUTED
201feac: c2 0f bf 89 ldub [ %fp + -119 ], %g1 <== NOT EXECUTED
case FAT_FAT12:
/* LSBits of FAT entry 0: media_type */
FAT_SET_VAL8(tmp_sec,0,(fmt_params.media_code));
201feb0: c2 2c 00 00 stb %g1, [ %l0 ] <== NOT EXECUTED
/* MSBits of FAT entry 0:0xf, LSBits of FAT entry 1: LSB of EOC */
FAT_SET_VAL8(tmp_sec,1,(0x0f | (FAT_FAT12_EOC << 4)));
201feb4: 82 10 3f 8f mov -113, %g1 <== NOT EXECUTED
201feb8: c2 2d 20 01 stb %g1, [ %l4 + 1 ] <== NOT EXECUTED
/* MSBits of FAT entry 1: MSBits of EOC */
FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));
201febc: 10 80 00 08 b 201fedc <msdos_format+0xb0c> <== NOT EXECUTED
201fec0: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
break;
case FAT_FAT16:
/* FAT entry 0: 0xff00|media_type */
FAT_SET_VAL16(tmp_sec,0,0xff00|fmt_params.media_code);
201fec4: c4 0f bf 89 ldub [ %fp + -119 ], %g2 <== NOT EXECUTED
201fec8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
201fecc: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
201fed0: c2 2d 20 03 stb %g1, [ %l4 + 3 ] <== NOT EXECUTED
FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));
break;
case FAT_FAT16:
/* FAT entry 0: 0xff00|media_type */
FAT_SET_VAL16(tmp_sec,0,0xff00|fmt_params.media_code);
201fed4: c2 2d 20 01 stb %g1, [ %l4 + 1 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
201fed8: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
break;
201fedc: 10 80 00 18 b 201ff3c <msdos_format+0xb6c> <== NOT EXECUTED
201fee0: c2 2d 20 02 stb %g1, [ %l4 + 2 ] <== NOT EXECUTED
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
201fee4: c4 0f bf 89 ldub [ %fp + -119 ], %g2 <== NOT EXECUTED
201fee8: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201feec: c2 2d 20 06 stb %g1, [ %l4 + 6 ] <== NOT EXECUTED
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
break;
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
201fef0: 84 10 bf 00 or %g2, -256, %g2 <== NOT EXECUTED
201fef4: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
201fef8: c2 2d 20 02 stb %g1, [ %l4 + 2 ] <== NOT EXECUTED
201fefc: c2 2d 20 03 stb %g1, [ %l4 + 3 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201ff00: c2 2d 20 05 stb %g1, [ %l4 + 5 ] <== NOT EXECUTED
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
break;
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
201ff04: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
201ff08: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
201ff0c: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201ff10: 82 10 3f f8 mov -8, %g1 <== NOT EXECUTED
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
break;
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
201ff14: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201ff18: c2 2d 20 04 stb %g1, [ %l4 + 4 ] <== NOT EXECUTED
FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);
break;
case FAT_FAT32:
/* FAT entry 0: 0xffffff00|media_type */
FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);
201ff1c: c4 2d 20 01 stb %g2, [ %l4 + 1 ] <== NOT EXECUTED
/* FAT entry 1: EOC */
FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);
201ff20: 82 10 20 0f mov 0xf, %g1 <== NOT EXECUTED
break;
201ff24: 10 80 00 06 b 201ff3c <msdos_format+0xb6c> <== NOT EXECUTED
201ff28: c2 2d 20 07 stb %g1, [ %l4 + 7 ] <== NOT EXECUTED
default:
ret_val = -1;
errno = EINVAL;
201ff2c: 40 00 90 da call 2044294 <__errno> <== NOT EXECUTED
201ff30: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201ff34: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
201ff38: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
if (fmt_params.fattype == FAT_FAT32) {
201ff3c: c2 0f bf 8a ldub [ %fp + -118 ], %g1 <== NOT EXECUTED
201ff40: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
201ff44: 12 80 00 0a bne 201ff6c <msdos_format+0xb9c> <== NOT EXECUTED
201ff48: a0 10 20 00 clr %l0 <== NOT EXECUTED
/*
* only first valid cluster (cluster number 2) belongs
* to root directory, and is end of chain
* mark this in every copy of the FAT
*/
FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);
201ff4c: 84 10 3f ff mov -1, %g2 <== NOT EXECUTED
201ff50: 82 07 bd 58 add %fp, -680, %g1 <== NOT EXECUTED
201ff54: c4 28 60 0a stb %g2, [ %g1 + 0xa ] <== NOT EXECUTED
201ff58: c4 28 60 09 stb %g2, [ %g1 + 9 ] <== NOT EXECUTED
201ff5c: 84 10 3f f8 mov -8, %g2 <== NOT EXECUTED
201ff60: c4 28 60 08 stb %g2, [ %g1 + 8 ] <== NOT EXECUTED
201ff64: 84 10 20 0f mov 0xf, %g2 <== NOT EXECUTED
201ff68: c4 28 60 0b stb %g2, [ %g1 + 0xb ] <== NOT EXECUTED
}
for (i = 0;
(i < fmt_params.fat_num) && (ret_val == 0);
i++) {
ret_val = msdos_format_write_sec
201ff6c: 10 80 00 0b b 201ff98 <msdos_format+0xbc8> <== NOT EXECUTED
201ff70: a8 07 bd 58 add %fp, -680, %l4 <== NOT EXECUTED
201ff74: 7f ff 8a a1 call 20029f8 <.umul> <== NOT EXECUTED
201ff78: a0 04 20 01 inc %l0 <== NOT EXECUTED
201ff7c: d2 07 bf 60 ld [ %fp + -160 ], %o1 <== NOT EXECUTED
201ff80: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
201ff84: 92 02 00 09 add %o0, %o1, %o1 <== NOT EXECUTED
201ff88: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
201ff8c: 7f ff fc a6 call 201f224 <msdos_format_write_sec> <== NOT EXECUTED
201ff90: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201ff94: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
* to root directory, and is end of chain
* mark this in every copy of the FAT
*/
FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);
}
for (i = 0;
201ff98: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201ff9c: 12 80 00 06 bne 201ffb4 <msdos_format+0xbe4> <== NOT EXECUTED
201ffa0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
201ffa4: c2 0f bf 88 ldub [ %fp + -120 ], %g1 <== NOT EXECUTED
201ffa8: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
201ffac: 06 bf ff f2 bl 201ff74 <msdos_format+0xba4> <== NOT EXECUTED
201ffb0: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
/*
* cleanup:
* sync and unlock disk
* free any data structures (not needed now)
*/
if (fd != -1) {
201ffb4: 80 a4 7f ff cmp %l1, -1 <== NOT EXECUTED
201ffb8: 02 80 00 05 be 201ffcc <msdos_format+0xbfc> <== NOT EXECUTED
201ffbc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
close(fd);
201ffc0: 7f ff 9f 70 call 2007d80 <close> <== NOT EXECUTED
201ffc4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
if (dd != NULL) {
201ffc8: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
201ffcc: 02 80 00 04 be 201ffdc <msdos_format+0xc0c> <== NOT EXECUTED
201ffd0: 01 00 00 00 nop <== NOT EXECUTED
rtems_disk_release(dd);
201ffd4: 7f ff 9b c8 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
201ffd8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
}
return ret_val;
}
201ffdc: 81 c7 e0 08 ret <== NOT EXECUTED
201ffe0: 81 e8 00 00 restore <== NOT EXECUTED
ret_val = -1;
}
/* check that device is registered as block device and lock it */
if (ret_val == 0) {
dd = rtems_disk_obtain(stat_buf.st_rdev);
201ffe4: 7f ff 9b d6 call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
201ffe8: d0 1f bf c0 ldd [ %fp + -64 ], %o0 <== NOT EXECUTED
if (dd == NULL) {
201ffec: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
201fff0: 02 bf fd 19 be 201f454 <msdos_format+0x84> <== NOT EXECUTED
201fff4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
/*
* open device for writing
*/
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201fff8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201fffc: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
2020000: 7f ff fc 74 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
2020004: 94 12 a3 18 or %o2, 0x318, %o2 ! 2063718 <C.6.6074+0xe98> <== NOT EXECUTED
"open device\n");
fd = open(devname, O_RDWR);
2020008: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202000c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2020010: 7f ff a4 dc call 2009380 <open> <== NOT EXECUTED
2020014: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (fd == -1)
2020018: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
202001c: 02 bf fd 12 be 201f464 <msdos_format+0x94> <== NOT EXECUTED
2020020: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
uint32_t fatdata_sect_cnt;
uint32_t onebit;
uint32_t sectors_per_cluster_adj = 0;
uint64_t total_size = 0;
memset(fmt_params,0,sizeof(*fmt_params));
2020024: 94 10 20 50 mov 0x50, %o2 <== NOT EXECUTED
2020028: 92 10 20 00 clr %o1 <== NOT EXECUTED
202002c: 40 00 9e 79 call 2047a10 <memset> <== NOT EXECUTED
2020030: 90 07 bf 58 add %fp, -168, %o0 <== NOT EXECUTED
/*
* this one is fixed in this implementation.
* At least one thing we don't have to magically guess...
*/
if (ret_val == 0) {
fmt_params->bytes_per_sector = dd->block_size;
2020034: e6 04 a0 20 ld [ %l2 + 0x20 ], %l3 <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
total_size = dd->block_size * dd->size;
2020038: a8 10 20 00 clr %l4 <== NOT EXECUTED
/*
* this one is fixed in this implementation.
* At least one thing we don't have to magically guess...
*/
if (ret_val == 0) {
fmt_params->bytes_per_sector = dd->block_size;
202003c: e6 27 bf 58 st %l3, [ %fp + -168 ] <== NOT EXECUTED
fmt_params->totl_sector_cnt = dd->size;
2020040: e0 04 a0 1c ld [ %l2 + 0x1c ], %l0 <== NOT EXECUTED
total_size = dd->block_size * dd->size;
2020044: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
* this one is fixed in this implementation.
* At least one thing we don't have to magically guess...
*/
if (ret_val == 0) {
fmt_params->bytes_per_sector = dd->block_size;
fmt_params->totl_sector_cnt = dd->size;
2020048: e0 27 bf 5c st %l0, [ %fp + -164 ] <== NOT EXECUTED
total_size = dd->block_size * dd->size;
202004c: 7f ff 8a 6b call 20029f8 <.umul> <== NOT EXECUTED
2020050: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2020054: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
* At least one thing we don't have to magically guess...
*/
if (ret_val == 0) {
fmt_params->bytes_per_sector = dd->block_size;
fmt_params->totl_sector_cnt = dd->size;
total_size = dd->block_size * dd->size;
2020058: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
202005c: d0 23 a0 5c st %o0, [ %sp + 0x5c ] <== NOT EXECUTED
2020060: 98 10 00 10 mov %l0, %o4 <== NOT EXECUTED
2020064: e8 3f bd 50 std %l4, [ %fp + -688 ] <== NOT EXECUTED
2020068: 9a 10 20 00 clr %o5 <== NOT EXECUTED
202006c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2020070: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2020074: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
2020078: 7f ff fc 56 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
202007c: 94 12 a3 28 or %o2, 0x328, %o2 ! 2063728 <C.6.6074+0xea8> <== NOT EXECUTED
}
/*
* determine number of FATs
*/
if (ret_val == 0) {
if ((rqdata == NULL) ||
2020080: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2020084: 32 bf fc fd bne,a 201f478 <msdos_format+0xa8> <== NOT EXECUTED
2020088: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
202008c: 10 bf fd 02 b 201f494 <msdos_format+0xc4> <== NOT EXECUTED
2020090: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
ret_val = msdos_format_read_sec(fd,
0,
fmt_params.bytes_per_sector,
tmp_sec);
if (ret_val == 0) {
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
2020094: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2020098: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
202009c: 7f ff fc 4d call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
20200a0: 94 12 a3 60 or %o2, 0x360, %o2 ! 2063760 <C.6.6074+0xee0> <== NOT EXECUTED
{
uint32_t total_sectors_num16 = 0;
uint32_t total_sectors_num32 = 0;
/* store total sector count in either 16 or 32 bit field in mbr */
if (fmt_params->totl_sector_cnt < 0x10000) {
20200a4: e8 07 bf 5c ld [ %fp + -164 ], %l4 <== NOT EXECUTED
20200a8: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
20200ac: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
20200b0: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
20200b4: 18 bf fe 74 bgu 201fa84 <msdos_format+0x6b4> <== NOT EXECUTED
20200b8: b0 10 20 00 clr %i0 <== NOT EXECUTED
20200bc: b0 10 00 14 mov %l4, %i0 <== NOT EXECUTED
20200c0: 10 bf fe 71 b 201fa84 <msdos_format+0x6b4> <== NOT EXECUTED
20200c4: a8 10 20 00 clr %l4 <== NOT EXECUTED
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
(fmt_params.fsinfo_sec != 0)) {
20200c8: d2 07 bf 84 ld [ %fp + -124 ], %o1 <== NOT EXECUTED
ret_val = msdos_format_gen_fsinfo(tmp_sec);
}
/*
* write fsinfo sector
*/
if ((ret_val == 0) &&
20200cc: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20200d0: 22 bf ff 3d be,a 201fdc4 <msdos_format+0x9f4> <== NOT EXECUTED
20200d4: d2 07 bf 68 ld [ %fp + -152 ], %o1 <== NOT EXECUTED
(fmt_params.fsinfo_sec != 0)) {
ret_val = msdos_format_write_sec(fd,
20200d8: 10 bf ff 34 b 201fda8 <msdos_format+0x9d8> <== NOT EXECUTED
20200dc: d4 07 bf 58 ld [ %fp + -168 ], %o2 <== NOT EXECUTED
0201f28c <msdos_format_fill_sectors>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f28c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
201f290: 7f ff a5 bb call 200897c <malloc> <== NOT EXECUTED
201f294: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f298: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
/*
* allocate and fill buffer
*/
if (ret_val == 0) {
fill_buffer = malloc(sector_size);
201f29c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
if (fill_buffer == NULL) {
201f2a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f2a4: 12 80 00 07 bne 201f2c0 <msdos_format_fill_sectors+0x34> <== NOT EXECUTED
201f2a8: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
errno = ENOMEM;
201f2ac: 40 00 93 fa call 2044294 <__errno> <== NOT EXECUTED
201f2b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
201f2b4: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
201f2b8: 10 80 00 05 b 201f2cc <msdos_format_fill_sectors+0x40> <== NOT EXECUTED
201f2bc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
ret_val = -1;
}
else {
memset(fill_buffer,fill_byte,sector_size);
201f2c0: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
201f2c4: 40 00 a1 d3 call 2047a10 <memset> <== NOT EXECUTED
201f2c8: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f2cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f2d0: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f2d4: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f2d8: 7f ff ff be call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f2dc: 94 12 a1 f0 or %o2, 0x1f0, %o2 ! 20635f0 <C.6.6074+0xd70> <== NOT EXECUTED
201f2e0: 83 2e e0 04 sll %i3, 4, %g1 <== NOT EXECUTED
201f2e4: a5 2e e0 02 sll %i3, 2, %l2 <== NOT EXECUTED
while ((ret_val == 0) &&
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
if (percent != last_percent) {
if ((percent & 1) == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
201f2e8: 2b 00 81 8d sethi %hi(0x2063400), %l5 <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f2ec: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
201f2f0: a6 10 00 1b mov %i3, %l3 <== NOT EXECUTED
201f2f4: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED
while ((ret_val == 0) &&
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
if (percent != last_percent) {
if ((percent & 1) == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
201f2f8: aa 15 62 00 or %l5, 0x200, %l5 <== NOT EXECUTED
else {
memset(fill_buffer,fill_byte,sector_size);
}
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
201f2fc: a4 04 80 01 add %l2, %g1, %l2 <== NOT EXECUTED
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
201f300: 10 80 00 18 b 201f360 <msdos_format_fill_sectors+0xd4> <== NOT EXECUTED
201f304: a8 10 3f ff mov -1, %l4 <== NOT EXECUTED
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
201f308: 40 00 f5 24 call 205c798 <.udiv> <== NOT EXECUTED
201f30c: 01 00 00 00 nop <== NOT EXECUTED
if (percent != last_percent) {
201f310: 80 a2 00 14 cmp %o0, %l4 <== NOT EXECUTED
201f314: 02 80 00 09 be 201f338 <msdos_format_fill_sectors+0xac> <== NOT EXECUTED
201f318: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if ((percent & 1) == 0)
201f31c: 80 8a 20 01 btst 1, %o0 <== NOT EXECUTED
201f320: 12 80 00 07 bne 201f33c <msdos_format_fill_sectors+0xb0> <== NOT EXECUTED
201f324: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
201f328: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f32c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f330: 7f ff ff a8 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f334: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
201f338: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
start_sector++;
sector_cnt--;
201f33c: a8 10 00 18 mov %i0, %l4 <== NOT EXECUTED
if (percent != last_percent) {
if ((percent & 1) == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
201f340: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
201f344: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
201f348: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
201f34c: 7f ff ff b6 call 201f224 <msdos_format_write_sec> <== NOT EXECUTED
201f350: a6 04 ff ff add %l3, -1, %l3 <== NOT EXECUTED
start_sector++;
sector_cnt--;
201f354: a4 04 bf 9c add %l2, -100, %l2 <== NOT EXECUTED
if ((percent & 1) == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
start_sector++;
201f358: b4 06 a0 01 inc %i2 <== NOT EXECUTED
if (percent != last_percent) {
if ((percent & 1) == 0)
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
last_percent = percent;
}
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
201f35c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
(sector_cnt > 0)) {
int percent = (sector_cnt * 100) / total_sectors;
201f360: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,
"Filling : ");
/*
* write to consecutive sectors
*/
while ((ret_val == 0) &&
201f364: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
201f368: 02 80 00 05 be 201f37c <msdos_format_fill_sectors+0xf0> <== NOT EXECUTED
201f36c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
201f370: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f374: 02 bf ff e5 be 201f308 <msdos_format_fill_sectors+0x7c> <== NOT EXECUTED
201f378: 01 00 00 00 nop <== NOT EXECUTED
ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
start_sector++;
sector_cnt--;
}
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "\n");
201f37c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f380: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
201f384: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f388: 7f ff ff 92 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f38c: 94 12 a2 08 or %o2, 0x208, %o2 ! 2063608 <C.6.6074+0xd88> <== NOT EXECUTED
if (ret_val)
201f390: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f394: 02 80 00 09 be 201f3b8 <msdos_format_fill_sectors+0x12c> <== NOT EXECUTED
201f398: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,
201f39c: 15 00 81 8d sethi %hi(0x2063400), %o2 <== NOT EXECUTED
201f3a0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
201f3a4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
201f3a8: 94 12 a2 10 or %o2, 0x210, %o2 <== NOT EXECUTED
201f3ac: 7f ff ff 89 call 201f1d0 <msdos_format_printf> <== NOT EXECUTED
201f3b0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
"filling error on sector: %d\n", start_sector);
/*
* cleanup
*/
if (fill_buffer != NULL) {
201f3b4: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
201f3b8: 02 80 00 04 be 201f3c8 <msdos_format_fill_sectors+0x13c> <== NOT EXECUTED
201f3bc: 01 00 00 00 nop <== NOT EXECUTED
free(fill_buffer);
201f3c0: 7f ff a3 a8 call 2008260 <free> <== NOT EXECUTED
201f3c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
fill_buffer = NULL;
}
return ret_val;
}
201f3c8: 81 c7 e0 08 ret <== NOT EXECUTED
201f3cc: 81 e8 00 00 restore <== NOT EXECUTED
0201f1d0 <msdos_format_printf>:
*/
static void
msdos_format_printf (const msdos_format_request_param_t *rqdata,
int info_level,
const char *format, ...)
{
201f1d0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
va_list args;
va_start (args, format);
201f1d4: 94 07 a0 50 add %fp, 0x50, %o2 <== NOT EXECUTED
201f1d8: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
201f1dc: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
201f1e0: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
201f1e4: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
if (rqdata != NULL && rqdata->info_level >= info_level)
201f1e8: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
201f1ec: 02 80 00 0c be 201f21c <msdos_format_printf+0x4c> <== NOT EXECUTED
201f1f0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
201f1f4: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
201f1f8: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
201f1fc: 06 80 00 08 bl 201f21c <msdos_format_printf+0x4c> <== NOT EXECUTED
201f200: 21 00 81 ad sethi %hi(0x206b400), %l0 <== NOT EXECUTED
{
vfprintf (stdout, format, args);
201f204: c2 04 21 48 ld [ %l0 + 0x148 ], %g1 ! 206b548 <_impure_ptr><== NOT EXECUTED
201f208: 40 00 d0 84 call 2053418 <vfprintf> <== NOT EXECUTED
201f20c: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
fflush (stdout);
201f210: c2 04 21 48 ld [ %l0 + 0x148 ], %g1 <== NOT EXECUTED
201f214: 40 00 95 2a call 20446bc <fflush> <== NOT EXECUTED
201f218: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
201f21c: 81 c7 e0 08 ret <== NOT EXECUTED
201f220: 81 e8 00 00 restore <== NOT EXECUTED
0201f224 <msdos_format_write_sec>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
201f224: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int ret_val = 0;
if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {
201f228: 94 10 20 00 clr %o2 <== NOT EXECUTED
201f22c: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
201f230: 90 10 20 00 clr %o0 <== NOT EXECUTED
201f234: 40 00 f6 b1 call 205ccf8 <__muldi3> <== NOT EXECUTED
201f238: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
201f23c: 84 10 00 08 mov %o0, %g2 <== NOT EXECUTED
201f240: 86 10 00 09 mov %o1, %g3 <== NOT EXECUTED
201f244: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
201f248: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
201f24c: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
201f250: 40 00 2a 95 call 2029ca4 <lseek> <== NOT EXECUTED
201f254: 96 10 20 00 clr %o3 <== NOT EXECUTED
201f258: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f25c: 06 80 00 09 bl 201f280 <msdos_format_write_sec+0x5c> <== NOT EXECUTED
201f260: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
ret_val = -1;
}
if (ret_val == 0) {
if (0 > write(fd,buffer,sector_size)) {
201f264: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
201f268: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
201f26c: 7f ff b3 8f call 200c0a8 <write> <== NOT EXECUTED
201f270: b0 10 20 00 clr %i0 <== NOT EXECUTED
201f274: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201f278: 16 80 00 03 bge 201f284 <msdos_format_write_sec+0x60> <== NOT EXECUTED
201f27c: 01 00 00 00 nop <== NOT EXECUTED
201f280: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
ret_val = -1;
}
}
return ret_val;
}
201f284: 81 c7 e0 08 ret <== NOT EXECUTED
201f288: 81 e8 00 00 restore <== NOT EXECUTED
0203768c <msdos_free_node_info>:
* RC_OK on success, or -1 code if error occured
*
*/
int
msdos_free_node_info(rtems_filesystem_location_info_t *pathloc)
{
203768c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2037690: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
2037694: 92 10 20 00 clr %o1 <== NOT EXECUTED
int
msdos_free_node_info(rtems_filesystem_location_info_t *pathloc)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
2037698: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
203769c: 94 10 20 00 clr %o2 <== NOT EXECUTED
20376a0: 7f ff 55 14 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20376a4: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20376a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20376ac: 22 80 00 08 be,a 20376cc <msdos_free_node_info+0x40> <== NOT EXECUTED
20376b0: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20376b4: 40 00 32 f8 call 2044294 <__errno> <== NOT EXECUTED
20376b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20376bc: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20376c0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20376c4: 81 c7 e0 08 ret <== NOT EXECUTED
20376c8: 81 e8 00 00 restore <== NOT EXECUTED
rc = fat_file_close(pathloc->mt_entry, pathloc->node_access);
20376cc: 7f ff b8 70 call 202588c <fat_file_close> <== NOT EXECUTED
20376d0: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
20376d4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
20376d8: 7f ff 55 4d call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20376dc: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
20376e0: 81 c7 e0 08 ret <== NOT EXECUTED
20376e4: 81 e8 00 00 restore <== NOT EXECUTED
02038a40 <msdos_get_dotdot_dir_info_cluster_num_and_offset>:
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
fat_dir_pos_t *dir_pos,
char *dir_entry
)
{
2038a40: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
2038a44: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
uint32_t cl4find = 0;
/*
* open fat-file corresponded to ".."
*/
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
2038a48: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_filesystem_mount_table_entry_t *mt_entry,
uint32_t cln,
fat_dir_pos_t *dir_pos,
char *dir_entry
)
{
2038a4c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
fat_file_fd_t *fat_fd = NULL;
2038a50: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
uint32_t cl4find = 0;
/*
* open fat-file corresponded to ".."
*/
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
2038a54: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038a58: 7f ff b3 bc call 2025948 <fat_file_open> <== NOT EXECUTED
2038a5c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2038a60: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038a64: 12 80 00 9a bne 2038ccc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x28c><== NOT EXECUTED
2038a68: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
fat_fd->cln = cln;
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
2038a6c: 05 00 08 00 sethi %hi(0x200000), %g2 <== NOT EXECUTED
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
if (rc != RC_OK)
return rc;
fat_fd->cln = cln;
fat_fd->fat_file_type = FAT_DIRECTORY;
2038a70: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
2038a74: f2 20 60 38 st %i1, [ %g1 + 0x38 ] <== NOT EXECUTED
*/
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
if (rc != RC_OK)
return rc;
fat_fd->cln = cln;
2038a78: f2 20 60 1c st %i1, [ %g1 + 0x1c ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
2038a7c: e6 20 60 10 st %l3, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
2038a80: c0 20 60 34 clr [ %g1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
rc = fat_file_size(mt_entry, fat_fd);
2038a84: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
if (rc != RC_OK)
return rc;
fat_fd->cln = cln;
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
2038a88: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
rc = fat_file_size(mt_entry, fat_fd);
2038a8c: 7f ff b0 c0 call 2024d8c <fat_file_size> <== NOT EXECUTED
2038a90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2038a94: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038a98: 12 80 00 18 bne 2038af8 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xb8><== NOT EXECUTED
2038a9c: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* find "." node in opened directory */
memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2038aa0: a4 07 bf d8 add %fp, -40, %l2 <== NOT EXECUTED
2038aa4: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038aa8: 40 00 3b da call 2047a10 <memset> <== NOT EXECUTED
2038aac: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);
2038ab0: 29 00 81 a0 sethi %hi(0x2068000), %l4 <== NOT EXECUTED
2038ab4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2038ab8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2038abc: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2038ac0: 7f ff ff 64 call 2038850 <msdos_long_to_short> <== NOT EXECUTED
2038ac4: 90 15 22 40 or %l4, 0x240, %o0 <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1,
2038ac8: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2038acc: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
2038ad0: e4 23 a0 60 st %l2, [ %sp + 0x60 ] <== NOT EXECUTED
2038ad4: 96 15 22 40 or %l4, 0x240, %o3 <== NOT EXECUTED
2038ad8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038adc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2038ae0: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
2038ae4: 7f ff fb 77 call 20378c0 <msdos_find_name_in_fat_file> <== NOT EXECUTED
2038ae8: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos, dot_node);
if (rc != RC_OK)
2038aec: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038af0: 22 80 00 04 be,a 2038b00 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xc0><== NOT EXECUTED
2038af4: b0 07 bf b8 add %fp, -72, %i0 <== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
2038af8: 10 80 00 73 b 2038cc4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x284><== NOT EXECUTED
2038afc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
}
/* find ".." node in opened directory */
memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
2038b00: 92 10 20 00 clr %o1 <== NOT EXECUTED
2038b04: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
2038b08: 40 00 3b c2 call 2047a10 <memset> <== NOT EXECUTED
2038b0c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);
2038b10: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2038b14: 29 00 81 a0 sethi %hi(0x2068000), %l4 <== NOT EXECUTED
2038b18: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2038b1c: 96 10 20 0b mov 0xb, %o3 <== NOT EXECUTED
2038b20: 7f ff ff 4c call 2038850 <msdos_long_to_short> <== NOT EXECUTED
2038b24: 90 15 22 48 or %l4, 0x248, %o0 <== NOT EXECUTED
rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
2038b28: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2038b2c: f0 23 a0 60 st %i0, [ %sp + 0x60 ] <== NOT EXECUTED
2038b30: f4 23 a0 5c st %i2, [ %sp + 0x5c ] <== NOT EXECUTED
2038b34: 96 15 22 48 or %l4, 0x248, %o3 <== NOT EXECUTED
2038b38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038b3c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2038b40: 98 10 20 02 mov 2, %o4 <== NOT EXECUTED
2038b44: 7f ff fb 5f call 20378c0 <msdos_find_name_in_fat_file> <== NOT EXECUTED
2038b48: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
MSDOS_NAME_SHORT, dir_pos,
dotdot_node);
if (rc != RC_OK)
2038b4c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038b50: 12 80 00 5d bne 2038cc4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x284><== NOT EXECUTED
2038b54: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
return rc;
}
cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);
2038b58: e8 14 a0 14 lduh [ %l2 + 0x14 ], %l4 <== NOT EXECUTED
/* close fat-file corresponded to ".." directory */
rc = fat_file_close(mt_entry, fat_fd);
2038b5c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038b60: 7f ff b3 4b call 202588c <fat_file_close> <== NOT EXECUTED
2038b64: e4 14 a0 1a lduh [ %l2 + 0x1a ], %l2 <== NOT EXECUTED
if ( rc != RC_OK )
2038b68: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038b6c: 12 80 00 58 bne 2038ccc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x28c><== NOT EXECUTED
2038b70: c2 17 bf cc lduh [ %fp + -52 ], %g1 <== NOT EXECUTED
return rc;
if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
2038b74: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2038b78: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2038b7c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2038b80: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2038b84: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2038b88: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2038b8c: 80 90 40 03 orcc %g1, %g3, %g0 <== NOT EXECUTED
2038b90: 12 80 00 10 bne 2038bd0 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x190><== NOT EXECUTED
2038b94: c2 17 bf d2 lduh [ %fp + -46 ], %g1 <== NOT EXECUTED
2038b98: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2038b9c: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2038ba0: 80 88 c0 02 btst %g3, %g2 <== NOT EXECUTED
2038ba4: 12 80 00 0c bne 2038bd4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x194><== NOT EXECUTED
2038ba8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038bac: 83 30 60 18 srl %g1, 0x18, %g1 <== NOT EXECUTED
2038bb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038bb4: 12 80 00 09 bne 2038bd8 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x198><== NOT EXECUTED
2038bb8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2038bbc: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
/*
* we handle root dir for all FAT types in the same way with the
* ordinary directories ( through fat_file_* calls )
*/
fat_dir_pos_init(dir_pos);
dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
2038bc0: e6 26 80 00 st %l3, [ %i2 ] <== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
2038bc4: c0 26 a0 04 clr [ %i2 + 4 ] <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2038bc8: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2038bcc: c2 26 a0 08 st %g1, [ %i2 + 8 ] <== NOT EXECUTED
}
/* open fat-file corresponded to second ".." */
rc = fat_file_open(mt_entry, dir_pos, &fat_fd);
2038bd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038bd4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2038bd8: 7f ff b3 5c call 2025948 <fat_file_open> <== NOT EXECUTED
2038bdc: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2038be0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038be4: 12 80 00 3a bne 2038ccc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x28c><== NOT EXECUTED
2038be8: c6 17 bf cc lduh [ %fp + -52 ], %g3 <== NOT EXECUTED
return rc;
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
2038bec: c8 17 bf d2 lduh [ %fp + -46 ], %g4 <== NOT EXECUTED
2038bf0: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2038bf4: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2038bf8: 99 30 e0 18 srl %g3, 0x18, %o4 <== NOT EXECUTED
2038bfc: 85 30 e0 08 srl %g3, 8, %g2 <== NOT EXECUTED
2038c00: 9b 31 20 18 srl %g4, 0x18, %o5 <== NOT EXECUTED
2038c04: 07 00 00 3f sethi %hi(0xfc00), %g3 <== NOT EXECUTED
2038c08: 83 31 20 08 srl %g4, 8, %g1 <== NOT EXECUTED
2038c0c: 86 10 e3 ff or %g3, 0x3ff, %g3 <== NOT EXECUTED
2038c10: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
2038c14: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
2038c18: 84 10 80 0c or %g2, %o4, %g2 <== NOT EXECUTED
2038c1c: 82 10 40 0d or %g1, %o5, %g1 <== NOT EXECUTED
2038c20: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2038c24: 82 90 80 01 orcc %g2, %g1, %g1 <== NOT EXECUTED
2038c28: 12 80 00 03 bne 2038c34 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1f4><== NOT EXECUTED
2038c2c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
2038c30: c2 04 60 38 ld [ %l1 + 0x38 ], %g1 <== NOT EXECUTED
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
2038c34: c2 22 60 1c st %g1, [ %o1 + 0x1c ] <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
2038c38: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2038c3c: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
2038c40: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
rc = fat_file_size(mt_entry, fat_fd);
2038c44: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
2038c48: c4 20 60 38 st %g2, [ %g1 + 0x38 ] <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
2038c4c: 05 00 08 00 sethi %hi(0x200000), %g2 <== NOT EXECUTED
if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)
fat_fd->cln = fs_info->fat.vol.rdir_cl;
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
fat_fd->fat_file_type = FAT_DIRECTORY;
2038c50: c6 20 60 10 st %g3, [ %g1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->map.file_cln = 0;
2038c54: c0 20 60 34 clr [ %g1 + 0x34 ] <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
else
fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
2038c58: c4 20 60 14 st %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
fat_fd->map.file_cln = 0;
fat_fd->map.disk_cln = fat_fd->cln;
rc = fat_file_size(mt_entry, fat_fd);
2038c5c: 7f ff b0 4c call 2024d8c <fat_file_size> <== NOT EXECUTED
2038c60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2038c64: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038c68: 12 80 00 17 bne 2038cc4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x284><== NOT EXECUTED
2038c6c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
fat_file_close(mt_entry, fat_fd);
return rc;
}
/* in this directory find slot with specified cluster num */
rc = msdos_find_node_by_cluster_num_in_fat_file(mt_entry, fat_fd, cl4find,
2038c70: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
2038c74: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
2038c78: 85 35 20 18 srl %l4, 0x18, %g2 <== NOT EXECUTED
2038c7c: 87 34 a0 18 srl %l2, 0x18, %g3 <== NOT EXECUTED
2038c80: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
2038c84: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
2038c88: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2038c8c: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
2038c90: a9 35 20 08 srl %l4, 8, %l4 <== NOT EXECUTED
2038c94: a5 34 a0 08 srl %l2, 8, %l2 <== NOT EXECUTED
2038c98: 94 0d 00 01 and %l4, %g1, %o2 <== NOT EXECUTED
2038c9c: a4 0c 80 01 and %l2, %g1, %l2 <== NOT EXECUTED
2038ca0: 94 12 80 02 or %o2, %g2, %o2 <== NOT EXECUTED
2038ca4: a4 14 80 03 or %l2, %g3, %l2 <== NOT EXECUTED
2038ca8: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
2038cac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038cb0: 7f ff fa a3 call 203773c <msdos_find_node_by_cluster_num_in_fat_file><== NOT EXECUTED
2038cb4: 94 12 80 12 or %o2, %l2, %o2 <== NOT EXECUTED
dir_pos, dir_entry);
if (rc != RC_OK)
2038cb8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2038cbc: 02 80 00 06 be 2038cd4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x294><== NOT EXECUTED
2038cc0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_file_close(mt_entry, fat_fd);
2038cc4: 7f ff b2 f2 call 202588c <fat_file_close> <== NOT EXECUTED
2038cc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
2038ccc: 81 c7 e0 08 ret <== NOT EXECUTED
2038cd0: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = fat_file_close(mt_entry, fat_fd);
2038cd4: 7f ff b2 ee call 202588c <fat_file_close> <== NOT EXECUTED
2038cd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038cdc: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
2038ce0: 81 c7 e0 08 ret <== NOT EXECUTED
2038ce4: 81 e8 00 00 restore <== NOT EXECUTED
02038ce8 <msdos_get_name_node>:
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
2038ce8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
fat_file_fd_t *fat_fd = parent_loc->node_access;
uint32_t dotdot_cln = 0;
/* find name in fat-file which corresponds to the directory */
rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,
2038cec: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2038cf0: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
2038cf4: e0 07 a0 5c ld [ %fp + 0x5c ], %l0 <== NOT EXECUTED
int rc = RC_OK;
fat_file_fd_t *fat_fd = parent_loc->node_access;
uint32_t dotdot_cln = 0;
/* find name in fat-file which corresponds to the directory */
rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,
2038cf8: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
2038cfc: e0 23 a0 60 st %l0, [ %sp + 0x60 ] <== NOT EXECUTED
2038d00: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
2038d04: 9a 10 00 1c mov %i4, %o5 <== NOT EXECUTED
2038d08: 94 0e 60 ff and %i1, 0xff, %o2 <== NOT EXECUTED
2038d0c: 7f ff fa ed call 20378c0 <msdos_find_name_in_fat_file> <== NOT EXECUTED
2038d10: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
int name_len,
msdos_name_type_t name_type,
fat_dir_pos_t *dir_pos,
char *name_dir_entry
)
{
2038d14: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
/* find name in fat-file which corresponds to the directory */
rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,
create_node, name, name_len, name_type,
dir_pos, name_dir_entry);
if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))
2038d18: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
2038d1c: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2038d20: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2038d24: 02 80 00 05 be 2038d38 <msdos_get_name_node+0x50> <== NOT EXECUTED
2038d28: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2038d2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038d30: 12 80 00 2f bne 2038dec <msdos_get_name_node+0x104> <== NOT EXECUTED
2038d34: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (!create_node)
2038d38: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2038d3c: 12 80 00 26 bne 2038dd4 <msdos_get_name_node+0xec> <== NOT EXECUTED
2038d40: 03 00 00 1f sethi %hi(0x7c00), %g1 <== NOT EXECUTED
{
/* if we search for valid name and name not found -> return */
if (rc == MSDOS_NAME_NOT_FOUND_ERR)
2038d44: 82 10 61 01 or %g1, 0x101, %g1 ! 7d01 <PROM_START+0x7d01> <== NOT EXECUTED
2038d48: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2038d4c: 02 80 00 22 be 2038dd4 <msdos_get_name_node+0xec> <== NOT EXECUTED
2038d50: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
* if we have deal with ".." - it is a special case :(((
*
* Really, we should return cluster num and offset not of ".." slot, but
* slot which correspondes to real directory name.
*/
if (rc == RC_OK)
2038d54: 12 80 00 20 bne 2038dd4 <msdos_get_name_node+0xec> <== NOT EXECUTED
2038d58: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
{
if (strncmp(name, "..", 2) == 0)
2038d5c: 13 00 81 a0 sethi %hi(0x2068000), %o1 <== NOT EXECUTED
2038d60: 94 10 20 02 mov 2, %o2 <== NOT EXECUTED
2038d64: 40 00 49 70 call 204b324 <strncmp> <== NOT EXECUTED
2038d68: 92 12 62 48 or %o1, 0x248, %o1 <== NOT EXECUTED
2038d6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038d70: 12 80 00 1f bne 2038dec <msdos_get_name_node+0x104> <== NOT EXECUTED
2038d74: 01 00 00 00 nop <== NOT EXECUTED
{
dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
2038d78: c4 14 20 14 lduh [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
2038d7c: c6 14 20 1a lduh [ %l0 + 0x1a ], %g3 <== NOT EXECUTED
2038d80: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2038d84: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2038d88: 9b 30 a0 18 srl %g2, 0x18, %o5 <== NOT EXECUTED
2038d8c: 83 30 a0 08 srl %g2, 8, %g1 <== NOT EXECUTED
2038d90: 89 30 e0 18 srl %g3, 0x18, %g4 <== NOT EXECUTED
2038d94: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
2038d98: b3 30 e0 08 srl %g3, 8, %i1 <== NOT EXECUTED
2038d9c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
2038da0: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2038da4: b2 0e 40 02 and %i1, %g2, %i1 <== NOT EXECUTED
2038da8: 82 10 40 0d or %g1, %o5, %g1 <== NOT EXECUTED
2038dac: b2 16 40 04 or %i1, %g4, %i1 <== NOT EXECUTED
2038db0: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
/* are we right under root dir ? */
if (dotdot_cln == 0)
2038db4: b2 90 40 19 orcc %g1, %i1, %i1 <== NOT EXECUTED
2038db8: 12 80 00 09 bne 2038ddc <msdos_get_name_node+0xf4> <== NOT EXECUTED
2038dbc: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
2038dc0: c0 27 60 04 clr [ %i5 + 4 ] <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2038dc4: c2 27 60 0c st %g1, [ %i5 + 0xc ] <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2038dc8: c2 27 60 08 st %g1, [ %i5 + 8 ] <== NOT EXECUTED
/*
* we can relax about first_char field - it never should be
* used for root dir
*/
fat_dir_pos_init(dir_pos);
dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
2038dcc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2038dd0: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
2038dd4: 81 c7 e0 08 ret <== NOT EXECUTED
2038dd8: 81 e8 00 00 restore <== NOT EXECUTED
}
else
{
rc =
msdos_get_dotdot_dir_info_cluster_num_and_offset(parent_loc->mt_entry,
2038ddc: f0 04 60 10 ld [ %l1 + 0x10 ], %i0 <== NOT EXECUTED
2038de0: b4 10 00 1d mov %i5, %i2 <== NOT EXECUTED
2038de4: 7f ff ff 17 call 2038a40 <msdos_get_dotdot_dir_info_cluster_num_and_offset><== NOT EXECUTED
2038de8: 97 e8 00 10 restore %g0, %l0, %o3 <== NOT EXECUTED
}
}
}
}
return rc;
}
2038dec: 81 c7 e0 08 ret <== NOT EXECUTED
2038df0: 81 e8 00 00 restore <== NOT EXECUTED
02038758 <msdos_get_token>:
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
2038758: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
msdos_token_types_t type = MSDOS_NAME;
int i = 0;
*ret_token = NULL;
203875c: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
*ret_token_len = 0;
2038760: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
msdos_token_types_t
msdos_get_token(const char *path,
int pathlen,
const char **ret_token,
int *ret_token_len)
{
2038764: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
int i = 0;
*ret_token = NULL;
*ret_token_len = 0;
if (pathlen == 0)
2038768: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203876c: a0 10 20 00 clr %l0 <== NOT EXECUTED
2038770: 12 80 00 0a bne 2038798 <msdos_get_token+0x40> <== NOT EXECUTED
2038774: b0 10 20 00 clr %i0 <== NOT EXECUTED
2038778: 30 80 00 34 b,a 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
{
if ( !msdos_is_valid_name_char(path[i]) )
203877c: 7f ff ff da call 20386e4 <msdos_is_valid_name_char> <== NOT EXECUTED
2038780: a0 04 20 01 inc %l0 <== NOT EXECUTED
2038784: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038788: 02 80 00 2f be 2038844 <msdos_get_token+0xec> <== NOT EXECUTED
203878c: 80 a4 21 04 cmp %l0, 0x104 <== NOT EXECUTED
return MSDOS_INVALID_TOKEN;
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
2038790: 02 80 00 2e be 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
2038794: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED
return MSDOS_NO_MORE_PATH;
/*
* Check for a separator.
*/
while (!msdos_is_separator(path[i]) && (i < pathlen))
2038798: 7f ff 45 4d call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
203879c: d0 4c 40 10 ldsb [ %l1 + %l0 ], %o0 <== NOT EXECUTED
20387a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20387a4: 12 80 00 04 bne 20387b4 <msdos_get_token+0x5c> <== NOT EXECUTED
20387a8: 80 a4 00 19 cmp %l0, %i1 <== NOT EXECUTED
20387ac: 26 bf ff f4 bl,a 203877c <msdos_get_token+0x24> <== NOT EXECUTED
20387b0: d0 4c 40 10 ldsb [ %l1 + %l0 ], %o0 <== NOT EXECUTED
++i;
if ( i == MSDOS_NAME_MAX_LFN_WITH_DOT )
return MSDOS_INVALID_TOKEN;
}
*ret_token = path;
20387b4: e2 26 80 00 st %l1, [ %i2 ] <== NOT EXECUTED
/*
* If it is just a separator then it is the current dir.
*/
if ( i == 0 )
20387b8: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
20387bc: 12 80 00 08 bne 20387dc <msdos_get_token+0x84> <== NOT EXECUTED
20387c0: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED
{
if ( (*path != '\0') && pathlen )
20387c4: c2 4c 40 00 ldsb [ %l1 ], %g1 <== NOT EXECUTED
20387c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20387cc: 02 80 00 04 be 20387dc <msdos_get_token+0x84> <== NOT EXECUTED
20387d0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20387d4: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
20387d8: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
/*
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == MSDOS_NAME )
20387dc: 80 a6 20 03 cmp %i0, 3 <== NOT EXECUTED
20387e0: 12 80 00 1a bne 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
20387e4: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
{
if ((i == 2) && ((*ret_token)[0] == '.') && ((*ret_token)[1] == '.'))
20387e8: 80 a4 20 02 cmp %l0, 2 <== NOT EXECUTED
20387ec: 12 80 00 0d bne 2038820 <msdos_get_token+0xc8> <== NOT EXECUTED
20387f0: 80 a4 20 01 cmp %l0, 1 <== NOT EXECUTED
20387f4: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
20387f8: c4 48 40 00 ldsb [ %g1 ], %g2 <== NOT EXECUTED
20387fc: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
2038800: 12 80 00 12 bne 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
2038804: 01 00 00 00 nop <== NOT EXECUTED
2038808: c2 48 60 01 ldsb [ %g1 + 1 ], %g1 <== NOT EXECUTED
203880c: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2038810: 12 80 00 0e bne 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
2038814: 01 00 00 00 nop <== NOT EXECUTED
2038818: 81 c7 e0 08 ret <== NOT EXECUTED
203881c: 91 e8 20 02 restore %g0, 2, %o0 <== NOT EXECUTED
{
type = MSDOS_UP_DIR;
return type;
}
if ((i == 1) && ((*ret_token)[0] == '.'))
2038820: 12 80 00 0a bne 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
2038824: 01 00 00 00 nop <== NOT EXECUTED
2038828: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
203882c: c2 48 40 00 ldsb [ %g1 ], %g1 <== NOT EXECUTED
2038830: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2038834: 12 80 00 05 bne 2038848 <msdos_get_token+0xf0> <== NOT EXECUTED
2038838: 01 00 00 00 nop <== NOT EXECUTED
203883c: 81 c7 e0 08 ret <== NOT EXECUTED
2038840: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
2038844: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED
return type;
}
}
return type;
}
2038848: 81 c7 e0 08 ret <== NOT EXECUTED
203884c: 81 e8 00 00 restore <== NOT EXECUTED
02020108 <msdos_initialize_support>:
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *file_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers
)
{
2020108: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
msdos_fs_info_t *fs_info = NULL;
fat_file_fd_t *fat_fd = NULL;
fat_dir_pos_t root_pos;
uint32_t cl_buf_size;
fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));
202010c: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = NULL;
fat_file_fd_t *fat_fd = NULL;
2020110: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
fat_dir_pos_t root_pos;
uint32_t cl_buf_size;
fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));
2020114: 92 10 20 a0 mov 0xa0, %o1 <== NOT EXECUTED
2020118: 7f ff 9e c3 call 2007c24 <calloc> <== NOT EXECUTED
202011c: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (!fs_info)
2020120: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020124: 02 80 00 41 be 2020228 <msdos_initialize_support+0x120> <== NOT EXECUTED
2020128: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
temp_mt_entry->fs_info = fs_info;
202012c: d0 24 60 34 st %o0, [ %l1 + 0x34 ] <== NOT EXECUTED
rc = fat_init_volume_info(temp_mt_entry);
2020130: 40 00 18 de call 20264a8 <fat_init_volume_info> <== NOT EXECUTED
2020134: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc != RC_OK)
2020138: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
202013c: 12 80 00 2b bne 20201e8 <msdos_initialize_support+0xe0> <== NOT EXECUTED
2020140: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
{
free(fs_info);
return rc;
}
fs_info->file_handlers = file_handlers;
2020144: f4 24 20 94 st %i2, [ %l0 + 0x94 ] <== NOT EXECUTED
fs_info->directory_handlers = directory_handlers;
2020148: f6 24 20 90 st %i3, [ %l0 + 0x90 ] <== NOT EXECUTED
fat_dir_pos_init(
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
202014c: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;
2020150: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
fat_dir_pos_t *dir_pos
)
{
dir_pos->sname.cln = 0;
dir_pos->sname.ofs = 0;
dir_pos->lname.cln = FAT_FILE_SHORT_NAME;
2020154: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
/*
* open fat-file which correspondes to root directory
* (so inode number 0x00000010 is always used for root directory)
*/
fat_dir_pos_init(&root_pos);
root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
2020158: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
202015c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* open fat-file which correspondes to root directory
* (so inode number 0x00000010 is always used for root directory)
*/
fat_dir_pos_init(&root_pos);
root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;
2020160: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED
rc = fat_file_open(temp_mt_entry, &root_pos, &fat_fd);
2020164: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
2020168: 40 00 15 f8 call 2025948 <fat_file_open> <== NOT EXECUTED
202016c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (rc != RC_OK)
2020170: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2020174: 12 80 00 1b bne 20201e0 <msdos_initialize_support+0xd8> <== NOT EXECUTED
2020178: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
}
/* again: unfortunately "fat-file" is just almost fat file :( */
fat_fd->fat_file_type = FAT_DIRECTORY;
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
202017c: 03 00 08 00 sethi %hi(0x200000), %g1 <== NOT EXECUTED
2020180: c2 22 60 14 st %g1, [ %o1 + 0x14 ] <== NOT EXECUTED
fat_fd->cln = fs_info->fat.vol.rdir_cl;
2020184: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
free(fs_info);
return rc;
}
/* again: unfortunately "fat-file" is just almost fat file :( */
fat_fd->fat_file_type = FAT_DIRECTORY;
2020188: e4 22 60 10 st %l2, [ %o1 + 0x10 ] <== NOT EXECUTED
fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;
fat_fd->cln = fs_info->fat.vol.rdir_cl;
202018c: c2 22 60 1c st %g1, [ %o1 + 0x1c ] <== NOT EXECUTED
fat_fd->map.file_cln = 0;
2020190: c0 22 60 34 clr [ %o1 + 0x34 ] <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
/* if we have FAT12/16 */
if ( fat_fd->cln == 0 )
2020194: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020198: 12 80 00 0a bne 20201c0 <msdos_initialize_support+0xb8> <== NOT EXECUTED
202019c: c2 22 60 38 st %g1, [ %o1 + 0x38 ] <== NOT EXECUTED
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
20201a0: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
20201a4: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
fat_fd->map.disk_cln = fat_fd->cln;
/* if we have FAT12/16 */
if ( fat_fd->cln == 0 )
{
fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;
20201a8: c2 22 60 18 st %g1, [ %o1 + 0x18 ] <== NOT EXECUTED
cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
20201ac: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
20201b0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
20201b4: 2a 80 00 11 bcs,a 20201f8 <msdos_initialize_support+0xf0><== NOT EXECUTED
20201b8: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
20201bc: 30 80 00 0f b,a 20201f8 <msdos_initialize_support+0xf0> <== NOT EXECUTED
fs_info->fat.vol.bpc :
fs_info->fat.vol.rdir_size;
}
else
{
rc = fat_file_size(temp_mt_entry, fat_fd);
20201c0: 40 00 12 f3 call 2024d8c <fat_file_size> <== NOT EXECUTED
20201c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if ( rc != RC_OK )
20201c8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20201cc: 22 80 00 0b be,a 20201f8 <msdos_initialize_support+0xf0> <== NOT EXECUTED
20201d0: d0 14 20 06 lduh [ %l0 + 6 ], %o0 <== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
20201d4: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20201d8: 40 00 15 ad call 202588c <fat_file_close> <== NOT EXECUTED
20201dc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
20201e0: 40 00 18 05 call 20261f4 <fat_shutdown_drive> <== NOT EXECUTED
20201e4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
20201e8: 7f ff a0 1e call 2008260 <free> <== NOT EXECUTED
20201ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
20201f0: 81 c7 e0 08 ret <== NOT EXECUTED
20201f4: 81 e8 00 00 restore <== NOT EXECUTED
}
cl_buf_size = fs_info->fat.vol.bpc;
}
fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));
20201f8: 7f ff 9e 8b call 2007c24 <calloc> <== NOT EXECUTED
20201fc: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
if (fs_info->cl_buf == NULL)
2020200: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020204: 12 80 00 0d bne 2020238 <msdos_initialize_support+0x130> <== NOT EXECUTED
2020208: d0 24 20 9c st %o0, [ %l0 + 0x9c ] <== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
202020c: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
2020210: 40 00 15 9f call 202588c <fat_file_close> <== NOT EXECUTED
2020214: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
2020218: 40 00 17 f7 call 20261f4 <fat_shutdown_drive> <== NOT EXECUTED
202021c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info);
2020220: 7f ff a0 10 call 2008260 <free> <== NOT EXECUTED
2020224: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
2020228: 40 00 90 1b call 2044294 <__errno> <== NOT EXECUTED
202022c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2020230: 10 80 00 17 b 202028c <msdos_initialize_support+0x184> <== NOT EXECUTED
2020234: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
}
sc = rtems_semaphore_create(3,
2020238: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
202023c: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
2020240: 94 10 20 10 mov 0x10, %o2 <== NOT EXECUTED
2020244: 96 10 20 00 clr %o3 <== NOT EXECUTED
2020248: 7f ff b1 6f call 200c804 <rtems_semaphore_create> <== NOT EXECUTED
202024c: 98 04 20 98 add %l0, 0x98, %o4 <== NOT EXECUTED
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,
0,
&fs_info->vol_sema);
if (sc != RTEMS_SUCCESSFUL)
2020250: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020254: 02 80 00 11 be 2020298 <msdos_initialize_support+0x190> <== NOT EXECUTED
2020258: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
fat_file_close(temp_mt_entry, fat_fd);
202025c: 40 00 15 8c call 202588c <fat_file_close> <== NOT EXECUTED
2020260: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
fat_shutdown_drive(temp_mt_entry);
2020264: 40 00 17 e4 call 20261f4 <fat_shutdown_drive> <== NOT EXECUTED
2020268: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free(fs_info->cl_buf);
202026c: d0 04 20 9c ld [ %l0 + 0x9c ], %o0 <== NOT EXECUTED
2020270: 7f ff 9f fc call 2008260 <free> <== NOT EXECUTED
2020274: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
free(fs_info);
2020278: 7f ff 9f fa call 2008260 <free> <== NOT EXECUTED
202027c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EIO );
2020280: 40 00 90 05 call 2044294 <__errno> <== NOT EXECUTED
2020284: 01 00 00 00 nop <== NOT EXECUTED
2020288: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
202028c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2020290: 81 c7 e0 08 ret <== NOT EXECUTED
2020294: 81 e8 00 00 restore <== NOT EXECUTED
}
temp_mt_entry->mt_fs_root.node_access = fat_fd;
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
temp_mt_entry->mt_fs_root.ops = op_table;
2020298: f2 24 60 28 st %i1, [ %l1 + 0x28 ] <== NOT EXECUTED
free(fs_info->cl_buf);
free(fs_info);
rtems_set_errno_and_return_minus_one( EIO );
}
temp_mt_entry->mt_fs_root.node_access = fat_fd;
202029c: d2 24 60 1c st %o1, [ %l1 + 0x1c ] <== NOT EXECUTED
temp_mt_entry->mt_fs_root.handlers = directory_handlers;
20202a0: f6 24 60 24 st %i3, [ %l1 + 0x24 ] <== NOT EXECUTED
temp_mt_entry->mt_fs_root.ops = op_table;
return rc;
}
20202a4: 81 c7 e0 08 ret <== NOT EXECUTED
20202a8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
020386e4 <msdos_is_valid_name_char>:
* MSDOS_NAME_LONG - Valid in a long name only.
*
*/
static msdos_name_type_t
msdos_is_valid_name_char(const char ch)
{
20386e4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (strchr(" +,;=[]", ch) != NULL)
20386e8: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
20386ec: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20386f0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
20386f4: 90 12 22 20 or %o0, 0x220, %o0 <== NOT EXECUTED
20386f8: 40 00 48 2f call 204a7b4 <strchr> <== NOT EXECUTED
20386fc: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
2038700: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038704: 12 80 00 10 bne 2038744 <msdos_is_valid_name_char+0x60> <== NOT EXECUTED
2038708: 80 a4 20 2e cmp %l0, 0x2e <== NOT EXECUTED
return MSDOS_NAME_LONG;
if ((ch == '.') || isalnum((unsigned char)ch) ||
203870c: 02 80 00 10 be 203874c <msdos_is_valid_name_char+0x68> <== NOT EXECUTED
2038710: 03 00 81 ad sethi %hi(0x206b400), %g1 <== NOT EXECUTED
2038714: c2 00 61 3c ld [ %g1 + 0x13c ], %g1 ! 206b53c <__ctype_ptr__><== NOT EXECUTED
2038718: a2 0c 20 ff and %l0, 0xff, %l1 <== NOT EXECUTED
203871c: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
2038720: c2 0c 60 01 ldub [ %l1 + 1 ], %g1 <== NOT EXECUTED
2038724: 80 88 60 07 btst 7, %g1 <== NOT EXECUTED
2038728: 12 80 00 09 bne 203874c <msdos_is_valid_name_char+0x68> <== NOT EXECUTED
203872c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
(strchr("$%'-_@~`!(){}^#&", ch) != NULL))
2038730: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
2038734: 40 00 48 20 call 204a7b4 <strchr> <== NOT EXECUTED
2038738: 90 12 22 28 or %o0, 0x228, %o0 ! 2068228 <msdos_file_handlers+0xd8><== NOT EXECUTED
203873c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2038740: b0 40 20 00 addx %g0, 0, %i0 <== NOT EXECUTED
2038744: 81 c7 e0 08 ret <== NOT EXECUTED
2038748: 81 e8 00 00 restore <== NOT EXECUTED
203874c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return MSDOS_NAME_SHORT;
return MSDOS_NAME_INVALID;
}
2038750: 81 c7 e0 08 ret <== NOT EXECUTED
2038754: 81 e8 00 00 restore <== NOT EXECUTED
02038850 <msdos_long_to_short>:
*
*/
#define MSDOS_L2S_PRINT 0
msdos_name_type_t
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
{
2038850: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int i;
/*
* Fill with spaces. This is how a short directory entry is padded.
*/
memset (sfn, ' ', sfn_len);
2038854: 92 10 20 20 mov 0x20, %o1 <== NOT EXECUTED
2038858: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203885c: 40 00 3c 6d call 2047a10 <memset> <== NOT EXECUTED
2038860: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
/*
* Handle '.' and '..' specially.
*/
if ((lfn[0] == '.') && (lfn_len == 1))
2038864: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
2038868: 82 18 60 2e xor %g1, 0x2e, %g1 <== NOT EXECUTED
203886c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2038870: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
2038874: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2038878: 12 80 00 07 bne 2038894 <msdos_long_to_short+0x44> <== NOT EXECUTED
203887c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2038880: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038884: 02 80 00 05 be 2038898 <msdos_long_to_short+0x48> <== NOT EXECUTED
2038888: 82 10 20 2e mov 0x2e, %g1 <== NOT EXECUTED
{
sfn[0] = '.';
203888c: 10 80 00 0e b 20388c4 <msdos_long_to_short+0x74> <== NOT EXECUTED
2038890: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
printf ("MSDOS_L2S: SHORT[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
}
if ((lfn[0] == '.') && (lfn[1] == '.') && (lfn_len == 2))
2038894: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038898: 02 80 00 15 be 20388ec <msdos_long_to_short+0x9c> <== NOT EXECUTED
203889c: 82 10 20 00 clr %g1 <== NOT EXECUTED
20388a0: c2 4c 20 01 ldsb [ %l0 + 1 ], %g1 <== NOT EXECUTED
20388a4: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20388a8: 32 80 00 11 bne,a 20388ec <msdos_long_to_short+0x9c> <== NOT EXECUTED
20388ac: 82 10 20 00 clr %g1 <== NOT EXECUTED
20388b0: 80 a6 60 02 cmp %i1, 2 <== NOT EXECUTED
20388b4: 32 80 00 0e bne,a 20388ec <msdos_long_to_short+0x9c> <== NOT EXECUTED
20388b8: 82 10 20 00 clr %g1 <== NOT EXECUTED
{
sfn[0] = sfn[1] = '.';
20388bc: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
20388c0: c2 2e a0 01 stb %g1, [ %i2 + 1 ] <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_SHORT;
20388c4: 81 c7 e0 08 ret <== NOT EXECUTED
20388c8: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
if ((lfn[i] != ' ') && (lfn[i] != '.'))
20388cc: 80 a0 a0 2e cmp %g2, 0x2e <== NOT EXECUTED
20388d0: 02 80 00 07 be 20388ec <msdos_long_to_short+0x9c> <== NOT EXECUTED
20388d4: 82 00 60 01 inc %g1 <== NOT EXECUTED
20388d8: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
20388dc: 02 80 00 05 be 20388f0 <msdos_long_to_short+0xa0> <== NOT EXECUTED
20388e0: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
else if ((*name >= 'A') && (*name <= 'Z'))
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
lowercase = true;
count++;
20388e4: 10 80 00 38 b 20389c4 <msdos_long_to_short+0x174> <== NOT EXECUTED
20388e8: a6 10 3f ff mov -1, %l3 <== NOT EXECUTED
}
/*
* Filenames with only blanks and dots are not allowed!
*/
for (i = 0; i < lfn_len; i++)
20388ec: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
20388f0: 26 bf ff f7 bl,a 20388cc <msdos_long_to_short+0x7c> <== NOT EXECUTED
20388f4: c4 4c 00 01 ldsb [ %l0 + %g1 ], %g2 <== NOT EXECUTED
if ((lfn[i] != ' ') && (lfn[i] != '.'))
break;
if (i == lfn_len)
20388f8: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
20388fc: 12 80 00 31 bne 20389c0 <msdos_long_to_short+0x170> <== NOT EXECUTED
2038900: b0 10 20 00 clr %i0 <== NOT EXECUTED
2038904: 30 80 00 4b b,a 2038a30 <msdos_long_to_short+0x1e0> <== NOT EXECUTED
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
msdos_name_type_t type = msdos_is_valid_name_char(*name);
2038908: 7f ff ff 77 call 20386e4 <msdos_is_valid_name_char> <== NOT EXECUTED
203890c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
#if MSDOS_NAME_TYPE_PRINT
printf ("MSDOS_NAME_TYPE: c:%02x type:%d\n", *name, type);
#endif
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
2038910: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
2038914: 02 80 00 3f be 2038a10 <msdos_long_to_short+0x1c0> <== NOT EXECUTED
2038918: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
203891c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038920: 02 80 00 3c be 2038a10 <msdos_long_to_short+0x1c0> <== NOT EXECUTED
2038924: a8 1d 20 2e xor %l4, 0x2e, %l4 <== NOT EXECUTED
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
{
bool is_dot = *name == '.';
2038928: 80 a0 00 14 cmp %g0, %l4 <== NOT EXECUTED
203892c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
#endif
if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
return type;
if (dot_at >= 0)
2038930: 80 a4 ff ff cmp %l3, -1 <== NOT EXECUTED
2038934: 02 80 00 09 be 2038958 <msdos_long_to_short+0x108> <== NOT EXECUTED
2038938: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
{
if (is_dot || ((count - dot_at) > 3))
203893c: 12 80 00 3f bne 2038a38 <msdos_long_to_short+0x1e8> <== NOT EXECUTED
2038940: 82 24 80 13 sub %l2, %l3, %g1 <== NOT EXECUTED
2038944: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
2038948: 04 80 00 10 ble 2038988 <msdos_long_to_short+0x138> <== NOT EXECUTED
203894c: 82 05 7f bf add %l5, -65, %g1 <== NOT EXECUTED
msdos_filename_unix2dos (lfn, lfn_len, sfn);
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
2038950: 10 80 00 33 b 2038a1c <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2038954: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
return MSDOS_NAME_LONG;
}
}
else
{
if (count == 8 && !is_dot)
2038958: 80 a4 a0 08 cmp %l2, 8 <== NOT EXECUTED
203895c: 12 80 00 07 bne 2038978 <msdos_long_to_short+0x128> <== NOT EXECUTED
2038960: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
2038964: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038968: 32 80 00 14 bne,a 20389b8 <msdos_long_to_short+0x168> <== NOT EXECUTED
203896c: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
msdos_filename_unix2dos (lfn, lfn_len, sfn);
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
2038970: 10 80 00 2b b 2038a1c <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2038974: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
#endif
return MSDOS_NAME_LONG;
}
}
if (is_dot)
2038978: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203897c: 32 80 00 0f bne,a 20389b8 <msdos_long_to_short+0x168> <== NOT EXECUTED
2038980: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
dot_at = count;
else if ((*name >= 'A') && (*name <= 'Z'))
2038984: 82 05 7f bf add %l5, -65, %g1 <== NOT EXECUTED
2038988: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203898c: 80 a0 60 19 cmp %g1, 0x19 <== NOT EXECUTED
2038990: 18 80 00 04 bgu 20389a0 <msdos_long_to_short+0x150> <== NOT EXECUTED
2038994: aa 05 7f 9f add %l5, -97, %l5 <== NOT EXECUTED
2038998: 10 80 00 08 b 20389b8 <msdos_long_to_short+0x168> <== NOT EXECUTED
203899c: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
uppercase = true;
else if ((*name >= 'a') && (*name <= 'z'))
20389a0: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
20389a4: 80 a5 60 19 cmp %l5, 0x19 <== NOT EXECUTED
20389a8: 28 80 00 04 bleu,a 20389b8 <msdos_long_to_short+0x168> <== NOT EXECUTED
20389ac: ae 10 20 01 mov 1, %l7 <== NOT EXECUTED
lowercase = true;
count++;
20389b0: 10 80 00 08 b 20389d0 <msdos_long_to_short+0x180> <== NOT EXECUTED
20389b4: a4 04 a0 01 inc %l2 <== NOT EXECUTED
20389b8: 10 80 00 06 b 20389d0 <msdos_long_to_short+0x180> <== NOT EXECUTED
20389bc: a4 04 a0 01 inc %l2 <== NOT EXECUTED
20389c0: a6 10 3f ff mov -1, %l3 <== NOT EXECUTED
20389c4: ac 10 20 00 clr %l6 <== NOT EXECUTED
20389c8: ae 10 20 00 clr %l7 <== NOT EXECUTED
20389cc: a4 10 20 00 clr %l2 <== NOT EXECUTED
bool lowercase = false;
bool uppercase = false;
int dot_at = -1;
int count = 0;
while (*name && (count < name_len))
20389d0: 80 a4 80 19 cmp %l2, %i1 <== NOT EXECUTED
20389d4: 16 80 00 07 bge 20389f0 <msdos_long_to_short+0x1a0> <== NOT EXECUTED
20389d8: ea 0c 00 12 ldub [ %l0 + %l2 ], %l5 <== NOT EXECUTED
20389dc: a9 2d 60 18 sll %l5, 0x18, %l4 <== NOT EXECUTED
20389e0: a9 3d 20 18 sra %l4, 0x18, %l4 <== NOT EXECUTED
20389e4: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
20389e8: 12 bf ff c8 bne 2038908 <msdos_long_to_short+0xb8> <== NOT EXECUTED
20389ec: 01 00 00 00 nop <== NOT EXECUTED
count++;
name++;
}
if (lowercase && uppercase)
20389f0: 80 8d e0 ff btst 0xff, %l7 <== NOT EXECUTED
20389f4: 02 80 00 0a be 2038a1c <msdos_long_to_short+0x1cc> <== NOT EXECUTED
20389f8: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
20389fc: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
2038a00: 32 80 00 07 bne,a 2038a1c <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2038a04: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
printf ("MSDOS_L2S: INVALID[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_INVALID;
}
msdos_filename_unix2dos (lfn, lfn_len, sfn);
2038a08: 10 80 00 06 b 2038a20 <msdos_long_to_short+0x1d0> <== NOT EXECUTED
2038a0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
* Is this a short name ?
*/
type = msdos_name_type (lfn, lfn_len);
if (type == MSDOS_NAME_INVALID)
2038a10: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2038a14: 02 80 00 07 be 2038a30 <msdos_long_to_short+0x1e0> <== NOT EXECUTED
2038a18: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED
printf ("MSDOS_L2S: INVALID[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif
return MSDOS_NAME_INVALID;
}
msdos_filename_unix2dos (lfn, lfn_len, sfn);
2038a1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2038a20: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2038a24: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2038a28: 40 00 27 c6 call 2042940 <msdos_filename_unix2dos> <== NOT EXECUTED
2038a2c: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
}
2038a30: 81 c7 e0 08 ret <== NOT EXECUTED
2038a34: 81 e8 00 00 restore <== NOT EXECUTED
msdos_filename_unix2dos (lfn, lfn_len, sfn);
#if MSDOS_L2S_PRINT
printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif
return type;
2038a38: 10 bf ff f9 b 2038a1c <msdos_long_to_short+0x1cc> <== NOT EXECUTED
2038a3c: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
020202ac <msdos_mknod>:
const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
20202ac: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
20202b0: c2 07 20 10 ld [ %i4 + 0x10 ], %g1 <== NOT EXECUTED
msdos_token_types_t type = 0;
/*
* Figure out what type of msdos node this is.
*/
if (S_ISDIR(mode))
20202b4: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
rtems_filesystem_location_info_t *pathloc
)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
20202b8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
msdos_token_types_t type = 0;
/*
* Figure out what type of msdos node this is.
*/
if (S_ISDIR(mode))
20202bc: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20202c0: 82 0e 40 01 and %i1, %g1, %g1 <== NOT EXECUTED
20202c4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20202c8: 02 80 00 09 be 20202ec <msdos_mknod+0x40> <== NOT EXECUTED
20202cc: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
{
type = MSDOS_DIRECTORY;
}
else if (S_ISREG(mode))
20202d0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20202d4: 02 80 00 07 be 20202f0 <msdos_mknod+0x44> <== NOT EXECUTED
20202d8: a2 10 20 05 mov 5, %l1 <== NOT EXECUTED
{
type = MSDOS_REGULAR_FILE;
}
else
rtems_set_errno_and_return_minus_one(EINVAL);
20202dc: 40 00 8f ee call 2044294 <__errno> <== NOT EXECUTED
20202e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20202e4: 10 80 00 0d b 2020318 <msdos_mknod+0x6c> <== NOT EXECUTED
20202e8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
20202ec: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20202f0: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
20202f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20202f8: 7f ff b1 fe call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20202fc: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2020300: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020304: 02 80 00 08 be 2020324 <msdos_mknod+0x78> <== NOT EXECUTED
2020308: 01 00 00 00 nop <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
202030c: 40 00 8f e2 call 2044294 <__errno> <== NOT EXECUTED
2020310: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2020314: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
2020318: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202031c: 81 c7 e0 08 ret <== NOT EXECUTED
2020320: 81 e8 00 00 restore <== NOT EXECUTED
/* Create an MSDOS node */
rc = msdos_creat_node(pathloc, type, name, strlen(name), mode, NULL);
2020324: 40 00 ab 98 call 204b184 <strlen> <== NOT EXECUTED
2020328: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202032c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2020330: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2020334: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2020338: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
202033c: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2020340: 40 00 58 e2 call 20366c8 <msdos_creat_node> <== NOT EXECUTED
2020344: 9a 10 20 00 clr %o5 <== NOT EXECUTED
2020348: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release(fs_info->vol_sema);
202034c: 7f ff b2 30 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020350: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
2020354: 81 c7 e0 08 ret <== NOT EXECUTED
2020358: 81 e8 00 00 restore <== NOT EXECUTED
0202035c <msdos_node_type>:
* node type
*
*/
rtems_filesystem_node_types_t
msdos_node_type(rtems_filesystem_location_info_t *pathloc)
{
202035c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
* call
*/
fat_fd = pathloc->node_access;
return fat_fd->fat_file_type;
}
2020360: 81 c3 e0 08 retl <== NOT EXECUTED
2020364: d0 00 60 10 ld [ %g1 + 0x10 ], %o0 <== NOT EXECUTED
02020368 <msdos_rename>:
int
msdos_rename(rtems_filesystem_location_info_t *old_parent_loc,
rtems_filesystem_location_info_t *old_loc,
rtems_filesystem_location_info_t *new_parent_loc,
const char *new_name)
{
2020368: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = new_parent_loc->mt_entry->fs_info;
202036c: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1 <== NOT EXECUTED
int len;
/*
* check spelling and format new node name
*/
if (MSDOS_NAME != msdos_get_token(new_name, strlen(new_name), &token, &len)) {
2020370: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2020374: 40 00 ab 84 call 204b184 <strlen> <== NOT EXECUTED
2020378: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
202037c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
2020380: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
const char *new_name)
{
int rc = RC_OK;
rtems_status_code sc = RTEMS_SUCCESSFUL;
msdos_fs_info_t *fs_info = new_parent_loc->mt_entry->fs_info;
fat_file_fd_t *old_fat_fd = old_loc->node_access;
2020384: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
int len;
/*
* check spelling and format new node name
*/
if (MSDOS_NAME != msdos_get_token(new_name, strlen(new_name), &token, &len)) {
2020388: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
202038c: 40 00 60 f3 call 2038758 <msdos_get_token> <== NOT EXECUTED
2020390: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
2020394: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2020398: 22 80 00 06 be,a 20203b0 <msdos_rename+0x48> <== NOT EXECUTED
202039c: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENAMETOOLONG);
20203a0: 40 00 8f bd call 2044294 <__errno> <== NOT EXECUTED
20203a4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20203a8: 10 80 00 0b b 20203d4 <msdos_rename+0x6c> <== NOT EXECUTED
20203ac: 82 10 20 5b mov 0x5b, %g1 <== NOT EXECUTED
}
/*
* lock volume
*/
sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,
20203b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20203b4: 7f ff b1 cf call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20203b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
MSDOS_VOLUME_SEMAPHORE_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
20203bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20203c0: 02 80 00 08 be 20203e0 <msdos_rename+0x78> <== NOT EXECUTED
20203c4: d6 07 bf f8 ld [ %fp + -8 ], %o3 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(EIO);
20203c8: 40 00 8f b3 call 2044294 <__errno> <== NOT EXECUTED
20203cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20203d0: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
20203d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20203d8: 81 c7 e0 08 ret <== NOT EXECUTED
20203dc: 81 e8 00 00 restore <== NOT EXECUTED
/*
* create new directory entry as "hard link", copying relevant info from
* existing file
*/
rc = msdos_creat_node(new_parent_loc,
20203e0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
20203e4: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
20203e8: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20203ec: 19 00 00 20 sethi %hi(0x8000), %o4 <== NOT EXECUTED
20203f0: 40 00 58 b6 call 20366c8 <msdos_creat_node> <== NOT EXECUTED
20203f4: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
MSDOS_HARD_LINK,new_name,len,S_IFREG,
old_fat_fd);
if (rc != RC_OK)
20203f8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20203fc: 22 80 00 06 be,a 2020414 <msdos_rename+0xac> <== NOT EXECUTED
2020400: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
{
rtems_semaphore_release(fs_info->vol_sema);
2020404: 7f ff b2 02 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020408: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
202040c: 81 c7 e0 08 ret <== NOT EXECUTED
2020410: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* mark file removed
*/
rc = msdos_set_first_char4file_name(old_loc->mt_entry,
2020414: 92 04 60 20 add %l1, 0x20, %o1 <== NOT EXECUTED
2020418: 40 00 60 1f call 2038494 <msdos_set_first_char4file_name> <== NOT EXECUTED
202041c: 94 10 20 e5 mov 0xe5, %o2 <== NOT EXECUTED
2020420: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
&old_fat_fd->dir_pos,
MSDOS_THIS_DIR_ENTRY_EMPTY);
rtems_semaphore_release(fs_info->vol_sema);
2020424: 7f ff b1 fa call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020428: d0 04 20 98 ld [ %l0 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
202042c: 81 c7 e0 08 ret <== NOT EXECUTED
2020430: 81 e8 00 00 restore <== NOT EXECUTED
020385f0 <msdos_set_dir_wrt_time_and_date>:
int
msdos_set_dir_wrt_time_and_date(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
20385f0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uint16_t time_val;
uint16_t date;
uint32_t sec = 0;
uint32_t byte = 0;
msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);
20385f4: d0 06 60 40 ld [ %i1 + 0x40 ], %o0 <== NOT EXECUTED
20385f8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
ssize_t ret1 = 0, ret2 = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
20385fc: e4 06 20 34 ld [ %i0 + 0x34 ], %l2 <== NOT EXECUTED
uint16_t time_val;
uint16_t date;
uint32_t sec = 0;
uint32_t byte = 0;
msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);
2038600: 40 00 28 33 call 20426cc <msdos_date_unix2dos> <== NOT EXECUTED
2038604: 94 07 bf fe add %fp, -2, %o2 <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
2038608: c4 06 60 20 ld [ %i1 + 0x20 ], %g2 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
203860c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2038610: 12 80 00 08 bne 2038630 <msdos_set_dir_wrt_time_and_date+0x40><== NOT EXECUTED
2038614: c2 06 20 34 ld [ %i0 + 0x34 ], %g1 <== NOT EXECUTED
2038618: c6 08 60 0a ldub [ %g1 + 0xa ], %g3 <== NOT EXECUTED
203861c: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2038620: 22 80 00 05 be,a 2038634 <msdos_set_dir_wrt_time_and_date+0x44><== NOT EXECUTED
2038624: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2038628: 10 80 00 07 b 2038644 <msdos_set_dir_wrt_time_and_date+0x54><== NOT EXECUTED
203862c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2038630: c6 00 60 30 ld [ %g1 + 0x30 ], %g3 <== NOT EXECUTED
2038634: c8 08 60 05 ldub [ %g1 + 5 ], %g4 <== NOT EXECUTED
2038638: 82 00 bf fe add %g2, -2, %g1 <== NOT EXECUTED
203863c: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
2038640: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
2038644: c4 06 60 24 ld [ %i1 + 0x24 ], %g2 <== NOT EXECUTED
2038648: e2 0c a0 02 ldub [ %l2 + 2 ], %l1 <== NOT EXECUTED
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
203864c: e0 14 80 00 lduh [ %l2 ], %l0 <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
2038650: a3 30 80 11 srl %g2, %l1, %l1 <== NOT EXECUTED
2038654: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
time_val = CT_LE_W(time_val);
2038658: c2 17 bf fe lduh [ %fp + -2 ], %g1 <== NOT EXECUTED
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
203865c: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED
time_val = CT_LE_W(time_val);
2038660: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
2038664: a0 0c 00 02 and %l0, %g2, %l0 <== NOT EXECUTED
time_val = CT_LE_W(time_val);
2038668: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
203866c: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2038670: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
2038674: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
time_val = CT_LE_W(time_val);
2038678: c2 37 bf fe sth %g1, [ %fp + -2 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
203867c: 94 04 20 16 add %l0, 0x16, %o2 <== NOT EXECUTED
2038680: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
2038684: 98 07 bf fe add %fp, -2, %o4 <== NOT EXECUTED
2038688: 7f ff b6 80 call 2026088 <_fat_block_write> <== NOT EXECUTED
203868c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
2038690: c2 17 bf fc lduh [ %fp + -4 ], %g1 <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
time_val = CT_LE_W(time_val);
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
2038694: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
2, (char *)(&time_val));
date = CT_LE_W(date);
2038698: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203869c: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
20386a0: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
20386a4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
20386a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20386ac: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20386b0: 94 04 20 18 add %l0, 0x18, %o2 <== NOT EXECUTED
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
time_val = CT_LE_W(time_val);
ret1 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WTIME_OFFSET,
2, (char *)(&time_val));
date = CT_LE_W(date);
20386b4: c2 37 bf fc sth %g1, [ %fp + -4 ] <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_WDATE_OFFSET,
20386b8: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
20386bc: 7f ff b6 73 call 2026088 <_fat_block_write> <== NOT EXECUTED
20386c0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
2, (char *)(&date));
if ( (ret1 < 0) || (ret2 < 0) )
20386c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20386c8: 06 80 00 04 bl 20386d8 <msdos_set_dir_wrt_time_and_date+0xe8><== NOT EXECUTED
20386cc: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
20386d0: 16 80 00 03 bge 20386dc <msdos_set_dir_wrt_time_and_date+0xec><== NOT EXECUTED
20386d4: b0 10 20 00 clr %i0 <== NOT EXECUTED
20386d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
20386dc: 81 c7 e0 08 ret <== NOT EXECUTED
20386e0: 81 e8 00 00 restore <== NOT EXECUTED
02038300 <msdos_set_file_size>:
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2038300: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t le_new_length = 0;
uint32_t sec = 0;
uint32_t byte = 0;
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
2038304: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
int
msdos_set_file_size(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
2038308: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
203830c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2038310: 12 80 00 08 bne 2038330 <msdos_set_file_size+0x30> <== NOT EXECUTED
2038314: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
2038318: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
203831c: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
2038320: 22 80 00 05 be,a 2038334 <msdos_set_file_size+0x34> <== NOT EXECUTED
2038324: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2038328: 10 80 00 07 b 2038344 <msdos_set_file_size+0x44> <== NOT EXECUTED
203832c: c6 00 a0 1c ld [ %g2 + 0x1c ], %g3 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2038330: c6 08 a0 05 ldub [ %g2 + 5 ], %g3 <== NOT EXECUTED
2038334: c8 00 a0 30 ld [ %g2 + 0x30 ], %g4 <== NOT EXECUTED
2038338: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
203833c: 87 28 40 03 sll %g1, %g3, %g3 <== NOT EXECUTED
2038340: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
le_new_length = CT_LE_L((fat_fd->fat_file_size));
2038344: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
uint32_t le_new_length = 0;
uint32_t sec = 0;
uint32_t byte = 0;
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
2038348: c8 06 60 24 ld [ %i1 + 0x24 ], %g4 <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
203834c: d4 10 80 00 lduh [ %g2 ], %o2 <== NOT EXECUTED
uint32_t le_new_length = 0;
uint32_t sec = 0;
uint32_t byte = 0;
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
2038350: c4 08 a0 02 ldub [ %g2 + 2 ], %g2 <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
2038354: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2038358: 94 0a 80 04 and %o2, %g4, %o2 <== NOT EXECUTED
uint32_t le_new_length = 0;
uint32_t sec = 0;
uint32_t byte = 0;
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
203835c: 89 31 00 02 srl %g4, %g2, %g4 <== NOT EXECUTED
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
le_new_length = CT_LE_L((fat_fd->fat_file_size));
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
2038360: 92 00 c0 04 add %g3, %g4, %o1 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
le_new_length = CT_LE_L((fat_fd->fat_file_size));
2038364: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
2038368: 85 30 60 10 srl %g1, 0x10, %g2 <== NOT EXECUTED
203836c: 89 28 60 18 sll %g1, 0x18, %g4 <== NOT EXECUTED
2038370: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2038374: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
2038378: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203837c: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2038380: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2038384: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2038388: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
203838c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
2038390: 94 02 a0 1c add %o2, 0x1c, %o2 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
le_new_length = CT_LE_L((fat_fd->fat_file_size));
2038394: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
2038398: 96 10 20 04 mov 4, %o3 <== NOT EXECUTED
203839c: 7f ff b7 3b call 2026088 <_fat_block_write> <== NOT EXECUTED
20383a0: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
(char *)(&le_new_length));
if ( ret < 0 )
return -1;
return RC_OK;
}
20383a4: b1 3a 20 1f sra %o0, 0x1f, %i0 <== NOT EXECUTED
20383a8: 81 c7 e0 08 ret <== NOT EXECUTED
20383ac: 81 e8 00 00 restore <== NOT EXECUTED
02038494 <msdos_set_first_char4file_name>:
msdos_set_first_char4file_name(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
unsigned char fchar
)
{
2038494: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
2038498: e0 06 20 34 ld [ %i0 + 0x34 ], %l0 <== NOT EXECUTED
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
203849c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
20384a0: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
msdos_set_first_char4file_name(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
unsigned char fchar
)
{
20384a4: f4 2f a0 4c stb %i2, [ %fp + 0x4c ] <== NOT EXECUTED
ssize_t ret;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
20384a8: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
20384ac: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
fat_pos_t end = dir_pos->sname;
20384b0: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
20384b4: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
msdos_set_first_char4file_name(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_dir_pos_t *dir_pos,
unsigned char fchar
)
{
20384b8: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
fat_pos_t end = dir_pos->sname;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
20384bc: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
20384c0: 12 80 00 08 bne 20384e0 <msdos_set_first_char4file_name+0x4c><== NOT EXECUTED
20384c4: ec 06 60 04 ld [ %i1 + 4 ], %l6 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
20384c8: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
20384cc: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20384d0: 22 80 00 05 be,a 20384e4 <msdos_set_first_char4file_name+0x50><== NOT EXECUTED
20384d4: e6 14 20 06 lduh [ %l0 + 6 ], %l3 <== NOT EXECUTED
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t dir_block_size;
fat_pos_t start = dir_pos->lname;
fat_pos_t end = dir_pos->sname;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
20384d8: 10 80 00 03 b 20384e4 <msdos_set_first_char4file_name+0x50><== NOT EXECUTED
20384dc: e6 04 20 28 ld [ %l0 + 0x28 ], %l3 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
dir_block_size = fs_info->fat.vol.rdir_size;
else
dir_block_size = fs_info->fat.vol.bpc;
20384e0: e6 14 20 06 lduh [ %l0 + 6 ], %l3 <== NOT EXECUTED
if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)
20384e4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
20384e8: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
20384ec: 12 80 00 06 bne 2038504 <msdos_set_first_char4file_name+0x70><== NOT EXECUTED
20384f0: aa 07 a0 4c add %fp, 0x4c, %l5 <== NOT EXECUTED
start = dir_pos->sname;
20384f4: c4 06 60 04 ld [ %i1 + 4 ], %g2 <== NOT EXECUTED
20384f8: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
20384fc: c4 27 bf fc st %g2, [ %fp + -4 ] <== NOT EXECUTED
2038500: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
2038504: a8 07 bf f8 add %fp, -8, %l4 <== NOT EXECUTED
* name code was written rather than use the fat_file_write
* interface.
*/
while (true)
{
uint32_t sec = (fat_cluster_num_to_sector_num(mt_entry, start.cln) +
2038508: c6 07 bf f8 ld [ %fp + -8 ], %g3 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
203850c: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2038510: 12 80 00 08 bne 2038530 <msdos_set_first_char4file_name+0x9c><== NOT EXECUTED
2038514: c2 04 60 34 ld [ %l1 + 0x34 ], %g1 <== NOT EXECUTED
2038518: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
203851c: 80 88 a0 03 btst 3, %g2 <== NOT EXECUTED
2038520: 22 80 00 05 be,a 2038534 <msdos_set_first_char4file_name+0xa0><== NOT EXECUTED
2038524: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
2038528: 10 80 00 07 b 2038544 <msdos_set_first_char4file_name+0xb0><== NOT EXECUTED
203852c: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
2038530: c8 00 60 30 ld [ %g1 + 0x30 ], %g4 <== NOT EXECUTED
2038534: c2 08 60 05 ldub [ %g1 + 5 ], %g1 <== NOT EXECUTED
2038538: 84 00 ff fe add %g3, -2, %g2 <== NOT EXECUTED
203853c: 85 28 80 01 sll %g2, %g1, %g2 <== NOT EXECUTED
2038540: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
(start.ofs >> fs_info->fat.vol.sec_log2));
2038544: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));;
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
2038548: d2 0c 20 02 ldub [ %l0 + 2 ], %o1 <== NOT EXECUTED
203854c: d4 14 00 00 lduh [ %l0 ], %o2 <== NOT EXECUTED
2038550: 93 30 40 09 srl %g1, %o1, %o1 <== NOT EXECUTED
2038554: 94 02 bf ff add %o2, -1, %o2 <== NOT EXECUTED
2038558: 92 00 80 09 add %g2, %o1, %o1 <== NOT EXECUTED
203855c: 94 0a 80 01 and %o2, %g1, %o2 <== NOT EXECUTED
2038560: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2038564: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
2038568: 7f ff b6 c8 call 2026088 <_fat_block_write> <== NOT EXECUTED
203856c: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
&fchar);
if (ret < 0)
2038570: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038574: 06 80 00 1c bl 20385e4 <msdos_set_first_char4file_name+0x150><== NOT EXECUTED
2038578: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return -1;
if ((start.cln == end.cln) && (start.ofs == end.ofs))
203857c: 80 a0 40 12 cmp %g1, %l2 <== NOT EXECUTED
2038580: 12 80 00 05 bne 2038594 <msdos_set_first_char4file_name+0x100><== NOT EXECUTED
2038584: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2038588: 80 a0 40 16 cmp %g1, %l6 <== NOT EXECUTED
203858c: 02 80 00 17 be 20385e8 <msdos_set_first_char4file_name+0x154><== NOT EXECUTED
2038590: 90 10 20 00 clr %o0 <== NOT EXECUTED
break;
start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;
2038594: 82 00 60 20 add %g1, 0x20, %g1 <== NOT EXECUTED
if (start.ofs >= dir_block_size)
2038598: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
203859c: 0a bf ff db bcs 2038508 <msdos_set_first_char4file_name+0x74><== NOT EXECUTED
20385a0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
{
int rc;
if ((end.cln == fs_info->fat.vol.rdir_cl) &&
20385a4: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
20385a8: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
20385ac: 12 80 00 06 bne 20385c4 <msdos_set_first_char4file_name+0x130><== NOT EXECUTED
20385b0: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
(fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))
20385b4: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
20385b8: 80 88 60 03 btst 3, %g1 <== NOT EXECUTED
20385bc: 12 80 00 0b bne 20385e8 <msdos_set_first_char4file_name+0x154><== NOT EXECUTED
20385c0: 90 10 20 00 clr %o0 <== NOT EXECUTED
break;
rc = fat_get_fat_cluster(mt_entry, start.cln, &start.cln);
20385c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20385c8: 40 00 1c 35 call 203f69c <fat_get_fat_cluster> <== NOT EXECUTED
20385cc: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
if ( rc != RC_OK )
20385d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20385d4: 12 80 00 05 bne 20385e8 <msdos_set_first_char4file_name+0x154><== NOT EXECUTED
20385d8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
start.ofs = 0;
20385dc: 10 bf ff cb b 2038508 <msdos_set_first_char4file_name+0x74><== NOT EXECUTED
20385e0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
20385e4: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
}
}
return RC_OK;
}
20385e8: 81 c7 e0 08 ret <== NOT EXECUTED
20385ec: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020383b0 <msdos_set_first_cluster_num>:
int
msdos_set_first_cluster_num(
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
20383b0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
20383b4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
rtems_filesystem_mount_table_entry_t *mt_entry,
fat_file_fd_t *fat_fd
)
{
ssize_t ret1 = 0, ret2 = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
20383b8: c4 06 20 34 ld [ %i0 + 0x34 ], %g2 <== NOT EXECUTED
uint32_t cln
)
{
register fat_fs_info_t *fs_info = mt_entry->fs_info;
if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
20383bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20383c0: 12 80 00 08 bne 20383e0 <msdos_set_first_cluster_num+0x30><== NOT EXECUTED
20383c4: e4 06 60 1c ld [ %i1 + 0x1c ], %l2 <== NOT EXECUTED
20383c8: c6 08 a0 0a ldub [ %g2 + 0xa ], %g3 <== NOT EXECUTED
20383cc: 80 88 e0 03 btst 3, %g3 <== NOT EXECUTED
20383d0: 22 80 00 05 be,a 20383e4 <msdos_set_first_cluster_num+0x34><== NOT EXECUTED
20383d4: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
return fs_info->vol.rdir_loc;
20383d8: 10 80 00 07 b 20383f4 <msdos_set_first_cluster_num+0x44> <== NOT EXECUTED
20383dc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +
20383e0: c8 08 a0 05 ldub [ %g2 + 5 ], %g4 <== NOT EXECUTED
20383e4: c6 00 a0 30 ld [ %g2 + 0x30 ], %g3 <== NOT EXECUTED
20383e8: 82 00 7f fe add %g1, -2, %g1 <== NOT EXECUTED
20383ec: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
20383f0: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
20383f4: e2 08 a0 02 ldub [ %g2 + 2 ], %l1 <== NOT EXECUTED
20383f8: c6 06 60 24 ld [ %i1 + 0x24 ], %g3 <== NOT EXECUTED
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
20383fc: e0 10 80 00 lduh [ %g2 ], %l0 <== NOT EXECUTED
/*
* calculate input for _fat_block_write: convert (cluster num, offset) to
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
2038400: a3 30 c0 11 srl %g3, %l1, %l1 <== NOT EXECUTED
2038404: a2 00 40 11 add %g1, %l1, %l1 <== NOT EXECUTED
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
2038408: 83 2c a0 10 sll %l2, 0x10, %g1 <== NOT EXECUTED
203840c: 85 30 60 18 srl %g1, 0x18, %g2 <== NOT EXECUTED
2038410: 83 30 60 08 srl %g1, 8, %g1 <== NOT EXECUTED
2038414: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec,
2038418: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
203841c: c2 37 bf fe sth %g1, [ %fp + -2 ] <== NOT EXECUTED
ret1 = _fat_block_write(mt_entry, sec,
2038420: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
2038424: 98 07 bf fe add %fp, -2, %o4 <== NOT EXECUTED
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
2038428: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED
{
ssize_t ret1 = 0, ret2 = 0;
msdos_fs_info_t *fs_info = mt_entry->fs_info;
uint32_t new_cln = fat_fd->cln;
uint16_t le_cl_low = 0;
uint16_t le_cl_hi = 0;
203842c: c0 37 bf fc clrh [ %fp + -4 ] <== NOT EXECUTED
* (sector num, new offset)
*/
sec = fat_cluster_num_to_sector_num(mt_entry, fat_fd->dir_pos.sname.cln);
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
2038430: a0 0c 00 03 and %l0, %g3, %l0 <== NOT EXECUTED
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
ret1 = _fat_block_write(mt_entry, sec,
2038434: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2038438: 7f ff b7 14 call 2026088 <_fat_block_write> <== NOT EXECUTED
203843c: 94 04 20 1a add %l0, 0x1a, %o2 <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2,
(char *)(&le_cl_low));
le_cl_hi = CT_LE_W((uint16_t )((new_cln & 0xFFFF0000) >> 16));
2038440: a5 34 a0 10 srl %l2, 0x10, %l2 <== NOT EXECUTED
2038444: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
2038448: 83 34 a0 18 srl %l2, 0x18, %g1 <== NOT EXECUTED
sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
/* byte from points to start of 32bytes structure */
byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
ret1 = _fat_block_write(mt_entry, sec,
203844c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2,
(char *)(&le_cl_low));
le_cl_hi = CT_LE_W((uint16_t )((new_cln & 0xFFFF0000) >> 16));
ret2 = _fat_block_write(mt_entry, sec,
2038450: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2038454: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2038458: 94 04 20 14 add %l0, 0x14, %o2 <== NOT EXECUTED
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
ret1 = _fat_block_write(mt_entry, sec,
byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2,
(char *)(&le_cl_low));
le_cl_hi = CT_LE_W((uint16_t )((new_cln & 0xFFFF0000) >> 16));
203845c: a5 34 a0 08 srl %l2, 8, %l2 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
2038460: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
le_cl_low = CT_LE_W((uint16_t )(new_cln & 0x0000FFFF));
ret1 = _fat_block_write(mt_entry, sec,
byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2,
(char *)(&le_cl_low));
le_cl_hi = CT_LE_W((uint16_t )((new_cln & 0xFFFF0000) >> 16));
2038464: a4 14 80 01 or %l2, %g1, %l2 <== NOT EXECUTED
ret2 = _fat_block_write(mt_entry, sec,
2038468: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
203846c: 7f ff b7 07 call 2026088 <_fat_block_write> <== NOT EXECUTED
2038470: e4 37 bf fc sth %l2, [ %fp + -4 ] <== NOT EXECUTED
byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,
(char *)(&le_cl_hi));
if ( (ret1 < 0) || (ret2 < 0) )
2038474: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2038478: 06 80 00 04 bl 2038488 <msdos_set_first_cluster_num+0xd8> <== NOT EXECUTED
203847c: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2038480: 16 80 00 03 bge 203848c <msdos_set_first_cluster_num+0xdc><== NOT EXECUTED
2038484: b0 10 20 00 clr %i0 <== NOT EXECUTED
2038488: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
return RC_OK;
}
203848c: 81 c7 e0 08 ret <== NOT EXECUTED
2038490: 81 e8 00 00 restore <== NOT EXECUTED
020376e8 <msdos_shut_down>:
* RC_OK on success, or -1 if error occured (errno set apropriately).
*
*/
int
msdos_shut_down(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
{
20376e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = temp_mt_entry->fs_info;
fat_file_fd_t *fat_fd = temp_mt_entry->mt_fs_root.node_access;
/* close fat-file which correspondes to root directory */
if (fat_file_close(temp_mt_entry, fat_fd) != RC_OK)
20376ec: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
*/
int
msdos_shut_down(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
{
int rc = RC_OK;
msdos_fs_info_t *fs_info = temp_mt_entry->fs_info;
20376f0: e2 06 20 34 ld [ %i0 + 0x34 ], %l1 <== NOT EXECUTED
fat_file_fd_t *fat_fd = temp_mt_entry->mt_fs_root.node_access;
/* close fat-file which correspondes to root directory */
if (fat_file_close(temp_mt_entry, fat_fd) != RC_OK)
20376f4: 7f ff b8 66 call 202588c <fat_file_close> <== NOT EXECUTED
20376f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20376fc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
* RC_OK on success, or -1 if error occured (errno set apropriately).
*
*/
int
msdos_shut_down(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
{
2037700: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc = RC_OK;
msdos_fs_info_t *fs_info = temp_mt_entry->fs_info;
fat_file_fd_t *fat_fd = temp_mt_entry->mt_fs_root.node_access;
/* close fat-file which correspondes to root directory */
if (fat_file_close(temp_mt_entry, fat_fd) != RC_OK)
2037704: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
{
/* no return - try to free as much as possible */
rc = -1;
}
if (fat_shutdown_drive(temp_mt_entry) != RC_OK)
2037708: 7f ff ba bb call 20261f4 <fat_shutdown_drive> <== NOT EXECUTED
203770c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2037710: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2037714: 32 80 00 02 bne,a 203771c <msdos_shut_down+0x34> <== NOT EXECUTED
2037718: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
{
/* no return - try to free as much as possible */
rc = -1;
}
rtems_semaphore_delete(fs_info->vol_sema);
203771c: 7f ff 54 ae call 200c9d4 <rtems_semaphore_delete> <== NOT EXECUTED
2037720: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
free(fs_info->cl_buf);
2037724: 7f ff 42 cf call 2008260 <free> <== NOT EXECUTED
2037728: d0 04 60 9c ld [ %l1 + 0x9c ], %o0 <== NOT EXECUTED
free(temp_mt_entry->fs_info);
203772c: 7f ff 42 cd call 2008260 <free> <== NOT EXECUTED
2037730: d0 04 20 34 ld [ %l0 + 0x34 ], %o0 <== NOT EXECUTED
return rc;
}
2037734: 81 c7 e0 08 ret <== NOT EXECUTED
2037738: 81 e8 00 00 restore <== NOT EXECUTED
02028aa4 <nanosleep>:
int nanosleep(
const struct timespec *rqtp,
struct timespec *rmtp
)
{
2028aa4: 9d e3 bf a0 save %sp, -96, %sp
Watchdog_Interval ticks;
if ( !_Timespec_Is_valid( rqtp ) )
2028aa8: 40 00 00 65 call 2028c3c <_Timespec_Is_valid>
2028aac: 90 10 00 18 mov %i0, %o0
2028ab0: 80 8a 20 ff btst 0xff, %o0
2028ab4: 02 80 00 0a be 2028adc <nanosleep+0x38>
2028ab8: 01 00 00 00 nop
* Return EINVAL if the delay interval is negative.
*
* NOTE: This behavior is beyond the POSIX specification.
* FSU and GNU/Linux pthreads shares this behavior.
*/
if ( rqtp->tv_sec < 0 || rqtp->tv_nsec < 0 )
2028abc: c2 06 00 00 ld [ %i0 ], %g1
2028ac0: 80 a0 60 00 cmp %g1, 0
2028ac4: 06 80 00 06 bl 2028adc <nanosleep+0x38> <== NEVER TAKEN
2028ac8: 01 00 00 00 nop
2028acc: c2 06 20 04 ld [ %i0 + 4 ], %g1
2028ad0: 80 a0 60 00 cmp %g1, 0
2028ad4: 16 80 00 06 bge 2028aec <nanosleep+0x48> <== ALWAYS TAKEN
2028ad8: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
2028adc: 7f ff c2 47 call 20193f8 <__errno>
2028ae0: 01 00 00 00 nop
2028ae4: 10 80 00 3c b 2028bd4 <nanosleep+0x130>
2028ae8: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
ticks = _Timespec_To_ticks( rqtp );
2028aec: 7f ff b3 ff call 2015ae8 <_Timespec_To_ticks>
2028af0: 90 10 00 18 mov %i0, %o0
* A nanosleep for zero time is implemented as a yield.
* This behavior is also beyond the POSIX specification but is
* consistent with the RTEMS API and yields desirable behavior.
*/
if ( !ticks ) {
2028af4: b0 92 20 00 orcc %o0, 0, %i0
2028af8: 12 80 00 10 bne 2028b38 <nanosleep+0x94>
2028afc: 03 00 80 bc sethi %hi(0x202f000), %g1
2028b00: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 ! 202f040 <_Thread_Dispatch_disable_level>
2028b04: 84 00 a0 01 inc %g2
2028b08: c4 20 60 40 st %g2, [ %g1 + 0x40 ]
_Thread_Disable_dispatch();
_Thread_Yield_processor();
2028b0c: 7f ff 94 88 call 200dd2c <_Thread_Yield_processor>
2028b10: 01 00 00 00 nop
_Thread_Enable_dispatch();
2028b14: 7f ff 91 0c call 200cf44 <_Thread_Enable_dispatch>
2028b18: 01 00 00 00 nop
if ( rmtp ) {
2028b1c: 80 a6 60 00 cmp %i1, 0
2028b20: 02 80 00 30 be 2028be0 <nanosleep+0x13c>
2028b24: 01 00 00 00 nop
rmtp->tv_sec = 0;
rmtp->tv_nsec = 0;
2028b28: c0 26 60 04 clr [ %i1 + 4 ]
if ( !ticks ) {
_Thread_Disable_dispatch();
_Thread_Yield_processor();
_Thread_Enable_dispatch();
if ( rmtp ) {
rmtp->tv_sec = 0;
2028b2c: c0 26 40 00 clr [ %i1 ]
2028b30: 81 c7 e0 08 ret
2028b34: 81 e8 00 00 restore
2028b38: c4 00 60 40 ld [ %g1 + 0x40 ], %g2
2028b3c: 84 00 a0 01 inc %g2
2028b40: c4 20 60 40 st %g2, [ %g1 + 0x40 ]
/*
* Block for the desired amount of time
*/
_Thread_Disable_dispatch();
_Thread_Set_state(
2028b44: 21 00 80 bc sethi %hi(0x202f000), %l0
2028b48: d0 04 21 00 ld [ %l0 + 0x100 ], %o0 ! 202f100 <_Thread_Executing>
2028b4c: 13 04 00 00 sethi %hi(0x10000000), %o1
2028b50: 7f ff 93 75 call 200d924 <_Thread_Set_state>
2028b54: 92 12 60 08 or %o1, 8, %o1 ! 10000008 <RAM_END+0xdc00008>
_Thread_Executing,
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
&_Thread_Executing->Timer,
2028b58: c2 04 21 00 ld [ %l0 + 0x100 ], %g1
2028b5c: 11 00 80 bc sethi %hi(0x202f000), %o0
_Thread_Disable_dispatch();
_Thread_Set_state(
_Thread_Executing,
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
2028b60: c4 00 60 08 ld [ %g1 + 8 ], %g2
2028b64: 90 12 21 20 or %o0, 0x120, %o0
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
2028b68: c4 20 60 68 st %g2, [ %g1 + 0x68 ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2028b6c: 92 00 60 48 add %g1, 0x48, %o1
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2028b70: 05 00 80 33 sethi %hi(0x200cc00), %g2
2028b74: 84 10 a1 80 or %g2, 0x180, %g2 ! 200cd80 <_Thread_Delay_ended>
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2028b78: c0 20 60 50 clr [ %g1 + 0x50 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
2028b7c: c0 20 60 6c clr [ %g1 + 0x6c ]
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2028b80: f0 20 60 54 st %i0, [ %g1 + 0x54 ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2028b84: 7f ff 95 8c call 200e1b4 <_Watchdog_Insert>
2028b88: c4 20 60 64 st %g2, [ %g1 + 0x64 ]
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
_Thread_Enable_dispatch();
2028b8c: 7f ff 90 ee call 200cf44 <_Thread_Enable_dispatch>
2028b90: 01 00 00 00 nop
/* calculate time remaining */
if ( rmtp ) {
2028b94: 80 a6 60 00 cmp %i1, 0
2028b98: 02 80 00 12 be 2028be0 <nanosleep+0x13c>
2028b9c: c2 04 21 00 ld [ %l0 + 0x100 ], %g1
ticks -=
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
_Timespec_From_ticks( ticks, rmtp );
2028ba0: 92 10 00 19 mov %i1, %o1
_Thread_Enable_dispatch();
/* calculate time remaining */
if ( rmtp ) {
ticks -=
2028ba4: c4 00 60 60 ld [ %g1 + 0x60 ], %g2
2028ba8: c2 00 60 5c ld [ %g1 + 0x5c ], %g1
2028bac: 82 20 40 02 sub %g1, %g2, %g1
2028bb0: b0 00 40 18 add %g1, %i0, %i0
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
_Timespec_From_ticks( ticks, rmtp );
2028bb4: 40 00 00 0d call 2028be8 <_Timespec_From_ticks>
2028bb8: 90 10 00 18 mov %i0, %o0
*/
#if defined(RTEMS_POSIX_API)
/*
* If there is time remaining, then we were interrupted by a signal.
*/
if ( ticks )
2028bbc: 80 a6 20 00 cmp %i0, 0
2028bc0: 02 80 00 08 be 2028be0 <nanosleep+0x13c>
2028bc4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINTR );
2028bc8: 7f ff c2 0c call 20193f8 <__errno>
2028bcc: 01 00 00 00 nop
2028bd0: 82 10 20 04 mov 4, %g1 ! 4 <PROM_START+0x4>
2028bd4: c2 22 00 00 st %g1, [ %o0 ]
2028bd8: 81 c7 e0 08 ret
2028bdc: 91 e8 3f ff restore %g0, -1, %o0
#endif
}
return 0;
}
2028be0: 81 c7 e0 08 ret
2028be4: 91 e8 20 00 restore %g0, 0, %o0
02003450 <newlib_delete_hook>:
void newlib_delete_hook(
rtems_tcb *current_task,
rtems_tcb *deleted_task
)
{
2003450: 9d e3 bf a0 save %sp, -96, %sp
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
2003454: 80 a6 00 19 cmp %i0, %i1
2003458: 32 80 00 04 bne,a 2003468 <newlib_delete_hook+0x18>
200345c: e0 06 61 64 ld [ %i1 + 0x164 ], %l0
ptr = _REENT;
2003460: 03 00 80 76 sethi %hi(0x201d800), %g1
2003464: e0 00 61 20 ld [ %g1 + 0x120 ], %l0 ! 201d920 <_impure_ptr>
} else {
ptr = deleted_task->libc_reent;
}
if (ptr && ptr != _global_impure_ptr) {
2003468: 80 a4 20 00 cmp %l0, 0
200346c: 02 80 00 0b be 2003498 <newlib_delete_hook+0x48> <== NEVER TAKEN
2003470: 03 00 80 74 sethi %hi(0x201d000), %g1
2003474: c2 00 61 c0 ld [ %g1 + 0x1c0 ], %g1 ! 201d1c0 <_global_impure_ptr>
2003478: 80 a4 00 01 cmp %l0, %g1
200347c: 02 80 00 07 be 2003498 <newlib_delete_hook+0x48>
2003480: 13 00 80 0d sethi %hi(0x2003400), %o1
_reclaim_reent(ptr);
*/
/*
* Just in case there are some buffers lying around.
*/
_fwalk(ptr, newlib_free_buffers);
2003484: 90 10 00 10 mov %l0, %o0
2003488: 40 00 37 4a call 20111b0 <_fwalk>
200348c: 92 12 60 b4 or %o1, 0xb4, %o1
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
2003490: 40 00 19 97 call 2009aec <_Workspace_Free>
2003494: 90 10 00 10 mov %l0, %o0
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
2003498: 80 a6 00 19 cmp %i0, %i1
200349c: 12 80 00 04 bne 20034ac <newlib_delete_hook+0x5c>
20034a0: c0 26 61 64 clr [ %i1 + 0x164 ]
_REENT = 0;
20034a4: 03 00 80 76 sethi %hi(0x201d800), %g1
20034a8: c0 20 61 20 clr [ %g1 + 0x120 ] ! 201d920 <_impure_ptr>
20034ac: 81 c7 e0 08 ret
20034b0: 81 e8 00 00 restore
020034b4 <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
20034b4: 9d e3 bf a0 save %sp, -96, %sp
switch ( fileno(fp) ) {
20034b8: 40 00 36 3e call 2010db0 <fileno>
20034bc: 90 10 00 18 mov %i0, %o0
20034c0: 80 a2 20 02 cmp %o0, 2
20034c4: 18 80 00 0e bgu 20034fc <newlib_free_buffers+0x48> <== NEVER TAKEN
20034c8: 01 00 00 00 nop
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
20034cc: c2 16 20 0c lduh [ %i0 + 0xc ], %g1
20034d0: 80 88 60 80 btst 0x80, %g1
20034d4: 02 80 00 0c be 2003504 <newlib_free_buffers+0x50> <== ALWAYS TAKEN
20034d8: 01 00 00 00 nop
free( fp->_bf._base );
20034dc: 7f ff fd 88 call 2002afc <free> <== NOT EXECUTED
20034e0: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
fp->_flags &= ~__SMBF;
20034e4: c2 16 20 0c lduh [ %i0 + 0xc ], %g1 <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
20034e8: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
20034ec: 82 08 7f 7f and %g1, -129, %g1 <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
20034f0: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
free( fp->_bf._base );
fp->_flags &= ~__SMBF;
20034f4: 10 80 00 04 b 2003504 <newlib_free_buffers+0x50> <== NOT EXECUTED
20034f8: c2 36 20 0c sth %g1, [ %i0 + 0xc ] <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
}
break;
default:
fclose(fp);
20034fc: 40 00 35 6b call 2010aa8 <fclose> <== NOT EXECUTED
2003500: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
return 0;
}
2003504: 81 c7 e0 08 ret
2003508: 91 e8 20 00 restore %g0, 0, %o0
02002d1c <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
2002d1c: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_driver status;
if ( !initialized ) {
2002d20: 03 00 80 8b sethi %hi(0x2022c00), %g1
2002d24: c4 48 61 f0 ldsb [ %g1 + 0x1f0 ], %g2 ! 2022df0 <initialized>
2002d28: 80 a0 a0 00 cmp %g2, 0
2002d2c: 12 80 00 0e bne 2002d64 <null_initialize+0x48>
2002d30: 84 10 20 01 mov 1, %g2
initialized = 1;
status = rtems_io_register_name(
2002d34: 11 00 80 81 sethi %hi(0x2020400), %o0
)
{
rtems_device_driver status;
if ( !initialized ) {
initialized = 1;
2002d38: c4 28 61 f0 stb %g2, [ %g1 + 0x1f0 ]
status = rtems_io_register_name(
2002d3c: 90 12 22 50 or %o0, 0x250, %o0
2002d40: 92 10 00 18 mov %i0, %o1
2002d44: 40 00 01 a8 call 20033e4 <rtems_io_register_name>
2002d48: 94 10 20 00 clr %o2
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
2002d4c: 80 a2 20 00 cmp %o0, 0
2002d50: 02 80 00 04 be 2002d60 <null_initialize+0x44> <== ALWAYS TAKEN
2002d54: 03 00 80 8c sethi %hi(0x2023000), %g1
rtems_fatal_error_occurred(status);
2002d58: 40 00 12 d3 call 20078a4 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002d5c: 01 00 00 00 nop <== NOT EXECUTED
NULL_major = major;
2002d60: f0 20 60 a0 st %i0, [ %g1 + 0xa0 ]
}
return RTEMS_SUCCESSFUL;
}
2002d64: 81 c7 e0 08 ret
2002d68: 91 e8 20 00 restore %g0, 0, %o0
02002cf8 <null_write>:
void *pargp
)
{
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
2002cf8: 80 a2 a0 00 cmp %o2, 0
2002cfc: 02 80 00 04 be 2002d0c <null_write+0x14> <== ALWAYS TAKEN
2002d00: 01 00 00 00 nop
rw_args->bytes_moved = rw_args->count;
2002d04: c2 02 a0 14 ld [ %o2 + 0x14 ], %g1 <== NOT EXECUTED
2002d08: c2 22 a0 1c st %g1, [ %o2 + 0x1c ] <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
2002d0c: 81 c3 e0 08 retl
2002d10: 90 10 20 00 clr %o0
0200372c <open>:
int open(
const char *pathname,
int flags,
...
)
{
200372c: 9d e3 bf 88 save %sp, -120, %sp
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
va_start(ap, flags);
2003730: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
2003734: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
2003738: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
200373c: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
2003740: a2 06 60 01 add %i1, 1, %l1
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
2003744: 80 8c 60 02 btst 2, %l1
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
2003748: a2 0c 60 01 and %l1, 1, %l1
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
200374c: 02 80 00 03 be 2003758 <open+0x2c>
2003750: a3 2c 60 02 sll %l1, 2, %l1
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
2003754: a2 14 60 02 or %l1, 2, %l1
va_start(ap, flags);
mode = va_arg( ap, int );
2003758: 82 07 a0 50 add %fp, 0x50, %g1
200375c: e4 07 a0 4c ld [ %fp + 0x4c ], %l2
2003760: c2 27 bf fc st %g1, [ %fp + -4 ]
* code does not require changes here since network file
* descriptors are obtained using socket(), not open().
*/
/* allocate a file control block */
iop = rtems_libio_allocate();
2003764: 40 00 22 74 call 200c134 <rtems_libio_allocate>
2003768: a6 10 20 17 mov 0x17, %l3
if ( iop == 0 ) {
200376c: a0 92 20 00 orcc %o0, 0, %l0
2003770: 02 80 00 98 be 20039d0 <open+0x2a4>
2003774: 01 00 00 00 nop
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
2003778: 40 00 38 41 call 201187c <strlen>
200377c: 90 10 00 18 mov %i0, %o0
2003780: 94 10 00 11 mov %l1, %o2
2003784: 92 10 00 08 mov %o0, %o1
2003788: a2 07 bf e8 add %fp, -24, %l1
200378c: 90 10 00 18 mov %i0, %o0
2003790: 96 10 00 11 mov %l1, %o3
2003794: 7f ff fc bd call 2002a88 <rtems_filesystem_evaluate_path>
2003798: 98 10 20 01 mov 1, %o4
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
200379c: 80 a2 3f ff cmp %o0, -1
20037a0: 12 80 00 22 bne 2003828 <open+0xfc>
20037a4: 82 0e 6a 00 and %i1, 0xa00, %g1
if ( errno != ENOENT ) {
20037a8: 40 00 34 68 call 2010948 <__errno>
20037ac: a8 10 20 00 clr %l4
20037b0: c2 02 00 00 ld [ %o0 ], %g1
20037b4: 80 a0 60 02 cmp %g1, 2
20037b8: 12 80 00 3e bne 20038b0 <open+0x184>
20037bc: 80 8e 62 00 btst 0x200, %i1
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
20037c0: a8 10 20 00 clr %l4
20037c4: 02 80 00 71 be 2003988 <open+0x25c>
20037c8: a6 10 20 02 mov 2, %l3
rc = ENOENT;
goto done;
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
20037cc: 13 00 00 20 sethi %hi(0x8000), %o1
20037d0: 90 10 00 18 mov %i0, %o0
20037d4: 92 14 80 09 or %l2, %o1, %o1
20037d8: 94 10 20 00 clr %o2
20037dc: 7f ff fd f0 call 2002f9c <mknod>
20037e0: 96 10 20 00 clr %o3
if ( rc ) {
20037e4: 80 a2 20 00 cmp %o0, 0
20037e8: 12 80 00 32 bne 20038b0 <open+0x184> <== NEVER TAKEN
20037ec: 01 00 00 00 nop
rc = errno;
goto done;
}
/* Sanity check to see if the file name exists after the mknod() */
status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true );
20037f0: 40 00 38 23 call 201187c <strlen>
20037f4: 90 10 00 18 mov %i0, %o0
20037f8: 96 10 00 11 mov %l1, %o3
20037fc: 92 10 00 08 mov %o0, %o1
2003800: 94 10 20 00 clr %o2
2003804: 90 10 00 18 mov %i0, %o0
2003808: 98 10 20 01 mov 1, %o4
200380c: 7f ff fc 9f call 2002a88 <rtems_filesystem_evaluate_path>
2003810: a8 10 20 00 clr %l4
if ( status != 0 ) { /* The file did not exist */
2003814: 80 a2 20 00 cmp %o0, 0
2003818: 12 80 00 5c bne 2003988 <open+0x25c> <== NEVER TAKEN
200381c: a6 10 20 0d mov 0xd, %l3
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
2003820: 10 80 00 07 b 200383c <open+0x110>
2003824: c2 07 bf f0 ld [ %fp + -16 ], %g1
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
2003828: a8 10 00 11 mov %l1, %l4
200382c: 80 a0 6a 00 cmp %g1, 0xa00
2003830: 02 80 00 56 be 2003988 <open+0x25c>
2003834: a6 10 20 11 mov 0x11, %l3
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
2003838: c2 07 bf f0 ld [ %fp + -16 ], %g1
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
200383c: e2 04 20 18 ld [ %l0 + 0x18 ], %l1
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
2003840: c2 24 20 40 st %g1, [ %l0 + 0x40 ]
iop->file_info = loc.node_access;
2003844: c2 07 bf e8 ld [ %fp + -24 ], %g1
iop->flags |= rtems_libio_fcntl_flags( flags );
2003848: 90 10 00 19 mov %i1, %o0
200384c: 40 00 22 6e call 200c204 <rtems_libio_fcntl_flags>
2003850: c2 24 20 3c st %g1, [ %l0 + 0x3c ]
2003854: 90 12 00 11 or %o0, %l1, %o0
iop->pathinfo = loc;
2003858: 94 10 20 14 mov 0x14, %o2
* returned by successful path evaluation.
*/
iop->handlers = loc.handlers;
iop->file_info = loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );
200385c: d0 24 20 18 st %o0, [ %l0 + 0x18 ]
iop->pathinfo = loc;
2003860: a2 07 bf e8 add %fp, -24, %l1
2003864: 90 04 20 1c add %l0, 0x1c, %o0
2003868: 40 00 36 74 call 2011238 <memcpy>
200386c: 92 10 00 11 mov %l1, %o1
if ( !iop->handlers || !iop->handlers->open_h ) {
2003870: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
2003874: 80 a0 60 00 cmp %g1, 0
2003878: 22 80 00 6a be,a 2003a20 <open+0x2f4> <== NEVER TAKEN
200387c: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED
2003880: c2 00 40 00 ld [ %g1 ], %g1
2003884: 80 a0 60 00 cmp %g1, 0
2003888: 02 80 00 65 be 2003a1c <open+0x2f0> <== NEVER TAKEN
200388c: 92 10 00 18 mov %i0, %o1
rc = ENOTSUP;
goto done;
}
rc = (*iop->handlers->open_h)( iop, pathname, flags, mode );
2003890: 96 10 00 12 mov %l2, %o3
2003894: 90 10 00 10 mov %l0, %o0
2003898: 9f c0 40 00 call %g1
200389c: 94 10 00 19 mov %i1, %o2
if ( rc ) {
20038a0: 80 a2 20 00 cmp %o0, 0
20038a4: 02 80 00 07 be 20038c0 <open+0x194>
20038a8: 80 8e 64 00 btst 0x400, %i1
rc = errno;
20038ac: a8 10 00 11 mov %l1, %l4
20038b0: 40 00 34 26 call 2010948 <__errno>
20038b4: 01 00 00 00 nop
goto done;
20038b8: 10 80 00 31 b 200397c <open+0x250>
20038bc: e6 02 00 00 ld [ %o0 ], %l3
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
20038c0: 02 80 00 49 be 20039e4 <open+0x2b8>
20038c4: 03 00 80 78 sethi %hi(0x201e000), %g1
rc = ftruncate( iop - rtems_libio_iops, 0 );
20038c8: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 <rtems_libio_iops>
20038cc: 92 10 20 00 clr %o1
20038d0: 82 24 00 01 sub %l0, %g1, %g1
20038d4: 83 38 60 03 sra %g1, 3, %g1
20038d8: 87 28 60 06 sll %g1, 6, %g3
20038dc: 85 28 60 03 sll %g1, 3, %g2
20038e0: 84 20 c0 02 sub %g3, %g2, %g2
20038e4: 87 28 a0 06 sll %g2, 6, %g3
20038e8: 84 00 80 03 add %g2, %g3, %g2
20038ec: 84 00 80 01 add %g2, %g1, %g2
20038f0: 91 28 a0 0f sll %g2, 0xf, %o0
20038f4: 84 22 00 02 sub %o0, %g2, %g2
20038f8: 94 10 20 00 clr %o2
20038fc: 91 28 a0 03 sll %g2, 3, %o0
2003900: 40 00 21 59 call 200be64 <ftruncate>
2003904: 90 02 00 01 add %o0, %g1, %o0
if ( rc ) {
2003908: a6 92 20 00 orcc %o0, 0, %l3
200390c: 02 80 00 36 be 20039e4 <open+0x2b8> <== ALWAYS TAKEN
2003910: 03 00 80 78 sethi %hi(0x201e000), %g1
if(errno) rc = errno;
2003914: 40 00 34 0d call 2010948 <__errno> <== NOT EXECUTED
2003918: 01 00 00 00 nop <== NOT EXECUTED
200391c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2003920: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003924: 02 80 00 06 be 200393c <open+0x210> <== NOT EXECUTED
2003928: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
200392c: 40 00 34 07 call 2010948 <__errno> <== NOT EXECUTED
2003930: 01 00 00 00 nop <== NOT EXECUTED
2003934: e6 02 00 00 ld [ %o0 ], %l3 <== NOT EXECUTED
close( iop - rtems_libio_iops );
2003938: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
200393c: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 <rtems_libio_iops><== NOT EXECUTED
2003940: a8 10 20 00 clr %l4 <== NOT EXECUTED
2003944: a0 24 00 01 sub %l0, %g1, %l0 <== NOT EXECUTED
2003948: 83 3c 20 03 sra %l0, 3, %g1 <== NOT EXECUTED
200394c: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
2003950: 85 28 60 03 sll %g1, 3, %g2 <== NOT EXECUTED
2003954: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2003958: 87 28 a0 06 sll %g2, 6, %g3 <== NOT EXECUTED
200395c: 84 00 80 03 add %g2, %g3, %g2 <== NOT EXECUTED
2003960: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2003964: 91 28 a0 0f sll %g2, 0xf, %o0 <== NOT EXECUTED
2003968: 84 22 00 02 sub %o0, %g2, %g2 <== NOT EXECUTED
200396c: a0 10 20 00 clr %l0 <== NOT EXECUTED
2003970: 91 28 a0 03 sll %g2, 3, %o0 <== NOT EXECUTED
2003974: 40 00 21 0d call 200bda8 <close> <== NOT EXECUTED
2003978: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
*/
done:
va_end(ap);
if ( rc ) {
200397c: 80 a4 e0 00 cmp %l3, 0
2003980: 02 80 00 19 be 20039e4 <open+0x2b8> <== NEVER TAKEN
2003984: 03 00 80 78 sethi %hi(0x201e000), %g1
if ( iop )
2003988: 80 a4 20 00 cmp %l0, 0
200398c: 02 80 00 05 be 20039a0 <open+0x274> <== NEVER TAKEN
2003990: 80 a5 20 00 cmp %l4, 0
rtems_libio_free( iop );
2003994: 40 00 21 d0 call 200c0d4 <rtems_libio_free>
2003998: 90 10 00 10 mov %l0, %o0
if ( loc_to_free )
200399c: 80 a5 20 00 cmp %l4, 0
20039a0: 02 80 00 0c be 20039d0 <open+0x2a4>
20039a4: 01 00 00 00 nop
rtems_filesystem_freenode( loc_to_free );
20039a8: c2 05 20 0c ld [ %l4 + 0xc ], %g1
20039ac: 80 a0 60 00 cmp %g1, 0
20039b0: 02 80 00 08 be 20039d0 <open+0x2a4> <== NEVER TAKEN
20039b4: 01 00 00 00 nop
20039b8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
20039bc: 80 a0 60 00 cmp %g1, 0
20039c0: 02 80 00 04 be 20039d0 <open+0x2a4> <== NEVER TAKEN
20039c4: 01 00 00 00 nop
20039c8: 9f c0 40 00 call %g1
20039cc: 90 10 00 14 mov %l4, %o0
rtems_set_errno_and_return_minus_one( rc );
20039d0: 40 00 33 de call 2010948 <__errno>
20039d4: b0 10 3f ff mov -1, %i0
20039d8: e6 22 00 00 st %l3, [ %o0 ]
20039dc: 81 c7 e0 08 ret
20039e0: 81 e8 00 00 restore
}
return iop - rtems_libio_iops;
20039e4: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1
20039e8: a0 24 00 01 sub %l0, %g1, %l0
20039ec: a1 3c 20 03 sra %l0, 3, %l0
20039f0: 85 2c 20 06 sll %l0, 6, %g2
20039f4: 83 2c 20 03 sll %l0, 3, %g1
20039f8: 82 20 80 01 sub %g2, %g1, %g1
20039fc: 85 28 60 06 sll %g1, 6, %g2
2003a00: 82 00 40 02 add %g1, %g2, %g1
2003a04: 82 00 40 10 add %g1, %l0, %g1
2003a08: b1 28 60 0f sll %g1, 0xf, %i0
2003a0c: b0 26 00 01 sub %i0, %g1, %i0
2003a10: b1 2e 20 03 sll %i0, 3, %i0
}
2003a14: 81 c7 e0 08 ret
2003a18: 91 ee 00 10 restore %i0, %l0, %o0
if ( loc_to_free )
rtems_filesystem_freenode( loc_to_free );
rtems_set_errno_and_return_minus_one( rc );
}
return iop - rtems_libio_iops;
2003a1c: a8 07 bf e8 add %fp, -24, %l4 <== NOT EXECUTED
2003a20: 10 bf ff da b 2003988 <open+0x25c> <== NOT EXECUTED
2003a24: a6 10 20 86 mov 0x86, %l3 <== NOT EXECUTED
020036b8 <open_dev_console>:
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
20036b8: 9d e3 bf a0 save %sp, -96, %sp
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
20036bc: 21 00 80 71 sethi %hi(0x201c400), %l0
20036c0: 92 10 20 00 clr %o1
20036c4: 90 14 20 50 or %l0, 0x50, %o0
20036c8: 40 00 00 19 call 200372c <open>
20036cc: 94 10 20 00 clr %o2
20036d0: 80 a2 3f ff cmp %o0, -1
20036d4: 02 80 00 14 be 2003724 <open_dev_console+0x6c>
20036d8: 90 14 20 50 or %l0, 0x50, %o0
/*
* But if we find /dev/console once, we better find it twice more
* or something is REALLY wrong.
*/
if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)
20036dc: 92 10 20 01 mov 1, %o1
20036e0: 40 00 00 13 call 200372c <open>
20036e4: 94 10 20 00 clr %o2
20036e8: 80 a2 3f ff cmp %o0, -1
20036ec: 32 80 00 05 bne,a 2003700 <open_dev_console+0x48> <== ALWAYS TAKEN
20036f0: 90 14 20 50 or %l0, 0x50, %o0
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
20036f4: 11 15 55 11 sethi %hi(0x55544400), %o0 <== NOT EXECUTED
20036f8: 10 80 00 09 b 200371c <open_dev_console+0x64> <== NOT EXECUTED
20036fc: 90 12 20 31 or %o0, 0x31, %o0 ! 55544431 <RAM_END+0x53144431><== NOT EXECUTED
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
2003700: 92 10 20 01 mov 1, %o1
2003704: 40 00 00 0a call 200372c <open>
2003708: 94 10 20 00 clr %o2
200370c: 80 a2 3f ff cmp %o0, -1
2003710: 12 80 00 05 bne 2003724 <open_dev_console+0x6c> <== ALWAYS TAKEN
2003714: 11 15 55 11 sethi %hi(0x55544400), %o0
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
2003718: 90 12 20 32 or %o0, 0x32, %o0 ! 55544432 <RAM_END+0x53144432><== NOT EXECUTED
200371c: 40 00 0c a5 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2003720: 01 00 00 00 nop <== NOT EXECUTED
2003724: 81 c7 e0 08 ret
2003728: 81 e8 00 00 restore
02004224 <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
2004224: 9d e3 bf a0 save %sp, -96, %sp
int i;
if (tty->termios.c_oflag & OPOST) {
2004228: c2 06 60 34 ld [ %i1 + 0x34 ], %g1
200422c: 80 88 60 01 btst 1, %g1
2004230: 02 80 00 5a be 2004398 <oproc+0x174> <== NEVER TAKEN
2004234: f0 2f a0 44 stb %i0, [ %fp + 0x44 ]
switch (c) {
2004238: 84 0e 20 ff and %i0, 0xff, %g2
200423c: 80 a0 a0 09 cmp %g2, 9
2004240: 22 80 00 2b be,a 20042ec <oproc+0xc8>
2004244: c4 06 60 28 ld [ %i1 + 0x28 ], %g2
2004248: 18 80 00 07 bgu 2004264 <oproc+0x40> <== ALWAYS TAKEN
200424c: 80 a0 a0 0a cmp %g2, 0xa
2004250: 80 a0 a0 08 cmp %g2, 8 <== NOT EXECUTED
2004254: 12 80 00 3a bne 200433c <oproc+0x118> <== NOT EXECUTED
2004258: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
200425c: 10 80 00 33 b 2004328 <oproc+0x104> <== NOT EXECUTED
2004260: c2 06 60 28 ld [ %i1 + 0x28 ], %g1 <== NOT EXECUTED
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
2004264: 02 80 00 06 be 200427c <oproc+0x58>
2004268: 80 a0 a0 0d cmp %g2, 0xd
200426c: 32 80 00 34 bne,a 200433c <oproc+0x118> <== ALWAYS TAKEN
2004270: 80 88 60 02 btst 2, %g1
tty->column = 0;
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
2004274: 10 80 00 10 b 20042b4 <oproc+0x90> <== NOT EXECUTED
2004278: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED
int i;
if (tty->termios.c_oflag & OPOST) {
switch (c) {
case '\n':
if (tty->termios.c_oflag & ONLRET)
200427c: 80 88 60 20 btst 0x20, %g1
2004280: 32 80 00 02 bne,a 2004288 <oproc+0x64> <== NEVER TAKEN
2004284: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
tty->column = 0;
if (tty->termios.c_oflag & ONLCR) {
2004288: c2 06 60 34 ld [ %i1 + 0x34 ], %g1
200428c: 80 88 60 04 btst 4, %g1
2004290: 02 80 00 43 be 200439c <oproc+0x178> <== NEVER TAKEN
2004294: 94 10 00 19 mov %i1, %o2
rtems_termios_puts ("\r", 1, tty);
2004298: 11 00 80 71 sethi %hi(0x201c400), %o0
200429c: 92 10 20 01 mov 1, %o1
20042a0: 90 12 20 60 or %o0, 0x60, %o0
20042a4: 7f ff ff 96 call 20040fc <rtems_termios_puts>
20042a8: 94 10 00 19 mov %i1, %o2
c = '\n';
if (tty->termios.c_oflag & ONLRET)
tty->column = 0;
break;
}
tty->column = 0;
20042ac: 10 80 00 3b b 2004398 <oproc+0x174>
20042b0: c0 26 60 28 clr [ %i1 + 0x28 ]
tty->column = 0;
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
20042b4: 02 80 00 06 be 20042cc <oproc+0xa8> <== NOT EXECUTED
20042b8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
20042bc: c4 06 60 28 ld [ %i1 + 0x28 ], %g2 <== NOT EXECUTED
20042c0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20042c4: 02 80 00 17 be 2004320 <oproc+0xfc> <== NOT EXECUTED
20042c8: 80 88 60 08 btst 8, %g1 <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
20042cc: 22 80 00 33 be,a 2004398 <oproc+0x174> <== NOT EXECUTED
20042d0: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
c = '\n';
20042d4: 84 10 20 0a mov 0xa, %g2 <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
20042d8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
20042dc: 02 80 00 2f be 2004398 <oproc+0x174> <== NOT EXECUTED
20042e0: c4 2f a0 44 stb %g2, [ %fp + 0x44 ] <== NOT EXECUTED
tty->column = 0;
break;
}
tty->column = 0;
break;
20042e4: 10 80 00 2d b 2004398 <oproc+0x174> <== NOT EXECUTED
20042e8: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
20042ec: 07 00 00 06 sethi %hi(0x1800), %g3
20042f0: 82 08 40 03 and %g1, %g3, %g1
20042f4: 80 a0 40 03 cmp %g1, %g3
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
20042f8: 82 08 a0 07 and %g2, 7, %g1
20042fc: 92 10 20 08 mov 8, %o1
2004300: 92 22 40 01 sub %o1, %g1, %o1
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
2004304: 12 80 00 24 bne 2004394 <oproc+0x170> <== NEVER TAKEN
2004308: 82 02 40 02 add %o1, %g2, %g1
tty->column += i;
200430c: c2 26 60 28 st %g1, [ %i1 + 0x28 ]
rtems_termios_puts ( " ", i, tty);
2004310: 94 10 00 19 mov %i1, %o2
2004314: 11 00 80 71 sethi %hi(0x201c400), %o0
2004318: 7f ff ff 79 call 20040fc <rtems_termios_puts>
200431c: 90 12 20 68 or %o0, 0x68, %o0 ! 201c468 <rtems_filesystem_default_pathconf+0x50>
return;
2004320: 81 c7 e0 08 ret
2004324: 81 e8 00 00 restore
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
2004328: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200432c: 04 80 00 1b ble 2004398 <oproc+0x174> <== NOT EXECUTED
2004330: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
default:
if (tty->termios.c_oflag & OLCUC)
c = toupper(c);
if (!iscntrl(c))
tty->column++;
2004334: 10 80 00 19 b 2004398 <oproc+0x174> <== NOT EXECUTED
2004338: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
if (tty->column > 0)
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
200433c: 02 80 00 0d be 2004370 <oproc+0x14c> <== ALWAYS TAKEN
2004340: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1
c = toupper(c);
2004344: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
2004348: c2 00 61 1c ld [ %g1 + 0x11c ], %g1 ! 201d91c <__ctype_ptr__><== NOT EXECUTED
200434c: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED
2004350: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED
2004354: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED
2004358: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED
200435c: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2004360: 22 80 00 02 be,a 2004368 <oproc+0x144> <== NOT EXECUTED
2004364: b0 06 3f e0 add %i0, -32, %i0 <== NOT EXECUTED
2004368: f0 2f a0 44 stb %i0, [ %fp + 0x44 ] <== NOT EXECUTED
if (!iscntrl(c))
200436c: c2 0f a0 44 ldub [ %fp + 0x44 ], %g1 <== NOT EXECUTED
2004370: 05 00 80 76 sethi %hi(0x201d800), %g2
2004374: c4 00 a1 1c ld [ %g2 + 0x11c ], %g2 ! 201d91c <__ctype_ptr__>
2004378: 82 00 80 01 add %g2, %g1, %g1
200437c: c2 08 60 01 ldub [ %g1 + 1 ], %g1
2004380: 80 88 60 20 btst 0x20, %g1
2004384: 12 80 00 06 bne 200439c <oproc+0x178> <== NEVER TAKEN
2004388: 94 10 00 19 mov %i1, %o2
tty->column++;
200438c: c2 06 60 28 ld [ %i1 + 0x28 ], %g1
2004390: 82 00 60 01 inc %g1
2004394: c2 26 60 28 st %g1, [ %i1 + 0x28 ]
break;
}
}
rtems_termios_puts (&c, 1, tty);
2004398: 94 10 00 19 mov %i1, %o2
200439c: 90 07 a0 44 add %fp, 0x44, %o0
20043a0: 7f ff ff 57 call 20040fc <rtems_termios_puts>
20043a4: 92 10 20 01 mov 1, %o1
20043a8: 81 c7 e0 08 ret
20043ac: 81 e8 00 00 restore
0200ef40 <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
200ef40: 9d e3 bf 78 save %sp, -136, %sp
rtems_filesystem_location_info_t loc;
rtems_libio_t *iop;
int err = 0;
/* Create /tmp if not exists */
if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE)
200ef44: 23 00 80 73 sethi %hi(0x201cc00), %l1
200ef48: a0 07 bf dc add %fp, -36, %l0
200ef4c: 92 10 20 03 mov 3, %o1
200ef50: 90 14 61 f0 or %l1, 0x1f0, %o0
200ef54: 94 10 20 07 mov 7, %o2
200ef58: 96 10 00 10 mov %l0, %o3
200ef5c: 7f ff ce cb call 2002a88 <rtems_filesystem_evaluate_path>
200ef60: 98 10 20 01 mov 1, %o4
200ef64: 80 a2 20 00 cmp %o0, 0
200ef68: 02 80 00 10 be 200efa8 <pipe_create+0x68> <== NEVER TAKEN
200ef6c: c2 07 bf e8 ld [ %fp + -24 ], %g1
!= 0) {
if (errno != ENOENT)
200ef70: 40 00 06 76 call 2010948 <__errno>
200ef74: 01 00 00 00 nop
200ef78: c2 02 00 00 ld [ %o0 ], %g1
200ef7c: 80 a0 60 02 cmp %g1, 2
200ef80: 32 80 00 59 bne,a 200f0e4 <pipe_create+0x1a4> <== NEVER TAKEN
200ef84: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
200ef88: 90 14 61 f0 or %l1, 0x1f0, %o0
200ef8c: 7f ff cf fc call 2002f7c <mkdir>
200ef90: 92 10 23 ff mov 0x3ff, %o1
200ef94: 80 a2 20 00 cmp %o0, 0
200ef98: 02 80 00 0e be 200efd0 <pipe_create+0x90> <== ALWAYS TAKEN
200ef9c: 03 00 80 77 sethi %hi(0x201dc00), %g1
}
unlink(fifopath);
}
rtems_set_errno_and_return_minus_one(err);
}
200efa0: 81 c7 e0 08 ret <== NOT EXECUTED
200efa4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
return -1;
}
else
rtems_filesystem_freenode(&loc);
200efa8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200efac: 22 80 00 09 be,a 200efd0 <pipe_create+0x90> <== NOT EXECUTED
200efb0: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200efb4: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 ! 201dc1c <impure_data+0x2f4><== NOT EXECUTED
200efb8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200efbc: 22 80 00 05 be,a 200efd0 <pipe_create+0x90> <== NOT EXECUTED
200efc0: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200efc4: 9f c0 40 00 call %g1 <== NOT EXECUTED
200efc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200efcc: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200efd0: c4 10 63 40 lduh [ %g1 + 0x340 ], %g2 ! 201df40 <rtems_pipe_no>
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200efd4: 07 0b cb 99 sethi %hi(0x2f2e6400), %g3
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200efd8: 95 28 a0 10 sll %g2, 0x10, %o2
200efdc: 84 00 a0 01 inc %g2
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200efe0: 86 10 e2 69 or %g3, 0x269, %g3
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200efe4: c4 30 63 40 sth %g2, [ %g1 + 0x340 ]
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200efe8: 05 0b dd 1b sethi %hi(0x2f746c00), %g2
200efec: 03 00 00 19 sethi %hi(0x6400), %g1
200eff0: 84 10 a1 70 or %g2, 0x170, %g2
200eff4: 82 10 62 6f or %g1, 0x26f, %g1
200eff8: a0 07 bf f0 add %fp, -16, %l0
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200effc: 95 32 a0 10 srl %o2, 0x10, %o2
else
rtems_filesystem_freenode(&loc);
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
200f000: c4 3f bf f0 std %g2, [ %fp + -16 ]
200f004: c2 34 20 08 sth %g1, [ %l0 + 8 ]
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
200f008: 90 07 bf fa add %fp, -6, %o0
200f00c: 13 00 80 73 sethi %hi(0x201cc00), %o1
200f010: 40 00 09 3a call 20114f8 <sprintf>
200f014: 92 12 61 f8 or %o1, 0x1f8, %o1 ! 201cdf8 <__FUNCTION__.6119+0x20>
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
200f018: 90 10 00 10 mov %l0, %o0
200f01c: 40 00 01 bd call 200f710 <mkfifo>
200f020: 92 10 21 80 mov 0x180, %o1
200f024: 80 a2 20 00 cmp %o0, 0
200f028: 02 80 00 05 be 200f03c <pipe_create+0xfc> <== ALWAYS TAKEN
200f02c: 90 10 00 10 mov %l0, %o0
if (errno != EEXIST){
200f030: 40 00 06 46 call 2010948 <__errno> <== NOT EXECUTED
200f034: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200f038: 30 80 00 2b b,a 200f0e4 <pipe_create+0x1a4> <== NOT EXECUTED
return -1;
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
200f03c: 7f ff d1 bc call 200372c <open>
200f040: 13 00 00 10 sethi %hi(0x4000), %o1
if (filsdes[0] < 0) {
200f044: 80 a2 20 00 cmp %o0, 0
200f048: 16 80 00 07 bge 200f064 <pipe_create+0x124> <== NEVER TAKEN
200f04c: d0 26 00 00 st %o0, [ %i0 ]
err = errno;
200f050: 40 00 06 3e call 2010948 <__errno>
200f054: 01 00 00 00 nop
200f058: e2 02 00 00 ld [ %o0 ], %l1
/* Delete file at errors, or else if pipe is successfully created
the file node will be deleted after it is closed by all. */
unlink(fifopath);
200f05c: 10 80 00 1d b 200f0d0 <pipe_create+0x190>
200f060: 90 10 00 10 mov %l0, %o0
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
200f064: 03 00 80 75 sethi %hi(0x201d400), %g1 <== NOT EXECUTED
200f068: c4 00 62 a4 ld [ %g1 + 0x2a4 ], %g2 ! 201d6a4 <rtems_libio_number_iops><== NOT EXECUTED
200f06c: 80 a2 00 02 cmp %o0, %g2 <== NOT EXECUTED
200f070: 1a 80 00 08 bcc 200f090 <pipe_create+0x150> <== NOT EXECUTED
200f074: 82 10 20 00 clr %g1 <== NOT EXECUTED
200f078: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
200f07c: c2 00 60 b4 ld [ %g1 + 0xb4 ], %g1 ! 201e0b4 <rtems_libio_iops><== NOT EXECUTED
200f080: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
200f084: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
200f088: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
200f08c: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200f090: c4 00 60 18 ld [ %g1 + 0x18 ], %g2 <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
200f094: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
200f098: 84 08 bf fe and %g2, -2, %g2 <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
200f09c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200f0a0: 7f ff d1 a3 call 200372c <open> <== NOT EXECUTED
200f0a4: c4 20 60 18 st %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
200f0a8: d0 26 20 04 st %o0, [ %i0 + 4 ] <== NOT EXECUTED
if (filsdes[1] < 0) {
200f0ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200f0b0: 16 80 00 07 bge 200f0cc <pipe_create+0x18c> <== NOT EXECUTED
200f0b4: a2 10 20 00 clr %l1 <== NOT EXECUTED
err = errno;
200f0b8: 40 00 06 24 call 2010948 <__errno> <== NOT EXECUTED
200f0bc: 01 00 00 00 nop <== NOT EXECUTED
200f0c0: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED
close(filsdes[0]);
200f0c4: 7f ff f3 39 call 200bda8 <close> <== NOT EXECUTED
200f0c8: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
}
unlink(fifopath);
200f0cc: 90 07 bf f0 add %fp, -16, %o0 <== NOT EXECUTED
200f0d0: 40 00 01 98 call 200f730 <unlink>
200f0d4: b0 10 3f ff mov -1, %i0
}
rtems_set_errno_and_return_minus_one(err);
200f0d8: 40 00 06 1c call 2010948 <__errno>
200f0dc: 01 00 00 00 nop
200f0e0: e2 22 00 00 st %l1, [ %o0 ]
}
200f0e4: 81 c7 e0 08 ret
200f0e8: 81 e8 00 00 restore
0200a624 <pipe_free>:
/* Called with rtems_pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
200a624: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_barrier_delete(pipe->readBarrier);
200a628: 40 00 0a 25 call 200cebc <rtems_barrier_delete> <== NOT EXECUTED
200a62c: d0 06 20 2c ld [ %i0 + 0x2c ], %o0 <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
200a630: 40 00 0a 23 call 200cebc <rtems_barrier_delete> <== NOT EXECUTED
200a634: d0 06 20 30 ld [ %i0 + 0x30 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
200a638: 7f ff ef 15 call 200628c <rtems_semaphore_delete> <== NOT EXECUTED
200a63c: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
free(pipe->Buffer);
200a640: 7f ff e1 2f call 2002afc <free> <== NOT EXECUTED
200a644: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
free(pipe);
200a648: 7f ff e1 2d call 2002afc <free> <== NOT EXECUTED
200a64c: 81 e8 00 00 restore <== NOT EXECUTED
0200a248 <pipe_ioctl>:
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
200a248: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (cmd == FIONREAD) {
200a24c: 03 10 01 19 sethi %hi(0x40046400), %g1 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
200a250: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (cmd == FIONREAD) {
200a254: 82 10 62 7f or %g1, 0x27f, %g1 <== NOT EXECUTED
200a258: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
200a25c: 12 80 00 12 bne 200a2a4 <pipe_ioctl+0x5c> <== NOT EXECUTED
200a260: b0 10 3f ea mov -22, %i0 <== NOT EXECUTED
if (buffer == NULL)
200a264: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200a268: 02 80 00 0f be 200a2a4 <pipe_ioctl+0x5c> <== NOT EXECUTED
200a26c: b0 10 3f f2 mov -14, %i0 <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
200a270: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200a274: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a278: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a27c: 7f ff f0 32 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a280: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200a284: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a288: 12 80 00 07 bne 200a2a4 <pipe_ioctl+0x5c> <== NOT EXECUTED
200a28c: 01 00 00 00 nop <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
200a290: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a294: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
200a298: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a29c: 7f ff f0 71 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a2a0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
return -EINVAL;
}
200a2a4: 81 c7 e0 08 ret <== NOT EXECUTED
200a2a8: 81 e8 00 00 restore <== NOT EXECUTED
0200a1d4 <pipe_lseek>:
rtems_libio_t *iop
)
{
/* Seek on pipe is not supported */
return -ESPIPE;
}
200a1d4: 81 c3 e0 08 retl <== NOT EXECUTED
200a1d8: 90 10 3f e3 mov -29, %o0 <== NOT EXECUTED
0200a2ac <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200a2ac: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
200a2b0: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200a2b4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
200a2b8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a2bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a2c0: 7f ff f0 21 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a2c4: b0 10 20 00 clr %i0 <== NOT EXECUTED
200a2c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a2cc: 02 80 00 54 be 200a41c <pipe_read+0x170> <== NOT EXECUTED
200a2d0: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
200a2d4: 81 c7 e0 08 ret <== NOT EXECUTED
200a2d8: 91 e8 3f fc restore %g0, -4, %o0 <== NOT EXECUTED
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
200a2dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a2e0: 02 80 00 53 be 200a42c <pipe_read+0x180> <== NOT EXECUTED
200a2e4: a2 10 20 00 clr %l1 <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
200a2e8: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
200a2ec: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a2f0: 22 80 00 04 be,a 200a300 <pipe_read+0x54> <== NOT EXECUTED
200a2f4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
200a2f8: 10 80 00 4d b 200a42c <pipe_read+0x180> <== NOT EXECUTED
200a2fc: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
200a300: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
200a304: 82 00 60 01 inc %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a308: 7f ff f0 56 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a30c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
200a310: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200a314: 40 00 0b 1b call 200cf80 <rtems_barrier_wait> <== NOT EXECUTED
200a318: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a31c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a320: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
200a324: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a328: 92 10 20 00 clr %o1 <== NOT EXECUTED
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
200a32c: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a330: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a334: 7f ff f0 04 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a338: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED
200a33c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a340: 22 80 00 04 be,a 200a350 <pipe_read+0xa4> <== NOT EXECUTED
200a344: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
200a348: 10 80 00 3b b 200a434 <pipe_read+0x188> <== NOT EXECUTED
200a34c: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
if (ret != 0)
200a350: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
200a354: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (ret != 0)
200a358: 12 80 00 35 bne 200a42c <pipe_read+0x180> <== NOT EXECUTED
200a35c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
200a360: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED
200a364: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200a368: 22 bf ff dd be,a 200a2dc <pipe_read+0x30> <== NOT EXECUTED
200a36c: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
200a370: 82 26 80 18 sub %i2, %i0, %g1 <== NOT EXECUTED
200a374: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
200a378: 38 80 00 02 bgu,a 200a380 <pipe_read+0xd4> <== NOT EXECUTED
200a37c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
200a380: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
200a384: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED
200a388: 90 06 40 18 add %i1, %i0, %o0 <== NOT EXECUTED
200a38c: a4 24 80 01 sub %l2, %g1, %l2 <== NOT EXECUTED
if (chunk > chunk1) {
200a390: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200a394: 04 80 00 0a ble 200a3bc <pipe_read+0x110> <== NOT EXECUTED
200a398: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
200a39c: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
200a3a0: 40 00 1b a6 call 2011238 <memcpy> <== NOT EXECUTED
200a3a4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
200a3a8: 90 06 00 12 add %i0, %l2, %o0 <== NOT EXECUTED
200a3ac: d2 04 00 00 ld [ %l0 ], %o1 <== NOT EXECUTED
200a3b0: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED
200a3b4: 10 80 00 04 b 200a3c4 <pipe_read+0x118> <== NOT EXECUTED
200a3b8: 90 06 40 08 add %i1, %o0, %o0 <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
200a3bc: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
200a3c0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
200a3c4: 40 00 1b 9d call 2011238 <memcpy> <== NOT EXECUTED
200a3c8: 01 00 00 00 nop <== NOT EXECUTED
pipe->Start += chunk;
200a3cc: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
pipe->Start %= pipe->Size;
200a3d0: d2 04 20 04 ld [ %l0 + 4 ], %o1 <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
200a3d4: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
pipe->Start %= pipe->Size;
200a3d8: 40 00 3f 5b call 201a144 <.urem> <== NOT EXECUTED
200a3dc: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED
pipe->Length -= chunk;
200a3e0: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
pipe->Start %= pipe->Size;
200a3e4: d0 24 20 08 st %o0, [ %l0 + 8 ] <== NOT EXECUTED
pipe->Length -= chunk;
200a3e8: 82 20 40 11 sub %g1, %l1, %g1 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
200a3ec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a3f0: 12 80 00 03 bne 200a3fc <pipe_read+0x150> <== NOT EXECUTED
200a3f4: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
pipe->Start = 0;
200a3f8: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
if (pipe->waitingWriters > 0)
200a3fc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200a400: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a404: 22 80 00 06 be,a 200a41c <pipe_read+0x170> <== NOT EXECUTED
200a408: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
200a40c: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200a410: 40 00 0a c5 call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200a414: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
read += chunk;
200a418: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
200a41c: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED
200a420: 2a bf ff d1 bcs,a 200a364 <pipe_read+0xb8> <== NOT EXECUTED
200a424: e2 04 20 0c ld [ %l0 + 0xc ], %l1 <== NOT EXECUTED
200a428: a2 10 20 00 clr %l1 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
200a42c: 7f ff f0 0d call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a430: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
out_nolock:
if (read > 0)
200a434: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a438: 24 80 00 02 ble,a 200a440 <pipe_read+0x194> <== NOT EXECUTED
200a43c: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED
return read;
return ret;
}
200a440: 81 c7 e0 08 ret <== NOT EXECUTED
200a444: 81 e8 00 00 restore <== NOT EXECUTED
0200a654 <pipe_release>:
*/
int pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
200a654: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
200a658: e0 06 00 00 ld [ %i0 ], %l0 <== NOT EXECUTED
uint32_t mode;
rtems_status_code sc;
sc = rtems_semaphore_obtain(pipe->Semaphore,
200a65c: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a660: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200a664: 7f ff ef 38 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a668: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not released! */
if(sc != RTEMS_SUCCESSFUL)
200a66c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a670: 12 80 00 17 bne 200a6cc <pipe_release+0x78> <== NOT EXECUTED
200a674: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
mode = LIBIO_ACCMODE(iop);
200a678: e2 06 60 18 ld [ %i1 + 0x18 ], %l1 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
200a67c: 80 8c 60 02 btst 2, %l1 <== NOT EXECUTED
200a680: 02 80 00 05 be 200a694 <pipe_release+0x40> <== NOT EXECUTED
200a684: a2 0c 60 06 and %l1, 6, %l1 <== NOT EXECUTED
pipe->Readers --;
200a688: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a68c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
200a690: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
200a694: 80 8c 60 04 btst 4, %l1 <== NOT EXECUTED
200a698: 02 80 00 06 be 200a6b0 <pipe_release+0x5c> <== NOT EXECUTED
200a69c: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
pipe->Writers --;
200a6a0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200a6a4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
200a6a8: c2 24 20 14 st %g1, [ %l0 + 0x14 ] <== NOT EXECUTED
sc = rtems_semaphore_obtain(rtems_pipe_semaphore,
200a6ac: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200a6b0: d0 00 63 38 ld [ %g1 + 0x338 ], %o0 ! 201df38 <rtems_pipe_semaphore><== NOT EXECUTED
200a6b4: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a6b8: 7f ff ef 23 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a6bc: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
/* WARN pipe not freed and pipep not set to NULL! */
if(sc != RTEMS_SUCCESSFUL)
200a6c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a6c4: 02 80 00 04 be 200a6d4 <pipe_release+0x80> <== NOT EXECUTED
200a6c8: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred(sc);
200a6cc: 7f ff f0 b9 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
200a6d0: 01 00 00 00 nop <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a6d4: 7f ff ef 63 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a6d8: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
200a6dc: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a6e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a6e4: 12 80 00 0a bne 200a70c <pipe_release+0xb8> <== NOT EXECUTED
200a6e8: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
200a6ec: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
200a6f0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200a6f4: 12 80 00 06 bne 200a70c <pipe_release+0xb8> <== NOT EXECUTED
200a6f8: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
#if 0
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
200a6fc: 7f ff ff ca call 200a624 <pipe_free> <== NOT EXECUTED
200a700: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if(sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred(sc);
PIPE_UNLOCK(pipe);
if (pipe->Readers == 0 && pipe->Writers == 0) {
200a704: 10 80 00 12 b 200a74c <pipe_release+0xf8> <== NOT EXECUTED
200a708: c0 26 00 00 clr [ %i0 ] <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
200a70c: 02 80 00 07 be 200a728 <pipe_release+0xd4> <== NOT EXECUTED
200a710: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
200a714: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a718: 12 80 00 04 bne 200a728 <pipe_release+0xd4> <== NOT EXECUTED
200a71c: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
200a720: 10 80 00 09 b 200a744 <pipe_release+0xf0> <== NOT EXECUTED
200a724: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
200a728: 02 80 00 0a be 200a750 <pipe_release+0xfc> <== NOT EXECUTED
200a72c: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200a730: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
200a734: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a738: 12 80 00 06 bne 200a750 <pipe_release+0xfc> <== NOT EXECUTED
200a73c: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200a740: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200a744: 40 00 09 f8 call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200a748: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
rtems_semaphore_release(rtems_pipe_semaphore);
200a74c: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200a750: d0 00 63 38 ld [ %g1 + 0x338 ], %o0 ! 201df38 <rtems_pipe_semaphore><== NOT EXECUTED
200a754: 7f ff ef 43 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a758: b0 10 20 00 clr %i0 <== NOT EXECUTED
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return -errno;
#endif
return 0;
}
200a75c: 81 c7 e0 08 ret <== NOT EXECUTED
200a760: 81 e8 00 00 restore <== NOT EXECUTED
0200a448 <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
200a448: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
200a44c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
200a450: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200a454: 02 80 00 72 be 200a61c <pipe_write+0x1d4> <== NOT EXECUTED
200a458: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
if (! PIPE_LOCK(pipe))
200a45c: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
200a460: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a464: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a468: 7f ff ef b7 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a46c: b0 10 3f fc mov -4, %i0 <== NOT EXECUTED
200a470: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a474: 12 80 00 6a bne 200a61c <pipe_write+0x1d4> <== NOT EXECUTED
200a478: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
200a47c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a480: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a484: 02 80 00 5a be 200a5ec <pipe_write+0x1a4> <== NOT EXECUTED
200a488: b0 10 20 00 clr %i0 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
200a48c: c2 04 20 04 ld [ %l0 + 4 ], %g1 <== NOT EXECUTED
200a490: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
200a494: 08 80 00 04 bleu 200a4a4 <pipe_write+0x5c> <== NOT EXECUTED
200a498: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED
200a49c: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
200a4a0: b0 10 20 00 clr %i0 <== NOT EXECUTED
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
if (pipe->waitingReaders > 0)
PIPE_WAKEUPREADERS(pipe);
200a4a4: 10 80 00 4e b 200a5dc <pipe_write+0x194> <== NOT EXECUTED
200a4a8: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
if (LIBIO_NODELAY(iop)) {
200a4ac: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
200a4b0: 22 80 00 04 be,a 200a4c0 <pipe_write+0x78> <== NOT EXECUTED
200a4b4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200a4b8: 10 80 00 4d b 200a5ec <pipe_write+0x1a4> <== NOT EXECUTED
200a4bc: a2 10 3f f5 mov -11, %l1 <== NOT EXECUTED
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
200a4c0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
200a4c4: 82 00 60 01 inc %g1 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
200a4c8: 7f ff ef e6 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a4cc: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
200a4d0: d0 04 20 30 ld [ %l0 + 0x30 ], %o0 <== NOT EXECUTED
200a4d4: 40 00 0a ab call 200cf80 <rtems_barrier_wait> <== NOT EXECUTED
200a4d8: 92 10 20 00 clr %o1 <== NOT EXECUTED
200a4dc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a4e0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
200a4e4: a2 40 3f ff addx %g0, -1, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a4e8: 92 10 20 00 clr %o1 <== NOT EXECUTED
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
200a4ec: a2 0c 60 04 and %l1, 4, %l1 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
200a4f0: 94 10 20 00 clr %o2 <== NOT EXECUTED
200a4f4: 7f ff ef 94 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200a4f8: a2 04 7f fc add %l1, -4, %l1 <== NOT EXECUTED
200a4fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a500: 22 80 00 04 be,a 200a510 <pipe_write+0xc8> <== NOT EXECUTED
200a504: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
200a508: 10 80 00 42 b 200a610 <pipe_write+0x1c8> <== NOT EXECUTED
200a50c: a2 10 3f fc mov -4, %l1 <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
if (ret != 0)
200a510: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
200a514: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (ret != 0)
200a518: 12 80 00 35 bne 200a5ec <pipe_write+0x1a4> <== NOT EXECUTED
200a51c: c2 24 20 1c st %g1, [ %l0 + 0x1c ] <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
200a520: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200a524: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a528: 32 80 00 04 bne,a 200a538 <pipe_write+0xf0> <== NOT EXECUTED
200a52c: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED
200a530: 10 80 00 2f b 200a5ec <pipe_write+0x1a4> <== NOT EXECUTED
200a534: a2 10 3f e0 mov -32, %l1 <== NOT EXECUTED
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
200a538: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200a53c: a2 24 80 01 sub %l2, %g1, %l1 <== NOT EXECUTED
200a540: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
200a544: 2a bf ff da bcs,a 200a4ac <pipe_write+0x64> <== NOT EXECUTED
200a548: c2 06 e0 18 ld [ %i3 + 0x18 ], %g1 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
200a54c: 84 26 80 18 sub %i2, %i0, %g2 <== NOT EXECUTED
200a550: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
200a554: 38 80 00 02 bgu,a 200a55c <pipe_write+0x114> <== NOT EXECUTED
200a558: a2 10 00 02 mov %g2, %l1 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
200a55c: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200a560: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
200a564: 40 00 3e f8 call 201a144 <.urem> <== NOT EXECUTED
200a568: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
200a56c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
200a570: a4 24 80 08 sub %l2, %o0, %l2 <== NOT EXECUTED
if (chunk > chunk1) {
200a574: 80 a4 40 12 cmp %l1, %l2 <== NOT EXECUTED
200a578: 04 80 00 0a ble 200a5a0 <pipe_write+0x158> <== NOT EXECUTED
200a57c: 92 06 40 18 add %i1, %i0, %o1 <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
200a580: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
200a584: 40 00 1b 2d call 2011238 <memcpy> <== NOT EXECUTED
200a588: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
200a58c: 92 04 80 18 add %l2, %i0, %o1 <== NOT EXECUTED
200a590: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
200a594: 94 24 40 12 sub %l1, %l2, %o2 <== NOT EXECUTED
200a598: 10 80 00 04 b 200a5a8 <pipe_write+0x160> <== NOT EXECUTED
200a59c: 92 06 40 09 add %i1, %o1, %o1 <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
200a5a0: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
200a5a4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
200a5a8: 40 00 1b 24 call 2011238 <memcpy> <== NOT EXECUTED
200a5ac: 01 00 00 00 nop <== NOT EXECUTED
pipe->Length += chunk;
200a5b0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
200a5b4: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
pipe->Length += chunk;
200a5b8: 84 00 80 11 add %g2, %l1, %g2 <== NOT EXECUTED
if (pipe->waitingReaders > 0)
200a5bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a5c0: 02 80 00 05 be 200a5d4 <pipe_write+0x18c> <== NOT EXECUTED
200a5c4: c4 24 20 0c st %g2, [ %l0 + 0xc ] <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
200a5c8: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200a5cc: 40 00 0a 56 call 200cf24 <rtems_barrier_release> <== NOT EXECUTED
200a5d0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
written += chunk;
200a5d4: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
200a5d8: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
200a5dc: 80 a6 00 1a cmp %i0, %i2 <== NOT EXECUTED
200a5e0: 2a bf ff d6 bcs,a 200a538 <pipe_write+0xf0> <== NOT EXECUTED
200a5e4: e4 04 20 04 ld [ %l0 + 4 ], %l2 <== NOT EXECUTED
200a5e8: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
200a5ec: 7f ff ef 9d call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200a5f0: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
out_nolock:
#ifdef RTEMS_POSIX_API
/* Signal SIGPIPE */
if (ret == -EPIPE)
200a5f4: 80 a4 7f e0 cmp %l1, -32 <== NOT EXECUTED
200a5f8: 12 80 00 07 bne 200a614 <pipe_write+0x1cc> <== NOT EXECUTED
200a5fc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
kill(getpid(), SIGPIPE);
200a600: 40 00 06 5e call 200bf78 <getpid> <== NOT EXECUTED
200a604: 01 00 00 00 nop <== NOT EXECUTED
200a608: 40 00 08 4c call 200c738 <kill> <== NOT EXECUTED
200a60c: 92 10 20 0d mov 0xd, %o1 ! d <PROM_START+0xd> <== NOT EXECUTED
#endif
if (written > 0)
200a610: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200a614: 24 80 00 02 ble,a 200a61c <pipe_write+0x1d4> <== NOT EXECUTED
200a618: b0 10 00 11 mov %l1, %i0 <== NOT EXECUTED
return written;
return ret;
}
200a61c: 81 c7 e0 08 ret <== NOT EXECUTED
200a620: 81 e8 00 00 restore <== NOT EXECUTED
0200701c <posix_memalign>:
)
{
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
200701c: 05 00 80 9f sethi %hi(0x2027c00), %g2
2007020: 84 10 a3 70 or %g2, 0x370, %g2 ! 2027f70 <rtems_malloc_statistics>
2007024: c6 00 a0 08 ld [ %g2 + 8 ], %g3
2007028: 86 00 e0 01 inc %g3
200702c: c6 20 a0 08 st %g3, [ %g2 + 8 ]
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
2007030: 84 02 7f ff add %o1, -1, %g2
2007034: 80 88 80 09 btst %g2, %o1
2007038: 12 80 00 04 bne 2007048 <posix_memalign+0x2c> <== NEVER TAKEN
200703c: 80 a2 60 03 cmp %o1, 3
2007040: 18 80 00 04 bgu 2007050 <posix_memalign+0x34>
2007044: 01 00 00 00 nop
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
}
2007048: 81 c3 e0 08 retl
200704c: 90 10 20 16 mov 0x16, %o0 ! 16 <PROM_START+0x16>
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
2007050: 82 13 c0 00 mov %o7, %g1
2007054: 40 00 00 6a call 20071fc <rtems_memalign>
2007058: 9e 10 40 00 mov %g1, %o7
0200ad84 <pthread_attr_setschedpolicy>:
int pthread_attr_setschedpolicy(
pthread_attr_t *attr,
int policy
)
{
if ( !attr || !attr->is_initialized )
200ad84: 80 a2 20 00 cmp %o0, 0
200ad88: 02 80 00 10 be 200adc8 <pthread_attr_setschedpolicy+0x44>
200ad8c: 01 00 00 00 nop
200ad90: c2 02 00 00 ld [ %o0 ], %g1
200ad94: 80 a0 60 00 cmp %g1, 0
200ad98: 02 80 00 0c be 200adc8 <pthread_attr_setschedpolicy+0x44>
200ad9c: 80 a2 60 04 cmp %o1, 4
return EINVAL;
switch ( policy ) {
200ada0: 18 80 00 06 bgu 200adb8 <pthread_attr_setschedpolicy+0x34>
200ada4: 82 10 20 01 mov 1, %g1
200ada8: 83 28 40 09 sll %g1, %o1, %g1
200adac: 80 88 60 17 btst 0x17, %g1
200adb0: 32 80 00 04 bne,a 200adc0 <pthread_attr_setschedpolicy+0x3c><== ALWAYS TAKEN
200adb4: d2 22 20 14 st %o1, [ %o0 + 0x14 ]
200adb8: 81 c3 e0 08 retl
200adbc: 90 10 20 86 mov 0x86, %o0
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
case SCHED_SPORADIC:
attr->schedpolicy = policy;
return 0;
200adc0: 81 c3 e0 08 retl
200adc4: 90 10 20 00 clr %o0
default:
return ENOTSUP;
}
}
200adc8: 81 c3 e0 08 retl
200adcc: 90 10 20 16 mov 0x16, %o0
02006850 <pthread_barrier_init>:
int pthread_barrier_init(
pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr,
unsigned int count
)
{
2006850: 9d e3 bf 90 save %sp, -112, %sp
const pthread_barrierattr_t *the_attr;
/*
* Error check parameters
*/
if ( !barrier )
2006854: 80 a6 20 00 cmp %i0, 0
2006858: 02 80 00 2e be 2006910 <pthread_barrier_init+0xc0>
200685c: 80 a6 a0 00 cmp %i2, 0
return EINVAL;
if ( count == 0 )
2006860: 02 80 00 2c be 2006910 <pthread_barrier_init+0xc0>
2006864: 80 a6 60 00 cmp %i1, 0
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
2006868: 32 80 00 06 bne,a 2006880 <pthread_barrier_init+0x30>
200686c: c2 06 40 00 ld [ %i1 ], %g1
the_attr = attr;
} else {
(void) pthread_barrierattr_init( &my_attr );
2006870: b2 07 bf f0 add %fp, -16, %i1
2006874: 7f ff ff c0 call 2006774 <pthread_barrierattr_init>
2006878: 90 10 00 19 mov %i1, %o0
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
200687c: c2 06 40 00 ld [ %i1 ], %g1
2006880: 80 a0 60 00 cmp %g1, 0
2006884: 02 80 00 23 be 2006910 <pthread_barrier_init+0xc0>
2006888: 01 00 00 00 nop
return EINVAL;
switch ( the_attr->process_shared ) {
200688c: c2 06 60 04 ld [ %i1 + 4 ], %g1
2006890: 80 a0 60 00 cmp %g1, 0
2006894: 12 80 00 1f bne 2006910 <pthread_barrier_init+0xc0> <== NEVER TAKEN
2006898: 03 00 80 7f sethi %hi(0x201fc00), %g1
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
200689c: c4 00 60 f0 ld [ %g1 + 0xf0 ], %g2 ! 201fcf0 <_Thread_Dispatch_disable_level>
/*
* Convert from POSIX attributes to Core Barrier attributes
*/
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
the_attributes.maximum_count = count;
20068a0: f4 27 bf fc st %i2, [ %fp + -4 ]
20068a4: 84 00 a0 01 inc %g2
}
/*
* Convert from POSIX attributes to Core Barrier attributes
*/
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
20068a8: c0 27 bf f8 clr [ %fp + -8 ]
20068ac: c4 20 60 f0 st %g2, [ %g1 + 0xf0 ]
* This function allocates a barrier control block from
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{
return (POSIX_Barrier_Control *)
20068b0: 23 00 80 80 sethi %hi(0x2020000), %l1
20068b4: 40 00 08 60 call 2008a34 <_Objects_Allocate>
20068b8: 90 14 61 00 or %l1, 0x100, %o0 ! 2020100 <_POSIX_Barrier_Information>
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _POSIX_Barrier_Allocate();
if ( !the_barrier ) {
20068bc: a0 92 20 00 orcc %o0, 0, %l0
20068c0: 12 80 00 06 bne 20068d8 <pthread_barrier_init+0x88>
20068c4: 90 04 20 10 add %l0, 0x10, %o0
_Thread_Enable_dispatch();
20068c8: 40 00 0b ef call 2009884 <_Thread_Enable_dispatch>
20068cc: b0 10 20 0b mov 0xb, %i0
return EAGAIN;
20068d0: 81 c7 e0 08 ret
20068d4: 81 e8 00 00 restore
}
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
20068d8: 40 00 05 cd call 200800c <_CORE_barrier_Initialize>
20068dc: 92 07 bf f8 add %fp, -8, %o1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
20068e0: c4 14 20 0a lduh [ %l0 + 0xa ], %g2
20068e4: a2 14 61 00 or %l1, 0x100, %l1
20068e8: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
20068ec: c2 04 20 08 ld [ %l0 + 8 ], %g1
20068f0: 85 28 a0 02 sll %g2, 2, %g2
20068f4: e0 20 c0 02 st %l0, [ %g3 + %g2 ]
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
20068f8: c0 24 20 0c clr [ %l0 + 0xc ]
);
/*
* Exit the critical section and return the user an operational barrier
*/
*barrier = the_barrier->Object.id;
20068fc: c2 26 00 00 st %g1, [ %i0 ]
_Thread_Enable_dispatch();
2006900: 40 00 0b e1 call 2009884 <_Thread_Enable_dispatch>
2006904: b0 10 20 00 clr %i0
return 0;
2006908: 81 c7 e0 08 ret
200690c: 81 e8 00 00 restore
}
2006910: 81 c7 e0 08 ret
2006914: 91 e8 20 16 restore %g0, 0x16, %o0
02006004 <pthread_cleanup_push>:
void pthread_cleanup_push(
void (*routine)( void * ),
void *arg
)
{
2006004: 9d e3 bf a0 save %sp, -96, %sp
/*
* The POSIX standard does not address what to do when the routine
* is NULL. It also does not address what happens when we cannot
* allocate memory or anything else bad happens.
*/
if ( !routine )
2006008: 80 a6 20 00 cmp %i0, 0
200600c: 02 80 00 12 be 2006054 <pthread_cleanup_push+0x50>
2006010: 03 00 80 80 sethi %hi(0x2020000), %g1
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2006014: c4 00 61 e0 ld [ %g1 + 0x1e0 ], %g2 ! 20201e0 <_Thread_Dispatch_disable_level>
2006018: 84 00 a0 01 inc %g2
200601c: c4 20 61 e0 st %g2, [ %g1 + 0x1e0 ]
return;
_Thread_Disable_dispatch();
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
2006020: 40 00 11 90 call 200a660 <_Workspace_Allocate>
2006024: 90 10 20 10 mov 0x10, %o0
if ( handler ) {
2006028: 92 92 20 00 orcc %o0, 0, %o1
200602c: 02 80 00 08 be 200604c <pthread_cleanup_push+0x48> <== NEVER TAKEN
2006030: 03 00 80 80 sethi %hi(0x2020000), %g1
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
2006034: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1 ! 20202a0 <_Thread_Executing>
handler->routine = routine;
2006038: f0 22 60 08 st %i0, [ %o1 + 8 ]
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
if ( handler ) {
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
handler_stack = &thread_support->Cancellation_Handlers;
200603c: d0 00 61 6c ld [ %g1 + 0x16c ], %o0
handler->routine = routine;
handler->arg = arg;
2006040: f2 22 60 0c st %i1, [ %o1 + 0xc ]
_Chain_Append( handler_stack, &handler->Node );
2006044: 40 00 06 1a call 20078ac <_Chain_Append>
2006048: 90 02 20 e0 add %o0, 0xe0, %o0
}
_Thread_Enable_dispatch();
200604c: 40 00 0c 2c call 20090fc <_Thread_Enable_dispatch>
2006050: 81 e8 00 00 restore
2006054: 81 c7 e0 08 ret
2006058: 81 e8 00 00 restore
0200710c <pthread_cond_init>:
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr
)
{
200710c: 9d e3 bf a0 save %sp, -96, %sp
POSIX_Condition_variables_Control *the_cond;
const pthread_condattr_t *the_attr;
if ( attr ) the_attr = attr;
2007110: 25 00 80 7c sethi %hi(0x201f000), %l2
2007114: 80 a6 60 00 cmp %i1, 0
2007118: 02 80 00 03 be 2007124 <pthread_cond_init+0x18>
200711c: a4 14 a2 48 or %l2, 0x248, %l2
2007120: a4 10 00 19 mov %i1, %l2
/*
* Be careful about attributes when global!!!
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
2007124: c2 04 a0 04 ld [ %l2 + 4 ], %g1
2007128: 80 a0 60 01 cmp %g1, 1
200712c: 02 80 00 26 be 20071c4 <pthread_cond_init+0xb8> <== NEVER TAKEN
2007130: 01 00 00 00 nop
return EINVAL;
if ( !the_attr->is_initialized )
2007134: c2 04 80 00 ld [ %l2 ], %g1
2007138: 80 a0 60 00 cmp %g1, 0
200713c: 02 80 00 22 be 20071c4 <pthread_cond_init+0xb8>
2007140: 03 00 80 84 sethi %hi(0x2021000), %g1
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2007144: c4 00 60 50 ld [ %g1 + 0x50 ], %g2 ! 2021050 <_Thread_Dispatch_disable_level>
2007148: 84 00 a0 01 inc %g2
200714c: c4 20 60 50 st %g2, [ %g1 + 0x50 ]
*/
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
*_POSIX_Condition_variables_Allocate( void )
{
return (POSIX_Condition_variables_Control *)
2007150: 23 00 80 85 sethi %hi(0x2021400), %l1
2007154: 40 00 09 eb call 2009900 <_Objects_Allocate>
2007158: 90 14 60 f8 or %l1, 0xf8, %o0 ! 20214f8 <_POSIX_Condition_variables_Information>
_Thread_Disable_dispatch();
the_cond = _POSIX_Condition_variables_Allocate();
if ( !the_cond ) {
200715c: a0 92 20 00 orcc %o0, 0, %l0
2007160: 32 80 00 06 bne,a 2007178 <pthread_cond_init+0x6c>
2007164: c2 04 a0 04 ld [ %l2 + 4 ], %g1
_Thread_Enable_dispatch();
2007168: 40 00 0d 7a call 200a750 <_Thread_Enable_dispatch>
200716c: b0 10 20 0c mov 0xc, %i0
return ENOMEM;
2007170: 81 c7 e0 08 ret
2007174: 81 e8 00 00 restore
the_cond->process_shared = the_attr->process_shared;
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
/* XXX some more initialization might need to go here */
_Thread_queue_Initialize(
2007178: 90 04 20 18 add %l0, 0x18, %o0
if ( !the_cond ) {
_Thread_Enable_dispatch();
return ENOMEM;
}
the_cond->process_shared = the_attr->process_shared;
200717c: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
/* XXX some more initialization might need to go here */
_Thread_queue_Initialize(
2007180: 92 10 20 00 clr %o1
2007184: 94 10 28 00 mov 0x800, %o2
2007188: 96 10 20 74 mov 0x74, %o3
200718c: 40 00 0f 94 call 200afdc <_Thread_queue_Initialize>
2007190: c0 24 20 14 clr [ %l0 + 0x14 ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2007194: c4 14 20 0a lduh [ %l0 + 0xa ], %g2
2007198: a2 14 60 f8 or %l1, 0xf8, %l1
200719c: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
20071a0: c2 04 20 08 ld [ %l0 + 8 ], %g1
20071a4: 85 28 a0 02 sll %g2, 2, %g2
20071a8: e0 20 c0 02 st %l0, [ %g3 + %g2 ]
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
20071ac: c0 24 20 0c clr [ %l0 + 0xc ]
&_POSIX_Condition_variables_Information,
&the_cond->Object,
0
);
*cond = the_cond->Object.id;
20071b0: c2 26 00 00 st %g1, [ %i0 ]
_Thread_Enable_dispatch();
20071b4: 40 00 0d 67 call 200a750 <_Thread_Enable_dispatch>
20071b8: b0 10 20 00 clr %i0
return 0;
20071bc: 81 c7 e0 08 ret
20071c0: 81 e8 00 00 restore
}
20071c4: 81 c7 e0 08 ret
20071c8: 91 e8 20 16 restore %g0, 0x16, %o0
02006f84 <pthread_condattr_destroy>:
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
2006f84: 80 a2 20 00 cmp %o0, 0
2006f88: 02 80 00 09 be 2006fac <pthread_condattr_destroy+0x28>
2006f8c: 01 00 00 00 nop
2006f90: c2 02 00 00 ld [ %o0 ], %g1
2006f94: 80 a0 60 00 cmp %g1, 0
2006f98: 02 80 00 05 be 2006fac <pthread_condattr_destroy+0x28> <== NEVER TAKEN
2006f9c: 01 00 00 00 nop
return EINVAL;
attr->is_initialized = false;
2006fa0: c0 22 00 00 clr [ %o0 ]
return 0;
2006fa4: 81 c3 e0 08 retl
2006fa8: 90 10 20 00 clr %o0
}
2006fac: 81 c3 e0 08 retl
2006fb0: 90 10 20 16 mov 0x16, %o0
020064ec <pthread_create>:
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
20064ec: 9d e3 bf 58 save %sp, -168, %sp
20064f0: a0 10 00 18 mov %i0, %l0
int schedpolicy = SCHED_RR;
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
20064f4: 80 a6 a0 00 cmp %i2, 0
20064f8: 02 80 00 8b be 2006724 <pthread_create+0x238>
20064fc: b0 10 20 0e mov 0xe, %i0
return EFAULT;
the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
2006500: 23 00 80 76 sethi %hi(0x201d800), %l1
2006504: 80 a6 60 00 cmp %i1, 0
2006508: 02 80 00 03 be 2006514 <pthread_create+0x28>
200650c: a2 14 61 a0 or %l1, 0x1a0, %l1
2006510: a2 10 00 19 mov %i1, %l1
if ( !the_attr->is_initialized )
2006514: c2 04 40 00 ld [ %l1 ], %g1
2006518: 80 a0 60 00 cmp %g1, 0
200651c: 22 80 00 82 be,a 2006724 <pthread_create+0x238>
2006520: b0 10 20 16 mov 0x16, %i0
* stack space if it is allowed to allocate it itself.
*
* NOTE: If the user provides the stack we will let it drop below
* twice the minimum.
*/
if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
2006524: c2 04 60 04 ld [ %l1 + 4 ], %g1
2006528: 80 a0 60 00 cmp %g1, 0
200652c: 02 80 00 07 be 2006548 <pthread_create+0x5c>
2006530: 03 00 80 7b sethi %hi(0x201ec00), %g1
2006534: c4 04 60 08 ld [ %l1 + 8 ], %g2
2006538: c2 00 60 64 ld [ %g1 + 0x64 ], %g1
200653c: 80 a0 80 01 cmp %g2, %g1
2006540: 2a 80 00 79 bcs,a 2006724 <pthread_create+0x238>
2006544: b0 10 20 16 mov 0x16, %i0
* If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
* inherits scheduling attributes from the creating thread. If it is
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
2006548: c2 04 60 10 ld [ %l1 + 0x10 ], %g1
200654c: 80 a0 60 01 cmp %g1, 1
2006550: 02 80 00 06 be 2006568 <pthread_create+0x7c>
2006554: 80 a0 60 02 cmp %g1, 2
2006558: 12 80 00 73 bne 2006724 <pthread_create+0x238>
200655c: b0 10 20 16 mov 0x16, %i0
schedpolicy = api->schedpolicy;
schedparam = api->schedparam;
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
2006560: 10 80 00 0a b 2006588 <pthread_create+0x9c>
2006564: e6 04 60 14 ld [ %l1 + 0x14 ], %l3
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
2006568: 03 00 80 7e sethi %hi(0x201f800), %g1
200656c: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 ! 201f840 <_Thread_Executing>
schedpolicy = api->schedpolicy;
schedparam = api->schedparam;
2006570: 90 07 bf dc add %fp, -36, %o0
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
2006574: c2 00 61 6c ld [ %g1 + 0x16c ], %g1
schedpolicy = api->schedpolicy;
schedparam = api->schedparam;
2006578: 94 10 20 1c mov 0x1c, %o2
200657c: 92 00 60 84 add %g1, 0x84, %o1
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
schedpolicy = api->schedpolicy;
2006580: 10 80 00 05 b 2006594 <pthread_create+0xa8>
2006584: e6 00 60 80 ld [ %g1 + 0x80 ], %l3
schedparam = api->schedparam;
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
schedparam = the_attr->schedparam;
2006588: 90 07 bf dc add %fp, -36, %o0
200658c: 92 04 60 18 add %l1, 0x18, %o1
2006590: 94 10 20 1c mov 0x1c, %o2
2006594: 40 00 2f 0f call 20121d0 <memcpy>
2006598: b0 10 20 86 mov 0x86, %i0
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
200659c: c2 04 60 0c ld [ %l1 + 0xc ], %g1
20065a0: 80 a0 60 00 cmp %g1, 0
20065a4: 12 80 00 62 bne 200672c <pthread_create+0x240>
20065a8: 01 00 00 00 nop
return ENOTSUP;
/*
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
20065ac: 40 00 1e 1b call 200de18 <_POSIX_Priority_Is_valid>
20065b0: d0 07 bf dc ld [ %fp + -36 ], %o0
20065b4: 80 8a 20 ff btst 0xff, %o0
20065b8: 02 80 00 5b be 2006724 <pthread_create+0x238> <== NEVER TAKEN
20065bc: b0 10 20 16 mov 0x16, %i0
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
20065c0: 03 00 80 7b sethi %hi(0x201ec00), %g1
return EINVAL;
core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
20065c4: e8 07 bf dc ld [ %fp + -36 ], %l4
20065c8: ea 08 60 68 ldub [ %g1 + 0x68 ], %l5
/*
* Set the core scheduling policy information.
*/
rc = _POSIX_Thread_Translate_sched_param(
20065cc: 90 10 00 13 mov %l3, %o0
20065d0: 92 07 bf dc add %fp, -36, %o1
20065d4: 94 07 bf fc add %fp, -4, %o2
20065d8: 40 00 1e 1b call 200de44 <_POSIX_Thread_Translate_sched_param>
20065dc: 96 07 bf f8 add %fp, -8, %o3
schedpolicy,
&schedparam,
&budget_algorithm,
&budget_callout
);
if ( rc )
20065e0: b0 92 20 00 orcc %o0, 0, %i0
20065e4: 12 80 00 50 bne 2006724 <pthread_create+0x238>
20065e8: 2d 00 80 7e sethi %hi(0x201f800), %l6
#endif
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
20065ec: 40 00 06 1c call 2007e5c <_API_Mutex_Lock>
20065f0: d0 05 a0 38 ld [ %l6 + 0x38 ], %o0 ! 201f838 <_RTEMS_Allocator_Mutex>
* _POSIX_Threads_Allocate
*/
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
20065f4: 11 00 80 7e sethi %hi(0x201f800), %o0
20065f8: 40 00 08 bb call 20088e4 <_Objects_Allocate>
20065fc: 90 12 22 10 or %o0, 0x210, %o0 ! 201fa10 <_POSIX_Threads_Information>
* Allocate the thread control block.
*
* NOTE: Global threads are not currently supported.
*/
the_thread = _POSIX_Threads_Allocate();
if ( !the_thread ) {
2006600: a4 92 20 00 orcc %o0, 0, %l2
2006604: 32 80 00 04 bne,a 2006614 <pthread_create+0x128>
2006608: c2 04 60 08 ld [ %l1 + 8 ], %g1
_RTEMS_Unlock_allocator();
200660c: 10 80 00 21 b 2006690 <pthread_create+0x1a4>
2006610: d0 05 a0 38 ld [ %l6 + 0x38 ], %o0
/*
* Initialize the core thread for this task.
*/
name.name_p = NULL; /* posix threads don't have a name by default */
status = _Thread_Initialize(
2006614: 05 00 80 7b sethi %hi(0x201ec00), %g2
2006618: d6 00 a0 64 ld [ %g2 + 0x64 ], %o3 ! 201ec64 <rtems_minimum_stack_size>
200661c: c0 27 bf d4 clr [ %fp + -44 ]
2006620: 97 2a e0 01 sll %o3, 1, %o3
2006624: 80 a2 c0 01 cmp %o3, %g1
2006628: 1a 80 00 03 bcc 2006634 <pthread_create+0x148>
200662c: d4 04 60 04 ld [ %l1 + 4 ], %o2
2006630: 96 10 00 01 mov %g1, %o3
2006634: c2 07 bf fc ld [ %fp + -4 ], %g1
2006638: 9a 0d 60 ff and %l5, 0xff, %o5
200663c: c2 23 a0 60 st %g1, [ %sp + 0x60 ]
2006640: c2 07 bf f8 ld [ %fp + -8 ], %g1
2006644: 9a 23 40 14 sub %o5, %l4, %o5
2006648: c2 23 a0 64 st %g1, [ %sp + 0x64 ]
200664c: 82 07 bf d4 add %fp, -44, %g1
2006650: c0 23 a0 68 clr [ %sp + 0x68 ]
2006654: a8 10 20 01 mov 1, %l4
2006658: c2 23 a0 6c st %g1, [ %sp + 0x6c ]
200665c: e8 23 a0 5c st %l4, [ %sp + 0x5c ]
2006660: 2b 00 80 7e sethi %hi(0x201f800), %l5
2006664: 92 10 00 12 mov %l2, %o1
2006668: 90 15 62 10 or %l5, 0x210, %o0
200666c: 40 00 0c 80 call 200986c <_Thread_Initialize>
2006670: 98 10 20 01 mov 1, %o4
budget_callout,
0, /* isr level */
name /* posix threads don't have a name */
);
if ( !status ) {
2006674: 80 8a 20 ff btst 0xff, %o0
2006678: 12 80 00 08 bne 2006698 <pthread_create+0x1ac>
200667c: 90 15 62 10 or %l5, 0x210, %o0
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
{
_Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
2006680: 40 00 09 73 call 2008c4c <_Objects_Free>
2006684: 92 10 00 12 mov %l2, %o1
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
2006688: 03 00 80 7e sethi %hi(0x201f800), %g1
200668c: d0 00 60 38 ld [ %g1 + 0x38 ], %o0 ! 201f838 <_RTEMS_Allocator_Mutex>
2006690: 10 80 00 23 b 200671c <pthread_create+0x230>
2006694: b0 10 20 0b mov 0xb, %i0
}
/*
* finish initializing the per API structure
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
2006698: ea 04 a1 6c ld [ %l2 + 0x16c ], %l5
api->Attributes = *the_attr;
200669c: 92 10 00 11 mov %l1, %o1
20066a0: 94 10 20 3c mov 0x3c, %o2
20066a4: 40 00 2e cb call 20121d0 <memcpy>
20066a8: 90 10 00 15 mov %l5, %o0
api->detachstate = the_attr->detachstate;
20066ac: c2 04 60 38 ld [ %l1 + 0x38 ], %g1
api->schedpolicy = schedpolicy;
api->schedparam = schedparam;
20066b0: 92 07 bf dc add %fp, -36, %o1
* finish initializing the per API structure
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->Attributes = *the_attr;
api->detachstate = the_attr->detachstate;
20066b4: c2 25 60 3c st %g1, [ %l5 + 0x3c ]
api->schedpolicy = schedpolicy;
api->schedparam = schedparam;
20066b8: 94 10 20 1c mov 0x1c, %o2
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->Attributes = *the_attr;
api->detachstate = the_attr->detachstate;
api->schedpolicy = schedpolicy;
20066bc: e6 25 60 80 st %l3, [ %l5 + 0x80 ]
api->schedparam = schedparam;
20066c0: 40 00 2e c4 call 20121d0 <memcpy>
20066c4: 90 05 60 84 add %l5, 0x84, %o0
the_thread->do_post_task_switch_extension = true;
/*
* POSIX threads are allocated and started in one operation.
*/
status = _Thread_Start(
20066c8: 94 10 00 1a mov %i2, %o2
* This insures we evaluate the process-wide signals pending when we
* first run.
*
* NOTE: Since the thread starts with all unblocked, this is necessary.
*/
the_thread->do_post_task_switch_extension = true;
20066cc: e8 2c a0 74 stb %l4, [ %l2 + 0x74 ]
/*
* POSIX threads are allocated and started in one operation.
*/
status = _Thread_Start(
20066d0: 96 10 00 1b mov %i3, %o3
20066d4: 90 10 00 12 mov %l2, %o0
20066d8: 92 10 20 01 mov 1, %o1
20066dc: 40 00 0f 53 call 200a428 <_Thread_Start>
20066e0: 98 10 20 00 clr %o4
_RTEMS_Unlock_allocator();
return EINVAL;
}
#endif
if ( schedpolicy == SCHED_SPORADIC ) {
20066e4: 80 a4 e0 04 cmp %l3, 4
20066e8: 32 80 00 0a bne,a 2006710 <pthread_create+0x224>
20066ec: c2 04 a0 08 ld [ %l2 + 8 ], %g1
_Watchdog_Insert_ticks(
20066f0: 40 00 0f f7 call 200a6cc <_Timespec_To_ticks>
20066f4: 90 05 60 8c add %l5, 0x8c, %o0
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
20066f8: 92 05 60 a4 add %l5, 0xa4, %o1
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
20066fc: d0 25 60 b0 st %o0, [ %l5 + 0xb0 ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2006700: 11 00 80 7e sethi %hi(0x201f800), %o0
2006704: 40 00 10 d3 call 200aa50 <_Watchdog_Insert>
2006708: 90 12 20 60 or %o0, 0x60, %o0 ! 201f860 <_Watchdog_Ticks_chain>
}
/*
* Return the id and indicate we successfully created the thread
*/
*thread = the_thread->Object.id;
200670c: c2 04 a0 08 ld [ %l2 + 8 ], %g1
_RTEMS_Unlock_allocator();
2006710: 05 00 80 7e sethi %hi(0x201f800), %g2
2006714: d0 00 a0 38 ld [ %g2 + 0x38 ], %o0 ! 201f838 <_RTEMS_Allocator_Mutex>
}
/*
* Return the id and indicate we successfully created the thread
*/
*thread = the_thread->Object.id;
2006718: c2 24 00 00 st %g1, [ %l0 ]
_RTEMS_Unlock_allocator();
200671c: 40 00 05 e6 call 2007eb4 <_API_Mutex_Unlock>
2006720: 01 00 00 00 nop
return 0;
2006724: 81 c7 e0 08 ret
2006728: 81 e8 00 00 restore
}
200672c: 81 c7 e0 08 ret
2006730: 81 e8 00 00 restore
020101d8 <pthread_kill>:
int pthread_kill(
pthread_t thread,
int sig
)
{
20101d8: 9d e3 bf 98 save %sp, -104, %sp
POSIX_API_Control *api;
Thread_Control *the_thread;
Objects_Locations location;
if ( !sig )
20101dc: 80 a6 60 00 cmp %i1, 0
20101e0: 02 80 00 06 be 20101f8 <pthread_kill+0x20> <== NEVER TAKEN
20101e4: 90 10 00 18 mov %i0, %o0
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
20101e8: a2 06 7f ff add %i1, -1, %l1
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
20101ec: 80 a4 60 1f cmp %l1, 0x1f
20101f0: 08 80 00 08 bleu 2010210 <pthread_kill+0x38>
20101f4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
20101f8: 40 00 01 d4 call 2010948 <__errno>
20101fc: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
2010200: 82 10 20 16 mov 0x16, %g1
2010204: c2 22 00 00 st %g1, [ %o0 ]
2010208: 81 c7 e0 08 ret
201020c: 81 e8 00 00 restore
the_thread = _Thread_Get( thread, &location );
2010210: 7f ff e1 12 call 2008658 <_Thread_Get>
2010214: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2010218: c2 07 bf fc ld [ %fp + -4 ], %g1
201021c: 80 a0 60 00 cmp %g1, 0
2010220: 12 80 00 23 bne 20102ac <pthread_kill+0xd4> <== NEVER TAKEN
2010224: a0 10 00 08 mov %o0, %l0
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( sig ) {
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {
2010228: 83 2e 60 02 sll %i1, 2, %g1
201022c: 85 2e 60 04 sll %i1, 4, %g2
2010230: 84 20 80 01 sub %g2, %g1, %g2
2010234: 03 00 80 7a sethi %hi(0x201e800), %g1
2010238: 82 10 60 18 or %g1, 0x18, %g1 ! 201e818 <_POSIX_signals_Vectors>
201023c: 82 00 40 02 add %g1, %g2, %g1
2010240: c4 00 60 08 ld [ %g1 + 8 ], %g2
2010244: 80 a0 a0 01 cmp %g2, 1
2010248: 02 80 00 15 be 201029c <pthread_kill+0xc4> <== NEVER TAKEN
201024c: c2 02 21 6c ld [ %o0 + 0x16c ], %g1
return 0;
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
2010250: c4 00 60 d0 ld [ %g1 + 0xd0 ], %g2
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
2010254: 92 10 00 19 mov %i1, %o1
2010258: 94 10 20 00 clr %o2
return 0;
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
201025c: b2 10 20 01 mov 1, %i1
2010260: a3 2e 40 11 sll %i1, %l1, %l1
2010264: a2 10 80 11 or %g2, %l1, %l1
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
2010268: 7f ff ff 4c call 200ff98 <_POSIX_signals_Unblock_thread>
201026c: e2 20 60 d0 st %l1, [ %g1 + 0xd0 ]
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
2010270: 03 00 80 78 sethi %hi(0x201e000), %g1
2010274: c2 00 63 2c ld [ %g1 + 0x32c ], %g1 ! 201e32c <_ISR_Nest_level>
2010278: 80 a0 60 00 cmp %g1, 0
201027c: 02 80 00 08 be 201029c <pthread_kill+0xc4>
2010280: f2 2c 20 74 stb %i1, [ %l0 + 0x74 ]
2010284: 03 00 80 78 sethi %hi(0x201e000), %g1
2010288: c2 00 63 50 ld [ %g1 + 0x350 ], %g1 ! 201e350 <_Thread_Executing>
201028c: 80 a4 00 01 cmp %l0, %g1
2010290: 12 80 00 03 bne 201029c <pthread_kill+0xc4>
2010294: 03 00 80 78 sethi %hi(0x201e000), %g1
_ISR_Signals_to_thread_executing = true;
2010298: f2 28 63 e8 stb %i1, [ %g1 + 0x3e8 ] ! 201e3e8 <_ISR_Signals_to_thread_executing>
}
_Thread_Enable_dispatch();
201029c: 7f ff e0 e2 call 2008624 <_Thread_Enable_dispatch>
20102a0: b0 10 20 00 clr %i0
return 0;
20102a4: 81 c7 e0 08 ret
20102a8: 81 e8 00 00 restore
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( ESRCH );
20102ac: 40 00 01 a7 call 2010948 <__errno> <== NOT EXECUTED
20102b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20102b4: 82 10 20 03 mov 3, %g1 <== NOT EXECUTED
20102b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
20102bc: 81 c7 e0 08 ret <== NOT EXECUTED
20102c0: 81 e8 00 00 restore <== NOT EXECUTED
02005d80 <pthread_mutexattr_gettype>:
int pthread_mutexattr_gettype(
const pthread_mutexattr_t *attr,
int *type
)
{
if ( !attr )
2005d80: 80 a2 20 00 cmp %o0, 0
2005d84: 02 80 00 0c be 2005db4 <pthread_mutexattr_gettype+0x34>
2005d88: 01 00 00 00 nop
return EINVAL;
if ( !attr->is_initialized )
2005d8c: c2 02 00 00 ld [ %o0 ], %g1
2005d90: 80 a0 60 00 cmp %g1, 0
2005d94: 02 80 00 08 be 2005db4 <pthread_mutexattr_gettype+0x34>
2005d98: 80 a2 60 00 cmp %o1, 0
return EINVAL;
if ( !type )
2005d9c: 02 80 00 06 be 2005db4 <pthread_mutexattr_gettype+0x34> <== NEVER TAKEN
2005da0: 01 00 00 00 nop
return EINVAL;
*type = attr->type;
2005da4: c2 02 20 10 ld [ %o0 + 0x10 ], %g1
2005da8: 90 10 20 00 clr %o0
return 0;
2005dac: 81 c3 e0 08 retl
2005db0: c2 22 40 00 st %g1, [ %o1 ]
}
2005db4: 81 c3 e0 08 retl
2005db8: 90 10 20 16 mov 0x16, %o0
020082e4 <pthread_mutexattr_setpshared>:
int pthread_mutexattr_setpshared(
pthread_mutexattr_t *attr,
int pshared
)
{
if ( !attr || !attr->is_initialized )
20082e4: 80 a2 20 00 cmp %o0, 0
20082e8: 02 80 00 0b be 2008314 <pthread_mutexattr_setpshared+0x30>
20082ec: 01 00 00 00 nop
20082f0: c2 02 00 00 ld [ %o0 ], %g1
20082f4: 80 a0 60 00 cmp %g1, 0
20082f8: 02 80 00 07 be 2008314 <pthread_mutexattr_setpshared+0x30>
20082fc: 80 a2 60 01 cmp %o1, 1
return EINVAL;
switch ( pshared ) {
2008300: 18 80 00 05 bgu 2008314 <pthread_mutexattr_setpshared+0x30><== NEVER TAKEN
2008304: 01 00 00 00 nop
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
2008308: d2 22 20 04 st %o1, [ %o0 + 4 ]
return 0;
200830c: 81 c3 e0 08 retl
2008310: 90 10 20 00 clr %o0
default:
return EINVAL;
}
}
2008314: 81 c3 e0 08 retl
2008318: 90 10 20 16 mov 0x16, %o0
02005de8 <pthread_mutexattr_settype>:
int pthread_mutexattr_settype(
pthread_mutexattr_t *attr,
int type
)
{
if ( !attr || !attr->is_initialized )
2005de8: 80 a2 20 00 cmp %o0, 0
2005dec: 02 80 00 0b be 2005e18 <pthread_mutexattr_settype+0x30>
2005df0: 01 00 00 00 nop
2005df4: c2 02 00 00 ld [ %o0 ], %g1
2005df8: 80 a0 60 00 cmp %g1, 0
2005dfc: 02 80 00 07 be 2005e18 <pthread_mutexattr_settype+0x30> <== NEVER TAKEN
2005e00: 80 a2 60 03 cmp %o1, 3
return EINVAL;
switch ( type ) {
2005e04: 18 80 00 05 bgu 2005e18 <pthread_mutexattr_settype+0x30>
2005e08: 01 00 00 00 nop
case PTHREAD_MUTEX_NORMAL:
case PTHREAD_MUTEX_RECURSIVE:
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_DEFAULT:
attr->type = type;
2005e0c: d2 22 20 10 st %o1, [ %o0 + 0x10 ]
return 0;
2005e10: 81 c3 e0 08 retl
2005e14: 90 10 20 00 clr %o0
default:
return EINVAL;
}
}
2005e18: 81 c3 e0 08 retl
2005e1c: 90 10 20 16 mov 0x16, %o0
02006b98 <pthread_once>:
int pthread_once(
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
2006b98: 9d e3 bf 98 save %sp, -104, %sp
if ( !once_control || !init_routine )
2006b9c: 80 a6 60 00 cmp %i1, 0
2006ba0: 02 80 00 05 be 2006bb4 <pthread_once+0x1c>
2006ba4: a0 10 00 18 mov %i0, %l0
2006ba8: 80 a6 20 00 cmp %i0, 0
2006bac: 32 80 00 04 bne,a 2006bbc <pthread_once+0x24>
2006bb0: c2 06 20 04 ld [ %i0 + 4 ], %g1
2006bb4: 81 c7 e0 08 ret
2006bb8: 91 e8 20 16 restore %g0, 0x16, %o0
return EINVAL;
if ( !once_control->init_executed ) {
2006bbc: 80 a0 60 00 cmp %g1, 0
2006bc0: 12 80 00 13 bne 2006c0c <pthread_once+0x74>
2006bc4: b0 10 20 00 clr %i0
rtems_mode saveMode;
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
2006bc8: 90 10 21 00 mov 0x100, %o0
2006bcc: 92 10 21 00 mov 0x100, %o1
2006bd0: 40 00 03 02 call 20077d8 <rtems_task_mode>
2006bd4: 94 07 bf fc add %fp, -4, %o2
if ( !once_control->init_executed ) {
2006bd8: c2 04 20 04 ld [ %l0 + 4 ], %g1
2006bdc: 80 a0 60 00 cmp %g1, 0
2006be0: 12 80 00 07 bne 2006bfc <pthread_once+0x64> <== NEVER TAKEN
2006be4: d0 07 bf fc ld [ %fp + -4 ], %o0
once_control->is_initialized = true;
2006be8: 82 10 20 01 mov 1, %g1
once_control->init_executed = true;
2006bec: c2 24 20 04 st %g1, [ %l0 + 4 ]
(*init_routine)();
2006bf0: 9f c6 40 00 call %i1
2006bf4: c2 24 00 00 st %g1, [ %l0 ]
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
2006bf8: d0 07 bf fc ld [ %fp + -4 ], %o0
2006bfc: 92 10 21 00 mov 0x100, %o1
2006c00: 94 07 bf fc add %fp, -4, %o2
2006c04: 40 00 02 f5 call 20077d8 <rtems_task_mode>
2006c08: b0 10 20 00 clr %i0
}
return 0;
}
2006c0c: 81 c7 e0 08 ret
2006c10: 81 e8 00 00 restore
02007350 <pthread_rwlock_init>:
int pthread_rwlock_init(
pthread_rwlock_t *rwlock,
const pthread_rwlockattr_t *attr
)
{
2007350: 9d e3 bf 90 save %sp, -112, %sp
const pthread_rwlockattr_t *the_attr;
/*
* Error check parameters
*/
if ( !rwlock )
2007354: 80 a6 20 00 cmp %i0, 0
2007358: 02 80 00 2a be 2007400 <pthread_rwlock_init+0xb0>
200735c: 80 a6 60 00 cmp %i1, 0
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
2007360: 32 80 00 06 bne,a 2007378 <pthread_rwlock_init+0x28>
2007364: c2 06 40 00 ld [ %i1 ], %g1
the_attr = attr;
} else {
(void) pthread_rwlockattr_init( &default_attr );
2007368: b2 07 bf f4 add %fp, -12, %i1
200736c: 40 00 02 91 call 2007db0 <pthread_rwlockattr_init>
2007370: 90 10 00 19 mov %i1, %o0
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
2007374: c2 06 40 00 ld [ %i1 ], %g1
2007378: 80 a0 60 00 cmp %g1, 0
200737c: 02 80 00 21 be 2007400 <pthread_rwlock_init+0xb0> <== NEVER TAKEN
2007380: 01 00 00 00 nop
return EINVAL;
switch ( the_attr->process_shared ) {
2007384: c2 06 60 04 ld [ %i1 + 4 ], %g1
2007388: 80 a0 60 00 cmp %g1, 0
200738c: 12 80 00 1d bne 2007400 <pthread_rwlock_init+0xb0> <== NEVER TAKEN
2007390: 03 00 80 85 sethi %hi(0x2021400), %g1
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2007394: c4 00 61 a0 ld [ %g1 + 0x1a0 ], %g2 ! 20215a0 <_Thread_Dispatch_disable_level>
2007398: 84 00 a0 01 inc %g2
200739c: c4 20 61 a0 st %g2, [ %g1 + 0x1a0 ]
* This function allocates a RWLock control block from
* the inactive chain of free RWLock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{
return (POSIX_RWLock_Control *)
20073a0: 23 00 80 85 sethi %hi(0x2021400), %l1
20073a4: 40 00 0a 07 call 2009bc0 <_Objects_Allocate>
20073a8: 90 14 63 f0 or %l1, 0x3f0, %o0 ! 20217f0 <_POSIX_RWLock_Information>
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_rwlock = _POSIX_RWLock_Allocate();
if ( !the_rwlock ) {
20073ac: a0 92 20 00 orcc %o0, 0, %l0
20073b0: 12 80 00 06 bne 20073c8 <pthread_rwlock_init+0x78>
20073b4: 90 04 20 10 add %l0, 0x10, %o0
_Thread_Enable_dispatch();
20073b8: 40 00 0d 96 call 200aa10 <_Thread_Enable_dispatch>
20073bc: b0 10 20 0b mov 0xb, %i0
return EAGAIN;
20073c0: 81 c7 e0 08 ret
20073c4: 81 e8 00 00 restore
}
_CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );
20073c8: 40 00 07 bc call 20092b8 <_CORE_RWLock_Initialize>
20073cc: 92 07 bf fc add %fp, -4, %o1
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
20073d0: c4 14 20 0a lduh [ %l0 + 0xa ], %g2
20073d4: a2 14 63 f0 or %l1, 0x3f0, %l1
20073d8: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
20073dc: c2 04 20 08 ld [ %l0 + 8 ], %g1
20073e0: 85 28 a0 02 sll %g2, 2, %g2
20073e4: e0 20 c0 02 st %l0, [ %g3 + %g2 ]
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
20073e8: c0 24 20 0c clr [ %l0 + 0xc ]
&_POSIX_RWLock_Information,
&the_rwlock->Object,
0
);
*rwlock = the_rwlock->Object.id;
20073ec: c2 26 00 00 st %g1, [ %i0 ]
_Thread_Enable_dispatch();
20073f0: 40 00 0d 88 call 200aa10 <_Thread_Enable_dispatch>
20073f4: b0 10 20 00 clr %i0
return 0;
20073f8: 81 c7 e0 08 ret
20073fc: 81 e8 00 00 restore
}
2007400: 81 c7 e0 08 ret
2007404: 91 e8 20 16 restore %g0, 0x16, %o0
02007480 <pthread_rwlock_timedrdlock>:
int pthread_rwlock_timedrdlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
2007480: 9d e3 bf 98 save %sp, -104, %sp
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
2007484: 80 a6 20 00 cmp %i0, 0
2007488: 02 80 00 2d be 200753c <pthread_rwlock_timedrdlock+0xbc>
200748c: 90 10 00 19 mov %i1, %o0
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
2007490: 40 00 1e d9 call 200eff4 <_POSIX_Absolute_timeout_to_ticks>
2007494: 92 07 bf f8 add %fp, -8, %o1
2007498: d2 06 00 00 ld [ %i0 ], %o1
200749c: a0 10 00 08 mov %o0, %l0
20074a0: 94 07 bf fc add %fp, -4, %o2
20074a4: 11 00 80 85 sethi %hi(0x2021400), %o0
20074a8: 40 00 0b 05 call 200a0bc <_Objects_Get>
20074ac: 90 12 23 f0 or %o0, 0x3f0, %o0 ! 20217f0 <_POSIX_RWLock_Information>
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
20074b0: c2 07 bf fc ld [ %fp + -4 ], %g1
20074b4: 80 a0 60 00 cmp %g1, 0
20074b8: 32 80 00 22 bne,a 2007540 <pthread_rwlock_timedrdlock+0xc0>
20074bc: 90 10 20 16 mov 0x16, %o0
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
20074c0: d2 06 00 00 ld [ %i0 ], %o1
20074c4: d6 07 bf f8 ld [ %fp + -8 ], %o3
int _EXFUN(pthread_rwlock_init,
(pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr));
int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedrdlock,
20074c8: 82 1c 20 03 xor %l0, 3, %g1
20074cc: 90 02 20 10 add %o0, 0x10, %o0
20074d0: 80 a0 00 01 cmp %g0, %g1
20074d4: 98 10 20 00 clr %o4
20074d8: a2 60 3f ff subx %g0, -1, %l1
20074dc: 40 00 07 82 call 20092e4 <_CORE_RWLock_Obtain_for_reading>
20074e0: 94 10 00 11 mov %l1, %o2
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
20074e4: 40 00 0d 4b call 200aa10 <_Thread_Enable_dispatch>
20074e8: 01 00 00 00 nop
if ( !do_wait ) {
20074ec: 80 a4 60 00 cmp %l1, 0
20074f0: 12 80 00 0d bne 2007524 <pthread_rwlock_timedrdlock+0xa4>
20074f4: 03 00 80 85 sethi %hi(0x2021400), %g1
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
20074f8: c2 00 62 60 ld [ %g1 + 0x260 ], %g1 ! 2021660 <_Thread_Executing>
20074fc: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
2007500: 80 a0 60 02 cmp %g1, 2
2007504: 32 80 00 09 bne,a 2007528 <pthread_rwlock_timedrdlock+0xa8>
2007508: 03 00 80 85 sethi %hi(0x2021400), %g1
switch (status) {
200750c: 80 a4 20 00 cmp %l0, 0
2007510: 02 80 00 0c be 2007540 <pthread_rwlock_timedrdlock+0xc0> <== NEVER TAKEN
2007514: 90 10 20 16 mov 0x16, %o0
2007518: 80 a4 20 02 cmp %l0, 2
200751c: 08 80 00 09 bleu 2007540 <pthread_rwlock_timedrdlock+0xc0><== ALWAYS TAKEN
2007520: 90 10 20 74 mov 0x74, %o0
break;
}
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
2007524: 03 00 80 85 sethi %hi(0x2021400), %g1
2007528: c2 00 62 60 ld [ %g1 + 0x260 ], %g1 ! 2021660 <_Thread_Executing>
200752c: 40 00 00 3b call 2007618 <_POSIX_RWLock_Translate_core_RWLock_return_code>
2007530: d0 00 60 34 ld [ %g1 + 0x34 ], %o0
2007534: 81 c7 e0 08 ret
2007538: 91 e8 00 08 restore %g0, %o0, %o0
200753c: 90 10 20 16 mov 0x16, %o0
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
2007540: b0 10 00 08 mov %o0, %i0
2007544: 81 c7 e0 08 ret
2007548: 81 e8 00 00 restore
0200754c <pthread_rwlock_timedwrlock>:
int pthread_rwlock_timedwrlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
200754c: 9d e3 bf 98 save %sp, -104, %sp
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
2007550: 80 a6 20 00 cmp %i0, 0
2007554: 02 80 00 2d be 2007608 <pthread_rwlock_timedwrlock+0xbc>
2007558: 90 10 00 19 mov %i1, %o0
*
* If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,
* POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
* then we should not wait.
*/
status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
200755c: 40 00 1e a6 call 200eff4 <_POSIX_Absolute_timeout_to_ticks>
2007560: 92 07 bf f8 add %fp, -8, %o1
2007564: d2 06 00 00 ld [ %i0 ], %o1
2007568: a0 10 00 08 mov %o0, %l0
200756c: 94 07 bf fc add %fp, -4, %o2
2007570: 11 00 80 85 sethi %hi(0x2021400), %o0
2007574: 40 00 0a d2 call 200a0bc <_Objects_Get>
2007578: 90 12 23 f0 or %o0, 0x3f0, %o0 ! 20217f0 <_POSIX_RWLock_Information>
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
200757c: c2 07 bf fc ld [ %fp + -4 ], %g1
2007580: 80 a0 60 00 cmp %g1, 0
2007584: 32 80 00 22 bne,a 200760c <pthread_rwlock_timedwrlock+0xc0>
2007588: 90 10 20 16 mov 0x16, %o0
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
200758c: d2 06 00 00 ld [ %i0 ], %o1
2007590: d6 07 bf f8 ld [ %fp + -8 ], %o3
(pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedwrlock,
2007594: 82 1c 20 03 xor %l0, 3, %g1
2007598: 90 02 20 10 add %o0, 0x10, %o0
200759c: 80 a0 00 01 cmp %g0, %g1
20075a0: 98 10 20 00 clr %o4
20075a4: a2 60 3f ff subx %g0, -1, %l1
20075a8: 40 00 07 83 call 20093b4 <_CORE_RWLock_Obtain_for_writing>
20075ac: 94 10 00 11 mov %l1, %o2
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
20075b0: 40 00 0d 18 call 200aa10 <_Thread_Enable_dispatch>
20075b4: 01 00 00 00 nop
if ( !do_wait &&
20075b8: 80 a4 60 00 cmp %l1, 0
20075bc: 12 80 00 0d bne 20075f0 <pthread_rwlock_timedwrlock+0xa4>
20075c0: 03 00 80 85 sethi %hi(0x2021400), %g1
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
20075c4: c2 00 62 60 ld [ %g1 + 0x260 ], %g1 ! 2021660 <_Thread_Executing>
20075c8: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
20075cc: 80 a0 60 02 cmp %g1, 2
20075d0: 32 80 00 09 bne,a 20075f4 <pthread_rwlock_timedwrlock+0xa8>
20075d4: 03 00 80 85 sethi %hi(0x2021400), %g1
switch (status) {
20075d8: 80 a4 20 00 cmp %l0, 0
20075dc: 02 80 00 0c be 200760c <pthread_rwlock_timedwrlock+0xc0> <== NEVER TAKEN
20075e0: 90 10 20 16 mov 0x16, %o0
20075e4: 80 a4 20 02 cmp %l0, 2
20075e8: 08 80 00 09 bleu 200760c <pthread_rwlock_timedwrlock+0xc0><== ALWAYS TAKEN
20075ec: 90 10 20 74 mov 0x74, %o0
case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE:
break;
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
20075f0: 03 00 80 85 sethi %hi(0x2021400), %g1
20075f4: c2 00 62 60 ld [ %g1 + 0x260 ], %g1 ! 2021660 <_Thread_Executing>
20075f8: 40 00 00 08 call 2007618 <_POSIX_RWLock_Translate_core_RWLock_return_code>
20075fc: d0 00 60 34 ld [ %g1 + 0x34 ], %o0
2007600: 81 c7 e0 08 ret
2007604: 91 e8 00 08 restore %g0, %o0, %o0
2007608: 90 10 20 16 mov 0x16, %o0
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
200760c: b0 10 00 08 mov %o0, %i0
2007610: 81 c7 e0 08 ret
2007614: 81 e8 00 00 restore
02007dd4 <pthread_rwlockattr_setpshared>:
int pthread_rwlockattr_setpshared(
pthread_rwlockattr_t *attr,
int pshared
)
{
if ( !attr )
2007dd4: 80 a2 20 00 cmp %o0, 0
2007dd8: 02 80 00 0b be 2007e04 <pthread_rwlockattr_setpshared+0x30>
2007ddc: 01 00 00 00 nop
return EINVAL;
if ( !attr->is_initialized )
2007de0: c2 02 00 00 ld [ %o0 ], %g1
2007de4: 80 a0 60 00 cmp %g1, 0
2007de8: 02 80 00 07 be 2007e04 <pthread_rwlockattr_setpshared+0x30>
2007dec: 80 a2 60 01 cmp %o1, 1
return EINVAL;
switch ( pshared ) {
2007df0: 18 80 00 05 bgu 2007e04 <pthread_rwlockattr_setpshared+0x30><== NEVER TAKEN
2007df4: 01 00 00 00 nop
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
2007df8: d2 22 20 04 st %o1, [ %o0 + 4 ]
return 0;
2007dfc: 81 c3 e0 08 retl
2007e00: 90 10 20 00 clr %o0
default:
return EINVAL;
}
}
2007e04: 81 c3 e0 08 retl
2007e08: 90 10 20 16 mov 0x16, %o0
02008f80 <pthread_setschedparam>:
int pthread_setschedparam(
pthread_t thread,
int policy,
struct sched_param *param
)
{
2008f80: 9d e3 bf 90 save %sp, -112, %sp
2008f84: a0 10 00 18 mov %i0, %l0
int rc;
/*
* Check all the parameters
*/
if ( !param )
2008f88: 80 a6 a0 00 cmp %i2, 0
2008f8c: 02 80 00 40 be 200908c <pthread_setschedparam+0x10c>
2008f90: b0 10 20 16 mov 0x16, %i0
return EINVAL;
rc = _POSIX_Thread_Translate_sched_param(
2008f94: 90 10 00 19 mov %i1, %o0
2008f98: 92 10 00 1a mov %i2, %o1
2008f9c: 94 07 bf fc add %fp, -4, %o2
2008fa0: 40 00 1c 70 call 2010160 <_POSIX_Thread_Translate_sched_param>
2008fa4: 96 07 bf f8 add %fp, -8, %o3
policy,
param,
&budget_algorithm,
&budget_callout
);
if ( rc )
2008fa8: b0 92 20 00 orcc %o0, 0, %i0
2008fac: 12 80 00 38 bne 200908c <pthread_setschedparam+0x10c>
2008fb0: 90 10 00 10 mov %l0, %o0
return rc;
/*
* Actually change the scheduling policy and parameters
*/
the_thread = _Thread_Get( thread, &location );
2008fb4: 40 00 0a 9d call 200ba28 <_Thread_Get>
2008fb8: 92 07 bf f4 add %fp, -12, %o1
switch ( location ) {
2008fbc: c2 07 bf f4 ld [ %fp + -12 ], %g1
2008fc0: 80 a0 60 00 cmp %g1, 0
2008fc4: 02 80 00 04 be 2008fd4 <pthread_setschedparam+0x54>
2008fc8: a2 10 00 08 mov %o0, %l1
2008fcc: 81 c7 e0 08 ret
2008fd0: 91 e8 20 03 restore %g0, 3, %o0
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
2008fd4: e0 02 21 6c ld [ %o0 + 0x16c ], %l0
if ( api->schedpolicy == SCHED_SPORADIC )
2008fd8: c2 04 20 80 ld [ %l0 + 0x80 ], %g1
2008fdc: 80 a0 60 04 cmp %g1, 4
2008fe0: 32 80 00 05 bne,a 2008ff4 <pthread_setschedparam+0x74>
2008fe4: f2 24 20 80 st %i1, [ %l0 + 0x80 ]
(void) _Watchdog_Remove( &api->Sporadic_timer );
2008fe8: 40 00 0f c4 call 200cef8 <_Watchdog_Remove>
2008fec: 90 04 20 a4 add %l0, 0xa4, %o0
api->schedpolicy = policy;
2008ff0: f2 24 20 80 st %i1, [ %l0 + 0x80 ]
api->schedparam = *param;
2008ff4: 92 10 00 1a mov %i2, %o1
2008ff8: 90 04 20 84 add %l0, 0x84, %o0
2008ffc: 40 00 2d aa call 20146a4 <memcpy>
2009000: 94 10 20 1c mov 0x1c, %o2
the_thread->budget_algorithm = budget_algorithm;
2009004: c4 07 bf fc ld [ %fp + -4 ], %g2
the_thread->budget_callout = budget_callout;
switch ( api->schedpolicy ) {
2009008: c2 04 20 80 ld [ %l0 + 0x80 ], %g1
if ( api->schedpolicy == SCHED_SPORADIC )
(void) _Watchdog_Remove( &api->Sporadic_timer );
api->schedpolicy = policy;
api->schedparam = *param;
the_thread->budget_algorithm = budget_algorithm;
200900c: c4 24 60 7c st %g2, [ %l1 + 0x7c ]
the_thread->budget_callout = budget_callout;
2009010: c4 07 bf f8 ld [ %fp + -8 ], %g2
switch ( api->schedpolicy ) {
2009014: 80 a0 60 00 cmp %g1, 0
2009018: 06 80 00 1b bl 2009084 <pthread_setschedparam+0x104> <== NEVER TAKEN
200901c: c4 24 60 80 st %g2, [ %l1 + 0x80 ]
2009020: 80 a0 60 02 cmp %g1, 2
2009024: 24 80 00 07 ble,a 2009040 <pthread_setschedparam+0xc0>
2009028: c2 04 20 84 ld [ %l0 + 0x84 ], %g1
200902c: 80 a0 60 04 cmp %g1, 4
2009030: 12 80 00 15 bne 2009084 <pthread_setschedparam+0x104> <== NEVER TAKEN
2009034: 01 00 00 00 nop
true
);
break;
case SCHED_SPORADIC:
api->ss_high_priority = api->schedparam.sched_priority;
2009038: 10 80 00 0d b 200906c <pthread_setschedparam+0xec>
200903c: c2 04 20 84 ld [ %l0 + 0x84 ], %g1
2009040: 07 00 80 8c sethi %hi(0x2023000), %g3
switch ( api->schedpolicy ) {
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
2009044: 05 00 80 8e sethi %hi(0x2023800), %g2
2009048: d2 08 e0 e8 ldub [ %g3 + 0xe8 ], %o1
200904c: c4 00 a3 b8 ld [ %g2 + 0x3b8 ], %g2
2009050: 92 22 40 01 sub %o1, %g1, %o1
2009054: c4 24 60 78 st %g2, [ %l1 + 0x78 ]
the_thread->real_priority =
_POSIX_Priority_To_core( api->schedparam.sched_priority );
_Thread_Change_priority(
2009058: 90 10 00 11 mov %l1, %o0
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
the_thread->real_priority =
200905c: d2 24 60 18 st %o1, [ %l1 + 0x18 ]
_POSIX_Priority_To_core( api->schedparam.sched_priority );
_Thread_Change_priority(
2009060: 40 00 08 da call 200b3c8 <_Thread_Change_priority>
2009064: 94 10 20 01 mov 1, %o2
the_thread,
the_thread->real_priority,
true
);
break;
2009068: 30 80 00 07 b,a 2009084 <pthread_setschedparam+0x104>
case SCHED_SPORADIC:
api->ss_high_priority = api->schedparam.sched_priority;
_Watchdog_Remove( &api->Sporadic_timer );
200906c: 90 04 20 a4 add %l0, 0xa4, %o0
2009070: 40 00 0f a2 call 200cef8 <_Watchdog_Remove>
2009074: c2 24 20 a0 st %g1, [ %l0 + 0xa0 ]
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
2009078: 92 10 00 11 mov %l1, %o1
200907c: 7f ff ff a2 call 2008f04 <_POSIX_Threads_Sporadic_budget_TSR>
2009080: 90 10 20 00 clr %o0
break;
}
_Thread_Enable_dispatch();
2009084: 40 00 0a 5c call 200b9f4 <_Thread_Enable_dispatch>
2009088: 01 00 00 00 nop
case OBJECTS_ERROR:
break;
}
return ESRCH;
}
200908c: 81 c7 e0 08 ret
2009090: 81 e8 00 00 restore
020067ec <pthread_testcancel>:
*
* 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183
*/
void pthread_testcancel( void )
{
20067ec: 9d e3 bf a0 save %sp, -96, %sp
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
20067f0: 03 00 80 80 sethi %hi(0x2020000), %g1
20067f4: c2 00 62 7c ld [ %g1 + 0x27c ], %g1 ! 202027c <_ISR_Nest_level>
20067f8: 80 a0 60 00 cmp %g1, 0
20067fc: 12 80 00 17 bne 2006858 <pthread_testcancel+0x6c> <== NEVER TAKEN
2006800: 05 00 80 80 sethi %hi(0x2020000), %g2
return;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
2006804: 03 00 80 80 sethi %hi(0x2020000), %g1
2006808: c6 00 a1 e0 ld [ %g2 + 0x1e0 ], %g3
200680c: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1
2006810: 86 00 e0 01 inc %g3
2006814: c2 00 61 6c ld [ %g1 + 0x16c ], %g1
2006818: c6 20 a1 e0 st %g3, [ %g2 + 0x1e0 ]
_Thread_Disable_dispatch();
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
200681c: c4 00 60 d4 ld [ %g1 + 0xd4 ], %g2
2006820: 80 a0 a0 00 cmp %g2, 0
2006824: 12 80 00 05 bne 2006838 <pthread_testcancel+0x4c> <== NEVER TAKEN
2006828: a0 10 20 00 clr %l0
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */
int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));
int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));
void _EXFUN(pthread_testcancel, (void));
200682c: c2 00 60 dc ld [ %g1 + 0xdc ], %g1
2006830: 80 a0 00 01 cmp %g0, %g1
2006834: a0 40 20 00 addx %g0, 0, %l0
thread_support->cancelation_requested )
cancel = true;
_Thread_Enable_dispatch();
2006838: 40 00 0a 31 call 20090fc <_Thread_Enable_dispatch>
200683c: 01 00 00 00 nop
if ( cancel )
2006840: 80 8c 20 ff btst 0xff, %l0
2006844: 02 80 00 05 be 2006858 <pthread_testcancel+0x6c>
2006848: 03 00 80 80 sethi %hi(0x2020000), %g1
_POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );
200684c: f0 00 62 a0 ld [ %g1 + 0x2a0 ], %i0 ! 20202a0 <_Thread_Executing>
2006850: 40 00 1c 4a call 200d978 <_POSIX_Thread_Exit>
2006854: 93 e8 3f ff restore %g0, -1, %o1
2006858: 81 c7 e0 08 ret
200685c: 81 e8 00 00 restore
0200b64c <ramdisk_allocate>:
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
200b64c: 9d e3 bf a0 save %sp, -96, %sp
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
200b650: 7f ff e2 2a call 2003ef8 <malloc>
200b654: 90 10 20 10 mov 0x10, %o0
200b658: a0 10 00 08 mov %o0, %l0
void *area_begin,
uint32_t block_size,
rtems_blkdev_bnum block_count,
bool trace
)
{
200b65c: 90 10 00 18 mov %i0, %o0
struct ramdisk *rd = malloc(sizeof(struct ramdisk));
if (rd == NULL) {
200b660: 80 a4 20 00 cmp %l0, 0
200b664: 02 80 00 17 be 200b6c0 <ramdisk_allocate+0x74> <== NEVER TAKEN
200b668: a2 10 00 10 mov %l0, %l1
return NULL;
}
if (area_begin == NULL) {
200b66c: 80 a6 20 00 cmp %i0, 0
200b670: 32 80 00 0e bne,a 200b6a8 <ramdisk_allocate+0x5c> <== NEVER TAKEN
200b674: c0 2c 20 0d clrb [ %l0 + 0xd ] <== NOT EXECUTED
area_begin = calloc(block_count, block_size);
200b678: 90 10 00 1a mov %i2, %o0
200b67c: 7f ff e0 ae call 2003934 <calloc>
200b680: 92 10 00 19 mov %i1, %o1
if (area_begin == NULL) {
200b684: 80 a2 20 00 cmp %o0, 0
200b688: 12 80 00 07 bne 200b6a4 <ramdisk_allocate+0x58> <== ALWAYS TAKEN
200b68c: 82 10 20 01 mov 1, %g1
free(rd);
200b690: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200b694: 7f ff e1 3a call 2003b7c <free> <== NOT EXECUTED
200b698: a0 10 20 00 clr %l0 <== NOT EXECUTED
return NULL;
200b69c: 81 c7 e0 08 ret <== NOT EXECUTED
200b6a0: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
200b6a4: c2 2c 20 0d stb %g1, [ %l0 + 0xd ]
}
rd->block_size = block_size;
rd->block_num = block_count;
rd->area = area_begin;
rd->trace = trace;
rd->initialized = true;
200b6a8: 82 10 20 01 mov 1, %g1
}
rd->malloced = true;
} else {
rd->malloced = false;
}
rd->block_size = block_size;
200b6ac: f2 24 40 00 st %i1, [ %l1 ]
rd->block_num = block_count;
200b6b0: f4 24 60 04 st %i2, [ %l1 + 4 ]
rd->area = area_begin;
200b6b4: d0 24 60 08 st %o0, [ %l1 + 8 ]
rd->trace = trace;
200b6b8: f6 2c 60 0e stb %i3, [ %l1 + 0xe ]
rd->initialized = true;
200b6bc: c2 2c 60 0c stb %g1, [ %l1 + 0xc ]
return rd;
}
200b6c0: b0 10 00 10 mov %l0, %i0
200b6c4: 81 c7 e0 08 ret
200b6c8: 81 e8 00 00 restore
0200b614 <ramdisk_free>:
return rd;
}
void ramdisk_free(ramdisk *rd)
{
200b614: 9d e3 bf a0 save %sp, -96, %sp
if (rd != NULL) {
200b618: 80 a6 20 00 cmp %i0, 0
200b61c: 02 80 00 0a be 200b644 <ramdisk_free+0x30> <== NEVER TAKEN
200b620: 01 00 00 00 nop
if (rd->malloced) {
200b624: c2 0e 20 0d ldub [ %i0 + 0xd ], %g1
200b628: 80 a0 60 00 cmp %g1, 0
200b62c: 02 80 00 04 be 200b63c <ramdisk_free+0x28> <== NEVER TAKEN
200b630: 01 00 00 00 nop
free(rd->area);
200b634: 7f ff e1 52 call 2003b7c <free>
200b638: d0 06 20 08 ld [ %i0 + 8 ], %o0
}
free(rd);
200b63c: 7f ff e1 50 call 2003b7c <free>
200b640: 81 e8 00 00 restore
200b644: 81 c7 e0 08 ret <== NOT EXECUTED
200b648: 81 e8 00 00 restore <== NOT EXECUTED
02020e4c <ramdisk_initialize>:
rtems_device_driver
ramdisk_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *arg __attribute__((unused)))
{
2020e4c: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
rtems_device_minor_number i;
rtems_ramdisk_config *c = rtems_ramdisk_configuration;
struct ramdisk *r;
rtems_status_code rc;
rc = rtems_disk_io_initialize();
2020e50: 7f ff 97 37 call 2006b2c <rtems_disk_io_initialize> <== NOT EXECUTED
2020e54: 01 00 00 00 nop <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
2020e58: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2020e5c: 12 80 00 44 bne 2020f6c <ramdisk_initialize+0x120> <== NOT EXECUTED
2020e60: 39 00 81 aa sethi %hi(0x206a800), %i4 <== NOT EXECUTED
* This is allocating memory for a RAM disk which will persist for
* the life of the system. RTEMS has no "de-initialize" driver call
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
2020e64: d0 07 22 60 ld [ %i4 + 0x260 ], %o0 ! 206aa60 <rtems_ramdisk_configuration_size><== NOT EXECUTED
2020e68: 92 10 20 10 mov 0x10, %o1 <== NOT EXECUTED
2020e6c: 7f ff 9b 6e call 2007c24 <calloc> <== NOT EXECUTED
2020e70: 25 00 81 aa sethi %hi(0x206a800), %l2 <== NOT EXECUTED
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
2020e74: 3b 00 80 83 sethi %hi(0x2020c00), %i5 <== NOT EXECUTED
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
2020e78: 2d 0b d9 19 sethi %hi(0x2f646400), %l6 <== NOT EXECUTED
2020e7c: 2f 0b dc 99 sethi %hi(0x2f726400), %l7 <== NOT EXECUTED
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
2020e80: b8 17 22 60 or %i4, 0x260, %i4 <== NOT EXECUTED
* the life of the system. RTEMS has no "de-initialize" driver call
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
2020e84: a6 10 20 00 clr %l3 <== NOT EXECUTED
* This is allocating memory for a RAM disk which will persist for
* the life of the system. RTEMS has no "de-initialize" driver call
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
2020e88: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
r->trace = false;
2020e8c: c0 2a 20 0e clrb [ %o0 + 0xe ] <== NOT EXECUTED
2020e90: a4 14 a2 54 or %l2, 0x254, %l2 <== NOT EXECUTED
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
2020e94: ba 17 63 74 or %i5, 0x374, %i5 <== NOT EXECUTED
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
2020e98: ac 15 a1 76 or %l6, 0x176, %l6 <== NOT EXECUTED
2020e9c: ae 15 e0 61 or %l7, 0x61, %l7 <== NOT EXECUTED
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
2020ea0: aa 07 bf e8 add %fp, -24, %l5 <== NOT EXECUTED
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
2020ea4: 10 80 00 2e b 2020f5c <ramdisk_initialize+0x110> <== NOT EXECUTED
2020ea8: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
r->block_size = c->block_size;
r->block_num = c->block_num;
2020eac: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED
if (c->location == NULL)
2020eb0: c2 04 a0 08 ld [ %l2 + 8 ], %g1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2020eb4: f0 27 bf f8 st %i0, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2020eb8: e6 27 bf fc st %l3, [ %fp + -4 ] <== NOT EXECUTED
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
{
dev_t dev = rtems_filesystem_make_dev_t(major, i);
char name [] = RAMDISK_DEVICE_BASE_NAME "a";
2020ebc: ec 3f bf e8 std %l6, [ %fp + -24 ] <== NOT EXECUTED
name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
2020ec0: e6 2f bf f0 stb %l3, [ %fp + -16 ] <== NOT EXECUTED
r->block_size = c->block_size;
2020ec4: d2 24 40 00 st %o1, [ %l1 ] <== NOT EXECUTED
r->block_num = c->block_num;
2020ec8: d0 24 60 04 st %o0, [ %l1 + 4 ] <== NOT EXECUTED
if (c->location == NULL)
2020ecc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020ed0: 12 80 00 0b bne 2020efc <ramdisk_initialize+0xb0> <== NOT EXECUTED
2020ed4: f4 1f bf f8 ldd [ %fp + -8 ], %i2 <== NOT EXECUTED
{
r->malloced = true;
r->area = malloc(r->block_size * r->block_num);
2020ed8: 7f ff 86 c8 call 20029f8 <.umul> <== NOT EXECUTED
2020edc: e8 2c 60 0d stb %l4, [ %l1 + 0xd ] <== NOT EXECUTED
2020ee0: 7f ff 9e a7 call 200897c <malloc> <== NOT EXECUTED
2020ee4: 01 00 00 00 nop <== NOT EXECUTED
if (r->area == NULL) /* No enough memory for this disk */
2020ee8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020eec: 12 80 00 06 bne 2020f04 <ramdisk_initialize+0xb8> <== NOT EXECUTED
2020ef0: d0 24 60 08 st %o0, [ %l1 + 8 ] <== NOT EXECUTED
{
if (r->malloced)
{
free(r->area);
}
r->initialized = false;
2020ef4: 10 80 00 17 b 2020f50 <ramdisk_initialize+0x104> <== NOT EXECUTED
2020ef8: c0 2c 60 0c clrb [ %l1 + 0xc ] <== NOT EXECUTED
}
else
{
r->malloced = false;
r->initialized = true;
r->area = c->location;
2020efc: c2 24 60 08 st %g1, [ %l1 + 8 ] <== NOT EXECUTED
r->initialized = true;
}
}
else
{
r->malloced = false;
2020f00: c0 2c 60 0d clrb [ %l1 + 0xd ] <== NOT EXECUTED
r->initialized = true;
r->area = c->location;
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
2020f04: d4 04 80 00 ld [ %l2 ], %o2 <== NOT EXECUTED
2020f08: d6 04 a0 04 ld [ %l2 + 4 ], %o3 <== NOT EXECUTED
}
}
else
{
r->malloced = false;
r->initialized = true;
2020f0c: e8 2c 60 0c stb %l4, [ %l1 + 0xc ] <== NOT EXECUTED
r->area = c->location;
}
rc = rtems_disk_create_phys(dev, c->block_size, c->block_num,
2020f10: ea 23 a0 5c st %l5, [ %sp + 0x5c ] <== NOT EXECUTED
2020f14: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2020f18: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2020f1c: 98 10 00 1d mov %i5, %o4 <== NOT EXECUTED
2020f20: 7f ff 98 d4 call 2007270 <rtems_disk_create_phys> <== NOT EXECUTED
2020f24: 9a 10 00 11 mov %l1, %o5 <== NOT EXECUTED
ramdisk_ioctl, r, name);
if (rc != RTEMS_SUCCESSFUL)
2020f28: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020f2c: 22 80 00 0a be,a 2020f54 <ramdisk_initialize+0x108> <== NOT EXECUTED
2020f30: a6 04 e0 01 inc %l3 <== NOT EXECUTED
{
if (r->malloced)
2020f34: c2 0c 60 0d ldub [ %l1 + 0xd ], %g1 <== NOT EXECUTED
2020f38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020f3c: 22 80 00 05 be,a 2020f50 <ramdisk_initialize+0x104> <== NOT EXECUTED
2020f40: c0 2c 60 0c clrb [ %l1 + 0xc ] <== NOT EXECUTED
{
free(r->area);
2020f44: 7f ff 9c c7 call 2008260 <free> <== NOT EXECUTED
2020f48: d0 04 60 08 ld [ %l1 + 8 ], %o0 <== NOT EXECUTED
}
r->initialized = false;
2020f4c: c0 2c 60 0c clrb [ %l1 + 0xc ] <== NOT EXECUTED
* so there is no corresponding free(r). Coverity is correct that
* it is never freed but this is not a problem.
*/
r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
r->trace = false;
for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)
2020f50: a6 04 e0 01 inc %l3 <== NOT EXECUTED
2020f54: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED
2020f58: a2 04 60 10 add %l1, 0x10, %l1 <== NOT EXECUTED
2020f5c: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
2020f60: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2020f64: 2a bf ff d2 bcs,a 2020eac <ramdisk_initialize+0x60> <== NOT EXECUTED
2020f68: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
}
r->initialized = false;
}
}
return RTEMS_SUCCESSFUL;
}
2020f6c: 81 c7 e0 08 ret <== NOT EXECUTED
2020f70: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
0200b50c <ramdisk_ioctl>:
return 0;
}
int
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
200b50c: 9d e3 bf a0 save %sp, -96, %sp
switch (req)
200b510: 03 30 06 10 sethi %hi(0xc0184000), %g1
200b514: 82 10 62 01 or %g1, 0x201, %g1 ! c0184201 <RAM_END+0xbdd84201>
200b518: 80 a6 40 01 cmp %i1, %g1
200b51c: 12 80 00 3b bne 200b608 <ramdisk_ioctl+0xfc>
200b520: a0 10 00 1a mov %i2, %l0
case RTEMS_BLKIO_REQUEST:
{
rtems_blkdev_request *r = argp;
struct ramdisk *rd = rtems_disk_get_driver_data(dd);
switch (r->req)
200b524: c4 06 80 00 ld [ %i2 ], %g2
200b528: 80 a0 a0 00 cmp %g2, 0
200b52c: 02 80 00 07 be 200b548 <ramdisk_ioctl+0x3c> <== NEVER TAKEN
200b530: e4 06 20 2c ld [ %i0 + 0x2c ], %l2
200b534: 80 a0 a0 01 cmp %g2, 1
200b538: 12 80 00 2e bne 200b5f0 <ramdisk_ioctl+0xe4> <== NEVER TAKEN
200b53c: 01 00 00 00 nop
}
static int
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *to = rd->area;
200b540: 10 80 00 15 b 200b594 <ramdisk_ioctl+0x88>
200b544: e8 04 a0 08 ld [ %l2 + 8 ], %l4
#endif
static int
ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)
{
uint8_t *from = rd->area;
200b548: e8 04 a0 08 ld [ %l2 + 8 ], %l4 <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
200b54c: a2 06 a0 18 add %i2, 0x18, %l1 <== NOT EXECUTED
200b550: 10 80 00 0b b 200b57c <ramdisk_ioctl+0x70> <== NOT EXECUTED
200b554: a6 10 20 00 clr %l3 <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: buf=%d block=%d length=%d off=%d addr=%p",
i, sg->block, sg->length, sg->block * rd->block_size,
from + (sg->block * rd->block_size));
#endif
memcpy(sg->buffer, from + (sg->block * rd->block_size), sg->length);
200b558: d0 04 80 00 ld [ %l2 ], %o0 <== NOT EXECUTED
200b55c: 40 00 49 98 call 201dbbc <.umul> <== NOT EXECUTED
200b560: ea 04 60 08 ld [ %l1 + 8 ], %l5 <== NOT EXECUTED
200b564: d4 04 60 04 ld [ %l1 + 4 ], %o2 <== NOT EXECUTED
200b568: 92 05 00 08 add %l4, %o0, %o1 <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
200b56c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: buf=%d block=%d length=%d off=%d addr=%p",
i, sg->block, sg->length, sg->block * rd->block_size,
from + (sg->block * rd->block_size));
#endif
memcpy(sg->buffer, from + (sg->block * rd->block_size), sg->length);
200b570: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200b574: 40 00 27 26 call 201520c <memcpy> <== NOT EXECUTED
200b578: a2 04 60 10 add %l1, 0x10, %l1 <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
200b57c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
200b580: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
200b584: 2a bf ff f5 bcs,a 200b558 <ramdisk_ioctl+0x4c> <== NOT EXECUTED
200b588: d2 04 40 00 ld [ %l1 ], %o1 <== NOT EXECUTED
to + (sg->block * rd->block_size));
#endif
memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
}
req->status = RTEMS_SUCCESSFUL;
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
200b58c: 10 80 00 12 b 200b5d4 <ramdisk_ioctl+0xc8> <== NOT EXECUTED
200b590: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
200b594: a2 06 a0 18 add %i2, 0x18, %l1
200b598: 10 80 00 0a b 200b5c0 <ramdisk_ioctl+0xb4>
200b59c: a6 10 20 00 clr %l3
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk write: buf=%d block=%d length=%d off=%d addr=%p",
i, sg->block, sg->length, sg->block * rd->block_size,
to + (sg->block * rd->block_size));
#endif
memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
200b5a0: d0 04 80 00 ld [ %l2 ], %o0
200b5a4: 40 00 49 86 call 201dbbc <.umul>
200b5a8: a6 04 e0 01 inc %l3
200b5ac: d2 04 60 08 ld [ %l1 + 8 ], %o1
200b5b0: d4 04 60 04 ld [ %l1 + 4 ], %o2
200b5b4: 90 05 00 08 add %l4, %o0, %o0
200b5b8: 40 00 27 15 call 201520c <memcpy>
200b5bc: a2 04 60 10 add %l1, 0x10, %l1
#if RTEMS_RAMDISK_TRACE
rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",
req->bufs[0].block, req->bufnum);
#endif
for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)
200b5c0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
200b5c4: 80 a4 c0 01 cmp %l3, %g1
200b5c8: 2a bf ff f6 bcs,a 200b5a0 <ramdisk_ioctl+0x94>
200b5cc: d2 04 40 00 ld [ %l1 ], %o1
to + (sg->block * rd->block_size));
#endif
memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
}
req->status = RTEMS_SUCCESSFUL;
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
200b5d0: d0 04 20 08 ld [ %l0 + 8 ], %o0
200b5d4: c2 04 20 04 ld [ %l0 + 4 ], %g1
i, sg->block, sg->length, sg->block * rd->block_size,
to + (sg->block * rd->block_size));
#endif
memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
}
req->status = RTEMS_SUCCESSFUL;
200b5d8: c0 24 20 0c clr [ %l0 + 0xc ]
req->req_done(req->done_arg, RTEMS_SUCCESSFUL);
200b5dc: 92 10 20 00 clr %o1
200b5e0: 9f c0 40 00 call %g1
200b5e4: b0 10 20 00 clr %i0
{
case RTEMS_BLKDEV_REQ_READ:
return ramdisk_read(rd, r);
case RTEMS_BLKDEV_REQ_WRITE:
return ramdisk_write(rd, r);
200b5e8: 81 c7 e0 08 ret
200b5ec: 81 e8 00 00 restore
default:
errno = EINVAL;
200b5f0: 40 00 24 cb call 201491c <__errno> <== NOT EXECUTED
200b5f4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200b5f8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200b5fc: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
200b600: 81 c7 e0 08 ret <== NOT EXECUTED
200b604: 81 e8 00 00 restore <== NOT EXECUTED
}
break;
}
default:
return rtems_blkdev_ioctl (dd, req, argp);
200b608: 40 00 09 fa call 200ddf0 <rtems_blkdev_ioctl>
200b60c: 81 e8 00 00 restore
0200b6cc <ramdisk_register>:
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
200b6cc: 9d e3 bf 90 save %sp, -112, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
ramdisk *rd = NULL;
dev_t dev = 0;
sc = rtems_io_register_driver(0, &ramdisk_ops, &major);
200b6d0: 90 10 20 00 clr %o0
const char *disk,
dev_t *dev_ptr
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
200b6d4: c0 27 bf fc clr [ %fp + -4 ]
rtems_blkdev_bnum block_count,
bool trace,
const char *disk,
dev_t *dev_ptr
)
{
200b6d8: a0 10 00 18 mov %i0, %l0
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
ramdisk *rd = NULL;
dev_t dev = 0;
sc = rtems_io_register_driver(0, &ramdisk_ops, &major);
200b6dc: 13 00 80 80 sethi %hi(0x2020000), %o1
200b6e0: 94 07 bf fc add %fp, -4, %o2
200b6e4: 92 12 63 04 or %o1, 0x304, %o1
200b6e8: 7f ff f1 c7 call 2007e04 <rtems_io_register_driver>
200b6ec: b0 10 20 0d mov 0xd, %i0
if (sc != RTEMS_SUCCESSFUL) {
200b6f0: 80 a2 20 00 cmp %o0, 0
200b6f4: 12 80 00 0a bne 200b71c <ramdisk_register+0x50> <== NEVER TAKEN
200b6f8: 96 0e a0 ff and %i2, 0xff, %o3
return RTEMS_UNSATISFIED;
}
rd = ramdisk_allocate(NULL, block_size, block_count, trace);
200b6fc: 92 10 00 10 mov %l0, %o1
200b700: 7f ff ff d3 call 200b64c <ramdisk_allocate>
200b704: 94 10 00 19 mov %i1, %o2
if (rd == NULL) {
200b708: a4 92 20 00 orcc %o0, 0, %l2
200b70c: 12 80 00 06 bne 200b724 <ramdisk_register+0x58> <== ALWAYS TAKEN
200b710: e2 07 bf fc ld [ %fp + -4 ], %l1
rtems_io_unregister_driver(major);
200b714: 7f ff f2 1b call 2007f80 <rtems_io_unregister_driver> <== NOT EXECUTED
200b718: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
200b71c: 81 c7 e0 08 ret <== NOT EXECUTED
200b720: 81 e8 00 00 restore <== NOT EXECUTED
}
dev = rtems_filesystem_make_dev_t(major, 0);
sc = rtems_disk_create_phys(
200b724: f6 23 a0 5c st %i3, [ %sp + 0x5c ]
200b728: 94 10 00 10 mov %l0, %o2
200b72c: 96 10 00 19 mov %i1, %o3
200b730: 90 10 00 11 mov %l1, %o0
200b734: 92 10 20 00 clr %o1
200b738: 19 00 80 2d sethi %hi(0x200b400), %o4
200b73c: 9a 10 00 12 mov %l2, %o5
200b740: 7f ff de 69 call 20030e4 <rtems_disk_create_phys>
200b744: 98 13 21 0c or %o4, 0x10c, %o4
block_count,
ramdisk_ioctl,
rd,
disk
);
if (sc != RTEMS_SUCCESSFUL) {
200b748: 80 a2 20 00 cmp %o0, 0
200b74c: 22 80 00 09 be,a 200b770 <ramdisk_register+0xa4> <== ALWAYS TAKEN
200b750: e2 27 00 00 st %l1, [ %i4 ]
ramdisk_free(rd);
200b754: 7f ff ff b0 call 200b614 <ramdisk_free> <== NOT EXECUTED
200b758: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
rtems_io_unregister_driver(major);
200b75c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
200b760: 7f ff f2 08 call 2007f80 <rtems_io_unregister_driver> <== NOT EXECUTED
200b764: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
200b768: 81 c7 e0 08 ret <== NOT EXECUTED
200b76c: 81 e8 00 00 restore <== NOT EXECUTED
}
*dev_ptr = dev;
200b770: c0 27 20 04 clr [ %i4 + 4 ]
200b774: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200b778: 81 c7 e0 08 ret
200b77c: 81 e8 00 00 restore
0201b5b8 <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
201b5b8: 9d e3 bf a0 save %sp, -96, %sp
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201b5bc: 03 00 80 75 sethi %hi(0x201d400), %g1
201b5c0: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 <rtems_libio_number_iops>
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
201b5c4: 92 10 00 19 mov %i1, %o1
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201b5c8: 80 a6 00 01 cmp %i0, %g1
201b5cc: 1a 80 00 17 bcc 201b628 <read+0x70> <== NEVER TAKEN
201b5d0: 94 10 00 1a mov %i2, %o2
iop = rtems_libio_iop( fd );
201b5d4: 03 00 80 78 sethi %hi(0x201e000), %g1
201b5d8: e0 00 60 b4 ld [ %g1 + 0xb4 ], %l0 ! 201e0b4 <rtems_libio_iops>
201b5dc: 83 2e 20 06 sll %i0, 6, %g1
201b5e0: b1 2e 20 03 sll %i0, 3, %i0
201b5e4: b0 06 00 01 add %i0, %g1, %i0
201b5e8: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open( iop );
201b5ec: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201b5f0: 80 88 61 00 btst 0x100, %g1
201b5f4: 02 80 00 0d be 201b628 <read+0x70>
201b5f8: 80 a6 60 00 cmp %i1, 0
rtems_libio_check_buffer( buffer );
201b5fc: 12 80 00 06 bne 201b614 <read+0x5c> <== ALWAYS TAKEN
201b600: 80 a6 a0 00 cmp %i2, 0
201b604: 7f ff d4 d1 call 2010948 <__errno> <== NOT EXECUTED
201b608: 01 00 00 00 nop <== NOT EXECUTED
201b60c: 10 80 00 12 b 201b654 <read+0x9c> <== NOT EXECUTED
201b610: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
rtems_libio_check_count( count );
201b614: 02 80 00 1c be 201b684 <read+0xcc> <== NEVER TAKEN
201b618: 90 10 20 00 clr %o0
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
201b61c: 80 88 60 02 btst 2, %g1
201b620: 32 80 00 06 bne,a 201b638 <read+0x80> <== ALWAYS TAKEN
201b624: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201b628: 7f ff d4 c8 call 2010948 <__errno>
201b62c: 01 00 00 00 nop
201b630: 10 80 00 09 b 201b654 <read+0x9c>
201b634: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9>
/*
* Now process the read().
*/
if ( !iop->handlers->read_h )
201b638: c2 00 60 08 ld [ %g1 + 8 ], %g1
201b63c: 80 a0 60 00 cmp %g1, 0
201b640: 12 80 00 08 bne 201b660 <read+0xa8> <== ALWAYS TAKEN
201b644: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b648: 7f ff d4 c0 call 2010948 <__errno> <== NOT EXECUTED
201b64c: 01 00 00 00 nop <== NOT EXECUTED
201b650: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
201b654: c2 22 00 00 st %g1, [ %o0 ]
201b658: 10 80 00 0b b 201b684 <read+0xcc>
201b65c: 90 10 3f ff mov -1, %o0
rc = (*iop->handlers->read_h)( iop, buffer, count );
201b660: 9f c0 40 00 call %g1
201b664: 90 10 00 10 mov %l0, %o0
if ( rc > 0 )
201b668: 80 a2 20 00 cmp %o0, 0
201b66c: 04 80 00 06 ble 201b684 <read+0xcc>
201b670: 85 3a 20 1f sra %o0, 0x1f, %g2
iop->offset += rc;
201b674: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4
201b678: 86 83 40 08 addcc %o5, %o0, %g3
201b67c: 84 43 00 02 addx %o4, %g2, %g2
201b680: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
return rc;
}
201b684: 81 c7 e0 08 ret
201b688: 91 e8 00 08 restore %g0, %o0, %o0
0202a548 <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
202a548: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
202a54c: 80 a6 60 00 cmp %i1, 0
202a550: 12 80 00 06 bne 202a568 <readlink+0x20> <== ALWAYS TAKEN
202a554: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
202a558: 40 00 67 4f call 2044294 <__errno> <== NOT EXECUTED
202a55c: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
202a560: 10 80 00 32 b 202a628 <readlink+0xe0> <== NOT EXECUTED
202a564: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
202a568: 40 00 83 07 call 204b184 <strlen>
202a56c: 90 10 00 18 mov %i0, %o0
202a570: a0 07 bf ec add %fp, -20, %l0
202a574: 92 10 00 08 mov %o0, %o1
202a578: 94 10 20 00 clr %o2
202a57c: 90 10 00 18 mov %i0, %o0
202a580: 96 10 00 10 mov %l0, %o3
202a584: 98 10 20 00 clr %o4
202a588: 7f ff 77 19 call 20081ec <rtems_filesystem_evaluate_path>
202a58c: b0 10 3f ff mov -1, %i0
0, &loc, false );
if ( result != 0 )
202a590: 80 a2 20 00 cmp %o0, 0
202a594: 12 80 00 26 bne 202a62c <readlink+0xe4> <== NEVER TAKEN
202a598: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !loc.ops->node_type_h ){
202a59c: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202a5a0: 80 a0 60 00 cmp %g1, 0
202a5a4: 22 80 00 19 be,a 202a608 <readlink+0xc0> <== NEVER TAKEN
202a5a8: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
202a5ac: 9f c0 40 00 call %g1
202a5b0: 90 10 00 10 mov %l0, %o0
202a5b4: 80 a2 20 04 cmp %o0, 4
202a5b8: 02 80 00 0f be 202a5f4 <readlink+0xac>
202a5bc: c4 07 bf f8 ld [ %fp + -8 ], %g2
rtems_filesystem_freenode( &loc );
202a5c0: 80 a0 a0 00 cmp %g2, 0
202a5c4: 02 80 00 08 be 202a5e4 <readlink+0x9c> <== NEVER TAKEN
202a5c8: 01 00 00 00 nop
202a5cc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
202a5d0: 80 a0 60 00 cmp %g1, 0
202a5d4: 02 80 00 04 be 202a5e4 <readlink+0x9c> <== NEVER TAKEN
202a5d8: 01 00 00 00 nop
202a5dc: 9f c0 40 00 call %g1
202a5e0: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( EINVAL );
202a5e4: 40 00 67 2c call 2044294 <__errno>
202a5e8: b0 10 3f ff mov -1, %i0
202a5ec: 10 80 00 0f b 202a628 <readlink+0xe0>
202a5f0: 82 10 20 16 mov 0x16, %g1
}
if ( !loc.ops->readlink_h ){
202a5f4: c2 00 a0 3c ld [ %g2 + 0x3c ], %g1
202a5f8: 80 a0 60 00 cmp %g1, 0
202a5fc: 12 80 00 0e bne 202a634 <readlink+0xec> <== ALWAYS TAKEN
202a600: 92 10 00 19 mov %i1, %o1
rtems_filesystem_freenode( &loc );
202a604: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202a608: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a60c: 02 80 00 04 be 202a61c <readlink+0xd4> <== NOT EXECUTED
202a610: 01 00 00 00 nop <== NOT EXECUTED
202a614: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a618: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a61c: 40 00 67 1e call 2044294 <__errno> <== NOT EXECUTED
202a620: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a624: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202a628: c2 22 00 00 st %g1, [ %o0 ]
202a62c: 81 c7 e0 08 ret
202a630: 81 e8 00 00 restore
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
202a634: 94 10 00 1a mov %i2, %o2
202a638: 9f c0 40 00 call %g1
202a63c: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202a640: c2 07 bf f8 ld [ %fp + -8 ], %g1
202a644: 80 a0 60 00 cmp %g1, 0
202a648: 02 bf ff f9 be 202a62c <readlink+0xe4> <== NEVER TAKEN
202a64c: b0 10 00 08 mov %o0, %i0
202a650: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a654: 80 a0 60 00 cmp %g1, 0
202a658: 02 80 00 04 be 202a668 <readlink+0x120> <== NEVER TAKEN
202a65c: 01 00 00 00 nop
202a660: 9f c0 40 00 call %g1
202a664: 90 10 00 10 mov %l0, %o0
return result;
}
202a668: 81 c7 e0 08 ret
202a66c: 81 e8 00 00 restore
02004788 <readv>:
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
2004788: 9d e3 bf a0 save %sp, -96, %sp
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
200478c: 03 00 80 80 sethi %hi(0x2020000), %g1
2004790: c2 00 61 94 ld [ %g1 + 0x194 ], %g1 ! 2020194 <rtems_libio_number_iops>
2004794: 80 a6 00 01 cmp %i0, %g1
2004798: 1a 80 00 0e bcc 20047d0 <readv+0x48> <== NEVER TAKEN
200479c: 01 00 00 00 nop
iop = rtems_libio_iop( fd );
20047a0: 03 00 80 84 sethi %hi(0x2021000), %g1
20047a4: e4 00 63 74 ld [ %g1 + 0x374 ], %l2 ! 2021374 <rtems_libio_iops>
20047a8: 83 2e 20 06 sll %i0, 6, %g1
20047ac: b1 2e 20 03 sll %i0, 3, %i0
20047b0: b0 06 00 01 add %i0, %g1, %i0
20047b4: a4 04 80 18 add %l2, %i0, %l2
rtems_libio_check_is_open( iop );
20047b8: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1
20047bc: 80 88 61 00 btst 0x100, %g1
20047c0: 02 80 00 04 be 20047d0 <readv+0x48> <== NEVER TAKEN
20047c4: 80 88 60 02 btst 2, %g1
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
20047c8: 12 80 00 06 bne 20047e0 <readv+0x58> <== ALWAYS TAKEN
20047cc: 80 a6 60 00 cmp %i1, 0
20047d0: 40 00 34 92 call 2011a18 <__errno> <== NOT EXECUTED
20047d4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20047d8: 10 80 00 1b b 2004844 <readv+0xbc> <== NOT EXECUTED
20047dc: 82 10 20 09 mov 9, %g1 <== NOT EXECUTED
/*
* Argument validation on IO vector
*/
if ( !iov )
20047e0: 02 80 00 16 be 2004838 <readv+0xb0>
20047e4: 80 a6 a0 00 cmp %i2, 0
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
20047e8: 04 80 00 14 ble 2004838 <readv+0xb0>
20047ec: 80 a6 a4 00 cmp %i2, 0x400
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
20047f0: 14 80 00 12 bg 2004838 <readv+0xb0> <== NEVER TAKEN
20047f4: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->read_h )
20047f8: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1
20047fc: c2 00 60 08 ld [ %g1 + 8 ], %g1
2004800: 80 a0 60 00 cmp %g1, 0
2004804: 12 80 00 06 bne 200481c <readv+0x94> <== ALWAYS TAKEN
2004808: 84 10 20 01 mov 1, %g2
rtems_set_errno_and_return_minus_one( ENOTSUP );
200480c: 40 00 34 83 call 2011a18 <__errno> <== NOT EXECUTED
2004810: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2004814: 10 80 00 0c b 2004844 <readv+0xbc> <== NOT EXECUTED
2004818: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200481c: 82 10 00 19 mov %i1, %g1
2004820: 88 10 20 00 clr %g4
2004824: 86 10 20 00 clr %g3
all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
ssize_t old;
if ( !iov[v].iov_base )
2004828: da 00 40 00 ld [ %g1 ], %o5
200482c: 80 a3 60 00 cmp %o5, 0
2004830: 12 80 00 08 bne 2004850 <readv+0xc8>
2004834: 88 01 20 01 inc %g4
rtems_set_errno_and_return_minus_one( EINVAL );
2004838: 40 00 34 78 call 2011a18 <__errno>
200483c: b0 10 3f ff mov -1, %i0
2004840: 82 10 20 16 mov 0x16, %g1
2004844: c2 22 00 00 st %g1, [ %o0 ]
2004848: 81 c7 e0 08 ret
200484c: 81 e8 00 00 restore
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
2004850: d8 00 60 04 ld [ %g1 + 4 ], %o4
2004854: 9a 00 c0 0c add %g3, %o4, %o5
if ( total < old )
2004858: 80 a3 40 03 cmp %o5, %g3
200485c: 06 bf ff f7 bl 2004838 <readv+0xb0>
2004860: 82 00 60 08 add %g1, 8, %g1
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
2004864: 80 a0 00 0c cmp %g0, %o4
2004868: 86 40 3f ff addx %g0, -1, %g3
* are obvious errors in the iovec. So this extra loop ensures
* that we do not do anything if there is an argument error.
*/
all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
200486c: 80 a1 00 1a cmp %g4, %i2
2004870: 16 80 00 04 bge 2004880 <readv+0xf8>
2004874: 84 08 80 03 and %g2, %g3, %g2
2004878: 10 bf ff ec b 2004828 <readv+0xa0>
200487c: 86 10 00 0d mov %o5, %g3
/*
* A readv with all zeros logically has no effect. Even though
* OpenGroup didn't address this case as they did with writev(),
* we will handle it the same way for symmetry.
*/
if ( all_zeros == true ) {
2004880: 80 88 a0 ff btst 0xff, %g2
2004884: a6 10 20 00 clr %l3
2004888: 12 bf ff f0 bne 2004848 <readv+0xc0>
200488c: b0 10 20 00 clr %i0
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len );
2004890: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1
2004894: d2 06 40 00 ld [ %i1 ], %o1
2004898: c2 00 60 08 ld [ %g1 + 8 ], %g1
200489c: d4 06 60 04 ld [ %i1 + 4 ], %o2
20048a0: 9f c0 40 00 call %g1
20048a4: 90 10 00 12 mov %l2, %o0
if ( bytes < 0 )
20048a8: 80 a2 20 00 cmp %o0, 0
20048ac: 16 80 00 04 bge 20048bc <readv+0x134> <== ALWAYS TAKEN
20048b0: 01 00 00 00 nop
20048b4: 81 c7 e0 08 ret <== NOT EXECUTED
20048b8: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
if ( bytes > 0 ) {
20048bc: 02 80 00 07 be 20048d8 <readv+0x150> <== NEVER TAKEN
20048c0: a1 3a 20 1f sra %o0, 0x1f, %l0
iop->offset += bytes;
20048c4: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2
20048c8: 86 80 c0 08 addcc %g3, %o0, %g3
total += bytes;
20048cc: b0 06 00 08 add %i0, %o0, %i0
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
20048d0: 84 40 80 10 addx %g2, %l0, %g2
20048d4: c4 3c a0 10 std %g2, [ %l2 + 0x10 ]
total += bytes;
}
if (bytes != iov[ v ].iov_len)
20048d8: c2 06 60 04 ld [ %i1 + 4 ], %g1
20048dc: 80 a2 00 01 cmp %o0, %g1
20048e0: 12 bf ff da bne 2004848 <readv+0xc0> <== NEVER TAKEN
20048e4: a6 04 e0 01 inc %l3
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
20048e8: 80 a4 c0 1a cmp %l3, %i2
20048ec: 06 bf ff e9 bl 2004890 <readv+0x108>
20048f0: b2 06 60 08 add %i1, 8, %i1
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
20048f4: 81 c7 e0 08 ret
20048f8: 81 e8 00 00 restore
0201b710 <realloc>:
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
201b710: 9d e3 bf 98 save %sp, -104, %sp
201b714: 03 00 80 78 sethi %hi(0x201e000), %g1
201b718: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 <rtems_malloc_statistics>
201b71c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
201b720: 05 00 80 79 sethi %hi(0x201e400), %g2
201b724: c4 00 a0 30 ld [ %g2 + 0x30 ], %g2 ! 201e430 <_System_state_Current>
{
uintptr_t old_size;
char *new_area;
uintptr_t resize;
MSBUMP(realloc_calls, 1);
201b728: 86 00 e0 01 inc %g3
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
201b72c: 80 a0 a0 03 cmp %g2, 3
201b730: 12 80 00 0c bne 201b760 <realloc+0x50> <== NEVER TAKEN
201b734: c6 20 60 10 st %g3, [ %g1 + 0x10 ]
if (_Thread_Dispatch_disable_level > 0)
201b738: 03 00 80 78 sethi %hi(0x201e000), %g1
201b73c: c2 00 62 90 ld [ %g1 + 0x290 ], %g1 ! 201e290 <_Thread_Dispatch_disable_level>
201b740: 80 a0 60 00 cmp %g1, 0
201b744: 32 80 00 13 bne,a 201b790 <realloc+0x80> <== NEVER TAKEN
201b748: b0 10 20 00 clr %i0 <== NOT EXECUTED
return (void *) 0;
if (_ISR_Nest_level > 0)
201b74c: 03 00 80 78 sethi %hi(0x201e000), %g1
201b750: c2 00 63 2c ld [ %g1 + 0x32c ], %g1 ! 201e32c <_ISR_Nest_level>
201b754: 80 a0 60 00 cmp %g1, 0
201b758: 32 80 00 0e bne,a 201b790 <realloc+0x80> <== NEVER TAKEN
201b75c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
/*
* Continue with realloc().
*/
if ( !ptr )
201b760: 80 a6 20 00 cmp %i0, 0
201b764: 12 80 00 06 bne 201b77c <realloc+0x6c>
201b768: 80 a6 60 00 cmp %i1, 0
return malloc( size );
201b76c: 7f ff 9d c3 call 2002e78 <malloc>
201b770: 90 10 00 19 mov %i1, %o0
201b774: 81 c7 e0 08 ret
201b778: 91 e8 00 08 restore %g0, %o0, %o0
if ( !size ) {
201b77c: 12 80 00 07 bne 201b798 <realloc+0x88> <== ALWAYS TAKEN
201b780: 21 00 80 75 sethi %hi(0x201d400), %l0
free( ptr );
201b784: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
201b788: 7f ff 9c dd call 2002afc <free> <== NOT EXECUTED
201b78c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return (void *) 0;
201b790: 81 c7 e0 08 ret <== NOT EXECUTED
201b794: 81 e8 00 00 restore <== NOT EXECUTED
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
201b798: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0
201b79c: 92 10 00 18 mov %i0, %o1
201b7a0: 40 00 00 60 call 201b920 <_Protected_heap_Get_block_size>
201b7a4: 94 07 bf fc add %fp, -4, %o2
201b7a8: 80 8a 20 ff btst 0xff, %o0
201b7ac: 12 80 00 08 bne 201b7cc <realloc+0xbc>
201b7b0: d0 04 22 b0 ld [ %l0 + 0x2b0 ], %o0
errno = EINVAL;
201b7b4: 7f ff d4 65 call 2010948 <__errno>
201b7b8: b0 10 20 00 clr %i0
201b7bc: 82 10 20 16 mov 0x16, %g1
201b7c0: c2 22 00 00 st %g1, [ %o0 ]
return (void *) 0;
201b7c4: 81 c7 e0 08 ret
201b7c8: 81 e8 00 00 restore
#if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
if (rtems_malloc_boundary_helpers)
resize += (*rtems_malloc_boundary_helpers->overhead)();
#endif
if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) {
201b7cc: 92 10 00 18 mov %i0, %o1
201b7d0: 40 00 00 61 call 201b954 <_Protected_heap_Resize_block>
201b7d4: 94 10 00 19 mov %i1, %o2
201b7d8: 80 8a 20 ff btst 0xff, %o0
201b7dc: 12 80 00 1a bne 201b844 <realloc+0x134>
201b7e0: 01 00 00 00 nop
* There used to be a free on this error case but it is wrong to
* free the memory per OpenGroup Single UNIX Specification V2
* and the C Standard.
*/
new_area = malloc( size );
201b7e4: 7f ff 9d a5 call 2002e78 <malloc>
201b7e8: 90 10 00 19 mov %i1, %o0
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
201b7ec: 03 00 80 78 sethi %hi(0x201e000), %g1
201b7f0: 82 10 60 d0 or %g1, 0xd0, %g1 ! 201e0d0 <rtems_malloc_statistics>
201b7f4: c4 00 60 04 ld [ %g1 + 4 ], %g2
* There used to be a free on this error case but it is wrong to
* free the memory per OpenGroup Single UNIX Specification V2
* and the C Standard.
*/
new_area = malloc( size );
201b7f8: a0 10 00 08 mov %o0, %l0
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
201b7fc: 84 00 bf ff add %g2, -1, %g2
if ( !new_area ) {
201b800: 80 a2 20 00 cmp %o0, 0
201b804: 02 80 00 0f be 201b840 <realloc+0x130>
201b808: c4 20 60 04 st %g2, [ %g1 + 4 ]
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
201b80c: c2 07 bf fc ld [ %fp + -4 ], %g1
201b810: 80 a6 40 01 cmp %i1, %g1
201b814: 08 80 00 03 bleu 201b820 <realloc+0x110> <== NEVER TAKEN
201b818: 94 10 00 19 mov %i1, %o2
201b81c: 94 10 00 01 mov %g1, %o2
201b820: 92 10 00 18 mov %i0, %o1
201b824: 7f ff d6 85 call 2011238 <memcpy>
201b828: 90 10 00 10 mov %l0, %o0
free( ptr );
201b82c: 90 10 00 18 mov %i0, %o0
201b830: 7f ff 9c b3 call 2002afc <free>
201b834: b0 10 00 10 mov %l0, %i0
return new_area;
201b838: 81 c7 e0 08 ret
201b83c: 81 e8 00 00 restore
201b840: b0 10 20 00 clr %i0
}
201b844: 81 c7 e0 08 ret
201b848: 81 e8 00 00 restore
0202a670 <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
202a670: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the parent node of the node we wish to remove. Find the parent path.
*/
parentpathlen = rtems_filesystem_dirname ( pathname );
202a674: 7f ff 76 92 call 20080bc <rtems_filesystem_dirname>
202a678: 90 10 00 18 mov %i0, %o0
if ( parentpathlen == 0 )
202a67c: a6 92 20 00 orcc %o0, 0, %l3
202a680: 12 80 00 09 bne 202a6a4 <rmdir+0x34>
202a684: 96 07 bf e8 add %fp, -24, %o3
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
202a688: 94 10 00 0b mov %o3, %o2
202a68c: 90 10 00 18 mov %i0, %o0
202a690: 92 07 bf fc add %fp, -4, %o1
202a694: 7f ff 7d 77 call 2009c70 <rtems_filesystem_get_start_loc>
202a698: a2 10 20 00 clr %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202a69c: 10 80 00 0b b 202a6c8 <rmdir+0x58>
202a6a0: 94 10 20 14 mov 0x14, %o2
parentpathlen = rtems_filesystem_dirname ( pathname );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
202a6a4: 90 10 00 18 mov %i0, %o0
202a6a8: 92 10 00 13 mov %l3, %o1
202a6ac: 94 10 20 02 mov 2, %o2
202a6b0: 7f ff 76 cf call 20081ec <rtems_filesystem_evaluate_path>
202a6b4: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
202a6b8: 80 a2 20 00 cmp %o0, 0
202a6bc: 12 80 00 89 bne 202a8e0 <rmdir+0x270> <== NEVER TAKEN
202a6c0: a2 10 20 01 mov 1, %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
202a6c4: 94 10 20 14 mov 0x14, %o2
202a6c8: a0 07 bf d4 add %fp, -44, %l0
202a6cc: a4 07 bf e8 add %fp, -24, %l2
202a6d0: 90 10 00 10 mov %l0, %o0
202a6d4: 40 00 74 3c call 20477c4 <memcpy>
202a6d8: 92 10 00 12 mov %l2, %o1
name = pathname + parentpathlen;
202a6dc: b0 06 00 13 add %i0, %l3, %i0
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
202a6e0: 40 00 82 a9 call 204b184 <strlen>
202a6e4: 90 10 00 18 mov %i0, %o0
202a6e8: 92 10 00 08 mov %o0, %o1
202a6ec: 7f ff 76 62 call 2008074 <rtems_filesystem_prefix_separators>
202a6f0: 90 10 00 18 mov %i0, %o0
202a6f4: b0 06 00 08 add %i0, %o0, %i0
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
202a6f8: 40 00 82 a3 call 204b184 <strlen>
202a6fc: 90 10 00 18 mov %i0, %o0
202a700: 94 10 20 00 clr %o2
202a704: 92 10 00 08 mov %o0, %o1
202a708: 96 10 00 10 mov %l0, %o3
202a70c: 90 10 00 18 mov %i0, %o0
202a710: 7f ff 76 7b call 20080fc <rtems_filesystem_evaluate_relative_path>
202a714: 98 10 20 00 clr %o4
0, &loc, false );
if ( result != 0 ) {
202a718: 80 a2 20 00 cmp %o0, 0
202a71c: 02 80 00 11 be 202a760 <rmdir+0xf0>
202a720: c4 07 bf e0 ld [ %fp + -32 ], %g2
if ( free_parentloc )
202a724: 80 8c 60 ff btst 0xff, %l1
202a728: 02 80 00 0c be 202a758 <rmdir+0xe8> <== ALWAYS TAKEN
202a72c: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &parentloc );
202a730: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
202a734: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a738: 02 80 00 6b be 202a8e4 <rmdir+0x274> <== NOT EXECUTED
202a73c: 01 00 00 00 nop <== NOT EXECUTED
202a740: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a744: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a748: 02 80 00 04 be 202a758 <rmdir+0xe8> <== NOT EXECUTED
202a74c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
202a750: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a754: 01 00 00 00 nop <== NOT EXECUTED
202a758: 81 c7 e0 08 ret
202a75c: 81 e8 00 00 restore
/*
* Verify you can remove this node as a directory.
*/
if ( !loc.ops->node_type_h ){
202a760: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
202a764: 80 a0 60 00 cmp %g1, 0
202a768: 12 80 00 04 bne 202a778 <rmdir+0x108> <== ALWAYS TAKEN
202a76c: 01 00 00 00 nop
rtems_filesystem_freenode( &loc );
202a770: 10 80 00 2b b 202a81c <rmdir+0x1ac> <== NOT EXECUTED
202a774: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){
202a778: 9f c0 40 00 call %g1
202a77c: 90 10 00 10 mov %l0, %o0
202a780: 80 a2 20 01 cmp %o0, 1
202a784: 02 80 00 1d be 202a7f8 <rmdir+0x188>
202a788: c2 07 bf dc ld [ %fp + -36 ], %g1
rtems_filesystem_freenode( &loc );
202a78c: c2 07 bf e0 ld [ %fp + -32 ], %g1
202a790: 80 a0 60 00 cmp %g1, 0
202a794: 02 80 00 09 be 202a7b8 <rmdir+0x148> <== NEVER TAKEN
202a798: 80 8c 60 ff btst 0xff, %l1
202a79c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a7a0: 80 a0 60 00 cmp %g1, 0
202a7a4: 02 80 00 05 be 202a7b8 <rmdir+0x148> <== NEVER TAKEN
202a7a8: 80 8c 60 ff btst 0xff, %l1
202a7ac: 9f c0 40 00 call %g1
202a7b0: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
202a7b4: 80 8c 60 ff btst 0xff, %l1
202a7b8: 02 80 00 0c be 202a7e8 <rmdir+0x178> <== NEVER TAKEN
202a7bc: 01 00 00 00 nop
rtems_filesystem_freenode( &parentloc );
202a7c0: c2 07 bf f4 ld [ %fp + -12 ], %g1
202a7c4: 80 a0 60 00 cmp %g1, 0
202a7c8: 02 80 00 08 be 202a7e8 <rmdir+0x178> <== NEVER TAKEN
202a7cc: 01 00 00 00 nop
202a7d0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a7d4: 80 a0 60 00 cmp %g1, 0
202a7d8: 02 80 00 04 be 202a7e8 <rmdir+0x178> <== NEVER TAKEN
202a7dc: 01 00 00 00 nop
202a7e0: 9f c0 40 00 call %g1
202a7e4: 90 07 bf e8 add %fp, -24, %o0
rtems_set_errno_and_return_minus_one( ENOTDIR );
202a7e8: 40 00 66 ab call 2044294 <__errno>
202a7ec: b0 10 3f ff mov -1, %i0
202a7f0: 10 80 00 1f b 202a86c <rmdir+0x1fc>
202a7f4: 82 10 20 14 mov 0x14, %g1
/*
* Use the filesystems rmnod to remove the node.
*/
if ( !loc.handlers->rmnod_h ){
202a7f8: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
202a7fc: 80 a0 60 00 cmp %g1, 0
202a800: 12 80 00 1e bne 202a878 <rmdir+0x208> <== ALWAYS TAKEN
202a804: 90 10 00 12 mov %l2, %o0
rtems_filesystem_freenode( &loc );
202a808: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
202a80c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a810: 02 80 00 09 be 202a834 <rmdir+0x1c4> <== NOT EXECUTED
202a814: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
202a818: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a81c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a820: 02 80 00 05 be 202a834 <rmdir+0x1c4> <== NOT EXECUTED
202a824: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
202a828: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a82c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( free_parentloc )
202a830: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
202a834: 02 80 00 0b be 202a860 <rmdir+0x1f0> <== NOT EXECUTED
202a838: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
202a83c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a840: 02 80 00 08 be 202a860 <rmdir+0x1f0> <== NOT EXECUTED
202a844: 01 00 00 00 nop <== NOT EXECUTED
202a848: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a84c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a850: 02 80 00 04 be 202a860 <rmdir+0x1f0> <== NOT EXECUTED
202a854: 01 00 00 00 nop <== NOT EXECUTED
202a858: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a85c: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a860: 40 00 66 8d call 2044294 <__errno> <== NOT EXECUTED
202a864: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a868: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202a86c: c2 22 00 00 st %g1, [ %o0 ]
202a870: 81 c7 e0 08 ret
202a874: 81 e8 00 00 restore
}
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
202a878: 9f c0 40 00 call %g1
202a87c: 92 10 00 10 mov %l0, %o1
rtems_filesystem_freenode( &loc );
202a880: c2 07 bf e0 ld [ %fp + -32 ], %g1
202a884: 80 a0 60 00 cmp %g1, 0
202a888: 02 80 00 08 be 202a8a8 <rmdir+0x238> <== NEVER TAKEN
202a88c: b0 10 00 08 mov %o0, %i0
202a890: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a894: 80 a0 60 00 cmp %g1, 0
202a898: 02 80 00 05 be 202a8ac <rmdir+0x23c> <== NEVER TAKEN
202a89c: 80 8c 60 ff btst 0xff, %l1
202a8a0: 9f c0 40 00 call %g1
202a8a4: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
202a8a8: 80 8c 60 ff btst 0xff, %l1
202a8ac: 02 bf ff ab be 202a758 <rmdir+0xe8>
202a8b0: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
202a8b4: 80 a0 60 00 cmp %g1, 0
202a8b8: 02 80 00 0b be 202a8e4 <rmdir+0x274> <== NEVER TAKEN
202a8bc: 01 00 00 00 nop
202a8c0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202a8c4: 80 a0 60 00 cmp %g1, 0
202a8c8: 02 80 00 07 be 202a8e4 <rmdir+0x274> <== NEVER TAKEN
202a8cc: 01 00 00 00 nop
202a8d0: 9f c0 40 00 call %g1
202a8d4: 90 07 bf e8 add %fp, -24, %o0
202a8d8: 81 c7 e0 08 ret
202a8dc: 81 e8 00 00 restore
202a8e0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return result;
}
202a8e4: 81 c7 e0 08 ret <== NOT EXECUTED
202a8e8: 81 e8 00 00 restore <== NOT EXECUTED
02015264 <rtems_assoc_name_bad>:
uint32_t bad_value
#else
uint32_t bad_value __attribute((unused))
#endif
)
{
2015264: 11 00 80 9b sethi %hi(0x2026c00), %o0 <== NOT EXECUTED
sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
#else
static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>";
#endif
return bad_buffer;
}
2015268: 81 c3 e0 08 retl <== NOT EXECUTED
201526c: 90 12 22 a0 or %o0, 0x2a0, %o0 ! 2026ea0 <bad_buffer.4958><== NOT EXECUTED
020116fc <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
20116fc: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
2011700: 90 10 00 18 mov %i0, %o0
2011704: 40 00 00 0b call 2011730 <rtems_assoc_ptr_by_local>
2011708: 92 10 00 19 mov %i1, %o1
if (nap)
201170c: 80 a2 20 00 cmp %o0, 0
2011710: 02 80 00 05 be 2011724 <rtems_assoc_name_by_local+0x28> <== NEVER TAKEN
2011714: 01 00 00 00 nop
return nap->name;
return rtems_assoc_name_bad(local_value);
}
2011718: f0 02 00 00 ld [ %o0 ], %i0
201171c: 81 c7 e0 08 ret
2011720: 81 e8 00 00 restore
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
2011724: 40 00 0e d0 call 2015264 <rtems_assoc_name_bad> <== NOT EXECUTED
2011728: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED
020108c8 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
20108c8: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
20108cc: d0 06 00 00 ld [ %i0 ], %o0
20108d0: 80 a2 20 00 cmp %o0, 0
20108d4: 02 80 00 0e be 201090c <rtems_assoc_ptr_by_local+0x44> <== NEVER TAKEN
20108d8: 82 10 20 00 clr %g1
20108dc: 13 00 80 73 sethi %hi(0x201cc00), %o1
20108e0: 40 00 03 81 call 20116e4 <strcmp>
20108e4: 92 12 63 28 or %o1, 0x328, %o1 ! 201cf28 <errno_assoc+0x88>
20108e8: 80 a2 20 00 cmp %o0, 0
20108ec: 02 80 00 07 be 2010908 <rtems_assoc_ptr_by_local+0x40> <== NEVER TAKEN
20108f0: 82 10 00 18 mov %i0, %g1
default_ap = ap++;
20108f4: 10 80 00 06 b 201090c <rtems_assoc_ptr_by_local+0x44>
20108f8: 82 10 20 00 clr %g1
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
20108fc: 80 a0 80 19 cmp %g2, %i1
2010900: 02 80 00 08 be 2010920 <rtems_assoc_ptr_by_local+0x58>
2010904: 01 00 00 00 nop
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
2010908: b0 06 20 0c add %i0, 0xc, %i0
201090c: c4 06 00 00 ld [ %i0 ], %g2
2010910: 80 a0 a0 00 cmp %g2, 0
2010914: 32 bf ff fa bne,a 20108fc <rtems_assoc_ptr_by_local+0x34>
2010918: c4 06 20 04 ld [ %i0 + 4 ], %g2
201091c: b0 10 00 01 mov %g1, %i0
if (ap->local_value == local_value)
return ap;
return default_ap;
}
2010920: 81 c7 e0 08 ret
2010924: 81 e8 00 00 restore
0200f6b0 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
200f6b0: 9d e3 bf a0 save %sp, -96, %sp
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
200f6b4: d0 06 00 00 ld [ %i0 ], %o0
200f6b8: 80 a2 20 00 cmp %o0, 0
200f6bc: 02 80 00 0e be 200f6f4 <rtems_assoc_ptr_by_remote+0x44> <== NEVER TAKEN
200f6c0: 82 10 20 00 clr %g1
200f6c4: 13 00 80 73 sethi %hi(0x201cc00), %o1
200f6c8: 40 00 08 07 call 20116e4 <strcmp>
200f6cc: 92 12 62 00 or %o1, 0x200, %o1 ! 201ce00 <__FUNCTION__.6119+0x28>
200f6d0: 80 a2 20 00 cmp %o0, 0
200f6d4: 02 80 00 07 be 200f6f0 <rtems_assoc_ptr_by_remote+0x40> <== NEVER TAKEN
200f6d8: 82 10 00 18 mov %i0, %g1
default_ap = ap++;
200f6dc: 10 80 00 06 b 200f6f4 <rtems_assoc_ptr_by_remote+0x44>
200f6e0: 82 10 20 00 clr %g1
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
200f6e4: 80 a0 80 19 cmp %g2, %i1
200f6e8: 02 80 00 08 be 200f708 <rtems_assoc_ptr_by_remote+0x58>
200f6ec: 01 00 00 00 nop
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
200f6f0: b0 06 20 0c add %i0, 0xc, %i0
200f6f4: c4 06 00 00 ld [ %i0 ], %g2
200f6f8: 80 a0 a0 00 cmp %g2, 0
200f6fc: 32 bf ff fa bne,a 200f6e4 <rtems_assoc_ptr_by_remote+0x34>
200f700: c4 06 20 08 ld [ %i0 + 8 ], %g2
200f704: b0 10 00 01 mov %g1, %i0
if (ap->remote_value == remote_value)
return ap;
return default_ap;
}
200f708: 81 c7 e0 08 ret
200f70c: 81 e8 00 00 restore
02010814 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
2010814: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
2010818: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
201081c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2010820: 40 00 00 2a call 20108c8 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
2010824: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (nap)
2010828: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
201082c: 32 80 00 02 bne,a 2010834 <rtems_assoc_remote_by_local+0x20><== NOT EXECUTED
2010830: f0 02 20 08 ld [ %o0 + 8 ], %i0 <== NOT EXECUTED
return nap->remote_value;
return 0;
}
2010834: 81 c7 e0 08 ret <== NOT EXECUTED
2010838: 81 e8 00 00 restore <== NOT EXECUTED
0200bc3c <rtems_bdbuf_add_to_modified_list_after_access>:
}
}
static void
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{
200bc3c: 9d e3 bf a0 save %sp, -96, %sp
if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)
200bc40: 21 00 80 87 sethi %hi(0x2021c00), %l0
200bc44: a0 14 20 28 or %l0, 0x28, %l0 ! 2021c28 <bdbuf_cache>
200bc48: c2 0c 20 30 ldub [ %l0 + 0x30 ], %g1
200bc4c: 80 a0 60 00 cmp %g1, 0
200bc50: 02 80 00 15 be 200bca4 <rtems_bdbuf_add_to_modified_list_after_access+0x68><== ALWAYS TAKEN
200bc54: 01 00 00 00 nop
200bc58: c4 1c 20 38 ldd [ %l0 + 0x38 ], %g2 <== NOT EXECUTED
200bc5c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
200bc60: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200bc64: 12 80 00 10 bne 200bca4 <rtems_bdbuf_add_to_modified_list_after_access+0x68><== NOT EXECUTED
200bc68: 01 00 00 00 nop <== NOT EXECUTED
200bc6c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
200bc70: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
200bc74: 12 80 00 0c bne 200bca4 <rtems_bdbuf_add_to_modified_list_after_access+0x68><== NOT EXECUTED
200bc78: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
200bc7c: 7f ff ff 86 call 200ba94 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200bc80: 01 00 00 00 nop <== NOT EXECUTED
* Lock the cache's sync. A single task can nest calls.
*/
static void
rtems_bdbuf_lock_sync (void)
{
rtems_bdbuf_lock (bdbuf_cache.sync_lock, RTEMS_BLKDEV_FATAL_BDBUF_SYNC_LOCK);
200bc84: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200bc88: 13 10 80 00 sethi %hi(0x42000000), %o1 <== NOT EXECUTED
200bc8c: 7f ff fe eb call 200b838 <rtems_bdbuf_lock> <== NOT EXECUTED
200bc90: 92 12 60 0b or %o1, 0xb, %o1 ! 4200000b <RAM_END+0x3fc0000b><== NOT EXECUTED
/*
* Wait for the sync lock.
*/
rtems_bdbuf_lock_sync ();
rtems_bdbuf_unlock_sync ();
200bc94: 7f ff ff 8b call 200bac0 <rtems_bdbuf_unlock_sync> <== NOT EXECUTED
200bc98: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200bc9c: 7f ff fe f3 call 200b868 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200bca0: 01 00 00 00 nop <== NOT EXECUTED
* nothing being written? We have tended to think we should hold changes for
* only a specific period of time even if still changing and get onto disk
* and letting the file system try and recover this position if it can.
*/
if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
200bca4: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
* difficult question. Is a snapshot of a block that is changing better than
* nothing being written? We have tended to think we should hold changes for
* only a specific period of time even if still changing and get onto disk
* and letting the file system try and recover this position if it can.
*/
if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED
200bca8: 80 a0 60 03 cmp %g1, 3
200bcac: 02 80 00 07 be 200bcc8 <rtems_bdbuf_add_to_modified_list_after_access+0x8c>
200bcb0: 03 00 80 7f sethi %hi(0x201fc00), %g1
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
200bcb4: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
* difficult question. Is a snapshot of a block that is changing better than
* nothing being written? We have tended to think we should hold changes for
* only a specific period of time even if still changing and get onto disk
* and letting the file system try and recover this position if it can.
*/
if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED
200bcb8: 80 a0 60 05 cmp %g1, 5
200bcbc: 12 80 00 06 bne 200bcd4 <rtems_bdbuf_add_to_modified_list_after_access+0x98>
200bcc0: 82 10 20 07 mov 7, %g1
|| bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)
bd->hold_timer = bdbuf_config.swap_block_hold;
200bcc4: 03 00 80 7f sethi %hi(0x201fc00), %g1
200bcc8: c2 00 60 2c ld [ %g1 + 0x2c ], %g1 ! 201fc2c <rtems_bdbuf_configuration+0x10>
200bccc: c2 26 20 34 st %g1, [ %i0 + 0x34 ]
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200bcd0: 82 10 20 07 mov 7, %g1
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200bcd4: 11 00 80 87 sethi %hi(0x2021c00), %o0
200bcd8: c2 26 20 28 st %g1, [ %i0 + 0x28 ]
200bcdc: 90 12 20 78 or %o0, 0x78, %o0
200bce0: 7f ff f1 62 call 2008268 <_Chain_Append>
200bce4: 92 10 00 18 mov %i0, %o1
bd->hold_timer = bdbuf_config.swap_block_hold;
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);
rtems_chain_append (&bdbuf_cache.modified, &bd->link);
if (bd->waiters)
200bce8: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200bcec: 80 a0 60 00 cmp %g1, 0
200bcf0: 02 80 00 05 be 200bd04 <rtems_bdbuf_add_to_modified_list_after_access+0xc8>
200bcf4: 03 00 80 87 sethi %hi(0x2021c00), %g1
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200bcf8: 31 00 80 87 sethi %hi(0x2021c00), %i0
200bcfc: 7f ff fe e3 call 200b888 <rtems_bdbuf_wake>
200bd00: 91 ee 20 90 restore %i0, 0x90, %o0
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200bd04: c2 00 60 a0 ld [ %g1 + 0xa0 ], %g1
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);
rtems_chain_append (&bdbuf_cache.modified, &bd->link);
if (bd->waiters)
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else if (rtems_bdbuf_has_buffer_waiters ())
200bd08: 80 a0 60 00 cmp %g1, 0
200bd0c: 02 80 00 04 be 200bd1c <rtems_bdbuf_add_to_modified_list_after_access+0xe0>
200bd10: 01 00 00 00 nop
rtems_bdbuf_wake_swapper ();
200bd14: 7f ff ff be call 200bc0c <rtems_bdbuf_wake_swapper>
200bd18: 81 e8 00 00 restore
200bd1c: 81 c7 e0 08 ret
200bd20: 81 e8 00 00 restore
0200be98 <rtems_bdbuf_anonymous_wait>:
* The function assumes the cache is locked on entry and it will be locked on
* exit.
*/
static void
rtems_bdbuf_anonymous_wait (rtems_bdbuf_waiters *waiters)
{
200be98: 9d e3 bf a0 save %sp, -96, %sp
rtems_mode prev_mode;
/*
* Indicate we are waiting.
*/
++waiters->count;
200be9c: c2 06 00 00 ld [ %i0 ], %g1
200bea0: 82 00 60 01 inc %g1
200bea4: c2 26 00 00 st %g1, [ %i0 ]
* blocking or just hits that window, and before this task has blocked on the
* semaphore. If the preempting task flushes the queue this task will not see
* the flush and may block for ever or until another transaction flushes this
* semaphore.
*/
prev_mode = rtems_bdbuf_disable_preemption ();
200bea8: 7f ff ff e0 call 200be28 <rtems_bdbuf_disable_preemption>
200beac: 01 00 00 00 nop
/*
* Unlock the cache, wait, and lock the cache when we return.
*/
rtems_bdbuf_unlock_cache ();
200beb0: 7f ff fe f9 call 200ba94 <rtems_bdbuf_unlock_cache>
200beb4: a0 10 00 08 mov %o0, %l0
sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
200beb8: d0 06 20 04 ld [ %i0 + 4 ], %o0
200bebc: 92 10 20 00 clr %o1
200bec0: 7f ff ee 10 call 2007700 <rtems_semaphore_obtain>
200bec4: 94 10 20 00 clr %o2
if (sc == RTEMS_TIMEOUT)
200bec8: 80 a2 20 06 cmp %o0, 6
200becc: 12 80 00 05 bne 200bee0 <rtems_bdbuf_anonymous_wait+0x48> <== ALWAYS TAKEN
200bed0: 80 a2 20 0d cmp %o0, 0xd
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
200bed4: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200bed8: 10 80 00 05 b 200beec <rtems_bdbuf_anonymous_wait+0x54> <== NOT EXECUTED
200bedc: 90 12 20 12 or %o0, 0x12, %o0 ! 42000012 <RAM_END+0x3fc00012><== NOT EXECUTED
if (sc != RTEMS_UNSATISFIED)
200bee0: 02 80 00 05 be 200bef4 <rtems_bdbuf_anonymous_wait+0x5c> <== ALWAYS TAKEN
200bee4: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
200bee8: 90 12 20 10 or %o0, 0x10, %o0 ! 42000010 <RAM_END+0x3fc00010><== NOT EXECUTED
200beec: 7f ff ef 88 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200bef0: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200bef4: 7f ff fe 5d call 200b868 <rtems_bdbuf_lock_cache>
200bef8: 01 00 00 00 nop
rtems_bdbuf_restore_preemption (prev_mode);
200befc: 7f ff ff d9 call 200be60 <rtems_bdbuf_restore_preemption>
200bf00: 90 10 00 10 mov %l0, %o0
--waiters->count;
200bf04: c2 06 00 00 ld [ %i0 ], %g1
200bf08: 82 00 7f ff add %g1, -1, %g1
200bf0c: c2 26 00 00 st %g1, [ %i0 ]
}
200bf10: 81 c7 e0 08 ret
200bf14: 81 e8 00 00 restore
0200be28 <rtems_bdbuf_disable_preemption>:
--bd->group->users;
}
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
200be28: 9d e3 bf 98 save %sp, -104, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
200be2c: 90 10 21 00 mov 0x100, %o0
static rtems_mode
rtems_bdbuf_disable_preemption (void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_mode prev_mode = 0;
200be30: c0 27 bf fc clr [ %fp + -4 ]
sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
200be34: 92 10 21 00 mov 0x100, %o1
200be38: 40 00 14 bb call 2011124 <rtems_task_mode>
200be3c: 94 07 bf fc add %fp, -4, %o2
if (sc != RTEMS_SUCCESSFUL)
200be40: 80 a2 20 00 cmp %o0, 0
200be44: 22 80 00 05 be,a 200be58 <rtems_bdbuf_disable_preemption+0x30><== ALWAYS TAKEN
200be48: f0 07 bf fc ld [ %fp + -4 ], %i0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
200be4c: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200be50: 7f ff ef af call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200be54: 90 12 20 0f or %o0, 0xf, %o0 ! 4200000f <RAM_END+0x3fc0000f><== NOT EXECUTED
return prev_mode;
}
200be58: 81 c7 e0 08 ret
200be5c: 81 e8 00 00 restore
0200da64 <rtems_bdbuf_get>:
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200da64: 9d e3 bf 90 save %sp, -112, %sp
rtems_disk_device *dd = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
size_t bds_per_group = 0;
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200da68: 90 10 00 18 mov %i0, %o0
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
200da6c: c0 27 bf fc clr [ %fp + -4 ]
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
200da70: c0 27 bf f8 clr [ %fp + -8 ]
size_t bds_per_group = 0;
200da74: c0 27 bf f4 clr [ %fp + -12 ]
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200da78: 94 10 00 1a mov %i2, %o2
rtems_status_code
rtems_bdbuf_get (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200da7c: a0 10 00 18 mov %i0, %l0
rtems_disk_device *dd = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
size_t bds_per_group = 0;
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200da80: 96 07 bf fc add %fp, -4, %o3
200da84: 92 10 00 19 mov %i1, %o1
200da88: 98 07 bf f8 add %fp, -8, %o4
200da8c: 7f ff f8 18 call 200baec <rtems_bdbuf_obtain_disk>
200da90: 9a 07 bf f4 add %fp, -12, %o5
if (sc != RTEMS_SUCCESSFUL)
200da94: b0 92 20 00 orcc %o0, 0, %i0
200da98: 12 80 00 24 bne 200db28 <rtems_bdbuf_get+0xc4> <== NEVER TAKEN
200da9c: 01 00 00 00 nop
return sc;
rtems_bdbuf_lock_cache ();
200daa0: 7f ff f7 72 call 200b868 <rtems_bdbuf_lock_cache>
200daa4: 01 00 00 00 nop
*/
if (rtems_bdbuf_tracer)
printf ("bdbuf:get: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
media_block, block, (unsigned) dev);
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
200daa8: d4 07 bf f8 ld [ %fp + -8 ], %o2
200daac: d6 07 bf f4 ld [ %fp + -12 ], %o3
200dab0: 90 10 00 10 mov %l0, %o0
200dab4: 7f ff ff 50 call 200d7f4 <rtems_bdbuf_get_buffer_for_access>
200dab8: 92 10 00 19 mov %i1, %o1
switch (bd->state)
200dabc: c2 02 20 28 ld [ %o0 + 0x28 ], %g1
200dac0: 80 a0 60 02 cmp %g1, 2
200dac4: 02 80 00 08 be 200dae4 <rtems_bdbuf_get+0x80>
200dac8: a0 10 00 08 mov %o0, %l0
200dacc: 80 a0 60 07 cmp %g1, 7
200dad0: 02 80 00 07 be 200daec <rtems_bdbuf_get+0x88>
200dad4: 80 a0 60 01 cmp %g1, 1
200dad8: 12 80 00 0e bne 200db10 <rtems_bdbuf_get+0xac> <== NEVER TAKEN
200dadc: 82 10 20 05 mov 5, %g1
200dae0: 30 80 00 04 b,a 200daf0 <rtems_bdbuf_get+0x8c>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200dae4: 10 80 00 03 b 200daf0 <rtems_bdbuf_get+0x8c>
200dae8: 82 10 20 03 mov 3, %g1
200daec: 82 10 20 04 mov 4, %g1
200daf0: c2 24 20 28 st %g1, [ %l0 + 0x28 ]
{
rtems_bdbuf_show_users ("get", bd);
rtems_bdbuf_show_usage ();
}
rtems_bdbuf_unlock_cache ();
200daf4: 7f ff f7 e8 call 200ba94 <rtems_bdbuf_unlock_cache>
200daf8: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200dafc: 7f ff f8 3a call 200bbe4 <rtems_bdbuf_release_disk>
200db00: d0 07 bf fc ld [ %fp + -4 ], %o0
200db04: e0 26 c0 00 st %l0, [ %i3 ]
200db08: 81 c7 e0 08 ret
200db0c: 81 e8 00 00 restore
* so just gets the block to fill.
*/
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_2);
200db10: d0 02 20 28 ld [ %o0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200db14: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200db18: 82 10 60 1e or %g1, 0x1e, %g1 ! 4200001e <RAM_END+0x3fc0001e><== NOT EXECUTED
200db1c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200db20: 7f ff e8 7b call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200db24: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
rtems_bdbuf_release_disk (dd);
*bd_ptr = bd;
return RTEMS_SUCCESSFUL;
}
200db28: 81 c7 e0 08 ret <== NOT EXECUTED
200db2c: 81 e8 00 00 restore <== NOT EXECUTED
0200d7f4 <rtems_bdbuf_get_buffer_for_access>:
static rtems_bdbuf_buffer *
rtems_bdbuf_get_buffer_for_access (dev_t dev,
rtems_blkdev_bnum block,
size_t bds_per_group)
{
200d7f4: 9d e3 bf a0 save %sp, -96, %sp
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200d7f8: 23 00 80 87 sethi %hi(0x2021c00), %l1
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d7fc: 39 00 80 2d sethi %hi(0x200b400), %i4
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200d800: a2 14 60 28 or %l1, 0x28, %l1
static rtems_bdbuf_buffer *
rtems_bdbuf_get_buffer_for_access (dev_t dev,
rtems_blkdev_bnum block,
size_t bds_per_group)
{
200d804: a0 10 00 18 mov %i0, %l0
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d808: b8 17 23 d4 or %i4, 0x3d4, %i4
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200d80c: ba 04 60 70 add %l1, 0x70, %i5
}
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
200d810: ae 04 60 68 add %l1, 0x68, %l7
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d814: ac 10 20 08 mov 8, %l6
200d818: aa 04 60 5c add %l1, 0x5c, %l5
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200d81c: a8 04 60 44 add %l1, 0x44, %l4
{
if (rtems_bdbuf_wait_for_recycle (bd))
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d820: a4 04 60 78 add %l1, 0x78, %l2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d824: a6 04 60 54 add %l1, 0x54, %l3
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200d828: 10 80 00 11 b 200d86c <rtems_bdbuf_get_buffer_for_access+0x78>
200d82c: f0 04 60 40 ld [ %l1 + 0x40 ], %i0
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d830: 80 a4 00 01 cmp %l0, %g1
200d834: 38 80 00 0e bgu,a 200d86c <rtems_bdbuf_get_buffer_for_access+0x78>
200d838: f0 06 20 0c ld [ %i0 + 0xc ], %i0
200d83c: 80 a4 00 01 cmp %l0, %g1
200d840: 12 80 00 0a bne 200d868 <rtems_bdbuf_get_buffer_for_access+0x74><== ALWAYS TAKEN
200d844: 80 a6 40 02 cmp %i1, %g2
200d848: 38 80 00 09 bgu,a 200d86c <rtems_bdbuf_get_buffer_for_access+0x78><== NOT EXECUTED
200d84c: f0 06 20 0c ld [ %i0 + 0xc ], %i0 <== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200d850: 10 80 00 07 b 200d86c <rtems_bdbuf_get_buffer_for_access+0x78><== NOT EXECUTED
200d854: f0 06 20 08 ld [ %i0 + 8 ], %i0 <== NOT EXECUTED
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d858: 3a 80 00 05 bcc,a 200d86c <rtems_bdbuf_get_buffer_for_access+0x78>
200d85c: f0 06 20 08 ld [ %i0 + 8 ], %i0
{
p = p->avl.right;
200d860: 10 80 00 03 b 200d86c <rtems_bdbuf_get_buffer_for_access+0x78>
200d864: f0 06 20 0c ld [ %i0 + 0xc ], %i0
}
else
{
p = p->avl.left;
200d868: f0 06 20 08 ld [ %i0 + 8 ], %i0
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200d86c: 80 a6 20 00 cmp %i0, 0
200d870: 02 80 00 0f be 200d8ac <rtems_bdbuf_get_buffer_for_access+0xb8>
200d874: 90 10 00 10 mov %l0, %o0
200d878: c2 06 20 18 ld [ %i0 + 0x18 ], %g1
200d87c: 80 a0 40 10 cmp %g1, %l0
200d880: 12 bf ff ec bne 200d830 <rtems_bdbuf_get_buffer_for_access+0x3c>
200d884: c4 06 20 1c ld [ %i0 + 0x1c ], %g2
200d888: 80 a0 80 19 cmp %g2, %i1
200d88c: 12 bf ff ea bne 200d834 <rtems_bdbuf_get_buffer_for_access+0x40><== NEVER TAKEN
200d890: 80 a4 00 01 cmp %l0, %g1
200d894: c2 06 20 20 ld [ %i0 + 0x20 ], %g1
200d898: 80 a0 40 1a cmp %g1, %i2
200d89c: 12 bf ff ef bne 200d858 <rtems_bdbuf_get_buffer_for_access+0x64>
200d8a0: 01 00 00 00 nop
{
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd != NULL)
{
if (bd->group->bds_per_group != bds_per_group)
200d8a4: 10 80 00 6b b 200da50 <rtems_bdbuf_get_buffer_for_access+0x25c>
200d8a8: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
bd = NULL;
}
}
else
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
200d8ac: 92 10 00 19 mov %i1, %o1
200d8b0: 94 10 00 1a mov %i2, %o2
200d8b4: 7f ff fe d9 call 200d418 <rtems_bdbuf_get_buffer_from_lru_list>
200d8b8: 96 10 00 1b mov %i3, %o3
if (bd == NULL)
200d8bc: b0 92 20 00 orcc %o0, 0, %i0
200d8c0: 32 80 00 3c bne,a 200d9b0 <rtems_bdbuf_get_buffer_for_access+0x1bc>
200d8c4: 25 00 80 2d sethi %hi(0x200b400), %l2
200d8c8: 10 80 00 31 b 200d98c <rtems_bdbuf_get_buffer_for_access+0x198>
200d8cc: c2 04 60 50 ld [ %l1 + 0x50 ], %g1
static bool
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d8d0: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d8d4: 80 a0 60 0a cmp %g1, 0xa
200d8d8: 18 80 00 1d bgu 200d94c <rtems_bdbuf_get_buffer_for_access+0x158><== NEVER TAKEN
200d8dc: 01 00 00 00 nop
200d8e0: 83 28 60 02 sll %g1, 2, %g1
200d8e4: c2 07 00 01 ld [ %i4 + %g1 ], %g1
200d8e8: 81 c0 40 00 jmp %g1
200d8ec: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200d8f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d8f4: ec 26 20 28 st %l6, [ %i0 + 0x28 ] <== NOT EXECUTED
200d8f8: 7f ff ea 68 call 2008298 <_Chain_Extract> <== NOT EXECUTED
200d8fc: 01 00 00 00 nop <== 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 );
200d900: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200d904: 7f ff ea 59 call 2008268 <_Chain_Append> <== NOT EXECUTED
200d908: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
rtems_bdbuf_request_sync_for_modified_buffer (rtems_bdbuf_buffer *bd)
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_extract (&bd->link);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
rtems_bdbuf_wake_swapper ();
200d90c: 7f ff f8 c0 call 200bc0c <rtems_bdbuf_wake_swapper> <== NOT EXECUTED
200d910: 01 00 00 00 nop <== NOT EXECUTED
200d914: 30 bf ff ef b,a 200d8d0 <rtems_bdbuf_get_buffer_for_access+0xdc><== NOT EXECUTED
case RTEMS_BDBUF_STATE_MODIFIED:
rtems_bdbuf_request_sync_for_modified_buffer (bd);
break;
case RTEMS_BDBUF_STATE_CACHED:
case RTEMS_BDBUF_STATE_EMPTY:
if (bd->waiters == 0)
200d918: c2 06 20 2c ld [ %i0 + 0x2c ], %g1
200d91c: 80 a0 60 00 cmp %g1, 0
200d920: 02 80 00 10 be 200d960 <rtems_bdbuf_get_buffer_for_access+0x16c><== NEVER TAKEN
200d924: 01 00 00 00 nop
200d928: 30 80 00 1e b,a 200d9a0 <rtems_bdbuf_get_buffer_for_access+0x1ac>
}
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
200d92c: 90 10 00 18 mov %i0, %o0
200d930: 10 80 00 04 b 200d940 <rtems_bdbuf_get_buffer_for_access+0x14c>
200d934: 92 10 00 17 mov %l7, %o1
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200d938: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
200d93c: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200d940: 7f ff f9 76 call 200bf18 <rtems_bdbuf_wait>
200d944: 01 00 00 00 nop
200d948: 30 bf ff e2 b,a 200d8d0 <rtems_bdbuf_get_buffer_for_access+0xdc>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
200d94c: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200d950: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d954: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d958: 10 80 00 36 b 200da30 <rtems_bdbuf_get_buffer_for_access+0x23c><== NOT EXECUTED
200d95c: 82 10 60 06 or %g1, 6, %g1 <== NOT EXECUTED
{
if (bd->group->bds_per_group != bds_per_group)
{
if (rtems_bdbuf_wait_for_recycle (bd))
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200d960: 7f ff fb 83 call 200c76c <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
200d964: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200d968: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
200d96c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d970: c0 26 20 28 clr [ %i0 + 0x28 ] <== NOT EXECUTED
200d974: 40 00 0f 0e call 20115ac <_Chain_Insert> <== NOT EXECUTED
200d978: 01 00 00 00 nop <== NOT EXECUTED
{
if (rtems_bdbuf_wait_for_recycle (bd))
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d97c: 7f ff f7 c3 call 200b888 <rtems_bdbuf_wake> <== NOT EXECUTED
200d980: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
200d984: 10 bf ff ba b 200d86c <rtems_bdbuf_get_buffer_for_access+0x78><== NOT EXECUTED
200d988: f0 04 60 40 ld [ %l1 + 0x40 ], %i0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d98c: 80 a0 40 13 cmp %g1, %l3
200d990: 02 80 00 04 be 200d9a0 <rtems_bdbuf_get_buffer_for_access+0x1ac>
200d994: 01 00 00 00 nop
static void
rtems_bdbuf_wait_for_buffer (void)
{
if (!rtems_chain_is_empty (&bdbuf_cache.modified))
rtems_bdbuf_wake_swapper ();
200d998: 7f ff f8 9d call 200bc0c <rtems_bdbuf_wake_swapper>
200d99c: 01 00 00 00 nop
rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);
200d9a0: 7f ff f9 3e call 200be98 <rtems_bdbuf_anonymous_wait>
200d9a4: 90 10 00 12 mov %l2, %o0
200d9a8: 10 bf ff b1 b 200d86c <rtems_bdbuf_get_buffer_for_access+0x78>
200d9ac: f0 04 60 40 ld [ %l1 + 0x40 ], %i0
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200d9b0: 21 00 80 87 sethi %hi(0x2021c00), %l0
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d9b4: a4 14 a3 ac or %l2, 0x3ac, %l2
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200d9b8: a0 14 20 98 or %l0, 0x98, %l0
return;
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
200d9bc: a2 04 3f f8 add %l0, -8, %l1
static void
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d9c0: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200d9c4: 82 00 7f ff add %g1, -1, %g1
200d9c8: 80 a0 60 09 cmp %g1, 9
200d9cc: 18 80 00 15 bgu 200da20 <rtems_bdbuf_get_buffer_for_access+0x22c><== NEVER TAKEN
200d9d0: 83 28 60 02 sll %g1, 2, %g1
200d9d4: c2 04 80 01 ld [ %l2 + %g1 ], %g1
200d9d8: 81 c0 40 00 jmp %g1
200d9dc: 01 00 00 00 nop
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200d9e0: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
200d9e4: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200d9e8: 84 00 bf ff add %g2, -1, %g2
200d9ec: c4 20 60 0c st %g2, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200d9f0: 7f ff ea 2a call 2008298 <_Chain_Extract>
200d9f4: 90 10 00 18 mov %i0, %o0
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200d9f8: 10 80 00 11 b 200da3c <rtems_bdbuf_get_buffer_for_access+0x248>
200d9fc: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
return;
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);
200da00: 90 10 00 18 mov %i0, %o0
200da04: 10 80 00 04 b 200da14 <rtems_bdbuf_get_buffer_for_access+0x220>
200da08: 92 10 00 11 mov %l1, %o1
break;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200da0c: 90 10 00 18 mov %i0, %o0
200da10: 92 10 00 10 mov %l0, %o1
200da14: 7f ff f9 41 call 200bf18 <rtems_bdbuf_wait>
200da18: 01 00 00 00 nop
200da1c: 30 bf ff e9 b,a 200d9c0 <rtems_bdbuf_get_buffer_for_access+0x1cc>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
200da20: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200da24: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200da28: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200da2c: 82 10 60 05 or %g1, 5, %g1 <== NOT EXECUTED
200da30: 7f ff e8 b7 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200da34: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200da38: c2 06 20 30 ld [ %i0 + 0x30 ], %g1
200da3c: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200da40: 84 00 a0 01 inc %g2
200da44: c4 20 60 0c st %g2, [ %g1 + 0xc ]
rtems_bdbuf_wait_for_access (bd);
rtems_bdbuf_group_obtain (bd);
return bd;
}
200da48: 81 c7 e0 08 ret
200da4c: 81 e8 00 00 restore
{
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd != NULL)
{
if (bd->group->bds_per_group != bds_per_group)
200da50: c2 00 60 08 ld [ %g1 + 8 ], %g1
200da54: 80 a0 40 1b cmp %g1, %i3
200da58: 22 bf ff d6 be,a 200d9b0 <rtems_bdbuf_get_buffer_for_access+0x1bc>
200da5c: 25 00 80 2d sethi %hi(0x200b400), %l2
200da60: 30 bf ff 9c b,a 200d8d0 <rtems_bdbuf_get_buffer_for_access+0xdc>
0200d418 <rtems_bdbuf_get_buffer_from_lru_list>:
static rtems_bdbuf_buffer *
rtems_bdbuf_get_buffer_from_lru_list (dev_t dev,
rtems_blkdev_bnum block,
size_t bds_per_group)
{
200d418: 9d e3 bf 20 save %sp, -224, %sp
200d41c: a0 10 00 18 mov %i0, %l0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200d420: 31 00 80 87 sethi %hi(0x2021c00), %i0
200d424: b0 16 20 28 or %i0, 0x28, %i0 ! 2021c28 <bdbuf_cache>
bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group;
for (b = 0, bd = group->bdbuf;
b < group->bds_per_group;
b++, bd += bufs_per_bd)
200d428: a6 10 00 18 mov %i0, %l3
200d42c: e4 06 20 44 ld [ %i0 + 0x44 ], %l2
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
group->bds_per_group = new_bds_per_group;
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
200d430: b8 10 00 13 mov %l3, %i4
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d434: b0 06 20 48 add %i0, 0x48, %i0
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200d438: ba 04 e0 44 add %l3, 0x44, %i5
rtems_blkdev_bnum block,
size_t bds_per_group)
{
rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))
200d43c: 10 80 00 e5 b 200d7d0 <rtems_bdbuf_get_buffer_from_lru_list+0x3b8>
200d440: ae 04 e0 78 add %l3, 0x78, %l7
bd->group->bds_per_group, bds_per_group);
/*
* If nobody waits for this BD, we may recycle it.
*/
if (bd->waiters == 0)
200d444: c2 04 a0 2c ld [ %l2 + 0x2c ], %g1
200d448: 80 a0 60 00 cmp %g1, 0
200d44c: 32 80 00 e1 bne,a 200d7d0 <rtems_bdbuf_get_buffer_from_lru_list+0x3b8>
200d450: e4 04 80 00 ld [ %l2 ], %l2
{
if (bd->group->bds_per_group == bds_per_group)
200d454: e2 04 a0 30 ld [ %l2 + 0x30 ], %l1
200d458: d2 04 60 08 ld [ %l1 + 8 ], %o1
200d45c: 80 a2 40 1b cmp %o1, %i3
200d460: 32 80 00 06 bne,a 200d478 <rtems_bdbuf_get_buffer_from_lru_list+0x60>
200d464: c2 04 60 0c ld [ %l1 + 0xc ], %g1
{
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200d468: 7f ff fc c1 call 200c76c <rtems_bdbuf_remove_from_tree_and_lru_list>
200d46c: 90 10 00 12 mov %l2, %o0
200d470: 10 80 00 2a b 200d518 <rtems_bdbuf_get_buffer_from_lru_list+0x100>
200d474: 86 10 00 12 mov %l2, %g3
empty_bd = bd;
}
else if (bd->group->users == 0)
200d478: 80 a0 60 00 cmp %g1, 0
200d47c: 32 80 00 d5 bne,a 200d7d0 <rtems_bdbuf_get_buffer_from_lru_list+0x3b8>
200d480: e4 04 80 00 ld [ %l2 ], %l2
bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group;
for (b = 0, bd = group->bdbuf;
b < group->bds_per_group;
b++, bd += bufs_per_bd)
200d484: d0 04 e0 20 ld [ %l3 + 0x20 ], %o0
200d488: 40 00 42 07 call 201dca4 <.udiv>
200d48c: e8 04 60 10 ld [ %l1 + 0x10 ], %l4
200d490: aa 10 20 00 clr %l5
200d494: 10 80 00 05 b 200d4a8 <rtems_bdbuf_get_buffer_from_lru_list+0x90>
200d498: ad 2a 20 06 sll %o0, 6, %l6
200d49c: aa 05 60 01 inc %l5
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
200d4a0: 7f ff fc b3 call 200c76c <rtems_bdbuf_remove_from_tree_and_lru_list>
200d4a4: a8 05 00 16 add %l4, %l6, %l4
group - bdbuf_cache.groups, group->bds_per_group,
new_bds_per_group);
bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group;
for (b = 0, bd = group->bdbuf;
200d4a8: c2 04 60 08 ld [ %l1 + 8 ], %g1
200d4ac: 80 a5 40 01 cmp %l5, %g1
200d4b0: 2a bf ff fb bcs,a 200d49c <rtems_bdbuf_get_buffer_from_lru_list+0x84>
200d4b4: 90 10 00 14 mov %l4, %o0
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
group->bds_per_group = new_bds_per_group;
200d4b8: f6 24 60 08 st %i3, [ %l1 + 8 ]
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
200d4bc: d0 07 20 20 ld [ %i4 + 0x20 ], %o0
200d4c0: 40 00 41 f9 call 201dca4 <.udiv>
200d4c4: 92 10 00 1b mov %i3, %o1
200d4c8: ea 04 60 10 ld [ %l1 + 0x10 ], %l5
200d4cc: ad 2a 20 06 sll %o0, 6, %l6
200d4d0: a8 10 20 01 mov 1, %l4
200d4d4: 10 80 00 08 b 200d4f4 <rtems_bdbuf_get_buffer_from_lru_list+0xdc>
200d4d8: aa 05 40 16 add %l5, %l6, %l5
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d4dc: c0 25 60 28 clr [ %l5 + 0x28 ]
200d4e0: 92 10 00 15 mov %l5, %o1
group->bds_per_group = new_bds_per_group;
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
b < group->bds_per_group;
b++, bd += bufs_per_bd)
200d4e4: a8 05 20 01 inc %l4
200d4e8: aa 05 40 16 add %l5, %l6, %l5
200d4ec: 40 00 10 30 call 20115ac <_Chain_Insert>
200d4f0: 90 10 00 1d mov %i5, %o0
rtems_bdbuf_remove_from_tree_and_lru_list (bd);
group->bds_per_group = new_bds_per_group;
bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;
for (b = 1, bd = group->bdbuf + bufs_per_bd;
200d4f4: c2 04 60 08 ld [ %l1 + 8 ], %g1
200d4f8: 80 a5 00 01 cmp %l4, %g1
200d4fc: 0a bf ff f8 bcs 200d4dc <rtems_bdbuf_get_buffer_from_lru_list+0xc4>
200d500: 80 a5 20 01 cmp %l4, 1
b < group->bds_per_group;
b++, bd += bufs_per_bd)
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
if (b > 1)
200d504: 28 80 00 05 bleu,a 200d518 <rtems_bdbuf_get_buffer_from_lru_list+0x100>
200d508: c6 04 60 10 ld [ %l1 + 0x10 ], %g3
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d50c: 7f ff f8 df call 200b888 <rtems_bdbuf_wake>
200d510: 90 10 00 17 mov %l7, %o0
return group->bdbuf;
200d514: c6 04 60 10 ld [ %l1 + 0x10 ], %g3
}
else if (bd->group->users == 0)
empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
}
if (empty_bd != NULL)
200d518: 80 a0 e0 00 cmp %g3, 0
200d51c: 22 80 00 ad be,a 200d7d0 <rtems_bdbuf_get_buffer_from_lru_list+0x3b8><== NEVER TAKEN
200d520: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
bd->dev = dev;
bd->block = block;
bd->avl.left = NULL;
200d524: c0 20 e0 08 clr [ %g3 + 8 ]
bd->avl.right = NULL;
200d528: c0 20 e0 0c clr [ %g3 + 0xc ]
rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
rtems_blkdev_bnum block = node->block;
rtems_bdbuf_buffer* p = *root;
200d52c: 05 00 80 87 sethi %hi(0x2021c00), %g2
200d530: 84 10 a0 28 or %g2, 0x28, %g2 ! 2021c28 <bdbuf_cache>
200d534: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1
static void
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,
dev_t dev,
rtems_blkdev_bnum block)
{
bd->dev = dev;
200d538: e0 20 e0 18 st %l0, [ %g3 + 0x18 ]
200d53c: f2 20 e0 1c st %i1, [ %g3 + 0x1c ]
bd->block = block;
200d540: f4 20 e0 20 st %i2, [ %g3 + 0x20 ]
bd->avl.left = NULL;
bd->avl.right = NULL;
bd->waiters = 0;
200d544: c0 20 e0 2c clr [ %g3 + 0x2c ]
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
if (p == NULL)
200d548: 80 a0 60 00 cmp %g1, 0
200d54c: 22 80 00 06 be,a 200d564 <rtems_bdbuf_get_buffer_from_lru_list+0x14c>
200d550: c6 20 a0 40 st %g3, [ %g2 + 0x40 ]
200d554: 9a 07 bf 80 add %fp, -128, %o5
break;
}
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200d558: 96 10 3f ff mov -1, %o3
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
{
p->avl.cache = 1;
200d55c: 10 80 00 1e b 200d5d4 <rtems_bdbuf_get_buffer_from_lru_list+0x1bc>
200d560: 98 10 20 01 mov 1, %o4
bool modified = false;
if (p == NULL)
{
*root = node;
node->avl.left = NULL;
200d564: c0 20 e0 08 clr [ %g3 + 8 ]
node->avl.right = NULL;
200d568: c0 20 e0 0c clr [ %g3 + 0xc ]
node->avl.bal = 0;
200d56c: 10 80 00 95 b 200d7c0 <rtems_bdbuf_get_buffer_from_lru_list+0x3a8>
200d570: c0 28 e0 11 clrb [ %g3 + 0x11 ]
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d574: 32 80 00 12 bne,a 200d5bc <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== NEVER TAKEN
200d578: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
200d57c: 80 a1 00 19 cmp %g4, %i1
200d580: 32 80 00 0f bne,a 200d5bc <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== NEVER TAKEN
200d584: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
200d588: c4 00 60 20 ld [ %g1 + 0x20 ], %g2
200d58c: 80 a0 80 1a cmp %g2, %i2
200d590: 1a 80 00 08 bcc 200d5b0 <rtems_bdbuf_get_buffer_from_lru_list+0x198>
200d594: 01 00 00 00 nop
{
p->avl.cache = 1;
q = p->avl.right;
200d598: c4 00 60 0c ld [ %g1 + 0xc ], %g2
if (q == NULL)
200d59c: 80 a0 a0 00 cmp %g2, 0
200d5a0: 12 80 00 0c bne 200d5d0 <rtems_bdbuf_get_buffer_from_lru_list+0x1b8>
200d5a4: d8 28 60 10 stb %o4, [ %g1 + 0x10 ]
{
q = node;
p->avl.right = q = node;
200d5a8: 10 80 00 19 b 200d60c <rtems_bdbuf_get_buffer_from_lru_list+0x1f4>
200d5ac: c6 20 60 0c st %g3, [ %g1 + 0xc ]
break;
}
}
else if ((p->dev != dev) || (p->block != block))
200d5b0: 02 80 00 8e be 200d7e8 <rtems_bdbuf_get_buffer_from_lru_list+0x3d0><== NEVER TAKEN
200d5b4: 11 10 80 00 sethi %hi(0x42000000), %o0
{
p->avl.cache = -1;
q = p->avl.left;
200d5b8: c4 00 60 08 ld [ %g1 + 8 ], %g2
if (q == NULL)
200d5bc: 80 a0 a0 00 cmp %g2, 0
200d5c0: 12 80 00 04 bne 200d5d0 <rtems_bdbuf_get_buffer_from_lru_list+0x1b8>
200d5c4: d6 28 60 10 stb %o3, [ %g1 + 0x10 ]
{
q = node;
p->avl.left = q;
200d5c8: 10 80 00 11 b 200d60c <rtems_bdbuf_get_buffer_from_lru_list+0x1f4>
200d5cc: c6 20 60 08 st %g3, [ %g1 + 8 ]
200d5d0: 82 10 00 02 mov %g2, %g1
while (p != NULL)
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d5d4: c4 00 60 18 ld [ %g1 + 0x18 ], %g2
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200d5d8: c2 23 40 00 st %g1, [ %o5 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d5dc: 80 a4 00 02 cmp %l0, %g2
return 0;
}
while (p != NULL)
{
*buf_prev++ = p;
200d5e0: 9a 03 60 04 add %o5, 4, %o5
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200d5e4: 18 bf ff ed bgu 200d598 <rtems_bdbuf_get_buffer_from_lru_list+0x180><== NEVER TAKEN
200d5e8: c8 00 60 1c ld [ %g1 + 0x1c ], %g4
200d5ec: 80 a4 00 02 cmp %l0, %g2
200d5f0: 12 bf ff e1 bne 200d574 <rtems_bdbuf_get_buffer_from_lru_list+0x15c><== NEVER TAKEN
200d5f4: 80 a0 80 10 cmp %g2, %l0
200d5f8: 80 a6 40 04 cmp %i1, %g4
200d5fc: 38 bf ff e8 bgu,a 200d59c <rtems_bdbuf_get_buffer_from_lru_list+0x184><== NEVER TAKEN
200d600: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
200d604: 10 bf ff dc b 200d574 <rtems_bdbuf_get_buffer_from_lru_list+0x15c>
200d608: 80 a0 80 10 cmp %g2, %l0
}
p = q;
}
q->avl.left = q->avl.right = NULL;
200d60c: c0 20 e0 0c clr [ %g3 + 0xc ]
200d610: c0 20 e0 08 clr [ %g3 + 8 ]
q->avl.bal = 0;
200d614: c0 28 e0 11 clrb [ %g3 + 0x11 ]
modified = true;
buf_prev--;
200d618: 9a 03 7f fc add %o5, -4, %o5
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
p = p2;
}
p->avl.bal = 0;
200d61c: 98 10 20 01 mov 1, %o4
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
p2->avl.right = p1;
p->avl.right = p2->avl.left;
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200d620: 96 10 3f ff mov -1, %o3
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
200d624: 94 07 bf 80 add %fp, -128, %o2
modified = true;
buf_prev--;
while (modified)
{
if (p->avl.cache == -1)
200d628: c8 48 60 10 ldsb [ %g1 + 0x10 ], %g4
200d62c: 80 a1 3f ff cmp %g4, -1
200d630: 12 80 00 27 bne 200d6cc <rtems_bdbuf_get_buffer_from_lru_list+0x2b4>
200d634: c4 08 60 11 ldub [ %g1 + 0x11 ], %g2
{
switch (p->avl.bal)
200d638: 85 28 a0 18 sll %g2, 0x18, %g2
200d63c: 85 38 a0 18 sra %g2, 0x18, %g2
200d640: 80 a0 a0 00 cmp %g2, 0
200d644: 22 80 00 4d be,a 200d778 <rtems_bdbuf_get_buffer_from_lru_list+0x360>
200d648: c8 28 60 11 stb %g4, [ %g1 + 0x11 ]
200d64c: 80 a0 a0 01 cmp %g2, 1
200d650: 02 80 00 29 be 200d6f4 <rtems_bdbuf_get_buffer_from_lru_list+0x2dc><== NEVER TAKEN
200d654: 80 a0 bf ff cmp %g2, -1
200d658: 32 80 00 49 bne,a 200d77c <rtems_bdbuf_get_buffer_from_lru_list+0x364><== NEVER TAKEN
200d65c: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
200d660: c4 00 60 08 ld [ %g1 + 8 ], %g2
p->avl.bal = -1;
break;
case -1:
p1 = p->avl.left;
if (p1->avl.bal == -1) /* simple LL-turn */
200d664: d2 48 a0 11 ldsb [ %g2 + 0x11 ], %o1
200d668: 80 a2 7f ff cmp %o1, -1
200d66c: 12 80 00 06 bne 200d684 <rtems_bdbuf_get_buffer_from_lru_list+0x26c><== ALWAYS TAKEN
200d670: c8 00 a0 0c ld [ %g2 + 0xc ], %g4
{
p->avl.left = p1->avl.right;
200d674: c8 20 60 08 st %g4, [ %g1 + 8 ] <== NOT EXECUTED
p1->avl.right = p;
p->avl.bal = 0;
200d678: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
case -1:
p1 = p->avl.left;
if (p1->avl.bal == -1) /* simple LL-turn */
{
p->avl.left = p1->avl.right;
p1->avl.right = p;
200d67c: 10 80 00 3c b 200d76c <rtems_bdbuf_get_buffer_from_lru_list+0x354><== NOT EXECUTED
200d680: c2 20 a0 0c st %g1, [ %g2 + 0xc ] <== NOT EXECUTED
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200d684: d2 01 20 08 ld [ %g4 + 8 ], %o1
p2->avl.left = p1;
200d688: c4 21 20 08 st %g2, [ %g4 + 8 ]
p = p1;
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200d68c: d2 20 a0 0c st %o1, [ %g2 + 0xc ]
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200d690: d0 01 20 0c ld [ %g4 + 0xc ], %o0
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
200d694: d2 49 20 11 ldsb [ %g4 + 0x11 ], %o1
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200d698: d0 20 60 08 st %o0, [ %g1 + 8 ]
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
200d69c: 80 a2 7f ff cmp %o1, -1
200d6a0: 12 80 00 04 bne 200d6b0 <rtems_bdbuf_get_buffer_from_lru_list+0x298><== ALWAYS TAKEN
200d6a4: c2 21 20 0c st %g1, [ %g4 + 0xc ]
200d6a8: 10 80 00 03 b 200d6b4 <rtems_bdbuf_get_buffer_from_lru_list+0x29c><== NOT EXECUTED
200d6ac: d8 28 60 11 stb %o4, [ %g1 + 0x11 ] <== NOT EXECUTED
200d6b0: c0 28 60 11 clrb [ %g1 + 0x11 ]
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200d6b4: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1
200d6b8: 80 a0 60 01 cmp %g1, 1
200d6bc: 32 80 00 2b bne,a 200d768 <rtems_bdbuf_get_buffer_from_lru_list+0x350><== ALWAYS TAKEN
200d6c0: c0 28 a0 11 clrb [ %g2 + 0x11 ]
200d6c4: 10 80 00 29 b 200d768 <rtems_bdbuf_get_buffer_from_lru_list+0x350><== NOT EXECUTED
200d6c8: d6 28 a0 11 stb %o3, [ %g2 + 0x11 ] <== NOT EXECUTED
break;
}
}
else
{
switch (p->avl.bal)
200d6cc: 85 28 a0 18 sll %g2, 0x18, %g2
200d6d0: 85 38 a0 18 sra %g2, 0x18, %g2
200d6d4: 80 a0 a0 00 cmp %g2, 0
200d6d8: 22 80 00 28 be,a 200d778 <rtems_bdbuf_get_buffer_from_lru_list+0x360>
200d6dc: d8 28 60 11 stb %o4, [ %g1 + 0x11 ]
200d6e0: 80 a0 a0 01 cmp %g2, 1
200d6e4: 02 80 00 07 be 200d700 <rtems_bdbuf_get_buffer_from_lru_list+0x2e8>
200d6e8: 80 a0 bf ff cmp %g2, -1
200d6ec: 32 80 00 24 bne,a 200d77c <rtems_bdbuf_get_buffer_from_lru_list+0x364><== NEVER TAKEN
200d6f0: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
{
case -1:
p->avl.bal = 0;
200d6f4: c0 28 60 11 clrb [ %g1 + 0x11 ]
200d6f8: 10 80 00 1e b 200d770 <rtems_bdbuf_get_buffer_from_lru_list+0x358>
200d6fc: 84 10 00 01 mov %g1, %g2
case 0:
p->avl.bal = 1;
break;
case 1:
p1 = p->avl.right;
200d700: c4 00 60 0c ld [ %g1 + 0xc ], %g2
if (p1->avl.bal == 1) /* simple RR-turn */
200d704: d2 48 a0 11 ldsb [ %g2 + 0x11 ], %o1
200d708: 80 a2 60 01 cmp %o1, 1
200d70c: 12 80 00 06 bne 200d724 <rtems_bdbuf_get_buffer_from_lru_list+0x30c><== NEVER TAKEN
200d710: c8 00 a0 08 ld [ %g2 + 8 ], %g4
{
p->avl.right = p1->avl.left;
200d714: c8 20 60 0c st %g4, [ %g1 + 0xc ]
p1->avl.left = p;
p->avl.bal = 0;
200d718: c0 28 60 11 clrb [ %g1 + 0x11 ]
case 1:
p1 = p->avl.right;
if (p1->avl.bal == 1) /* simple RR-turn */
{
p->avl.right = p1->avl.left;
p1->avl.left = p;
200d71c: 10 80 00 14 b 200d76c <rtems_bdbuf_get_buffer_from_lru_list+0x354>
200d720: c2 20 a0 08 st %g1, [ %g2 + 8 ]
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200d724: d2 01 20 0c ld [ %g4 + 0xc ], %o1 <== NOT EXECUTED
p2->avl.right = p1;
200d728: c4 21 20 0c st %g2, [ %g4 + 0xc ] <== NOT EXECUTED
p = p1;
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200d72c: d2 20 a0 08 st %o1, [ %g2 + 8 ] <== NOT EXECUTED
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200d730: d0 01 20 08 ld [ %g4 + 8 ], %o0 <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200d734: d2 49 20 11 ldsb [ %g4 + 0x11 ], %o1 <== NOT EXECUTED
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200d738: d0 20 60 0c st %o0, [ %g1 + 0xc ] <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200d73c: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
200d740: 12 80 00 04 bne 200d750 <rtems_bdbuf_get_buffer_from_lru_list+0x338><== NOT EXECUTED
200d744: c2 21 20 08 st %g1, [ %g4 + 8 ] <== NOT EXECUTED
200d748: 10 80 00 03 b 200d754 <rtems_bdbuf_get_buffer_from_lru_list+0x33c><== NOT EXECUTED
200d74c: d6 28 60 11 stb %o3, [ %g1 + 0x11 ] <== NOT EXECUTED
200d750: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
200d754: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200d758: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
200d75c: 32 80 00 03 bne,a 200d768 <rtems_bdbuf_get_buffer_from_lru_list+0x350><== NOT EXECUTED
200d760: c0 28 a0 11 clrb [ %g2 + 0x11 ] <== NOT EXECUTED
200d764: d8 28 a0 11 stb %o4, [ %g2 + 0x11 ] <== NOT EXECUTED
200d768: 84 10 00 04 mov %g4, %g2
p = p2;
}
p->avl.bal = 0;
200d76c: c0 28 a0 11 clrb [ %g2 + 0x11 ]
200d770: 10 80 00 04 b 200d780 <rtems_bdbuf_get_buffer_from_lru_list+0x368>
200d774: 88 10 20 00 clr %g4
200d778: 84 10 00 01 mov %g1, %g2
200d77c: 88 10 20 01 mov 1, %g4
default:
break;
}
}
q = p;
if (buf_prev > buf_stack)
200d780: 80 a3 40 0a cmp %o5, %o2
200d784: 08 80 00 0a bleu 200d7ac <rtems_bdbuf_get_buffer_from_lru_list+0x394>
200d788: 03 00 80 87 sethi %hi(0x2021c00), %g1
{
p = *--buf_prev;
200d78c: 9a 03 7f fc add %o5, -4, %o5
200d790: c2 03 40 00 ld [ %o5 ], %g1
if (p->avl.cache == -1)
200d794: d2 48 60 10 ldsb [ %g1 + 0x10 ], %o1
200d798: 80 a2 7f ff cmp %o1, -1
200d79c: 32 80 00 06 bne,a 200d7b4 <rtems_bdbuf_get_buffer_from_lru_list+0x39c>
200d7a0: c4 20 60 0c st %g2, [ %g1 + 0xc ]
{
p->avl.left = q;
200d7a4: 10 80 00 04 b 200d7b4 <rtems_bdbuf_get_buffer_from_lru_list+0x39c>
200d7a8: c4 20 60 08 st %g2, [ %g1 + 8 ]
p->avl.right = q;
}
}
else
{
*root = p;
200d7ac: 10 80 00 05 b 200d7c0 <rtems_bdbuf_get_buffer_from_lru_list+0x3a8>
200d7b0: c4 20 60 68 st %g2, [ %g1 + 0x68 ]
q->avl.left = q->avl.right = NULL;
q->avl.bal = 0;
modified = true;
buf_prev--;
while (modified)
200d7b4: 80 89 20 ff btst 0xff, %g4
200d7b8: 32 bf ff 9d bne,a 200d62c <rtems_bdbuf_get_buffer_from_lru_list+0x214>
200d7bc: c8 48 60 10 ldsb [ %g1 + 0x10 ], %g4
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d7c0: 82 10 20 01 mov 1, %g1
200d7c4: c2 20 e0 28 st %g1, [ %g3 + 0x28 ]
if (empty_bd != NULL)
{
rtems_bdbuf_setup_empty_buffer (empty_bd, dev, block);
return empty_bd;
200d7c8: 81 c7 e0 08 ret
200d7cc: 91 e8 00 03 restore %g0, %g3, %o0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d7d0: 80 a4 80 18 cmp %l2, %i0
200d7d4: 12 bf ff 1c bne 200d444 <rtems_bdbuf_get_buffer_from_lru_list+0x2c>
200d7d8: 86 10 20 00 clr %g3
node = rtems_chain_next (node);
}
return NULL;
}
200d7dc: b0 10 00 03 mov %g3, %i0
200d7e0: 81 c7 e0 08 ret
200d7e4: 81 e8 00 00 restore
bd->avl.left = NULL;
bd->avl.right = NULL;
bd->waiters = 0;
if (rtems_bdbuf_avl_insert (&bdbuf_cache.tree, bd) != 0)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_RECYCLE);
200d7e8: 7f ff e9 49 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200d7ec: 90 12 20 1b or %o0, 0x1b, %o0 <== NOT EXECUTED
0200bf68 <rtems_bdbuf_init>:
*
* @return rtems_status_code The initialisation status.
*/
rtems_status_code
rtems_bdbuf_init (void)
{
200bf68: 9d e3 bf a0 save %sp, -96, %sp
rtems_mode prev_mode;
if (rtems_bdbuf_tracer)
printf ("bdbuf:init\n");
if (rtems_interrupt_is_in_progress())
200bf6c: 03 00 80 88 sethi %hi(0x2022000), %g1
200bf70: c2 00 60 9c ld [ %g1 + 0x9c ], %g1 ! 202209c <_ISR_Nest_level>
200bf74: 80 a0 60 00 cmp %g1, 0
200bf78: 12 80 00 16 bne 200bfd0 <rtems_bdbuf_init+0x68> <== NEVER TAKEN
200bf7c: b0 10 20 12 mov 0x12, %i0
return RTEMS_CALLED_FROM_ISR;
/*
* Check the configuration table values.
*/
if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)
200bf80: 27 00 80 7f sethi %hi(0x201fc00), %l3
200bf84: a6 14 e0 1c or %l3, 0x1c, %l3 ! 201fc1c <rtems_bdbuf_configuration>
200bf88: e8 04 e0 24 ld [ %l3 + 0x24 ], %l4
200bf8c: e2 04 e0 20 ld [ %l3 + 0x20 ], %l1
200bf90: 90 10 00 14 mov %l4, %o0
200bf94: 92 10 00 11 mov %l1, %o1
200bf98: 40 00 47 ef call 201df54 <.urem>
200bf9c: b0 10 20 0a mov 0xa, %i0
200bfa0: 80 a2 20 00 cmp %o0, 0
200bfa4: 12 80 00 ef bne 200c360 <rtems_bdbuf_init+0x3f8> <== NEVER TAKEN
200bfa8: 01 00 00 00 nop
/*
* We use a special variable to manage the initialisation incase we have
* completing threads doing this. You may get errors if the another thread
* makes a call and we have not finished initialisation.
*/
prev_mode = rtems_bdbuf_disable_preemption ();
200bfac: 7f ff ff 9f call 200be28 <rtems_bdbuf_disable_preemption>
200bfb0: 21 00 80 87 sethi %hi(0x2021c00), %l0
if (bdbuf_cache.initialised)
200bfb4: a0 14 20 28 or %l0, 0x28, %l0 ! 2021c28 <bdbuf_cache>
200bfb8: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
200bfbc: 80 a0 60 00 cmp %g1, 0
200bfc0: 02 80 00 06 be 200bfd8 <rtems_bdbuf_init+0x70> <== ALWAYS TAKEN
200bfc4: a4 10 00 08 mov %o0, %l2
{
rtems_bdbuf_restore_preemption (prev_mode);
200bfc8: 7f ff ff a6 call 200be60 <rtems_bdbuf_restore_preemption> <== NOT EXECUTED
200bfcc: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
200bfd0: 81 c7 e0 08 ret <== NOT EXECUTED
200bfd4: 81 e8 00 00 restore <== NOT EXECUTED
}
memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));
200bfd8: 92 10 20 00 clr %o1
200bfdc: 94 10 20 90 mov 0x90, %o2
200bfe0: 40 00 24 ca call 2015308 <memset>
200bfe4: 90 10 00 10 mov %l0, %o0
bdbuf_cache.initialised = true;
200bfe8: 82 10 20 01 mov 1, %g1
rtems_bdbuf_restore_preemption (prev_mode);
200bfec: 90 10 00 12 mov %l2, %o0
200bff0: 7f ff ff 9c call 200be60 <rtems_bdbuf_restore_preemption>
200bff4: c2 2c 20 88 stb %g1, [ %l0 + 0x88 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200bff8: 82 04 20 0c add %l0, 0xc, %g1
200bffc: c2 24 20 08 st %g1, [ %l0 + 8 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c000: 82 04 20 08 add %l0, 8, %g1
200c004: c2 24 20 10 st %g1, [ %l0 + 0x10 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200c008: 82 04 20 48 add %l0, 0x48, %g1
200c00c: c2 24 20 44 st %g1, [ %l0 + 0x44 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c010: 82 04 20 44 add %l0, 0x44, %g1
200c014: c2 24 20 4c st %g1, [ %l0 + 0x4c ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200c018: 82 04 20 54 add %l0, 0x54, %g1
200c01c: c2 24 20 50 st %g1, [ %l0 + 0x50 ]
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c020: 82 04 20 50 add %l0, 0x50, %g1
200c024: c2 24 20 58 st %g1, [ %l0 + 0x58 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200c028: 82 04 20 60 add %l0, 0x60, %g1
*/
cache_aligment = 32; /* FIXME rtems_cache_get_data_line_size() */
if (cache_aligment <= 0)
cache_aligment = CPU_ALIGNMENT;
bdbuf_cache.sync_device = BDBUF_INVALID_DEV;
200c02c: 05 3f ff ff sethi %hi(0xfffffc00), %g2
200c030: c2 24 20 5c st %g1, [ %l0 + 0x5c ]
200c034: 84 10 a3 ff or %g2, 0x3ff, %g2
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200c038: 82 04 20 5c add %l0, 0x5c, %g1
200c03c: 86 10 00 02 mov %g2, %g3
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
200c040: c0 24 20 0c clr [ %l0 + 0xc ]
200c044: c0 24 20 48 clr [ %l0 + 0x48 ]
200c048: c0 24 20 54 clr [ %l0 + 0x54 ]
200c04c: c0 24 20 60 clr [ %l0 + 0x60 ]
200c050: c4 3c 20 38 std %g2, [ %l0 + 0x38 ]
the_chain->last = _Chain_Head(the_chain);
200c054: c2 24 20 64 st %g1, [ %l0 + 0x64 ]
rtems_chain_initialize_empty (&bdbuf_cache.sync);
/*
* Create the locks for the cache.
*/
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'l'),
200c058: 25 10 91 10 sethi %hi(0x42444000), %l2
200c05c: 92 10 20 01 mov 1, %o1
200c060: 90 14 a3 6c or %l2, 0x36c, %o0
200c064: 94 10 20 54 mov 0x54, %o2
200c068: 96 10 20 00 clr %o3
200c06c: 7f ff ed 03 call 2007478 <rtems_semaphore_create>
200c070: 98 04 20 28 add %l0, 0x28, %o4
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.lock);
if (sc != RTEMS_SUCCESSFUL)
200c074: 80 a2 20 00 cmp %o0, 0
200c078: 12 80 00 9a bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c07c: 03 00 80 87 sethi %hi(0x2021c00), %g1
goto error;
rtems_bdbuf_lock_cache ();
200c080: 7f ff fd fa call 200b868 <rtems_bdbuf_lock_cache>
200c084: 01 00 00 00 nop
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'),
200c088: 90 14 a3 73 or %l2, 0x373, %o0
200c08c: 92 10 20 01 mov 1, %o1
200c090: 94 10 20 54 mov 0x54, %o2
200c094: 96 10 20 00 clr %o3
200c098: 7f ff ec f8 call 2007478 <rtems_semaphore_create>
200c09c: 98 04 20 2c add %l0, 0x2c, %o4
1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,
&bdbuf_cache.sync_lock);
if (sc != RTEMS_SUCCESSFUL)
200c0a0: 80 a2 20 00 cmp %o0, 0
200c0a4: 12 80 00 8f bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c0a8: 03 00 80 87 sethi %hi(0x2021c00), %g1
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'),
200c0ac: 90 14 a3 61 or %l2, 0x361, %o0
200c0b0: 92 10 20 00 clr %o1
200c0b4: 94 10 20 24 mov 0x24, %o2
200c0b8: 96 10 20 00 clr %o3
200c0bc: 7f ff ec ef call 2007478 <rtems_semaphore_create>
200c0c0: 98 04 20 6c add %l0, 0x6c, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.access_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200c0c4: 80 a2 20 00 cmp %o0, 0
200c0c8: 12 80 00 86 bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c0cc: 03 00 80 87 sethi %hi(0x2021c00), %g1
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'),
200c0d0: 90 14 a3 74 or %l2, 0x374, %o0
200c0d4: 92 10 20 00 clr %o1
200c0d8: 94 10 20 24 mov 0x24, %o2
200c0dc: 96 10 20 00 clr %o3
200c0e0: 7f ff ec e6 call 2007478 <rtems_semaphore_create>
200c0e4: 98 04 20 74 add %l0, 0x74, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.transfer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200c0e8: 80 a2 20 00 cmp %o0, 0
200c0ec: 12 80 00 7d bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c0f0: 03 00 80 87 sethi %hi(0x2021c00), %g1
goto error;
sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'),
200c0f4: 90 14 a3 62 or %l2, 0x362, %o0
200c0f8: 92 10 20 00 clr %o1
200c0fc: 94 10 20 24 mov 0x24, %o2
200c100: 96 10 20 00 clr %o3
200c104: 7f ff ec dd call 2007478 <rtems_semaphore_create>
200c108: 98 04 20 7c add %l0, 0x7c, %o4
0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
&bdbuf_cache.buffer_waiters.sema);
if (sc != RTEMS_SUCCESSFUL)
200c10c: 80 a2 20 00 cmp %o0, 0
200c110: 12 80 00 74 bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c114: 03 00 80 87 sethi %hi(0x2021c00), %g1
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
200c118: d0 04 e0 1c ld [ %l3 + 0x1c ], %o0
200c11c: 40 00 46 e2 call 201dca4 <.udiv>
200c120: 92 10 00 11 mov %l1, %o1
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
200c124: 92 10 00 11 mov %l1, %o1
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
200c128: a4 10 00 08 mov %o0, %l2
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
200c12c: 90 10 00 14 mov %l4, %o0
200c130: 40 00 46 dd call 201dca4 <.udiv>
200c134: e4 24 20 1c st %l2, [ %l0 + 0x1c ]
bdbuf_cache.group_count =
200c138: 92 10 00 08 mov %o0, %o1
/*
* Compute the various number of elements in the cache.
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
bdbuf_cache.max_bds_per_group =
200c13c: d0 24 20 20 st %o0, [ %l0 + 0x20 ]
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
200c140: 40 00 46 d9 call 201dca4 <.udiv>
200c144: 90 10 00 12 mov %l2, %o0
bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),
200c148: 92 10 00 12 mov %l2, %o1
*/
bdbuf_cache.buffer_min_count =
bdbuf_config.size / bdbuf_config.buffer_min;
bdbuf_cache.max_bds_per_group =
bdbuf_config.buffer_max / bdbuf_config.buffer_min;
bdbuf_cache.group_count =
200c14c: d0 24 20 80 st %o0, [ %l0 + 0x80 ]
bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),
200c150: 7f ff dd f9 call 2003934 <calloc>
200c154: 90 10 20 40 mov 0x40, %o0
bdbuf_cache.buffer_min_count);
if (!bdbuf_cache.bds)
200c158: 80 a2 20 00 cmp %o0, 0
200c15c: 02 80 00 60 be 200c2dc <rtems_bdbuf_init+0x374> <== NEVER TAKEN
200c160: d0 24 20 14 st %o0, [ %l0 + 0x14 ]
goto error;
/*
* Allocate the memory for the buffer descriptors.
*/
bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),
200c164: d2 04 20 80 ld [ %l0 + 0x80 ], %o1
200c168: 7f ff dd f3 call 2003934 <calloc>
200c16c: 90 10 20 14 mov 0x14, %o0
bdbuf_cache.group_count);
if (!bdbuf_cache.groups)
200c170: 80 a2 20 00 cmp %o0, 0
200c174: 02 80 00 5a be 200c2dc <rtems_bdbuf_init+0x374> <== NEVER TAKEN
200c178: d0 24 20 84 st %o0, [ %l0 + 0x84 ]
* aligned. It is possible to free the memory allocated by rtems_memalign()
* with free(). Return 0 if allocated.
*
* The memory allocate allows a
*/
if (rtems_memalign ((void **) &bdbuf_cache.buffers,
200c17c: 21 00 80 87 sethi %hi(0x2021c00), %l0
200c180: a0 14 20 28 or %l0, 0x28, %l0 ! 2021c28 <bdbuf_cache>
200c184: d2 04 20 1c ld [ %l0 + 0x1c ], %o1
200c188: 40 00 46 8d call 201dbbc <.umul>
200c18c: 90 10 00 11 mov %l1, %o0
200c190: 92 10 20 20 mov 0x20, %o1
200c194: 94 10 00 08 mov %o0, %o2
200c198: 40 00 10 d0 call 20104d8 <rtems_memalign>
200c19c: 90 04 20 18 add %l0, 0x18, %o0
200c1a0: 80 a2 20 00 cmp %o0, 0
200c1a4: 12 80 00 4f bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c1a8: 03 00 80 87 sethi %hi(0x2021c00), %g1
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
200c1ac: a4 10 00 10 mov %l0, %l2
200c1b0: ea 04 20 84 ld [ %l0 + 0x84 ], %l5
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
200c1b4: e6 04 20 14 ld [ %l0 + 0x14 ], %l3
200c1b8: e8 04 20 18 ld [ %l0 + 0x18 ], %l4
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
200c1bc: 39 3f ff ff sethi %hi(0xfffffc00), %i4
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
200c1c0: a0 10 20 00 clr %l0
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
200c1c4: b8 17 23 ff or %i4, 0x3ff, %i4
200c1c8: ae 04 a0 44 add %l2, 0x44, %l7
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
200c1cc: 10 80 00 11 b 200c210 <rtems_bdbuf_init+0x2a8>
200c1d0: ba 10 00 1c mov %i4, %i5
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
bd->group = group;
bd->buffer = buffer;
200c1d4: e8 24 e0 24 st %l4, [ %l3 + 0x24 ]
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
{
bd->dev = BDBUF_INVALID_DEV;
bd->group = group;
200c1d8: ea 24 e0 30 st %l5, [ %l3 + 0x30 ]
200c1dc: 7f ff f0 23 call 2008268 <_Chain_Append>
200c1e0: f8 3c e0 18 std %i4, [ %l3 + 0x18 ]
bd->buffer = buffer;
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
200c1e4: ec 04 a0 20 ld [ %l2 + 0x20 ], %l6
200c1e8: 90 10 00 10 mov %l0, %o0
200c1ec: 92 10 00 16 mov %l6, %o1
200c1f0: 40 00 47 59 call 201df54 <.urem>
200c1f4: a6 04 e0 40 add %l3, 0x40, %l3
200c1f8: ac 05 bf ff add %l6, -1, %l6
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;
b < bdbuf_cache.buffer_min_count;
b++, bd++, buffer += bdbuf_config.buffer_min)
200c1fc: a8 05 00 11 add %l4, %l1, %l4
bd->group = group;
bd->buffer = buffer;
rtems_chain_append (&bdbuf_cache.lru, &bd->link);
if ((b % bdbuf_cache.max_bds_per_group) ==
200c200: 80 a2 00 16 cmp %o0, %l6
200c204: 12 80 00 03 bne 200c210 <rtems_bdbuf_init+0x2a8>
200c208: a0 04 20 01 inc %l0
(bdbuf_cache.max_bds_per_group - 1))
group++;
200c20c: aa 05 60 14 add %l5, 0x14, %l5
/*
* The cache is empty after opening so we need to add all the buffers to it
* and initialise the groups.
*/
for (b = 0, group = bdbuf_cache.groups,
200c210: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1
200c214: 92 10 00 13 mov %l3, %o1
200c218: 80 a4 00 01 cmp %l0, %g1
200c21c: 0a bf ff ee bcs 200c1d4 <rtems_bdbuf_init+0x26c>
200c220: 90 10 00 17 mov %l7, %o0
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
200c224: c8 04 a0 20 ld [ %l2 + 0x20 ], %g4
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
group = bdbuf_cache.groups,
200c228: c2 04 a0 84 ld [ %l2 + 0x84 ], %g1
bd = bdbuf_cache.bds;
200c22c: c6 04 a0 14 ld [ %l2 + 0x14 ], %g3
b < bdbuf_cache.group_count;
200c230: d8 04 a0 80 ld [ %l2 + 0x80 ], %o4
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
200c234: 9b 29 20 06 sll %g4, 6, %o5
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
200c238: 10 80 00 06 b 200c250 <rtems_bdbuf_init+0x2e8>
200c23c: 84 10 20 00 clr %g2
b < bdbuf_cache.group_count;
b++,
group++,
bd += bdbuf_cache.max_bds_per_group)
{
group->bds_per_group = bdbuf_cache.max_bds_per_group;
200c240: c8 20 60 08 st %g4, [ %g1 + 8 ]
for (b = 0,
group = bdbuf_cache.groups,
bd = bdbuf_cache.bds;
b < bdbuf_cache.group_count;
b++,
200c244: 84 00 a0 01 inc %g2
group++,
200c248: 82 00 60 14 add %g1, 0x14, %g1
bd += bdbuf_cache.max_bds_per_group)
200c24c: 86 00 c0 0d add %g3, %o5, %g3
if ((b % bdbuf_cache.max_bds_per_group) ==
(bdbuf_cache.max_bds_per_group - 1))
group++;
}
for (b = 0,
200c250: 80 a0 80 0c cmp %g2, %o4
200c254: 2a bf ff fb bcs,a 200c240 <rtems_bdbuf_init+0x2d8>
200c258: c6 20 60 10 st %g3, [ %g1 + 0x10 ]
* threads.
*/
bdbuf_cache.swapout_enabled = true;
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
bdbuf_config.swapout_priority ?
200c25c: 03 00 80 7f sethi %hi(0x201fc00), %g1
200c260: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 ! 201fc24 <rtems_bdbuf_configuration+0x8>
/*
* Create and start swapout task. This task will create and manage the worker
* threads.
*/
bdbuf_cache.swapout_enabled = true;
200c264: 84 10 20 01 mov 1, %g2
200c268: 03 00 80 87 sethi %hi(0x2021c00), %g1
200c26c: 82 10 60 28 or %g1, 0x28, %g1 ! 2021c28 <bdbuf_cache>
200c270: c4 28 60 04 stb %g2, [ %g1 + 4 ]
sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),
200c274: 80 a2 60 00 cmp %o1, 0
200c278: 22 80 00 02 be,a 200c280 <rtems_bdbuf_init+0x318> <== NEVER TAKEN
200c27c: 92 10 20 0f mov 0xf, %o1 <== NOT EXECUTED
200c280: 11 10 94 d5 sethi %hi(0x42535400), %o0
200c284: 15 00 00 08 sethi %hi(0x2000), %o2
200c288: 90 12 23 50 or %o0, 0x350, %o0
200c28c: 96 10 24 00 mov 0x400, %o3
200c290: 98 10 20 00 clr %o4
200c294: 21 00 80 87 sethi %hi(0x2021c00), %l0
200c298: 7f ff ed 8d call 20078cc <rtems_task_create>
200c29c: 9a 14 20 28 or %l0, 0x28, %o5 ! 2021c28 <bdbuf_cache>
RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT,
SWAPOUT_TASK_STACK_SIZE,
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&bdbuf_cache.swapout);
if (sc != RTEMS_SUCCESSFUL)
200c2a0: 80 a2 20 00 cmp %o0, 0
200c2a4: 12 80 00 0f bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c2a8: 03 00 80 87 sethi %hi(0x2021c00), %g1
goto error;
sc = rtems_task_start (bdbuf_cache.swapout,
200c2ac: d0 04 20 28 ld [ %l0 + 0x28 ], %o0
200c2b0: 94 14 20 28 or %l0, 0x28, %o2
200c2b4: 13 00 80 33 sethi %hi(0x200cc00), %o1
200c2b8: 7f ff ee 13 call 2007b04 <rtems_task_start>
200c2bc: 92 12 62 90 or %o1, 0x290, %o1 ! 200ce90 <rtems_bdbuf_swapout_task>
rtems_bdbuf_swapout_task,
(rtems_task_argument) &bdbuf_cache);
if (sc != RTEMS_SUCCESSFUL)
200c2c0: 80 a2 20 00 cmp %o0, 0
200c2c4: 12 80 00 07 bne 200c2e0 <rtems_bdbuf_init+0x378> <== NEVER TAKEN
200c2c8: 03 00 80 87 sethi %hi(0x2021c00), %g1
goto error;
rtems_bdbuf_unlock_cache ();
200c2cc: 7f ff fd f2 call 200ba94 <rtems_bdbuf_unlock_cache>
200c2d0: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
200c2d4: 81 c7 e0 08 ret
200c2d8: 81 e8 00 00 restore
error:
if (bdbuf_cache.swapout != 0)
200c2dc: 03 00 80 87 sethi %hi(0x2021c00), %g1 <== NOT EXECUTED
200c2e0: d0 00 60 28 ld [ %g1 + 0x28 ], %o0 ! 2021c28 <bdbuf_cache><== NOT EXECUTED
200c2e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200c2e8: 02 80 00 04 be 200c2f8 <rtems_bdbuf_init+0x390> <== NOT EXECUTED
200c2ec: 21 00 80 87 sethi %hi(0x2021c00), %l0 <== NOT EXECUTED
rtems_task_delete (bdbuf_cache.swapout);
200c2f0: 7f ff ed c4 call 2007a00 <rtems_task_delete> <== NOT EXECUTED
200c2f4: 01 00 00 00 nop <== NOT EXECUTED
free (bdbuf_cache.buffers);
200c2f8: a0 14 20 28 or %l0, 0x28, %l0 <== NOT EXECUTED
200c2fc: 7f ff de 20 call 2003b7c <free> <== NOT EXECUTED
200c300: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED
free (bdbuf_cache.groups);
200c304: 7f ff de 1e call 2003b7c <free> <== NOT EXECUTED
200c308: d0 04 20 84 ld [ %l0 + 0x84 ], %o0 <== NOT EXECUTED
free (bdbuf_cache.bds);
200c30c: 7f ff de 1c call 2003b7c <free> <== NOT EXECUTED
200c310: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);
200c314: 7f ff ec cd call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c318: d0 04 20 7c ld [ %l0 + 0x7c ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);
200c31c: 7f ff ec cb call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c320: d0 04 20 6c ld [ %l0 + 0x6c ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);
200c324: 7f ff ec c9 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c328: d0 04 20 74 ld [ %l0 + 0x74 ], %o0 <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.sync_lock);
200c32c: 7f ff ec c7 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c330: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
if (bdbuf_cache.lock != 0)
200c334: c2 04 20 28 ld [ %l0 + 0x28 ], %g1 <== NOT EXECUTED
200c338: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200c33c: 02 80 00 07 be 200c358 <rtems_bdbuf_init+0x3f0> <== NOT EXECUTED
200c340: 03 00 80 87 sethi %hi(0x2021c00), %g1 <== NOT EXECUTED
{
rtems_bdbuf_unlock_cache ();
200c344: 7f ff fd d4 call 200ba94 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200c348: 01 00 00 00 nop <== NOT EXECUTED
rtems_semaphore_delete (bdbuf_cache.lock);
200c34c: 7f ff ec bf call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
200c350: d0 04 20 28 ld [ %l0 + 0x28 ], %o0 <== NOT EXECUTED
}
bdbuf_cache.initialised = false;
200c354: 03 00 80 87 sethi %hi(0x2021c00), %g1 <== NOT EXECUTED
200c358: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
200c35c: c0 28 60 b0 clrb [ %g1 + 0xb0 ] <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
200c360: 81 c7 e0 08 ret <== NOT EXECUTED
200c364: 81 e8 00 00 restore <== NOT EXECUTED
0200b838 <rtems_bdbuf_lock>:
* @param lock The mutex to lock.
* @param fatal_error_code The error code if the call fails.
*/
static void
rtems_bdbuf_lock (rtems_id lock, uint32_t fatal_error_code)
{
200b838: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = rtems_semaphore_obtain (lock,
200b83c: 92 10 20 00 clr %o1
200b840: 90 10 00 18 mov %i0, %o0
200b844: 7f ff ef af call 2007700 <rtems_semaphore_obtain>
200b848: 94 10 20 00 clr %o2
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
200b84c: 80 a2 20 00 cmp %o0, 0
200b850: 02 80 00 04 be 200b860 <rtems_bdbuf_lock+0x28> <== ALWAYS TAKEN
200b854: 01 00 00 00 nop
rtems_fatal_error_occurred (fatal_error_code);
200b858: 7f ff f1 2d call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200b85c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
200b860: 81 c7 e0 08 ret
200b864: 81 e8 00 00 restore
0200baec <rtems_bdbuf_obtain_disk>:
rtems_bdbuf_obtain_disk (dev_t dev,
rtems_blkdev_bnum block,
rtems_disk_device **dd_ptr,
rtems_blkdev_bnum *media_block_ptr,
size_t *bds_per_group_ptr)
{
200baec: 9d e3 bf a0 save %sp, -96, %sp
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200baf0: 03 00 80 87 sethi %hi(0x2021c00), %g1
200baf4: c2 08 60 b0 ldub [ %g1 + 0xb0 ], %g1 ! 2021cb0 <bdbuf_cache+0x88>
rtems_bdbuf_obtain_disk (dev_t dev,
rtems_blkdev_bnum block,
rtems_disk_device **dd_ptr,
rtems_blkdev_bnum *media_block_ptr,
size_t *bds_per_group_ptr)
{
200baf8: 90 10 00 18 mov %i0, %o0
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200bafc: 80 a0 60 00 cmp %g1, 0
rtems_bdbuf_obtain_disk (dev_t dev,
rtems_blkdev_bnum block,
rtems_disk_device **dd_ptr,
rtems_blkdev_bnum *media_block_ptr,
size_t *bds_per_group_ptr)
{
200bb00: 92 10 00 19 mov %i1, %o1
rtems_disk_device *dd = NULL;
if (!bdbuf_cache.initialised)
200bb04: 02 80 00 33 be 200bbd0 <rtems_bdbuf_obtain_disk+0xe4> <== NEVER TAKEN
200bb08: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
/*
* Do not hold the cache lock when obtaining the disk table.
*/
dd = rtems_disk_obtain (dev);
200bb0c: 7f ff dc a9 call 2002db0 <rtems_disk_obtain>
200bb10: b0 10 20 04 mov 4, %i0
if (dd == NULL)
200bb14: a0 92 20 00 orcc %o0, 0, %l0
200bb18: 02 80 00 2e be 200bbd0 <rtems_bdbuf_obtain_disk+0xe4> <== NEVER TAKEN
200bb1c: 80 a7 20 00 cmp %i4, 0
return RTEMS_INVALID_ID;
*dd_ptr = dd;
if (media_block_ptr != NULL)
200bb20: 02 80 00 11 be 200bb64 <rtems_bdbuf_obtain_disk+0x78>
200bb24: e0 26 c0 00 st %l0, [ %i3 ]
static rtems_blkdev_bnum
rtems_bdbuf_media_block (rtems_blkdev_bnum block,
size_t block_size,
size_t media_block_size)
{
return (rtems_blkdev_bnum)
200bb28: d6 04 20 20 ld [ %l0 + 0x20 ], %o3
200bb2c: 94 10 20 00 clr %o2
200bb30: 92 10 00 1a mov %i2, %o1
200bb34: 40 00 49 b4 call 201e204 <__muldi3>
200bb38: 90 10 20 00 clr %o0
200bb3c: d6 04 20 24 ld [ %l0 + 0x24 ], %o3
200bb40: 40 00 4b c3 call 201ea4c <__udivdi3>
200bb44: 94 10 20 00 clr %o2
* the user.
*/
rtems_blkdev_bnum mb = rtems_bdbuf_media_block (block,
dd->block_size,
dd->media_block_size);
if (mb >= dd->size)
200bb48: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200bb4c: 80 a2 40 01 cmp %o1, %g1
200bb50: 1a 80 00 1e bcc 200bbc8 <rtems_bdbuf_obtain_disk+0xdc> <== NEVER TAKEN
200bb54: 90 10 00 10 mov %l0, %o0
{
rtems_disk_release(dd);
return RTEMS_INVALID_NUMBER;
}
*media_block_ptr = mb + dd->start;
200bb58: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200bb5c: 92 02 40 01 add %o1, %g1, %o1
200bb60: d2 27 00 00 st %o1, [ %i4 ]
}
if (bds_per_group_ptr != NULL)
200bb64: 80 a7 60 00 cmp %i5, 0
200bb68: 02 80 00 1a be 200bbd0 <rtems_bdbuf_obtain_disk+0xe4>
200bb6c: b0 10 20 00 clr %i0
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
200bb70: d0 04 20 20 ld [ %l0 + 0x20 ], %o0
rtems_bdbuf_bds_per_group (size_t size)
{
size_t bufs_per_size;
size_t bds_per_size;
if (size > bdbuf_config.buffer_max)
200bb74: 03 00 80 7f sethi %hi(0x201fc00), %g1
200bb78: 82 10 60 1c or %g1, 0x1c, %g1 ! 201fc1c <rtems_bdbuf_configuration>
200bb7c: c4 00 60 24 ld [ %g1 + 0x24 ], %g2
200bb80: 80 a2 00 02 cmp %o0, %g2
200bb84: 38 80 00 11 bgu,a 200bbc8 <rtems_bdbuf_obtain_disk+0xdc> <== NEVER TAKEN
200bb88: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return 0;
bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;
200bb8c: d2 00 60 20 ld [ %g1 + 0x20 ], %o1
200bb90: 40 00 48 45 call 201dca4 <.udiv>
200bb94: 90 02 3f ff add %o0, -1, %o0
200bb98: 92 10 20 01 mov 1, %o1
200bb9c: 90 02 20 01 inc %o0
for (bds_per_size = 1;
200bba0: 80 a2 40 08 cmp %o1, %o0
200bba4: 2a bf ff ff bcs,a 200bba0 <rtems_bdbuf_obtain_disk+0xb4>
200bba8: 93 2a 60 01 sll %o1, 1, %o1
bds_per_size < bufs_per_size;
bds_per_size <<= 1)
;
return bdbuf_cache.max_bds_per_group / bds_per_size;
200bbac: 03 00 80 87 sethi %hi(0x2021c00), %g1
200bbb0: 40 00 48 3d call 201dca4 <.udiv>
200bbb4: d0 00 60 48 ld [ %g1 + 0x48 ], %o0 ! 2021c48 <bdbuf_cache+0x20>
if (bds_per_group_ptr != NULL)
{
size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
if (bds_per_group == 0)
200bbb8: 80 a2 20 00 cmp %o0, 0
200bbbc: 32 80 00 07 bne,a 200bbd8 <rtems_bdbuf_obtain_disk+0xec> <== ALWAYS TAKEN
200bbc0: d0 27 40 00 st %o0, [ %i5 ]
{
rtems_disk_release (dd);
200bbc4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
200bbc8: 7f ff dc 68 call 2002d68 <rtems_disk_release> <== NOT EXECUTED
200bbcc: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
200bbd0: 81 c7 e0 08 ret
200bbd4: 81 e8 00 00 restore
}
*bds_per_group_ptr = bds_per_group;
200bbd8: b0 10 20 00 clr %i0
}
return RTEMS_SUCCESSFUL;
}
200bbdc: 81 c7 e0 08 ret
200bbe0: 81 e8 00 00 restore
0200c9bc <rtems_bdbuf_purge>:
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
200c9bc: 9d e3 bf 10 save %sp, -240, %sp
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200c9c0: 82 07 bf f8 add %fp, -8, %g1
the_chain->permanent_null = NULL;
200c9c4: c0 27 bf f8 clr [ %fp + -8 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200c9c8: c2 27 bf f4 st %g1, [ %fp + -12 ]
200c9cc: a0 07 bf f4 add %fp, -12, %l0
rtems_chain_control purge_list;
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
200c9d0: 7f ff fb a6 call 200b868 <rtems_bdbuf_lock_cache>
200c9d4: e0 27 bf fc st %l0, [ %fp + -4 ]
rtems_bdbuf_purge_compare compare,
dev_t dev)
{
rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
200c9d8: 03 00 80 87 sethi %hi(0x2021c00), %g1
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200c9dc: 2b 00 80 2d sethi %hi(0x200b400), %l5
rtems_bdbuf_purge_compare compare,
dev_t dev)
{
rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
200c9e0: 82 10 60 28 or %g1, 0x28, %g1
}
}
static void
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)
{
200c9e4: b8 10 00 19 mov %i1, %i4
200c9e8: ba 10 00 1a mov %i2, %i5
{
rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
200c9ec: c0 27 bf 74 clr [ %fp + -140 ]
case RTEMS_BDBUF_STATE_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
break;
case RTEMS_BDBUF_STATE_SYNC:
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
200c9f0: ac 00 60 70 add %g1, 0x70, %l6
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
{
switch (cur->state)
200c9f4: aa 15 63 80 or %l5, 0x380, %l5
rtems_bdbuf_purge_compare compare,
dev_t dev)
{
rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
200c9f8: e2 00 60 40 ld [ %g1 + 0x40 ], %l1
*prev = NULL;
200c9fc: a4 07 bf 74 add %fp, -140, %l2
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ca00: a8 10 20 06 mov 6, %l4
200ca04: 10 80 00 40 b 200cb04 <rtems_bdbuf_purge+0x148>
200ca08: a6 10 20 0a mov 0xa, %l3
*prev = NULL;
while (cur != NULL)
{
if ((*compare) (cur->dev, dev))
200ca0c: 94 10 00 1c mov %i4, %o2
200ca10: 9f c6 00 00 call %i0
200ca14: 96 10 00 1d mov %i5, %o3
200ca18: 80 8a 20 ff btst 0xff, %o0
200ca1c: 22 80 00 20 be,a 200ca9c <rtems_bdbuf_purge+0xe0> <== NEVER TAKEN
200ca20: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
{
switch (cur->state)
200ca24: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200ca28: 80 a0 60 0a cmp %g1, 0xa
200ca2c: 38 80 00 19 bgu,a 200ca90 <rtems_bdbuf_purge+0xd4> <== NEVER TAKEN
200ca30: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200ca34: 83 28 60 02 sll %g1, 2, %g1
200ca38: c2 05 40 01 ld [ %l5 + %g1 ], %g1
200ca3c: 81 c0 40 00 jmp %g1
200ca40: 01 00 00 00 nop
case RTEMS_BDBUF_STATE_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
break;
case RTEMS_BDBUF_STATE_SYNC:
rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);
200ca44: 7f ff fb 91 call 200b888 <rtems_bdbuf_wake>
200ca48: 90 10 00 16 mov %l6, %o0
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200ca4c: c2 04 60 30 ld [ %l1 + 0x30 ], %g1
200ca50: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200ca54: 84 00 bf ff add %g2, -1, %g2
200ca58: c4 20 60 0c st %g2, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200ca5c: 7f ff ee 0f call 2008298 <_Chain_Extract>
200ca60: 90 10 00 11 mov %l1, %o0
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200ca64: 90 10 00 10 mov %l0, %o0
200ca68: 7f ff ee 00 call 2008268 <_Chain_Append>
200ca6c: 92 10 00 11 mov %l1, %o1
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200ca70: 10 80 00 0b b 200ca9c <rtems_bdbuf_purge+0xe0>
200ca74: c2 04 60 08 ld [ %l1 + 8 ], %g1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ca78: e6 24 60 28 st %l3, [ %l1 + 0x28 ]
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200ca7c: 10 80 00 08 b 200ca9c <rtems_bdbuf_purge+0xe0>
200ca80: c2 04 60 08 ld [ %l1 + 8 ], %g1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ca84: e8 24 60 28 st %l4, [ %l1 + 0x28 ]
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
}
}
if (cur->avl.left != NULL)
200ca88: 10 80 00 05 b 200ca9c <rtems_bdbuf_purge+0xe0>
200ca8c: c2 04 60 08 ld [ %l1 + 8 ], %g1
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_set_state (cur, RTEMS_BDBUF_STATE_ACCESS_PURGED);
break;
default:
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
200ca90: 7f ff ec 9f call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200ca94: 90 12 20 01 or %o0, 1, %o0 <== NOT EXECUTED
}
}
if (cur->avl.left != NULL)
200ca98: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
200ca9c: 80 a0 60 00 cmp %g1, 0
200caa0: 22 80 00 06 be,a 200cab8 <rtems_bdbuf_purge+0xfc> <== ALWAYS TAKEN
200caa4: c2 04 60 0c ld [ %l1 + 0xc ], %g1
{
/* Left */
++prev;
200caa8: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
*prev = cur;
200caac: e2 24 80 00 st %l1, [ %l2 ] <== NOT EXECUTED
cur = cur->avl.left;
200cab0: 10 80 00 14 b 200cb00 <rtems_bdbuf_purge+0x144> <== NOT EXECUTED
200cab4: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
}
else if (cur->avl.right != NULL)
200cab8: 80 a0 60 00 cmp %g1, 0
200cabc: 22 80 00 08 be,a 200cadc <rtems_bdbuf_purge+0x120> <== ALWAYS TAKEN
200cac0: c2 04 80 00 ld [ %l2 ], %g1
{
/* Right */
++prev;
200cac4: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
*prev = cur;
200cac8: e2 24 80 00 st %l1, [ %l2 ] <== NOT EXECUTED
cur = cur->avl.right;
200cacc: 10 80 00 0d b 200cb00 <rtems_bdbuf_purge+0x144> <== NOT EXECUTED
200cad0: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
{
while (*prev != NULL && cur == (*prev)->avl.right)
{
/* Up */
cur = *prev;
--prev;
200cad4: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200cad8: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
200cadc: 80 a0 60 00 cmp %g1, 0
200cae0: 22 80 00 09 be,a 200cb04 <rtems_bdbuf_purge+0x148> <== ALWAYS TAKEN
200cae4: a2 10 00 01 mov %g1, %l1
200cae8: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
200caec: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
200caf0: 22 bf ff f9 be,a 200cad4 <rtems_bdbuf_purge+0x118> <== NOT EXECUTED
200caf4: a4 04 bf fc add %l2, -4, %l2 <== NOT EXECUTED
cur = *prev;
--prev;
}
if (*prev != NULL)
/* Right */
cur = (*prev)->avl.right;
200caf8: 10 80 00 1c b 200cb68 <rtems_bdbuf_purge+0x1ac> <== NOT EXECUTED
200cafc: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200cb00: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
rtems_bdbuf_buffer **prev = stack;
rtems_bdbuf_buffer *cur = bdbuf_cache.tree;
*prev = NULL;
while (cur != NULL)
200cb04: 80 a4 60 00 cmp %l1, 0
200cb08: 32 bf ff c1 bne,a 200ca0c <rtems_bdbuf_purge+0x50>
200cb0c: d0 1c 60 18 ldd [ %l1 + 0x18 ], %o0
200cb10: a0 10 20 00 clr %l0
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
200cb14: 10 80 00 08 b 200cb34 <rtems_bdbuf_purge+0x178>
200cb18: a2 07 bf f4 add %fp, -12, %l1
while ((node = rtems_chain_get (purge_list)) != NULL)
{
rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;
if (bd->waiters == 0)
200cb1c: c2 02 20 2c ld [ %o0 + 0x2c ], %g1
200cb20: 80 a0 60 00 cmp %g1, 0
200cb24: 22 80 00 02 be,a 200cb2c <rtems_bdbuf_purge+0x170>
200cb28: a0 10 20 01 mov 1, %l0
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
200cb2c: 7f ff ff 23 call 200c7b8 <rtems_bdbuf_discard_buffer>
200cb30: 01 00 00 00 nop
200cb34: 7f ff ed e3 call 20082c0 <_Chain_Get>
200cb38: 90 10 00 11 mov %l1, %o0
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)
{
bool wake_buffer_waiters = false;
rtems_chain_node *node = NULL;
while ((node = rtems_chain_get (purge_list)) != NULL)
200cb3c: 80 a2 20 00 cmp %o0, 0
200cb40: 12 bf ff f7 bne 200cb1c <rtems_bdbuf_purge+0x160>
200cb44: 80 8c 20 ff btst 0xff, %l0
wake_buffer_waiters = true;
rtems_bdbuf_discard_buffer (bd);
}
if (wake_buffer_waiters)
200cb48: 02 80 00 04 be 200cb58 <rtems_bdbuf_purge+0x19c>
200cb4c: 11 00 80 87 sethi %hi(0x2021c00), %o0
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200cb50: 7f ff fb 4e call 200b888 <rtems_bdbuf_wake>
200cb54: 90 12 20 a0 or %o0, 0xa0, %o0 ! 2021ca0 <bdbuf_cache+0x78>
rtems_chain_initialize_empty (&purge_list);
rtems_bdbuf_lock_cache ();
rtems_bdbuf_gather_for_purge (&purge_list, compare, dev);
rtems_bdbuf_purge_list (&purge_list);
rtems_bdbuf_unlock_cache ();
200cb58: 7f ff fb cf call 200ba94 <rtems_bdbuf_unlock_cache>
200cb5c: 01 00 00 00 nop
}
200cb60: 81 c7 e0 08 ret
200cb64: 81 e8 00 00 restore
*prev = cur;
cur = cur->avl.right;
}
else
{
while (*prev != NULL && cur == (*prev)->avl.right)
200cb68: 10 bf ff e7 b 200cb04 <rtems_bdbuf_purge+0x148> <== NOT EXECUTED
200cb6c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
0200b808 <rtems_bdbuf_purge_compare_dev>:
rtems_bdbuf_unlock_cache ();
}
static bool
rtems_bdbuf_purge_compare_dev (dev_t a, dev_t b)
{
200b808: 80 a2 00 0a cmp %o0, %o2
200b80c: 12 80 00 05 bne 200b820 <rtems_bdbuf_purge_compare_dev+0x18><== NEVER TAKEN
200b810: 90 10 20 00 clr %o0
200b814: 80 a2 40 0b cmp %o1, %o3
200b818: 22 80 00 02 be,a 200b820 <rtems_bdbuf_purge_compare_dev+0x18><== ALWAYS TAKEN
200b81c: 90 10 20 01 mov 1, %o0
return a == b;
}
200b820: 81 c3 e0 08 retl
0200b828 <rtems_bdbuf_purge_compare_major>:
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
200b828: 90 1a 00 0a xor %o0, %o2, %o0 <== NOT EXECUTED
200b82c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
static bool
rtems_bdbuf_purge_compare_major (dev_t a, dev_t b)
{
return rtems_filesystem_dev_major_t (a) == rtems_filesystem_dev_major_t (b);
}
200b830: 81 c3 e0 08 retl <== NOT EXECUTED
200b834: 90 60 3f ff subx %g0, -1, %o0 <== NOT EXECUTED
0200cb70 <rtems_bdbuf_purge_major>:
void
rtems_bdbuf_purge_major (rtems_device_major_number major)
{
dev_t dev = rtems_filesystem_make_dev_t (major, 0);
rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);
200cb70: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
200cb74: 94 10 20 00 clr %o2 <== NOT EXECUTED
200cb78: 11 00 80 2e sethi %hi(0x200b800), %o0 <== NOT EXECUTED
200cb7c: 90 12 20 28 or %o0, 0x28, %o0 ! 200b828 <rtems_bdbuf_purge_compare_major><== NOT EXECUTED
200cb80: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
200cb84: 7f ff ff 8e call 200c9bc <rtems_bdbuf_purge> <== NOT EXECUTED
200cb88: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200db30 <rtems_bdbuf_read>:
rtems_status_code
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
200db30: 9d e3 bf 88 save %sp, -120, %sp
rtems_blkdev_request *req = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
size_t bds_per_group = 0;
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200db34: 90 10 00 18 mov %i0, %o0
rtems_bdbuf_read (dev_t dev,
rtems_blkdev_bnum block,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
200db38: c0 27 bf fc clr [ %fp + -4 ]
rtems_blkdev_request *req = NULL;
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block = 0;
200db3c: c0 27 bf f8 clr [ %fp + -8 ]
size_t bds_per_group = 0;
200db40: c0 27 bf f4 clr [ %fp + -12 ]
sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
200db44: 94 10 00 1a mov %i2, %o2
200db48: 92 10 00 19 mov %i1, %o1
200db4c: 96 07 bf fc add %fp, -4, %o3
200db50: 98 07 bf f8 add %fp, -8, %o4
200db54: 7f ff f7 e6 call 200baec <rtems_bdbuf_obtain_disk>
200db58: 9a 07 bf f4 add %fp, -12, %o5
if (sc != RTEMS_SUCCESSFUL)
200db5c: b0 92 20 00 orcc %o0, 0, %i0
200db60: 12 80 00 a0 bne 200dde0 <rtems_bdbuf_read+0x2b0> <== NEVER TAKEN
200db64: 03 00 80 7f sethi %hi(0x201fc00), %g1
/*
* TODO: This type of request structure is wrong and should be removed.
*/
#define bdbuf_alloc(size) __builtin_alloca (size)
req = bdbuf_alloc (sizeof (rtems_blkdev_request) +
200db68: e6 00 60 1c ld [ %g1 + 0x1c ], %l3 ! 201fc1c <rtems_bdbuf_configuration>
200db6c: a6 04 e0 01 inc %l3
200db70: 83 2c e0 04 sll %l3, 4, %g1
200db74: 82 00 60 18 add %g1, 0x18, %g1
if (rtems_bdbuf_tracer)
printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
media_block + dd->start, block, (unsigned) dev);
rtems_bdbuf_lock_cache ();
200db78: 7f ff f7 3c call 200b868 <rtems_bdbuf_lock_cache>
200db7c: 9c 23 80 01 sub %sp, %g1, %sp
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
200db80: e2 07 bf fc ld [ %fp + -4 ], %l1
200db84: e4 07 bf f8 ld [ %fp + -8 ], %l2
rtems_blkdev_request *req,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
rtems_blkdev_bnum media_block_count = dd->block_size / dd->media_block_size;
200db88: ee 04 60 20 ld [ %l1 + 0x20 ], %l7
200db8c: d2 04 60 24 ld [ %l1 + 0x24 ], %o1
200db90: 40 00 40 45 call 201dca4 <.udiv>
200db94: 90 10 00 17 mov %l7, %o0
dev_t dev = dd->dev;
200db98: c2 04 60 18 ld [ %l1 + 0x18 ], %g1
200db9c: fa 04 60 1c ld [ %l1 + 0x1c ], %i5
rtems_blkdev_request *req,
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
rtems_blkdev_bnum media_block_count = dd->block_size / dd->media_block_size;
200dba0: d0 27 bf ec st %o0, [ %fp + -20 ]
dev_t dev = dd->dev;
200dba4: ba 07 40 01 add %i5, %g1, %i5
/*
* TODO: This type of request structure is wrong and should be removed.
*/
#define bdbuf_alloc(size) __builtin_alloca (size)
req = bdbuf_alloc (sizeof (rtems_blkdev_request) +
200dba8: a0 03 a0 60 add %sp, 0x60, %l0
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
rtems_blkdev_bnum media_block_count = dd->block_size / dd->media_block_size;
dev_t dev = dd->dev;
200dbac: ba 27 40 12 sub %i5, %l2, %i5
if (rtems_bdbuf_tracer)
printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",
media_block + dd->start, block, (unsigned) dev);
rtems_bdbuf_lock_cache ();
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
200dbb0: f8 07 bf f4 ld [ %fp + -12 ], %i4
rtems_bdbuf_buffer **bd_ptr)
{
rtems_bdbuf_buffer *bd = NULL;
rtems_blkdev_bnum media_block_end = dd->start + dd->size;
rtems_blkdev_bnum media_block_count = dd->block_size / dd->media_block_size;
dev_t dev = dd->dev;
200dbb4: 80 a7 40 13 cmp %i5, %l3
200dbb8: e8 04 40 00 ld [ %l1 ], %l4
200dbbc: 08 80 00 03 bleu 200dbc8 <rtems_bdbuf_read+0x98>
200dbc0: ec 04 60 04 ld [ %l1 + 4 ], %l6
200dbc4: ba 10 00 13 mov %l3, %i5
if (media_block_end - media_block < transfer_count)
transfer_count = media_block_end - media_block;
req->req = RTEMS_BLKDEV_REQ_READ;
req->req_done = rtems_bdbuf_transfer_done;
200dbc8: 03 00 80 2f sethi %hi(0x200bc00), %g1
200dbcc: 82 10 61 24 or %g1, 0x124, %g1 ! 200bd24 <rtems_bdbuf_transfer_done>
uint32_t transfer_count = bdbuf_config.max_read_ahead_blocks + 1;
if (media_block_end - media_block < transfer_count)
transfer_count = media_block_end - media_block;
req->req = RTEMS_BLKDEV_REQ_READ;
200dbd0: c0 24 00 00 clr [ %l0 ]
req->req_done = rtems_bdbuf_transfer_done;
200dbd4: c2 24 20 04 st %g1, [ %l0 + 4 ]
req->done_arg = req;
req->io_task = rtems_task_self ();
200dbd8: 40 00 0d ab call 2011284 <rtems_task_self>
200dbdc: e0 24 20 08 st %l0, [ %l0 + 8 ]
req->status = RTEMS_RESOURCE_IN_USE;
200dbe0: 82 10 20 0c mov 0xc, %g1
transfer_count = media_block_end - media_block;
req->req = RTEMS_BLKDEV_REQ_READ;
req->req_done = rtems_bdbuf_transfer_done;
req->done_arg = req;
req->io_task = rtems_task_self ();
200dbe4: d0 24 20 14 st %o0, [ %l0 + 0x14 ]
req->status = RTEMS_RESOURCE_IN_USE;
200dbe8: c2 24 20 0c st %g1, [ %l0 + 0xc ]
req->bufnum = 0;
200dbec: c0 24 20 10 clr [ %l0 + 0x10 ]
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
200dbf0: 90 10 00 14 mov %l4, %o0
200dbf4: 92 10 00 16 mov %l6, %o1
200dbf8: 94 10 00 12 mov %l2, %o2
200dbfc: 7f ff fe fe call 200d7f4 <rtems_bdbuf_get_buffer_for_access>
200dc00: 96 10 00 1c mov %i4, %o3
*bd_ptr = bd;
req->bufs [0].user = bd;
req->bufs [0].block = media_block;
req->bufs [0].length = block_size;
req->bufs [0].buffer = bd->buffer;
200dc04: c4 02 20 24 ld [ %o0 + 0x24 ], %g2
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200dc08: c2 02 20 28 ld [ %o0 + 0x28 ], %g1
*bd_ptr = bd;
req->bufs [0].user = bd;
req->bufs [0].block = media_block;
req->bufs [0].length = block_size;
req->bufs [0].buffer = bd->buffer;
200dc0c: c4 24 20 20 st %g2, [ %l0 + 0x20 ]
bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
*bd_ptr = bd;
req->bufs [0].user = bd;
200dc10: d0 24 20 24 st %o0, [ %l0 + 0x24 ]
req->bufs [0].block = media_block;
200dc14: e4 24 20 18 st %l2, [ %l0 + 0x18 ]
req->bufs [0].length = block_size;
200dc18: ee 24 20 1c st %l7, [ %l0 + 0x1c ]
req->bufs [0].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read", bd);
switch (bd->state)
200dc1c: 80 a0 60 02 cmp %g1, 2
200dc20: 02 80 00 4b be 200dd4c <rtems_bdbuf_read+0x21c>
200dc24: a2 10 00 08 mov %o0, %l1
200dc28: 80 a0 60 07 cmp %g1, 7
200dc2c: 02 80 00 48 be 200dd4c <rtems_bdbuf_read+0x21c>
200dc30: 80 a0 60 01 cmp %g1, 1
200dc34: 12 80 00 09 bne 200dc58 <rtems_bdbuf_read+0x128> <== NEVER TAKEN
200dc38: 33 00 80 87 sethi %hi(0x2021c00), %i1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200dc3c: 82 10 20 09 mov 9, %g1
200dc40: c2 22 20 28 st %g1, [ %o0 + 0x28 ]
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200dc44: b2 16 60 28 or %i1, 0x28, %i1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200dc48: a6 10 00 10 mov %l0, %l3
200dc4c: aa 10 20 01 mov 1, %l5
200dc50: 10 80 00 3b b 200dd3c <rtems_bdbuf_read+0x20c>
200dc54: b4 10 20 09 mov 9, %i2
return;
case RTEMS_BDBUF_STATE_EMPTY:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
200dc58: d0 02 20 28 ld [ %o0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200dc5c: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200dc60: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200dc64: 10 80 00 59 b 200ddc8 <rtems_bdbuf_read+0x298> <== NOT EXECUTED
200dc68: 82 10 60 1d or %g1, 0x1d, %g1 <== NOT EXECUTED
break;
}
while (transfer_index < transfer_count)
{
media_block += media_block_count;
200dc6c: a4 04 80 01 add %l2, %g1, %l2
static rtems_bdbuf_buffer *
rtems_bdbuf_avl_search (rtems_bdbuf_buffer** root,
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
200dc70: 10 80 00 10 b 200dcb0 <rtems_bdbuf_read+0x180>
200dc74: c2 06 60 40 ld [ %i1 + 0x40 ], %g1
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200dc78: 38 80 00 0e bgu,a 200dcb0 <rtems_bdbuf_read+0x180> <== NOT EXECUTED
200dc7c: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
200dc80: 80 a5 00 02 cmp %l4, %g2 <== NOT EXECUTED
200dc84: 12 80 00 0a bne 200dcac <rtems_bdbuf_read+0x17c> <== NOT EXECUTED
200dc88: 80 a5 80 03 cmp %l6, %g3 <== NOT EXECUTED
200dc8c: 38 80 00 09 bgu,a 200dcb0 <rtems_bdbuf_read+0x180> <== NOT EXECUTED
200dc90: c2 00 60 0c ld [ %g1 + 0xc ], %g1 <== NOT EXECUTED
{
p = p->avl.right;
}
else
{
p = p->avl.left;
200dc94: 10 80 00 07 b 200dcb0 <rtems_bdbuf_read+0x180> <== NOT EXECUTED
200dc98: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
{
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200dc9c: 3a 80 00 05 bcc,a 200dcb0 <rtems_bdbuf_read+0x180> <== NEVER TAKEN
200dca0: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
{
p = p->avl.right;
200dca4: 10 80 00 03 b 200dcb0 <rtems_bdbuf_read+0x180>
200dca8: c2 00 60 0c ld [ %g1 + 0xc ], %g1
}
else
{
p = p->avl.left;
200dcac: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
dev_t dev,
rtems_blkdev_bnum block)
{
rtems_bdbuf_buffer* p = *root;
while ((p != NULL) && ((p->dev != dev) || (p->block != block)))
200dcb0: 80 a0 60 00 cmp %g1, 0
200dcb4: 02 80 00 0f be 200dcf0 <rtems_bdbuf_read+0x1c0>
200dcb8: 90 10 00 14 mov %l4, %o0
200dcbc: c4 18 60 18 ldd [ %g1 + 0x18 ], %g2
200dcc0: 80 a0 80 14 cmp %g2, %l4
200dcc4: 12 bf ff ed bne 200dc78 <rtems_bdbuf_read+0x148> <== NEVER TAKEN
200dcc8: 80 a5 00 02 cmp %l4, %g2
200dccc: 80 a0 c0 16 cmp %g3, %l6
200dcd0: 12 bf ff ea bne 200dc78 <rtems_bdbuf_read+0x148> <== NEVER TAKEN
200dcd4: 80 a5 00 02 cmp %l4, %g2
200dcd8: c4 00 60 20 ld [ %g1 + 0x20 ], %g2
200dcdc: 80 a0 80 12 cmp %g2, %l2
200dce0: 12 bf ff ef bne 200dc9c <rtems_bdbuf_read+0x16c> <== ALWAYS TAKEN
200dce4: 01 00 00 00 nop
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
200dce8: 10 80 00 19 b 200dd4c <rtems_bdbuf_read+0x21c> <== NOT EXECUTED
200dcec: ea 24 20 10 st %l5, [ %l0 + 0x10 ] <== NOT EXECUTED
bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);
if (bd == NULL)
{
bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
200dcf0: 92 10 00 16 mov %l6, %o1
200dcf4: 94 10 00 12 mov %l2, %o2
200dcf8: 96 10 00 1c mov %i4, %o3
200dcfc: 7f ff fd c7 call 200d418 <rtems_bdbuf_get_buffer_from_lru_list>
200dd00: a6 04 e0 10 add %l3, 0x10, %l3
if (bd != NULL)
200dd04: 80 a2 20 00 cmp %o0, 0
200dd08: 22 80 00 11 be,a 200dd4c <rtems_bdbuf_read+0x21c> <== ALWAYS TAKEN
200dd0c: ea 24 20 10 st %l5, [ %l0 + 0x10 ]
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dd10: c2 02 20 30 ld [ %o0 + 0x30 ], %g1 <== NOT EXECUTED
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
req->bufs [transfer_index].user = bd;
req->bufs [transfer_index].block = media_block;
req->bufs [transfer_index].length = block_size;
req->bufs [transfer_index].buffer = bd->buffer;
200dd14: c6 02 20 24 ld [ %o0 + 0x24 ], %g3 <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dd18: c4 00 60 0c ld [ %g1 + 0xc ], %g2 <== NOT EXECUTED
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
req->bufs [transfer_index].user = bd;
req->bufs [transfer_index].block = media_block;
req->bufs [transfer_index].length = block_size;
req->bufs [transfer_index].buffer = bd->buffer;
200dd1c: c6 24 e0 20 st %g3, [ %l3 + 0x20 ] <== NOT EXECUTED
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dd20: 84 00 a0 01 inc %g2 <== NOT EXECUTED
200dd24: c4 20 60 0c st %g2, [ %g1 + 0xc ] <== NOT EXECUTED
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200dd28: f4 22 20 28 st %i2, [ %o0 + 0x28 ] <== NOT EXECUTED
if (bd == NULL)
break;
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);
req->bufs [transfer_index].user = bd;
200dd2c: d0 24 e0 24 st %o0, [ %l3 + 0x24 ] <== NOT EXECUTED
req->bufs [transfer_index].block = media_block;
200dd30: e4 24 e0 18 st %l2, [ %l3 + 0x18 ] <== NOT EXECUTED
req->bufs [transfer_index].length = block_size;
200dd34: ee 24 e0 1c st %l7, [ %l3 + 0x1c ] <== NOT EXECUTED
req->bufs [transfer_index].buffer = bd->buffer;
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
200dd38: aa 05 60 01 inc %l5 <== NOT EXECUTED
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
break;
}
while (transfer_index < transfer_count)
200dd3c: 80 a5 40 1d cmp %l5, %i5
200dd40: 0a bf ff cb bcs 200dc6c <rtems_bdbuf_read+0x13c>
200dd44: c2 07 bf ec ld [ %fp + -20 ], %g1
rtems_bdbuf_show_users ("read-ahead", bd);
++transfer_index;
}
req->bufnum = transfer_index;
200dd48: ea 24 20 10 st %l5, [ %l0 + 0x10 ]
media_block + dd->start, block, (unsigned) dev);
rtems_bdbuf_lock_cache ();
rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
if (req->bufnum > 0)
200dd4c: c2 04 20 10 ld [ %l0 + 0x10 ], %g1
200dd50: 80 a0 60 00 cmp %g1, 0
200dd54: 02 80 00 0e be 200dd8c <rtems_bdbuf_read+0x25c>
200dd58: 92 10 00 10 mov %l0, %o1
{
sc = rtems_bdbuf_execute_transfer_request (dd, req, true);
200dd5c: d0 07 bf fc ld [ %fp + -4 ], %o0
200dd60: 7f ff fb 94 call 200cbb0 <rtems_bdbuf_execute_transfer_request>
200dd64: 94 10 20 01 mov 1, %o2
if (sc == RTEMS_SUCCESSFUL)
200dd68: 80 a2 20 00 cmp %o0, 0
200dd6c: 32 80 00 1f bne,a 200dde8 <rtems_bdbuf_read+0x2b8>
200dd70: c0 26 c0 00 clr [ %i3 ]
200dd74: 7f ff e9 49 call 2008298 <_Chain_Extract>
200dd78: 90 10 00 11 mov %l1, %o0
}
static void
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)
{
++bd->group->users;
200dd7c: c2 04 60 30 ld [ %l1 + 0x30 ], %g1
200dd80: c4 00 60 0c ld [ %g1 + 0xc ], %g2
200dd84: 84 00 a0 01 inc %g2
200dd88: c4 20 60 0c st %g2, [ %g1 + 0xc ]
}
}
if (sc == RTEMS_SUCCESSFUL)
{
switch (bd->state)
200dd8c: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200dd90: 80 a0 60 02 cmp %g1, 2
200dd94: 02 80 00 05 be 200dda8 <rtems_bdbuf_read+0x278>
200dd98: 80 a0 60 07 cmp %g1, 7
200dd9c: 12 80 00 07 bne 200ddb8 <rtems_bdbuf_read+0x288> <== NEVER TAKEN
200dda0: 82 10 20 04 mov 4, %g1
200dda4: 30 80 00 02 b,a 200ddac <rtems_bdbuf_read+0x27c>
200dda8: 82 10 20 03 mov 3, %g1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ddac: c2 24 60 28 st %g1, [ %l1 + 0x28 ]
{
rtems_bdbuf_show_users ("read", bd);
rtems_bdbuf_show_usage ();
}
*bd_ptr = bd;
200ddb0: 10 80 00 08 b 200ddd0 <rtems_bdbuf_read+0x2a0>
200ddb4: e2 26 c0 00 st %l1, [ %i3 ]
break;
case RTEMS_BDBUF_STATE_MODIFIED:
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_4);
200ddb8: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200ddbc: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200ddc0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200ddc4: 82 10 60 02 or %g1, 2, %g1 <== NOT EXECUTED
200ddc8: 7f ff e7 d1 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200ddcc: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
rtems_bdbuf_unlock_cache ();
200ddd0: 7f ff f7 31 call 200ba94 <rtems_bdbuf_unlock_cache>
200ddd4: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200ddd8: 7f ff f7 83 call 200bbe4 <rtems_bdbuf_release_disk>
200dddc: d0 07 bf fc ld [ %fp + -4 ], %o0
return sc;
}
200dde0: 81 c7 e0 08 ret
200dde4: 81 e8 00 00 restore
}
*bd_ptr = bd;
}
else
*bd_ptr = NULL;
200dde8: 10 bf ff fa b 200ddd0 <rtems_bdbuf_read+0x2a0>
200ddec: b0 10 00 08 mov %o0, %i0
0200c8d0 <rtems_bdbuf_release>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
200c8d0: 9d e3 bf a0 save %sp, -96, %sp
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
200c8d4: 21 00 80 87 sethi %hi(0x2021c00), %l0
200c8d8: a0 14 20 28 or %l0, 0x28, %l0 ! 2021c28 <bdbuf_cache>
200c8dc: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)
{
200c8e0: a2 10 00 18 mov %i0, %l1
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
200c8e4: 80 a0 60 00 cmp %g1, 0
200c8e8: 02 80 00 33 be 200c9b4 <rtems_bdbuf_release+0xe4> <== NEVER TAKEN
200c8ec: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200c8f0: 80 a4 60 00 cmp %l1, 0
200c8f4: 02 80 00 30 be 200c9b4 <rtems_bdbuf_release+0xe4> <== NEVER TAKEN
200c8f8: b0 10 20 09 mov 9, %i0
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
200c8fc: 7f ff fb db call 200b868 <rtems_bdbuf_lock_cache>
200c900: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200c904: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200c908: 80 a0 60 04 cmp %g1, 4
200c90c: 02 80 00 1f be 200c988 <rtems_bdbuf_release+0xb8>
200c910: 01 00 00 00 nop
200c914: 18 80 00 07 bgu 200c930 <rtems_bdbuf_release+0x60>
200c918: 80 a0 60 06 cmp %g1, 6
200c91c: 80 a0 60 03 cmp %g1, 3
200c920: 12 80 00 1d bne 200c994 <rtems_bdbuf_release+0xc4> <== NEVER TAKEN
200c924: 01 00 00 00 nop
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c928: 10 80 00 05 b 200c93c <rtems_bdbuf_release+0x6c>
200c92c: c2 04 60 30 ld [ %l1 + 0x30 ], %g1
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200c930: 18 80 00 19 bgu 200c994 <rtems_bdbuf_release+0xc4> <== NEVER TAKEN
200c934: 01 00 00 00 nop
200c938: 30 80 00 11 b,a 200c97c <rtems_bdbuf_release+0xac>
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200c93c: 86 10 20 02 mov 2, %g3 ! 2 <PROM_START+0x2>
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c940: c4 00 60 0c ld [ %g1 + 0xc ], %g2
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200c944: 90 04 20 44 add %l0, 0x44, %o0
200c948: 84 00 bf ff add %g2, -1, %g2
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200c94c: c6 24 60 28 st %g3, [ %l1 + 0x28 ]
}
static void
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)
{
--bd->group->users;
200c950: c4 20 60 0c st %g2, [ %g1 + 0xc ]
200c954: 7f ff ee 45 call 2008268 <_Chain_Append>
200c958: 92 10 00 11 mov %l1, %o1
rtems_bdbuf_add_to_lru_list_after_access (rtems_bdbuf_buffer *bd)
{
rtems_bdbuf_group_release (bd);
rtems_bdbuf_make_cached_and_add_to_lru_list (bd);
if (bd->waiters)
200c95c: c2 04 60 2c ld [ %l1 + 0x2c ], %g1
200c960: 80 a0 60 00 cmp %g1, 0
200c964: 12 80 00 03 bne 200c970 <rtems_bdbuf_release+0xa0>
200c968: 90 04 20 68 add %l0, 0x68, %o0
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
else
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200c96c: 90 04 20 78 add %l0, 0x78, %o0
200c970: 7f ff fb c6 call 200b888 <rtems_bdbuf_wake>
200c974: 01 00 00 00 nop
200c978: 30 80 00 0d b,a 200c9ac <rtems_bdbuf_release+0xdc>
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
rtems_bdbuf_add_to_lru_list_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
200c97c: 7f ff ff 9e call 200c7f4 <rtems_bdbuf_discard_buffer_after_access>
200c980: 90 10 00 11 mov %l1, %o0
break;
200c984: 30 80 00 0a b,a 200c9ac <rtems_bdbuf_release+0xdc>
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
200c988: 7f ff fc ad call 200bc3c <rtems_bdbuf_add_to_modified_list_after_access>
200c98c: 90 10 00 11 mov %l1, %o0
break;
200c990: 30 80 00 07 b,a 200c9ac <rtems_bdbuf_release+0xdc>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
200c994: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200c998: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c99c: 82 10 60 1c or %g1, 0x1c, %g1 ! 4200001c <RAM_END+0x3fc0001c><== NOT EXECUTED
200c9a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c9a4: 7f ff ec da call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200c9a8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200c9ac: 7f ff fc 3a call 200ba94 <rtems_bdbuf_unlock_cache>
200c9b0: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c9b4: 81 c7 e0 08 ret
200c9b8: 81 e8 00 00 restore
0200bbe4 <rtems_bdbuf_release_disk>:
static void
rtems_bdbuf_release_disk (rtems_disk_device *dd)
{
200bbe4: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_disk_release (dd);
200bbe8: 7f ff dc 60 call 2002d68 <rtems_disk_release>
200bbec: 90 10 00 18 mov %i0, %o0
if (sc != RTEMS_SUCCESSFUL)
200bbf0: 80 a2 20 00 cmp %o0, 0
200bbf4: 02 80 00 04 be 200bc04 <rtems_bdbuf_release_disk+0x20> <== ALWAYS TAKEN
200bbf8: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);
200bbfc: 7f ff f0 44 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200bc00: 90 12 20 1f or %o0, 0x1f, %o0 ! 4200001f <RAM_END+0x3fc0001f><== NOT EXECUTED
200bc04: 81 c7 e0 08 ret
200bc08: 81 e8 00 00 restore
0200c838 <rtems_bdbuf_release_modified>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
200c838: 9d e3 bf 98 save %sp, -104, %sp
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
200c83c: 03 00 80 87 sethi %hi(0x2021c00), %g1
200c840: c2 08 60 b0 ldub [ %g1 + 0xb0 ], %g1 ! 2021cb0 <bdbuf_cache+0x88>
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)
{
200c844: 90 10 00 18 mov %i0, %o0
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
200c848: 80 a0 60 00 cmp %g1, 0
200c84c: 02 80 00 1f be 200c8c8 <rtems_bdbuf_release_modified+0x90><== NEVER TAKEN
200c850: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200c854: 80 a2 20 00 cmp %o0, 0
200c858: 02 80 00 1c be 200c8c8 <rtems_bdbuf_release_modified+0x90><== NEVER TAKEN
200c85c: b0 10 20 09 mov 9, %i0
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
200c860: 7f ff fc 02 call 200b868 <rtems_bdbuf_lock_cache>
200c864: d0 27 bf fc st %o0, [ %fp + -4 ]
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200c868: d0 07 bf fc ld [ %fp + -4 ], %o0
200c86c: c2 02 20 28 ld [ %o0 + 0x28 ], %g1
200c870: 80 a0 60 03 cmp %g1, 3
200c874: 0a 80 00 0d bcs 200c8a8 <rtems_bdbuf_release_modified+0x70><== NEVER TAKEN
200c878: 80 a0 60 05 cmp %g1, 5
200c87c: 08 80 00 05 bleu 200c890 <rtems_bdbuf_release_modified+0x58>
200c880: 80 a0 60 06 cmp %g1, 6
200c884: 12 80 00 09 bne 200c8a8 <rtems_bdbuf_release_modified+0x70><== NEVER TAKEN
200c888: 01 00 00 00 nop
200c88c: 30 80 00 04 b,a 200c89c <rtems_bdbuf_release_modified+0x64>
{
case RTEMS_BDBUF_STATE_ACCESS_CACHED:
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_add_to_modified_list_after_access (bd);
200c890: 7f ff fc eb call 200bc3c <rtems_bdbuf_add_to_modified_list_after_access>
200c894: 01 00 00 00 nop
break;
200c898: 30 80 00 0a b,a 200c8c0 <rtems_bdbuf_release_modified+0x88>
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
200c89c: 7f ff ff d6 call 200c7f4 <rtems_bdbuf_discard_buffer_after_access>
200c8a0: 01 00 00 00 nop
break;
200c8a4: 30 80 00 07 b,a 200c8c0 <rtems_bdbuf_release_modified+0x88>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
200c8a8: d0 02 20 28 ld [ %o0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200c8ac: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c8b0: 82 10 60 04 or %g1, 4, %g1 ! 42000004 <RAM_END+0x3fc00004><== NOT EXECUTED
200c8b4: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c8b8: 7f ff ed 15 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200c8bc: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200c8c0: 7f ff fc 75 call 200ba94 <rtems_bdbuf_unlock_cache>
200c8c4: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c8c8: 81 c7 e0 08 ret
200c8cc: 81 e8 00 00 restore
0200c3c0 <rtems_bdbuf_remove_from_tree>:
return bdbuf_cache.buffer_waiters.count;
}
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
200c3c0: 9d e3 bf 20 save %sp, -224, %sp
const rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
rtems_blkdev_bnum block = node->block;
rtems_bdbuf_buffer* p = *root;
200c3c4: 03 00 80 87 sethi %hi(0x2021c00), %g1
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
200c3c8: a4 07 bf 80 add %fp, -128, %l2
*/
static int
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer** root,
const rtems_bdbuf_buffer* node)
{
dev_t dev = node->dev;
200c3cc: e2 06 20 18 ld [ %i0 + 0x18 ], %l1
200c3d0: e8 06 20 1c ld [ %i0 + 0x1c ], %l4
rtems_blkdev_bnum block = node->block;
200c3d4: e6 06 20 20 ld [ %i0 + 0x20 ], %l3
rtems_bdbuf_buffer* p = *root;
200c3d8: e0 00 60 68 ld [ %g1 + 0x68 ], %l0
rtems_bdbuf_buffer* buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];
rtems_bdbuf_buffer** buf_prev = buf_stack;
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
200c3dc: 90 10 00 12 mov %l2, %o0
200c3e0: 92 10 20 00 clr %o1
200c3e4: 40 00 23 c9 call 2015308 <memset>
200c3e8: 94 10 20 80 mov 0x80, %o2
{
*buf_prev++ = p;
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
{
p->avl.cache = 1;
200c3ec: 88 10 20 01 mov 1, %g4
p = p->avl.right;
}
else if ((p->dev != dev) || (p->block != block))
{
p->avl.cache = -1;
200c3f0: 10 80 00 1e b 200c468 <rtems_bdbuf_remove_from_tree+0xa8>
200c3f4: 86 10 3f ff mov -1, %g3
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200c3f8: e0 24 80 00 st %l0, [ %l2 ]
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200c3fc: 80 a4 40 01 cmp %l1, %g1
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
{
*buf_prev++ = p;
200c400: a4 04 a0 04 add %l2, 4, %l2
if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))
200c404: 18 80 00 12 bgu 200c44c <rtems_bdbuf_remove_from_tree+0x8c><== NEVER TAKEN
200c408: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
200c40c: 80 a4 40 01 cmp %l1, %g1
200c410: 12 80 00 06 bne 200c428 <rtems_bdbuf_remove_from_tree+0x68><== NEVER TAKEN
200c414: 80 a0 40 11 cmp %g1, %l1
200c418: 80 a5 00 02 cmp %l4, %g2
200c41c: 38 80 00 0d bgu,a 200c450 <rtems_bdbuf_remove_from_tree+0x90><== NEVER TAKEN
200c420: c8 2c 20 10 stb %g4, [ %l0 + 0x10 ] <== NOT EXECUTED
200c424: 80 a0 40 11 cmp %g1, %l1
200c428: 32 80 00 0f bne,a 200c464 <rtems_bdbuf_remove_from_tree+0xa4><== NEVER TAKEN
200c42c: c6 2c 20 10 stb %g3, [ %l0 + 0x10 ] <== NOT EXECUTED
200c430: 80 a0 80 14 cmp %g2, %l4
200c434: 32 80 00 0c bne,a 200c464 <rtems_bdbuf_remove_from_tree+0xa4><== NEVER TAKEN
200c438: c6 2c 20 10 stb %g3, [ %l0 + 0x10 ] <== NOT EXECUTED
200c43c: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
200c440: 80 a0 40 13 cmp %g1, %l3
200c444: 1a 80 00 05 bcc 200c458 <rtems_bdbuf_remove_from_tree+0x98>
200c448: 01 00 00 00 nop
{
p->avl.cache = 1;
200c44c: c8 2c 20 10 stb %g4, [ %l0 + 0x10 ]
p = p->avl.right;
200c450: 10 80 00 06 b 200c468 <rtems_bdbuf_remove_from_tree+0xa8>
200c454: e0 04 20 0c ld [ %l0 + 0xc ], %l0
}
else if ((p->dev != dev) || (p->block != block))
200c458: 02 80 00 08 be 200c478 <rtems_bdbuf_remove_from_tree+0xb8>
200c45c: 84 04 bf fc add %l2, -4, %g2
{
p->avl.cache = -1;
200c460: c6 2c 20 10 stb %g3, [ %l0 + 0x10 ]
p = p->avl.left;
200c464: e0 04 20 08 ld [ %l0 + 8 ], %l0
bool modified = false;
memset (buf_stack, 0, sizeof(buf_stack));
while (p != NULL)
200c468: 80 a4 20 00 cmp %l0, 0
200c46c: 32 bf ff e3 bne,a 200c3f8 <rtems_bdbuf_remove_from_tree+0x38><== ALWAYS TAKEN
200c470: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200c474: 30 80 00 b7 b,a 200c750 <rtems_bdbuf_remove_from_tree+0x390><== NOT EXECUTED
}
q = p;
buf_prev--;
if (buf_prev > buf_stack)
200c478: 82 07 bf 80 add %fp, -128, %g1
200c47c: 80 a0 80 01 cmp %g2, %g1
200c480: 08 80 00 03 bleu 200c48c <rtems_bdbuf_remove_from_tree+0xcc>
200c484: 86 10 20 00 clr %g3
{
p = *(buf_prev - 1);
200c488: c6 00 bf fc ld [ %g2 + -4 ], %g3
{
p = NULL;
}
/* at this moment q - is a node to delete, p is q's parent */
if (q->avl.right == NULL)
200c48c: c2 04 20 0c ld [ %l0 + 0xc ], %g1
200c490: 80 a0 60 00 cmp %g1, 0
200c494: 32 80 00 08 bne,a 200c4b4 <rtems_bdbuf_remove_from_tree+0xf4>
200c498: da 00 60 08 ld [ %g1 + 8 ], %o5
{
r = q->avl.left;
200c49c: c2 04 20 08 ld [ %l0 + 8 ], %g1
if (r != NULL)
200c4a0: 80 a0 60 00 cmp %g1, 0
200c4a4: 02 80 00 21 be 200c528 <rtems_bdbuf_remove_from_tree+0x168>
200c4a8: a4 10 00 02 mov %g2, %l2
{
r->avl.bal = 0;
200c4ac: 10 80 00 1f b 200c528 <rtems_bdbuf_remove_from_tree+0x168>
200c4b0: c0 28 60 11 clrb [ %g1 + 0x11 ]
{
rtems_bdbuf_buffer **t;
r = q->avl.right;
if (r->avl.left == NULL)
200c4b4: 88 10 00 01 mov %g1, %g4
200c4b8: 80 a3 60 00 cmp %o5, 0
200c4bc: 12 80 00 0c bne 200c4ec <rtems_bdbuf_remove_from_tree+0x12c><== NEVER TAKEN
200c4c0: 9a 10 3f ff mov -1, %o5
{
r->avl.left = q->avl.left;
r->avl.bal = q->avl.bal;
200c4c4: da 0c 20 11 ldub [ %l0 + 0x11 ], %o5
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
200c4c8: c8 04 20 08 ld [ %l0 + 8 ], %g4
r->avl.bal = q->avl.bal;
200c4cc: da 28 60 11 stb %o5, [ %g1 + 0x11 ]
r = q->avl.right;
if (r->avl.left == NULL)
{
r->avl.left = q->avl.left;
200c4d0: 10 80 00 13 b 200c51c <rtems_bdbuf_remove_from_tree+0x15c>
200c4d4: c8 20 60 08 st %g4, [ %g1 + 8 ]
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
s = r->avl.left;
200c4d8: d8 00 60 08 ld [ %g1 + 8 ], %o4 <== NOT EXECUTED
r->avl.cache = -1;
200c4dc: da 28 60 10 stb %o5, [ %g1 + 0x10 ] <== NOT EXECUTED
200c4e0: 88 10 00 01 mov %g1, %g4 <== NOT EXECUTED
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
{
*buf_prev++ = r = s;
200c4e4: a4 04 a0 04 add %l2, 4, %l2 <== NOT EXECUTED
s = r->avl.left;
r->avl.cache = -1;
200c4e8: 82 10 00 0c mov %o4, %g1 <== NOT EXECUTED
else
{
t = buf_prev++;
s = r;
while (s->avl.left != NULL)
200c4ec: d8 00 60 08 ld [ %g1 + 8 ], %o4 <== NOT EXECUTED
200c4f0: 80 a3 20 00 cmp %o4, 0 <== NOT EXECUTED
200c4f4: 32 bf ff f9 bne,a 200c4d8 <rtems_bdbuf_remove_from_tree+0x118><== NOT EXECUTED
200c4f8: c2 24 80 00 st %g1, [ %l2 ] <== NOT EXECUTED
*buf_prev++ = r = s;
s = r->avl.left;
r->avl.cache = -1;
}
s->avl.left = q->avl.left;
200c4fc: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
r->avl.left = s->avl.right;
200c500: d6 00 60 0c ld [ %g1 + 0xc ], %o3 <== NOT EXECUTED
s->avl.right = q->avl.right;
s->avl.bal = q->avl.bal;
200c504: da 0c 20 11 ldub [ %l0 + 0x11 ], %o5 <== NOT EXECUTED
r->avl.cache = -1;
}
s->avl.left = q->avl.left;
r->avl.left = s->avl.right;
s->avl.right = q->avl.right;
200c508: d8 04 20 0c ld [ %l0 + 0xc ], %o4 <== NOT EXECUTED
*buf_prev++ = r = s;
s = r->avl.left;
r->avl.cache = -1;
}
s->avl.left = q->avl.left;
200c50c: d4 20 60 08 st %o2, [ %g1 + 8 ] <== NOT EXECUTED
r->avl.left = s->avl.right;
200c510: d6 21 20 08 st %o3, [ %g4 + 8 ] <== NOT EXECUTED
s->avl.right = q->avl.right;
200c514: d8 20 60 0c st %o4, [ %g1 + 0xc ] <== NOT EXECUTED
s->avl.bal = q->avl.bal;
200c518: da 28 60 11 stb %o5, [ %g1 + 0x11 ] <== NOT EXECUTED
s->avl.cache = 1;
200c51c: 88 10 20 01 mov 1, %g4
200c520: c8 28 60 10 stb %g4, [ %g1 + 0x10 ]
*t = q = s;
200c524: c2 20 80 00 st %g1, [ %g2 ]
}
}
if (p != NULL)
200c528: 80 a0 e0 00 cmp %g3, 0
200c52c: 02 80 00 0d be 200c560 <rtems_bdbuf_remove_from_tree+0x1a0>
200c530: 05 00 80 87 sethi %hi(0x2021c00), %g2
{
if (p->avl.cache == -1)
200c534: c4 48 e0 10 ldsb [ %g3 + 0x10 ], %g2
200c538: 80 a0 bf ff cmp %g2, -1
200c53c: 32 80 00 03 bne,a 200c548 <rtems_bdbuf_remove_from_tree+0x188>
200c540: c2 20 e0 0c st %g1, [ %g3 + 0xc ]
200c544: c2 20 e0 08 st %g1, [ %g3 + 8 ]
modified = true;
while (modified)
{
if (buf_prev > buf_stack)
200c548: 82 07 bf 80 add %fp, -128, %g1
200c54c: 80 a4 80 01 cmp %l2, %g1
200c550: 18 80 00 06 bgu 200c568 <rtems_bdbuf_remove_from_tree+0x1a8>
200c554: 94 10 00 01 mov %g1, %o2
200c558: 81 c7 e0 08 ret
200c55c: 81 e8 00 00 restore
p->avl.right = q;
}
}
else
{
*root = q;
200c560: 10 bf ff fa b 200c548 <rtems_bdbuf_remove_from_tree+0x188>
200c564: c2 20 a0 68 st %g1, [ %g2 + 0x68 ]
{
case -1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = 1;
200c568: 9a 10 20 01 mov 1, %o5
case +1:
p->avl.bal = 0;
break;
case 0:
p->avl.bal = -1;
200c56c: 96 10 3f ff mov -1, %o3
while (modified)
{
if (buf_prev > buf_stack)
{
p = *--buf_prev;
200c570: a4 04 bf fc add %l2, -4, %l2
200c574: c2 04 80 00 ld [ %l2 ], %g1
else
{
break;
}
if (p->avl.cache == -1)
200c578: d8 48 60 10 ldsb [ %g1 + 0x10 ], %o4
200c57c: 80 a3 3f ff cmp %o4, -1
200c580: 12 80 00 2c bne 200c630 <rtems_bdbuf_remove_from_tree+0x270>
200c584: c4 08 60 11 ldub [ %g1 + 0x11 ], %g2
{
/* rebalance left branch */
switch (p->avl.bal)
200c588: 85 28 a0 18 sll %g2, 0x18, %g2
200c58c: 85 38 a0 18 sra %g2, 0x18, %g2
200c590: 80 a0 a0 00 cmp %g2, 0
200c594: 22 80 00 35 be,a 200c668 <rtems_bdbuf_remove_from_tree+0x2a8>
200c598: da 28 60 11 stb %o5, [ %g1 + 0x11 ]
200c59c: 80 a0 a0 01 cmp %g2, 1
200c5a0: 02 80 00 06 be 200c5b8 <rtems_bdbuf_remove_from_tree+0x1f8>
200c5a4: 80 a0 bf ff cmp %g2, -1
200c5a8: 12 80 00 57 bne 200c704 <rtems_bdbuf_remove_from_tree+0x344><== NEVER TAKEN
200c5ac: 84 10 00 01 mov %g1, %g2
{
/* rebalance right branch */
switch (p->avl.bal)
{
case +1:
p->avl.bal = 0;
200c5b0: 10 80 00 55 b 200c704 <rtems_bdbuf_remove_from_tree+0x344>
200c5b4: c0 28 60 11 clrb [ %g1 + 0x11 ]
p->avl.bal = 1;
modified = false;
break;
case +1:
p1 = p->avl.right;
200c5b8: c6 00 60 0c ld [ %g1 + 0xc ], %g3
if (p1->avl.bal >= 0) /* simple RR-turn */
200c5bc: c4 48 e0 11 ldsb [ %g3 + 0x11 ], %g2
200c5c0: 80 a0 a0 00 cmp %g2, 0
200c5c4: 06 80 00 08 bl 200c5e4 <rtems_bdbuf_remove_from_tree+0x224><== NEVER TAKEN
200c5c8: c8 00 e0 08 ld [ %g3 + 8 ], %g4
{
p->avl.right = p1->avl.left;
200c5cc: c8 20 60 0c st %g4, [ %g1 + 0xc ]
p1->avl.left = p;
if (p1->avl.bal == 0)
200c5d0: 80 a0 a0 00 cmp %g2, 0
200c5d4: 12 80 00 33 bne 200c6a0 <rtems_bdbuf_remove_from_tree+0x2e0><== NEVER TAKEN
200c5d8: c2 20 e0 08 st %g1, [ %g3 + 8 ]
{
p1->avl.bal = -1;
200c5dc: 10 80 00 2f b 200c698 <rtems_bdbuf_remove_from_tree+0x2d8>
200c5e0: d8 28 e0 11 stb %o4, [ %g3 + 0x11 ]
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200c5e4: c4 01 20 0c ld [ %g4 + 0xc ], %g2 <== NOT EXECUTED
p2->avl.right = p1;
200c5e8: c6 21 20 0c st %g3, [ %g4 + 0xc ] <== NOT EXECUTED
}
else /* double RL-turn */
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
200c5ec: c4 20 e0 08 st %g2, [ %g3 + 8 ] <== NOT EXECUTED
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200c5f0: d2 01 20 08 ld [ %g4 + 8 ], %o1 <== NOT EXECUTED
p2->avl.left = p;
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200c5f4: c4 49 20 11 ldsb [ %g4 + 0x11 ], %g2 <== NOT EXECUTED
{
p2 = p1->avl.left;
p1->avl.left = p2->avl.right;
p2->avl.right = p1;
p->avl.right = p2->avl.left;
200c5f8: d2 20 60 0c st %o1, [ %g1 + 0xc ] <== NOT EXECUTED
p2->avl.left = p;
200c5fc: c2 21 20 08 st %g1, [ %g4 + 8 ] <== NOT EXECUTED
if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
200c600: 80 a0 a0 01 cmp %g2, 1 <== NOT EXECUTED
200c604: 12 80 00 04 bne 200c614 <rtems_bdbuf_remove_from_tree+0x254><== NOT EXECUTED
200c608: 84 10 00 04 mov %g4, %g2 <== NOT EXECUTED
200c60c: 10 80 00 03 b 200c618 <rtems_bdbuf_remove_from_tree+0x258><== NOT EXECUTED
200c610: d8 28 60 11 stb %o4, [ %g1 + 0x11 ] <== NOT EXECUTED
200c614: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
200c618: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200c61c: 80 a0 7f ff cmp %g1, -1 <== NOT EXECUTED
200c620: 32 80 00 36 bne,a 200c6f8 <rtems_bdbuf_remove_from_tree+0x338><== NOT EXECUTED
200c624: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200c628: 10 80 00 34 b 200c6f8 <rtems_bdbuf_remove_from_tree+0x338><== NOT EXECUTED
200c62c: da 28 e0 11 stb %o5, [ %g3 + 0x11 ] <== NOT EXECUTED
}
}
else
{
/* rebalance right branch */
switch (p->avl.bal)
200c630: 85 28 a0 18 sll %g2, 0x18, %g2
200c634: 85 38 a0 18 sra %g2, 0x18, %g2
200c638: 80 a0 a0 00 cmp %g2, 0
200c63c: 22 80 00 0b be,a 200c668 <rtems_bdbuf_remove_from_tree+0x2a8><== NEVER TAKEN
200c640: d6 28 60 11 stb %o3, [ %g1 + 0x11 ] <== NOT EXECUTED
200c644: 80 a0 a0 01 cmp %g2, 1
200c648: 02 80 00 06 be 200c660 <rtems_bdbuf_remove_from_tree+0x2a0><== ALWAYS TAKEN
200c64c: 80 a0 bf ff cmp %g2, -1
200c650: 12 80 00 2d bne 200c704 <rtems_bdbuf_remove_from_tree+0x344><== NOT EXECUTED
200c654: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
p->avl.bal = -1;
modified = false;
break;
case -1:
p1 = p->avl.left;
200c658: 10 80 00 07 b 200c674 <rtems_bdbuf_remove_from_tree+0x2b4><== NOT EXECUTED
200c65c: c6 00 60 08 ld [ %g1 + 8 ], %g3 <== NOT EXECUTED
{
/* rebalance right branch */
switch (p->avl.bal)
{
case +1:
p->avl.bal = 0;
200c660: 10 80 00 28 b 200c700 <rtems_bdbuf_remove_from_tree+0x340>
200c664: c0 28 60 11 clrb [ %g1 + 0x11 ]
break;
case 0:
p->avl.bal = -1;
200c668: 84 10 00 01 mov %g1, %g2
200c66c: 10 80 00 27 b 200c708 <rtems_bdbuf_remove_from_tree+0x348>
200c670: 82 10 20 00 clr %g1
break;
case -1:
p1 = p->avl.left;
if (p1->avl.bal <= 0) /* simple LL-turn */
200c674: c4 48 e0 11 ldsb [ %g3 + 0x11 ], %g2 <== NOT EXECUTED
200c678: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200c67c: 14 80 00 0d bg 200c6b0 <rtems_bdbuf_remove_from_tree+0x2f0><== NOT EXECUTED
200c680: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
{
p->avl.left = p1->avl.right;
200c684: c8 20 60 08 st %g4, [ %g1 + 8 ] <== NOT EXECUTED
p1->avl.right = p;
if (p1->avl.bal == 0)
200c688: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
200c68c: 12 80 00 05 bne 200c6a0 <rtems_bdbuf_remove_from_tree+0x2e0><== NOT EXECUTED
200c690: c2 20 e0 0c st %g1, [ %g3 + 0xc ] <== NOT EXECUTED
{
p1->avl.bal = 1;
200c694: da 28 e0 11 stb %o5, [ %g3 + 0x11 ] <== NOT EXECUTED
200c698: 10 bf ff f5 b 200c66c <rtems_bdbuf_remove_from_tree+0x2ac>
200c69c: 84 10 00 03 mov %g3, %g2
modified = false;
}
else
{
p->avl.bal = 0;
200c6a0: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
p1->avl.bal = 0;
200c6a4: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200c6a8: 10 80 00 17 b 200c704 <rtems_bdbuf_remove_from_tree+0x344><== NOT EXECUTED
200c6ac: 84 10 00 03 mov %g3, %g2 <== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200c6b0: c4 01 20 08 ld [ %g4 + 8 ], %g2 <== NOT EXECUTED
p2->avl.left = p1;
200c6b4: c6 21 20 08 st %g3, [ %g4 + 8 ] <== NOT EXECUTED
}
else /* double LR-turn */
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
200c6b8: c4 20 e0 0c st %g2, [ %g3 + 0xc ] <== NOT EXECUTED
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200c6bc: d8 01 20 0c ld [ %g4 + 0xc ], %o4 <== NOT EXECUTED
p2->avl.right = p;
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
200c6c0: c4 49 20 11 ldsb [ %g4 + 0x11 ], %g2 <== NOT EXECUTED
{
p2 = p1->avl.right;
p1->avl.right = p2->avl.left;
p2->avl.left = p1;
p->avl.left = p2->avl.right;
200c6c4: d8 20 60 08 st %o4, [ %g1 + 8 ] <== NOT EXECUTED
p2->avl.right = p;
200c6c8: c2 21 20 0c st %g1, [ %g4 + 0xc ] <== NOT EXECUTED
if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
200c6cc: 80 a0 bf ff cmp %g2, -1 <== NOT EXECUTED
200c6d0: 12 80 00 04 bne 200c6e0 <rtems_bdbuf_remove_from_tree+0x320><== NOT EXECUTED
200c6d4: 84 10 00 04 mov %g4, %g2 <== NOT EXECUTED
200c6d8: 10 80 00 03 b 200c6e4 <rtems_bdbuf_remove_from_tree+0x324><== NOT EXECUTED
200c6dc: da 28 60 11 stb %o5, [ %g1 + 0x11 ] <== NOT EXECUTED
200c6e0: c0 28 60 11 clrb [ %g1 + 0x11 ] <== NOT EXECUTED
if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
200c6e4: c2 49 20 11 ldsb [ %g4 + 0x11 ], %g1 <== NOT EXECUTED
200c6e8: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
200c6ec: 32 80 00 03 bne,a 200c6f8 <rtems_bdbuf_remove_from_tree+0x338><== NOT EXECUTED
200c6f0: c0 28 e0 11 clrb [ %g3 + 0x11 ] <== NOT EXECUTED
200c6f4: d6 28 e0 11 stb %o3, [ %g3 + 0x11 ] <== NOT EXECUTED
p = p2;
p2->avl.bal = 0;
200c6f8: 10 80 00 03 b 200c704 <rtems_bdbuf_remove_from_tree+0x344><== NOT EXECUTED
200c6fc: c0 29 20 11 clrb [ %g4 + 0x11 ] <== NOT EXECUTED
200c700: 84 10 00 01 mov %g1, %g2
200c704: 82 10 20 01 mov 1, %g1
default:
break;
}
}
if (buf_prev > buf_stack)
200c708: 80 a4 80 0a cmp %l2, %o2
200c70c: 28 80 00 09 bleu,a 200c730 <rtems_bdbuf_remove_from_tree+0x370>
200c710: 03 00 80 87 sethi %hi(0x2021c00), %g1
{
q = *(buf_prev - 1);
200c714: c6 04 bf fc ld [ %l2 + -4 ], %g3
if (q->avl.cache == -1)
200c718: c8 48 e0 10 ldsb [ %g3 + 0x10 ], %g4
200c71c: 80 a1 3f ff cmp %g4, -1
200c720: 32 80 00 07 bne,a 200c73c <rtems_bdbuf_remove_from_tree+0x37c><== NEVER TAKEN
200c724: c4 20 e0 0c st %g2, [ %g3 + 0xc ] <== NOT EXECUTED
{
q->avl.left = p;
200c728: 10 80 00 05 b 200c73c <rtems_bdbuf_remove_from_tree+0x37c>
200c72c: c4 20 e0 08 st %g2, [ %g3 + 8 ]
q->avl.right = p;
}
}
else
{
*root = p;
200c730: c4 20 60 68 st %g2, [ %g1 + 0x68 ]
200c734: 81 c7 e0 08 ret
200c738: 81 e8 00 00 restore
*root = q;
}
modified = true;
while (modified)
200c73c: 80 88 60 ff btst 0xff, %g1
200c740: 12 bf ff 8d bne 200c574 <rtems_bdbuf_remove_from_tree+0x1b4><== ALWAYS TAKEN
200c744: a4 04 bf fc add %l2, -4, %l2
200c748: 81 c7 e0 08 ret <== NOT EXECUTED
200c74c: 81 e8 00 00 restore <== NOT EXECUTED
static void
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)
{
if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0)
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM);
200c750: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200c754: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c758: 82 10 60 09 or %g1, 9, %g1 ! 42000009 <RAM_END+0x3fc00009><== NOT EXECUTED
200c75c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c760: 7f ff ed 6b call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200c764: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
0200c76c <rtems_bdbuf_remove_from_tree_and_lru_list>:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM);
}
static void
rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd)
{
200c76c: 9d e3 bf a0 save %sp, -96, %sp
switch (bd->state)
200c770: c2 06 20 28 ld [ %i0 + 0x28 ], %g1
200c774: 80 a0 60 00 cmp %g1, 0
200c778: 02 80 00 0d be 200c7ac <rtems_bdbuf_remove_from_tree_and_lru_list+0x40>
200c77c: 80 a0 60 02 cmp %g1, 2
200c780: 12 80 00 05 bne 200c794 <rtems_bdbuf_remove_from_tree_and_lru_list+0x28><== NEVER TAKEN
200c784: 01 00 00 00 nop
{
case RTEMS_BDBUF_STATE_FREE:
break;
case RTEMS_BDBUF_STATE_CACHED:
rtems_bdbuf_remove_from_tree (bd);
200c788: 7f ff ff 0e call 200c3c0 <rtems_bdbuf_remove_from_tree>
200c78c: 90 10 00 18 mov %i0, %o0
break;
200c790: 30 80 00 07 b,a 200c7ac <rtems_bdbuf_remove_from_tree_and_lru_list+0x40>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
200c794: d0 06 20 28 ld [ %i0 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200c798: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200c79c: 82 10 60 08 or %g1, 8, %g1 ! 42000008 <RAM_END+0x3fc00008><== NOT EXECUTED
200c7a0: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200c7a4: 7f ff ed 5a call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200c7a8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200c7ac: 7f ff ee bb call 2008298 <_Chain_Extract>
200c7b0: 81 e8 00 00 restore
0200be60 <rtems_bdbuf_restore_preemption>:
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
200be60: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode);
200be64: 13 00 00 3f sethi %hi(0xfc00), %o1
return prev_mode;
}
static void
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)
{
200be68: f0 27 a0 44 st %i0, [ %fp + 0x44 ]
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode);
200be6c: 90 10 00 18 mov %i0, %o0
200be70: 92 12 63 ff or %o1, 0x3ff, %o1
200be74: 40 00 14 ac call 2011124 <rtems_task_mode>
200be78: 94 07 a0 44 add %fp, 0x44, %o2
if (sc != RTEMS_SUCCESSFUL)
200be7c: 80 a2 20 00 cmp %o0, 0
200be80: 02 80 00 04 be 200be90 <rtems_bdbuf_restore_preemption+0x30><== ALWAYS TAKEN
200be84: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
200be88: 7f ff ef a1 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200be8c: 90 12 20 11 or %o0, 0x11, %o0 ! 42000011 <RAM_END+0x3fc00011><== NOT EXECUTED
200be90: 81 c7 e0 08 ret
200be94: 81 e8 00 00 restore
0200b8c0 <rtems_bdbuf_swapout_modified_processing>:
rtems_chain_control* chain,
rtems_chain_control* transfer,
bool sync_active,
bool update_timers,
uint32_t timer_delta)
{
200b8c0: 9d e3 bf a0 save %sp, -96, %sp
if (!rtems_chain_is_empty (chain))
200b8c4: d2 06 40 00 ld [ %i1 ], %o1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200b8c8: b2 06 60 04 add %i1, 4, %i1
200b8cc: 80 a2 40 19 cmp %o1, %i1
200b8d0: 02 80 00 6a be 200ba78 <rtems_bdbuf_swapout_modified_processing+0x1b8>
200b8d4: a0 10 00 09 mov %o1, %l0
node = node->next;
/*
* A sync active with no valid dev means sync all.
*/
if (sync_active && (*dev == BDBUF_INVALID_DEV))
200b8d8: 80 8e e0 ff btst 0xff, %i3
200b8dc: 02 80 00 0a be 200b904 <rtems_bdbuf_swapout_modified_processing+0x44>
200b8e0: aa 10 20 00 clr %l5
* @param update_timers If true update the timers.
* @param timer_delta It update_timers is true update the timers by this
* amount.
*/
static void
rtems_bdbuf_swapout_modified_processing (dev_t* dev,
200b8e4: c2 06 00 00 ld [ %i0 ], %g1
200b8e8: 80 a0 7f ff cmp %g1, -1
200b8ec: 12 80 00 07 bne 200b908 <rtems_bdbuf_swapout_modified_processing+0x48>
200b8f0: 29 00 80 87 sethi %hi(0x2021c00), %l4
200b8f4: c2 06 20 04 ld [ %i0 + 4 ], %g1
200b8f8: 80 a0 7f ff cmp %g1, -1
200b8fc: 22 80 00 03 be,a 200b908 <rtems_bdbuf_swapout_modified_processing+0x48><== ALWAYS TAKEN
200b900: aa 10 20 01 mov 1, %l5
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200b904: 29 00 80 87 sethi %hi(0x2021c00), %l4
* or someone waits for a buffer written force all the timers to 0.
*
* @note Lots of sync requests will skew this timer. It should be based
* on TOD to be accurate. Does it matter ?
*/
if (sync_all || (sync_active && (*dev == bd->dev))
200b908: aa 0d 60 ff and %l5, 0xff, %l5
200b90c: b6 0e e0 ff and %i3, 0xff, %i3
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
if (bd->hold_timer)
{
if (update_timers)
200b910: b8 0f 20 ff and %i4, 0xff, %i4
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200b914: a8 15 20 28 or %l4, 0x28, %l4
200b918: a6 06 a0 04 add %i2, 4, %l3
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200b91c: 10 80 00 54 b 200ba6c <rtems_bdbuf_swapout_modified_processing+0x1ac>
200b920: a4 10 20 09 mov 9, %l2
* or someone waits for a buffer written force all the timers to 0.
*
* @note Lots of sync requests will skew this timer. It should be based
* on TOD to be accurate. Does it matter ?
*/
if (sync_all || (sync_active && (*dev == bd->dev))
200b924: 12 80 00 12 bne 200b96c <rtems_bdbuf_swapout_modified_processing+0xac>
200b928: 80 a6 e0 00 cmp %i3, 0
200b92c: 02 80 00 0c be 200b95c <rtems_bdbuf_swapout_modified_processing+0x9c>
200b930: 01 00 00 00 nop
200b934: c4 06 00 00 ld [ %i0 ], %g2
200b938: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
200b93c: 80 a0 80 01 cmp %g2, %g1
200b940: 12 80 00 07 bne 200b95c <rtems_bdbuf_swapout_modified_processing+0x9c>
200b944: 01 00 00 00 nop
200b948: c4 06 20 04 ld [ %i0 + 4 ], %g2
200b94c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
200b950: 80 a0 80 01 cmp %g2, %g1
200b954: 02 80 00 06 be 200b96c <rtems_bdbuf_swapout_modified_processing+0xac><== ALWAYS TAKEN
200b958: 01 00 00 00 nop
}
static bool
rtems_bdbuf_has_buffer_waiters (void)
{
return bdbuf_cache.buffer_waiters.count;
200b95c: c2 05 20 78 ld [ %l4 + 0x78 ], %g1
* or someone waits for a buffer written force all the timers to 0.
*
* @note Lots of sync requests will skew this timer. It should be based
* on TOD to be accurate. Does it matter ?
*/
if (sync_all || (sync_active && (*dev == bd->dev))
200b960: 80 a0 60 00 cmp %g1, 0
200b964: 02 80 00 03 be 200b970 <rtems_bdbuf_swapout_modified_processing+0xb0>
200b968: 01 00 00 00 nop
|| rtems_bdbuf_has_buffer_waiters ())
bd->hold_timer = 0;
200b96c: c0 24 20 34 clr [ %l0 + 0x34 ]
if (bd->hold_timer)
200b970: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b974: 80 a0 60 00 cmp %g1, 0
200b978: 22 80 00 13 be,a 200b9c4 <rtems_bdbuf_swapout_modified_processing+0x104>
200b97c: c2 06 00 00 ld [ %i0 ], %g1
{
if (update_timers)
200b980: 80 a7 20 00 cmp %i4, 0
200b984: 02 80 00 0b be 200b9b0 <rtems_bdbuf_swapout_modified_processing+0xf0>
200b988: 01 00 00 00 nop
{
if (bd->hold_timer > timer_delta)
200b98c: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b990: 80 a0 40 1d cmp %g1, %i5
200b994: 08 80 00 06 bleu 200b9ac <rtems_bdbuf_swapout_modified_processing+0xec>
200b998: 01 00 00 00 nop
bd->hold_timer -= timer_delta;
200b99c: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b9a0: 82 20 40 1d sub %g1, %i5, %g1
200b9a4: c2 24 20 34 st %g1, [ %l0 + 0x34 ]
200b9a8: 30 80 00 02 b,a 200b9b0 <rtems_bdbuf_swapout_modified_processing+0xf0>
else
bd->hold_timer = 0;
200b9ac: c0 24 20 34 clr [ %l0 + 0x34 ]
}
if (bd->hold_timer)
200b9b0: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
200b9b4: 80 a0 60 00 cmp %g1, 0
200b9b8: 32 80 00 2d bne,a 200ba6c <rtems_bdbuf_swapout_modified_processing+0x1ac>
200b9bc: e0 04 00 00 ld [ %l0 ], %l0
/*
* This assumes we can set dev_t to BDBUF_INVALID_DEV which is just an
* assumption. Cannot use the transfer list being empty the sync dev
* calls sets the dev to use.
*/
if (*dev == BDBUF_INVALID_DEV)
200b9c0: c2 06 00 00 ld [ %i0 ], %g1
200b9c4: 80 a0 7f ff cmp %g1, -1
200b9c8: 32 80 00 09 bne,a 200b9ec <rtems_bdbuf_swapout_modified_processing+0x12c>
200b9cc: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
200b9d0: c2 06 20 04 ld [ %i0 + 4 ], %g1
200b9d4: 80 a0 7f ff cmp %g1, -1
200b9d8: 32 80 00 05 bne,a 200b9ec <rtems_bdbuf_swapout_modified_processing+0x12c><== NEVER TAKEN
200b9dc: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
*dev = bd->dev;
200b9e0: c4 1c 20 18 ldd [ %l0 + 0x18 ], %g2
200b9e4: c4 3e 00 00 std %g2, [ %i0 ]
if (bd->dev == *dev)
200b9e8: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
200b9ec: c2 06 00 00 ld [ %i0 ], %g1
200b9f0: 80 a0 80 01 cmp %g2, %g1
200b9f4: 32 80 00 1e bne,a 200ba6c <rtems_bdbuf_swapout_modified_processing+0x1ac><== NEVER TAKEN
200b9f8: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
200b9fc: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
200ba00: c2 06 20 04 ld [ %i0 + 4 ], %g1
200ba04: 80 a0 80 01 cmp %g2, %g1
200ba08: 32 80 00 19 bne,a 200ba6c <rtems_bdbuf_swapout_modified_processing+0x1ac><== NEVER TAKEN
200ba0c: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200ba10: 90 10 00 10 mov %l0, %o0
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200ba14: e4 24 20 28 st %l2, [ %l0 + 0x28 ]
200ba18: 7f ff f2 20 call 2008298 <_Chain_Extract>
200ba1c: e2 04 00 00 ld [ %l0 ], %l1
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
200ba20: 10 80 00 0a b 200ba48 <rtems_bdbuf_swapout_modified_processing+0x188>
200ba24: d0 04 e0 04 ld [ %l3 + 4 ], %o0
{
rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;
if (bd->block > tbd->block)
200ba28: c4 04 20 20 ld [ %l0 + 0x20 ], %g2
200ba2c: 80 a0 80 01 cmp %g2, %g1
200ba30: 28 80 00 06 bleu,a 200ba48 <rtems_bdbuf_swapout_modified_processing+0x188>
200ba34: d0 02 20 04 ld [ %o0 + 4 ], %o0
RTEMS_INLINE_ROUTINE void rtems_chain_insert(
rtems_chain_node *after_node,
rtems_chain_node *the_node
)
{
_Chain_Insert( after_node, the_node );
200ba38: 40 00 16 dd call 20115ac <_Chain_Insert>
200ba3c: 92 10 00 10 mov %l0, %o1
rtems_chain_extract (node);
tnode = tnode->previous;
while (node && !rtems_chain_is_head (transfer, tnode))
200ba40: 10 80 00 0b b 200ba6c <rtems_bdbuf_swapout_modified_processing+0x1ac>
200ba44: a0 10 00 11 mov %l1, %l0
200ba48: 80 a4 20 00 cmp %l0, 0
200ba4c: 12 80 00 04 bne 200ba5c <rtems_bdbuf_swapout_modified_processing+0x19c><== ALWAYS TAKEN
200ba50: 80 a2 00 1a cmp %o0, %i2
200ba54: 10 80 00 06 b 200ba6c <rtems_bdbuf_swapout_modified_processing+0x1ac><== NOT EXECUTED
200ba58: a0 10 00 11 mov %l1, %l0 <== NOT EXECUTED
200ba5c: 32 bf ff f3 bne,a 200ba28 <rtems_bdbuf_swapout_modified_processing+0x168>
200ba60: c2 02 20 20 ld [ %o0 + 0x20 ], %g1
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200ba64: 10 80 00 07 b 200ba80 <rtems_bdbuf_swapout_modified_processing+0x1c0>
200ba68: 92 10 00 10 mov %l0, %o1
if (sync_active && (*dev == BDBUF_INVALID_DEV))
sync_all = true;
else
sync_all = false;
while (!rtems_chain_is_tail (chain, node))
200ba6c: 80 a4 00 19 cmp %l0, %i1
200ba70: 12 bf ff ad bne 200b924 <rtems_bdbuf_swapout_modified_processing+0x64>
200ba74: 80 a5 60 00 cmp %l5, 0
200ba78: 81 c7 e0 08 ret
200ba7c: 81 e8 00 00 restore
200ba80: 90 10 00 1a mov %i2, %o0
200ba84: 40 00 16 ca call 20115ac <_Chain_Insert>
200ba88: a0 10 00 11 mov %l1, %l0
200ba8c: 10 bf ff f9 b 200ba70 <rtems_bdbuf_swapout_modified_processing+0x1b0>
200ba90: 80 a4 00 19 cmp %l0, %i1
0200ce90 <rtems_bdbuf_swapout_task>:
* not this.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_task (rtems_task_argument arg)
{
200ce90: 9d e3 bf 70 save %sp, -144, %sp
rtems_bdbuf_swapout_transfer transfer;
uint32_t period_in_ticks;
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
200ce94: 21 00 80 7f sethi %hi(0x201fc00), %l0
200ce98: a0 14 20 1c or %l0, 0x1c, %l0 ! 201fc1c <rtems_bdbuf_configuration>
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200ce9c: 7f ff fd 33 call 200c368 <rtems_bdbuf_swapout_writereq_alloc>
200cea0: e4 04 20 0c ld [ %l0 + 0xc ], %l2
transfer.syncing = false;
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
200cea4: 03 00 80 84 sethi %hi(0x2021000), %g1
200cea8: d2 00 63 fc ld [ %g1 + 0x3fc ], %o1 ! 20213fc <Configuration+0xc>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200ceac: 82 07 bf d0 add %fp, -48, %g1
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
200ceb0: c2 27 bf d8 st %g1, [ %fp + -40 ]
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200ceb4: 82 07 bf d4 add %fp, -44, %g1
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
200ceb8: 05 3f ff ff sethi %hi(0xfffffc00), %g2
200cebc: c2 27 bf d0 st %g1, [ %fp + -48 ]
200cec0: 84 10 a3 ff or %g2, 0x3ff, %g2
transfer.syncing = false;
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
200cec4: 83 2c a0 02 sll %l2, 2, %g1
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
200cec8: 86 10 00 02 mov %g2, %g3
rtems_bdbuf_swapout_transfer transfer;
uint32_t period_in_ticks;
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
uint32_t timer_delta;
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200cecc: d0 27 bf ec st %o0, [ %fp + -20 ]
rtems_chain_initialize_empty (&transfer.bds);
transfer.dev = BDBUF_INVALID_DEV;
200ced0: c4 3f bf e0 std %g2, [ %fp + -32 ]
the_chain->permanent_null = NULL;
200ced4: c0 27 bf d4 clr [ %fp + -44 ]
transfer.syncing = false;
200ced8: c0 2f bf e8 clrb [ %fp + -24 ]
/*
* Localise the period.
*/
period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
200cedc: 91 2c a0 07 sll %l2, 7, %o0
200cee0: 90 22 00 01 sub %o0, %g1, %o0
200cee4: 90 02 00 12 add %o0, %l2, %o0
200cee8: 40 00 43 6f call 201dca4 <.udiv>
200ceec: 91 2a 20 03 sll %o0, 3, %o0
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200cef0: 3b 00 80 87 sethi %hi(0x2021c00), %i5
200cef4: b6 10 00 08 mov %o0, %i3
rtems_bdbuf_swapout_workers_open (void)
{
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
200cef8: 7f ff fa 5c call 200b868 <rtems_bdbuf_lock_cache>
200cefc: 2f 10 91 1b sethi %hi(0x42446c00), %l7
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&worker->id);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
sc = rtems_task_start (worker->id,
200cf00: 2d 00 80 34 sethi %hi(0x200d000), %l6
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200cf04: 31 3f ff ff sethi %hi(0xfffffc00), %i0
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
(bdbuf_config.swapout_priority ?
200cf08: a2 10 20 00 clr %l1
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200cf0c: b0 16 23 ff or %i0, 0x3ff, %i0
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
(bdbuf_config.swapout_priority ?
200cf10: e6 04 20 08 ld [ %l0 + 8 ], %l3
200cf14: ba 17 60 30 or %i5, 0x30, %i5
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
200cf18: ae 15 e3 00 or %l7, 0x300, %l7
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&worker->id);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
sc = rtems_task_start (worker->id,
200cf1c: ac 15 a2 10 or %l6, 0x210, %l6
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
for (w = 0; w < bdbuf_config.swapout_workers; w++)
200cf20: ea 04 20 14 ld [ %l0 + 0x14 ], %l5
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
if (!worker)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
200cf24: a8 10 20 01 mov 1, %l4
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200cf28: 10 80 00 31 b 200cfec <rtems_bdbuf_swapout_task+0x15c>
200cf2c: b2 10 00 18 mov %i0, %i1
for (w = 0; w < bdbuf_config.swapout_workers; w++)
{
rtems_bdbuf_swapout_worker* worker;
worker = malloc (sizeof (rtems_bdbuf_swapout_worker));
200cf30: 7f ff db f2 call 2003ef8 <malloc> <== NOT EXECUTED
200cf34: 90 10 20 38 mov 0x38, %o0 <== NOT EXECUTED
if (!worker)
200cf38: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
200cf3c: 12 80 00 05 bne 200cf50 <rtems_bdbuf_swapout_task+0xc0> <== NOT EXECUTED
200cf40: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
200cf44: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200cf48: 10 80 00 1e b 200cfc0 <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200cf4c: 90 12 20 15 or %o0, 0x15, %o0 ! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
200cf50: 7f ff ec c6 call 2008268 <_Chain_Append> <== NOT EXECUTED
200cf54: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
worker->enabled = true;
200cf58: e8 2c 20 0c stb %l4, [ %l0 + 0xc ] <== NOT EXECUTED
worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
200cf5c: 7f ff fd 03 call 200c368 <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
200cf60: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200cf64: 82 04 20 14 add %l0, 0x14, %g1 <== NOT EXECUTED
200cf68: d0 24 20 2c st %o0, [ %l0 + 0x2c ] <== NOT EXECUTED
200cf6c: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
200cf70: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
200cf74: 82 04 20 10 add %l0, 0x10, %g1 <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200cf78: f0 3c 20 20 std %i0, [ %l0 + 0x20 ] <== NOT EXECUTED
200cf7c: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w),
200cf80: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
200cf84: 12 80 00 03 bne 200cf90 <rtems_bdbuf_swapout_task+0x100> <== NOT EXECUTED
200cf88: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
200cf8c: 92 10 20 0f mov 0xf, %o1 <== NOT EXECUTED
200cf90: 90 04 60 61 add %l1, 0x61, %o0 <== NOT EXECUTED
200cf94: 15 00 00 08 sethi %hi(0x2000), %o2 <== NOT EXECUTED
200cf98: 90 12 00 17 or %o0, %l7, %o0 <== NOT EXECUTED
200cf9c: 96 10 24 00 mov 0x400, %o3 <== NOT EXECUTED
200cfa0: 98 10 20 00 clr %o4 <== NOT EXECUTED
200cfa4: 7f ff ea 4a call 20078cc <rtems_task_create> <== NOT EXECUTED
200cfa8: 9a 04 20 08 add %l0, 8, %o5 <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT),
SWAPOUT_TASK_STACK_SIZE,
RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,
&worker->id);
if (sc != RTEMS_SUCCESSFUL)
200cfac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200cfb0: 22 80 00 06 be,a 200cfc8 <rtems_bdbuf_swapout_task+0x138><== NOT EXECUTED
200cfb4: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
200cfb8: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200cfbc: 90 12 20 16 or %o0, 0x16, %o0 ! 42000016 <RAM_END+0x3fc00016><== NOT EXECUTED
200cfc0: 7f ff eb 53 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200cfc4: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_task_start (worker->id,
200cfc8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
200cfcc: 7f ff ea ce call 2007b04 <rtems_task_start> <== NOT EXECUTED
200cfd0: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
rtems_bdbuf_swapout_worker_task,
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
200cfd4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200cfd8: 22 80 00 05 be,a 200cfec <rtems_bdbuf_swapout_task+0x15c><== NOT EXECUTED
200cfdc: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
200cfe0: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200cfe4: 10 bf ff f7 b 200cfc0 <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200cfe8: 90 12 20 17 or %o0, 0x17, %o0 ! 42000017 <RAM_END+0x3fc00017><== NOT EXECUTED
rtems_status_code sc;
size_t w;
rtems_bdbuf_lock_cache ();
for (w = 0; w < bdbuf_config.swapout_workers; w++)
200cfec: 80 a4 40 15 cmp %l1, %l5
200cff0: 0a bf ff d0 bcs 200cf30 <rtems_bdbuf_swapout_task+0xa0> <== NEVER TAKEN
200cff4: 01 00 00 00 nop
(rtems_task_argument) worker);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
}
rtems_bdbuf_unlock_cache ();
200cff8: 7f ff fa a7 call 200ba94 <rtems_bdbuf_unlock_cache>
200cffc: 23 00 80 87 sethi %hi(0x2021c00), %l1
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200d000: a2 14 60 28 or %l1, 0x28, %l1 ! 2021c28 <bdbuf_cache>
* here. We do not know the worker is the last in a sequence of sync writes
* until after we have it running so we do not know to tell it to release the
* lock. The simplest solution is to get the main swap out task perform all
* sync operations.
*/
if (bdbuf_cache.sync_active)
200d004: ac 07 bf d0 add %fp, -48, %l6
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
200d008: b8 04 60 08 add %l1, 8, %i4
/*
* If we have any buffers in the sync queue move them to the modified
* list. The first sync buffer will select the device we use.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200d00c: b4 04 60 5c add %l1, 0x5c, %i2
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200d010: b2 04 60 50 add %l1, 0x50, %i1
* here. We do not know the worker is the last in a sequence of sync writes
* until after we have it running so we do not know to tell it to release the
* lock. The simplest solution is to get the main swap out task perform all
* sync operations.
*/
if (bdbuf_cache.sync_active)
200d014: a8 10 00 11 mov %l1, %l4
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200d018: 10 80 00 67 b 200d1b4 <rtems_bdbuf_swapout_task+0x324>
200d01c: b0 07 bf fc add %fp, -4, %i0
rtems_bdbuf_swapout_transfer* transfer)
{
rtems_bdbuf_swapout_worker* worker;
bool transfered_buffers = false;
rtems_bdbuf_lock_cache ();
200d020: 7f ff fa 12 call 200b868 <rtems_bdbuf_lock_cache>
200d024: 01 00 00 00 nop
* here. We do not know the worker is the last in a sequence of sync writes
* until after we have it running so we do not know to tell it to release the
* lock. The simplest solution is to get the main swap out task perform all
* sync operations.
*/
if (bdbuf_cache.sync_active)
200d028: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
200d02c: a6 10 20 00 clr %l3
200d030: 80 a0 60 00 cmp %g1, 0
200d034: 12 80 00 08 bne 200d054 <rtems_bdbuf_swapout_task+0x1c4>
200d038: a0 10 00 16 mov %l6, %l0
200d03c: 7f ff ec a1 call 20082c0 <_Chain_Get>
200d040: 90 10 00 1c mov %i4, %o0
worker = NULL;
else
{
worker = (rtems_bdbuf_swapout_worker*)
rtems_chain_get (&bdbuf_cache.swapout_workers);
if (worker)
200d044: a6 92 20 00 orcc %o0, 0, %l3
200d048: 12 80 00 03 bne 200d054 <rtems_bdbuf_swapout_task+0x1c4> <== NEVER TAKEN
200d04c: a0 04 e0 10 add %l3, 0x10, %l0
200d050: a0 10 00 16 mov %l6, %l0
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
transfer->syncing = bdbuf_cache.sync_active;
200d054: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200d058: 05 3f ff ff sethi %hi(0xfffffc00), %g2
transfer->syncing = bdbuf_cache.sync_active;
200d05c: c2 2c 20 18 stb %g1, [ %l0 + 0x18 ]
/*
* When the sync is for a device limit the sync to that device. If the sync
* is for a buffer handle process the devices in the order on the sync
* list. This means the dev is BDBUF_INVALID_DEV.
*/
if (bdbuf_cache.sync_active)
200d060: c2 0c 60 30 ldub [ %l1 + 0x30 ], %g1
if (worker)
transfer = &worker->transfer;
}
rtems_chain_initialize_empty (&transfer->bds);
transfer->dev = BDBUF_INVALID_DEV;
200d064: 84 10 a3 ff or %g2, 0x3ff, %g2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d068: ae 04 20 04 add %l0, 4, %l7
200d06c: 86 10 00 02 mov %g2, %g3
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
200d070: c0 24 20 04 clr [ %l0 + 4 ]
the_chain->last = _Chain_Head(the_chain);
200d074: e0 24 20 08 st %l0, [ %l0 + 8 ]
200d078: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
/*
* When the sync is for a device limit the sync to that device. If the sync
* is for a buffer handle process the devices in the order on the sync
* list. This means the dev is BDBUF_INVALID_DEV.
*/
if (bdbuf_cache.sync_active)
200d07c: 80 a0 60 00 cmp %g1, 0
200d080: 02 80 00 04 be 200d090 <rtems_bdbuf_swapout_task+0x200>
200d084: ee 24 00 00 st %l7, [ %l0 ]
transfer->dev = bdbuf_cache.sync_device;
200d088: c4 1c 60 38 ldd [ %l1 + 0x38 ], %g2
200d08c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
/*
* If we have any buffers in the sync queue move them to the modified
* list. The first sync buffer will select the device we use.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200d090: ba 04 20 10 add %l0, 0x10, %i5
200d094: 96 10 20 01 mov 1, %o3
200d098: 98 10 20 00 clr %o4
200d09c: 9a 10 00 12 mov %l2, %o5
200d0a0: 90 10 00 1d mov %i5, %o0
200d0a4: 92 10 00 1a mov %i2, %o1
200d0a8: 7f ff fa 06 call 200b8c0 <rtems_bdbuf_swapout_modified_processing>
200d0ac: 94 10 00 10 mov %l0, %o2
timer_delta);
/*
* Process the cache's modified list.
*/
rtems_bdbuf_swapout_modified_processing (&transfer->dev,
200d0b0: d6 0c 60 30 ldub [ %l1 + 0x30 ], %o3
200d0b4: 90 10 00 1d mov %i5, %o0
200d0b8: 92 10 00 19 mov %i1, %o1
200d0bc: 94 10 00 10 mov %l0, %o2
200d0c0: 98 0d 60 01 and %l5, 1, %o4
200d0c4: 7f ff f9 ff call 200b8c0 <rtems_bdbuf_swapout_modified_processing>
200d0c8: 9a 10 00 12 mov %l2, %o5
/*
* We have all the buffers that have been modified for this device so the
* cache can be unlocked because the state of each buffer has been set to
* TRANSFER.
*/
rtems_bdbuf_unlock_cache ();
200d0cc: 7f ff fa 72 call 200ba94 <rtems_bdbuf_unlock_cache>
200d0d0: 01 00 00 00 nop
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
200d0d4: c4 04 00 00 ld [ %l0 ], %g2
200d0d8: 80 a0 80 17 cmp %g2, %l7
200d0dc: 02 80 00 11 be 200d120 <rtems_bdbuf_swapout_task+0x290>
200d0e0: 82 10 20 00 clr %g1
{
if (worker)
200d0e4: 80 a4 e0 00 cmp %l3, 0
200d0e8: 02 80 00 0b be 200d114 <rtems_bdbuf_swapout_task+0x284> <== ALWAYS TAKEN
200d0ec: 01 00 00 00 nop
{
rtems_status_code sc = rtems_event_send (worker->id,
200d0f0: d0 04 e0 08 ld [ %l3 + 8 ], %o0 <== NOT EXECUTED
200d0f4: 7f ff e8 45 call 2007208 <rtems_event_send> <== NOT EXECUTED
200d0f8: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
200d0fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200d100: 02 80 00 08 be 200d120 <rtems_bdbuf_swapout_task+0x290> <== NOT EXECUTED
200d104: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
200d108: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200d10c: 10 bf ff ad b 200cfc0 <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200d110: 90 12 20 14 or %o0, 0x14, %o0 ! 42000014 <RAM_END+0x3fc00014><== NOT EXECUTED
}
else
{
rtems_bdbuf_swapout_write (transfer);
200d114: 7f ff fe f7 call 200ccf0 <rtems_bdbuf_swapout_write>
200d118: 90 10 00 10 mov %l0, %o0
200d11c: 82 10 20 01 mov 1, %g1
}
transfered_buffers = true;
}
if (bdbuf_cache.sync_active && !transfered_buffers)
200d120: c4 0c 60 30 ldub [ %l1 + 0x30 ], %g2
200d124: 80 a0 a0 00 cmp %g2, 0
200d128: 02 80 00 14 be 200d178 <rtems_bdbuf_swapout_task+0x2e8>
200d12c: 82 08 60 ff and %g1, 0xff, %g1
200d130: 80 a0 60 00 cmp %g1, 0
200d134: 12 bf ff bb bne 200d020 <rtems_bdbuf_swapout_task+0x190>
200d138: aa 10 20 00 clr %l5
{
rtems_id sync_requester;
rtems_bdbuf_lock_cache ();
200d13c: 7f ff f9 cb call 200b868 <rtems_bdbuf_lock_cache>
200d140: 01 00 00 00 nop
sync_requester = bdbuf_cache.sync_requester;
200d144: e0 05 20 34 ld [ %l4 + 0x34 ], %l0
bdbuf_cache.sync_active = false;
200d148: c0 2d 20 30 clrb [ %l4 + 0x30 ]
bdbuf_cache.sync_requester = 0;
200d14c: c0 25 20 34 clr [ %l4 + 0x34 ]
rtems_bdbuf_unlock_cache ();
200d150: 7f ff fa 51 call 200ba94 <rtems_bdbuf_unlock_cache>
200d154: 01 00 00 00 nop
if (sync_requester)
200d158: 80 a4 20 00 cmp %l0, 0
200d15c: 22 80 00 0b be,a 200d188 <rtems_bdbuf_swapout_task+0x2f8><== NEVER TAKEN
200d160: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);
200d164: 90 10 00 10 mov %l0, %o0
200d168: 7f ff e8 28 call 2007208 <rtems_event_send>
200d16c: 92 10 20 02 mov 2, %o1
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
200d170: 10 80 00 06 b 200d188 <rtems_bdbuf_swapout_task+0x2f8>
200d174: 90 10 20 04 mov 4, %o0
/*
* Extact all the buffers we find for a specific device. The device is
* the first one we find on a modified list. Process the sync queue of
* buffers first.
*/
if (rtems_bdbuf_swapout_processing (timer_delta,
200d178: 80 a0 60 00 cmp %g1, 0
200d17c: 12 bf ff a9 bne 200d020 <rtems_bdbuf_swapout_task+0x190>
200d180: aa 10 20 00 clr %l5
*/
update_timers = false;
}
while (transfered_buffers);
sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,
200d184: 90 10 20 04 mov 4, %o0
200d188: 92 10 20 00 clr %o1
200d18c: 94 10 00 1b mov %i3, %o2
200d190: 7f ff e7 bc call 2007080 <rtems_event_receive>
200d194: 96 10 00 18 mov %i0, %o3
RTEMS_EVENT_ALL | RTEMS_WAIT,
period_in_ticks,
&out);
if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))
200d198: 80 a2 20 06 cmp %o0, 6
200d19c: 02 80 00 06 be 200d1b4 <rtems_bdbuf_swapout_task+0x324>
200d1a0: 80 a2 20 00 cmp %o0, 0
200d1a4: 02 80 00 04 be 200d1b4 <rtems_bdbuf_swapout_task+0x324> <== ALWAYS TAKEN
200d1a8: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
200d1ac: 10 bf ff 85 b 200cfc0 <rtems_bdbuf_swapout_task+0x130> <== NOT EXECUTED
200d1b0: 90 12 20 18 or %o0, 0x18, %o0 ! 42000018 <RAM_END+0x3fc00018><== NOT EXECUTED
/*
* Create the worker threads.
*/
rtems_bdbuf_swapout_workers_open ();
while (bdbuf_cache.swapout_enabled)
200d1b4: c2 0c 60 04 ldub [ %l1 + 4 ], %g1
200d1b8: 80 a0 60 00 cmp %g1, 0
200d1bc: 12 bf ff 99 bne 200d020 <rtems_bdbuf_swapout_task+0x190> <== ALWAYS TAKEN
200d1c0: aa 10 20 01 mov 1, %l5
static void
rtems_bdbuf_swapout_workers_close (void)
{
rtems_chain_node* node;
rtems_bdbuf_lock_cache ();
200d1c4: 7f ff f9 a9 call 200b868 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200d1c8: a4 04 60 0c add %l1, 0xc, %l2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200d1cc: 10 80 00 06 b 200d1e4 <rtems_bdbuf_swapout_task+0x354> <== NOT EXECUTED
200d1d0: e0 04 60 08 ld [ %l1 + 8 ], %l0 <== NOT EXECUTED
node = rtems_chain_first (&bdbuf_cache.swapout_workers);
while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
worker->enabled = false;
200d1d4: c0 2c 20 0c clrb [ %l0 + 0xc ] <== NOT EXECUTED
rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);
200d1d8: 7f ff e8 0c call 2007208 <rtems_event_send> <== NOT EXECUTED
200d1dc: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
200d1e0: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200d1e4: 80 a4 00 12 cmp %l0, %l2 <== NOT EXECUTED
200d1e8: 32 bf ff fb bne,a 200d1d4 <rtems_bdbuf_swapout_task+0x344><== NOT EXECUTED
200d1ec: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
node = rtems_chain_next (node);
}
rtems_bdbuf_unlock_cache ();
200d1f0: 7f ff fa 29 call 200ba94 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200d1f4: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);
}
rtems_bdbuf_swapout_workers_close ();
free (transfer.write_req);
200d1f8: 7f ff da 61 call 2003b7c <free> <== NOT EXECUTED
200d1fc: d0 07 bf ec ld [ %fp + -20 ], %o0 <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
200d200: 7f ff ea 00 call 2007a00 <rtems_task_delete> <== NOT EXECUTED
200d204: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
200d208: 81 c7 e0 08 ret <== NOT EXECUTED
200d20c: 81 e8 00 00 restore <== NOT EXECUTED
0200d210 <rtems_bdbuf_swapout_worker_task>:
* @param arg A pointer to the worker thread's private data.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
200d210: 9d e3 bf a0 save %sp, -96, %sp <== 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 );
200d214: 2b 00 80 87 sethi %hi(0x2021c00), %l5 <== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
rtems_bdbuf_lock_cache ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200d218: 25 3f ff ff sethi %hi(0xfffffc00), %l2 <== NOT EXECUTED
* @param arg A pointer to the worker thread's private data.
* @return rtems_task Not used.
*/
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
200d21c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
rtems_bdbuf_lock_cache ();
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
200d220: a4 14 a3 ff or %l2, 0x3ff, %l2 <== NOT EXECUTED
200d224: aa 15 60 30 or %l5, 0x30, %l5 <== NOT EXECUTED
while (worker->enabled)
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
rtems_bdbuf_swapout_write (&worker->transfer);
200d228: a2 06 20 10 add %i0, 0x10, %l1 <== NOT EXECUTED
200d22c: a8 06 20 14 add %i0, 0x14, %l4 <== NOT EXECUTED
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
200d230: 10 80 00 11 b 200d274 <rtems_bdbuf_swapout_worker_task+0x64><== NOT EXECUTED
200d234: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
{
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);
200d238: 7f ff fa c3 call 200bd44 <rtems_bdbuf_wait_for_event> <== NOT EXECUTED
200d23c: 01 00 00 00 nop <== NOT EXECUTED
rtems_bdbuf_swapout_write (&worker->transfer);
200d240: 7f ff fe ac call 200ccf0 <rtems_bdbuf_swapout_write> <== NOT EXECUTED
200d244: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_bdbuf_lock_cache ();
200d248: 7f ff f9 88 call 200b868 <rtems_bdbuf_lock_cache> <== NOT EXECUTED
200d24c: 01 00 00 00 nop <== NOT EXECUTED
200d250: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
200d254: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
200d258: e8 24 20 10 st %l4, [ %l0 + 0x10 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
200d25c: c0 24 20 14 clr [ %l0 + 0x14 ] <== NOT EXECUTED
the_chain->last = _Chain_Head(the_chain);
200d260: e2 24 20 18 st %l1, [ %l0 + 0x18 ] <== NOT EXECUTED
200d264: 7f ff ec 01 call 2008268 <_Chain_Append> <== NOT EXECUTED
200d268: e4 3c 20 20 std %l2, [ %l0 + 0x20 ] <== NOT EXECUTED
rtems_chain_initialize_empty (&worker->transfer.bds);
worker->transfer.dev = BDBUF_INVALID_DEV;
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
200d26c: 7f ff fa 0a call 200ba94 <rtems_bdbuf_unlock_cache> <== NOT EXECUTED
200d270: 01 00 00 00 nop <== NOT EXECUTED
static rtems_task
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)
{
rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
while (worker->enabled)
200d274: c2 0c 20 0c ldub [ %l0 + 0xc ], %g1 <== NOT EXECUTED
200d278: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200d27c: 12 bf ff ef bne 200d238 <rtems_bdbuf_swapout_worker_task+0x28><== NOT EXECUTED
200d280: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link);
rtems_bdbuf_unlock_cache ();
}
free (worker->transfer.write_req);
200d284: d0 04 20 2c ld [ %l0 + 0x2c ], %o0 <== NOT EXECUTED
200d288: 7f ff da 3d call 2003b7c <free> <== NOT EXECUTED
200d28c: b0 10 20 00 clr %i0 <== NOT EXECUTED
free (worker);
200d290: 7f ff da 3b call 2003b7c <free> <== NOT EXECUTED
200d294: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_task_delete (RTEMS_SELF);
200d298: 7f ff e9 da call 2007a00 <rtems_task_delete> <== NOT EXECUTED
200d29c: 81 e8 00 00 restore <== NOT EXECUTED
0200ccf0 <rtems_bdbuf_swapout_write>:
*
* @param transfer The transfer transaction.
*/
static void
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)
{
200ccf0: 9d e3 bf a0 save %sp, -96, %sp
printf ("bdbuf:swapout transfer: %08x\n", (unsigned) transfer->dev);
/*
* If there are buffers to transfer to the media transfer them.
*/
if (!rtems_chain_is_empty (&transfer->bds))
200ccf4: c2 06 00 00 ld [ %i0 ], %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200ccf8: a4 06 20 04 add %i0, 4, %l2
200ccfc: 80 a0 40 12 cmp %g1, %l2
200cd00: 02 80 00 62 be 200ce88 <rtems_bdbuf_swapout_write+0x198> <== NEVER TAKEN
200cd04: a0 10 00 18 mov %i0, %l0
/*
* Obtain the disk device. The cache's mutex has been released to avoid a
* dead lock.
*/
rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);
200cd08: 7f ff d8 2a call 2002db0 <rtems_disk_obtain>
200cd0c: d0 1e 20 10 ldd [ %i0 + 0x10 ], %o0
if (dd == NULL)
200cd10: b0 92 20 00 orcc %o0, 0, %i0
200cd14: 32 80 00 05 bne,a 200cd28 <rtems_bdbuf_swapout_write+0x38>
200cd18: d0 06 20 20 ld [ %i0 + 0x20 ], %o0
200cd1c: 31 00 80 85 sethi %hi(0x2021400), %i0
200cd20: b0 16 21 10 or %i0, 0x110, %i0 ! 2021510 <null_disk.7645>
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
200cd24: d0 06 20 20 ld [ %i0 + 0x20 ], %o0
200cd28: 27 00 80 7f sethi %hi(0x201fc00), %l3
200cd2c: a6 14 e0 1c or %l3, 0x1c, %l3 ! 201fc1c <rtems_bdbuf_configuration>
200cd30: d2 04 e0 20 ld [ %l3 + 0x20 ], %o1
200cd34: 40 00 43 dc call 201dca4 <.udiv>
200cd38: a2 10 20 00 clr %l1
* should be possible to make this change with little effect in this
* code. The array that is passed is broken in design and should be
* removed. Merging members of a struct into the first member is
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200cd3c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
* Perform the transfer if there are no more buffers, or the transfer
* size has reached the configured max. value.
*/
if (rtems_chain_is_empty (&transfer->bds) ||
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
200cd40: e8 04 e0 04 ld [ %l3 + 4 ], %l4
* should be possible to make this change with little effect in this
* code. The array that is passed is broken in design and should be
* removed. Merging members of a struct into the first member is
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200cd44: 84 10 20 0c mov 0xc, %g2
rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);
if (dd == NULL)
dd = &null_disk;
bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
200cd48: aa 10 00 08 mov %o0, %l5
* code. The array that is passed is broken in design and should be
* removed. Merging members of a struct into the first member is
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
200cd4c: c0 20 60 10 clr [ %g1 + 0x10 ]
* should be possible to make this change with little effect in this
* code. The array that is passed is broken in design and should be
* removed. Merging members of a struct into the first member is
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200cd50: c4 20 60 0c st %g2, [ %g1 + 0xc ]
transfer->write_req->bufnum = 0;
while ((node = rtems_chain_get(&transfer->bds)) != NULL)
200cd54: 10 80 00 35 b 200ce28 <rtems_bdbuf_swapout_write+0x138>
200cd58: a6 10 20 0c mov 0xc, %l3
printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
bd->block, transfer->write_req->bufnum,
dd->phys_dev->capabilities &
RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
200cd5c: c4 00 a0 0c ld [ %g2 + 0xc ], %g2
200cd60: 80 88 a0 01 btst 1, %g2
200cd64: 02 80 00 0f be 200cda0 <rtems_bdbuf_swapout_write+0xb0> <== ALWAYS TAKEN
200cd68: 82 10 20 00 clr %g1
transfer->write_req->bufnum &&
200cd6c: c6 04 20 1c ld [ %l0 + 0x1c ], %g3 <== NOT EXECUTED
200cd70: c6 00 e0 10 ld [ %g3 + 0x10 ], %g3 <== NOT EXECUTED
200cd74: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
200cd78: 02 80 00 0a be 200cda0 <rtems_bdbuf_swapout_write+0xb0> <== NOT EXECUTED
200cd7c: 84 04 40 15 add %l1, %l5, %g2 <== NOT EXECUTED
(bd->block != (last_block + bufs_per_bd)))
200cd80: c6 02 20 20 ld [ %o0 + 0x20 ], %g3 <== NOT EXECUTED
200cd84: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
200cd88: 02 80 00 06 be 200cda0 <rtems_bdbuf_swapout_write+0xb0> <== NOT EXECUTED
200cd8c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200cd90: 40 00 12 07 call 20115ac <_Chain_Insert> <== NOT EXECUTED
200cd94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
bd->block, transfer->write_req->bufnum,
dd->phys_dev->capabilities &
RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
200cd98: 10 80 00 13 b 200cde4 <rtems_bdbuf_swapout_write+0xf4> <== NOT EXECUTED
200cd9c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
write = true;
}
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
200cda0: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
transfer->write_req->bufnum++;
buf->user = bd;
buf->block = bd->block;
buf->length = dd->block_size;
buf->buffer = bd->buffer;
200cda4: da 02 20 24 ld [ %o0 + 0x24 ], %o5
write = true;
}
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
200cda8: c6 00 a0 10 ld [ %g2 + 0x10 ], %g3
transfer->write_req->bufnum++;
200cdac: 88 00 e0 01 add %g3, 1, %g4
200cdb0: c8 20 a0 10 st %g4, [ %g2 + 0x10 ]
buf->user = bd;
buf->block = bd->block;
200cdb4: d8 02 20 20 ld [ %o0 + 0x20 ], %o4
200cdb8: 89 28 e0 04 sll %g3, 4, %g4
200cdbc: 88 00 80 04 add %g2, %g4, %g4
200cdc0: d8 21 20 18 st %o4, [ %g4 + 0x18 ]
buf->length = dd->block_size;
200cdc4: d8 06 20 20 ld [ %i0 + 0x20 ], %o4
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
200cdc8: 86 00 e0 02 add %g3, 2, %g3
buf->block = bd->block;
buf->length = dd->block_size;
200cdcc: d8 21 20 1c st %o4, [ %g4 + 0x1c ]
buf->buffer = bd->buffer;
last_block = bd->block;
200cdd0: e2 02 20 20 ld [ %o0 + 0x20 ], %l1
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
200cdd4: 87 28 e0 04 sll %g3, 4, %g3
buf->block = bd->block;
buf->length = dd->block_size;
buf->buffer = bd->buffer;
200cdd8: da 20 80 03 st %o5, [ %g2 + %g3 ]
else
{
rtems_blkdev_sg_buffer* buf;
buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
transfer->write_req->bufnum++;
buf->user = bd;
200cddc: 84 00 80 03 add %g2, %g3, %g2
200cde0: d0 20 a0 04 st %o0, [ %g2 + 4 ]
/*
* Perform the transfer if there are no more buffers, or the transfer
* size has reached the configured max. value.
*/
if (rtems_chain_is_empty (&transfer->bds) ||
200cde4: c4 04 00 00 ld [ %l0 ], %g2
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
write = true;
if (write)
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
200cde8: 90 10 00 18 mov %i0, %o0
/*
* Perform the transfer if there are no more buffers, or the transfer
* size has reached the configured max. value.
*/
if (rtems_chain_is_empty (&transfer->bds) ||
200cdec: 80 a0 80 12 cmp %g2, %l2
200cdf0: 02 80 00 09 be 200ce14 <rtems_bdbuf_swapout_write+0x124>
200cdf4: 94 10 20 00 clr %o2
(transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
200cdf8: c4 04 20 1c ld [ %l0 + 0x1c ], %g2
200cdfc: c4 00 a0 10 ld [ %g2 + 0x10 ], %g2
200ce00: 80 a0 80 14 cmp %g2, %l4
200ce04: 1a 80 00 04 bcc 200ce14 <rtems_bdbuf_swapout_write+0x124>
200ce08: 80 88 60 ff btst 0xff, %g1
write = true;
if (write)
200ce0c: 02 80 00 07 be 200ce28 <rtems_bdbuf_swapout_write+0x138> <== ALWAYS TAKEN
200ce10: 01 00 00 00 nop
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
200ce14: 7f ff ff 67 call 200cbb0 <rtems_bdbuf_execute_transfer_request>
200ce18: d2 04 20 1c ld [ %l0 + 0x1c ], %o1
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200ce1c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
transfer->write_req->bufnum = 0;
200ce20: c0 20 60 10 clr [ %g1 + 0x10 ]
if (write)
{
rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
200ce24: e6 20 60 0c st %l3, [ %g1 + 0xc ]
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
200ce28: 7f ff ed 26 call 20082c0 <_Chain_Get>
200ce2c: 90 10 00 10 mov %l0, %o0
* trouble waiting to happen.
*/
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
while ((node = rtems_chain_get(&transfer->bds)) != NULL)
200ce30: 80 a2 20 00 cmp %o0, 0
200ce34: 32 bf ff ca bne,a 200cd5c <rtems_bdbuf_swapout_write+0x6c>
200ce38: c4 06 20 08 ld [ %i0 + 8 ], %g2
transfer->write_req->status = RTEMS_RESOURCE_IN_USE;
transfer->write_req->bufnum = 0;
}
}
if (dd != &null_disk)
200ce3c: 03 00 80 85 sethi %hi(0x2021400), %g1
200ce40: 82 10 61 10 or %g1, 0x110, %g1 ! 2021510 <null_disk.7645>
200ce44: 80 a6 00 01 cmp %i0, %g1
200ce48: 02 80 00 10 be 200ce88 <rtems_bdbuf_swapout_write+0x198> <== NEVER TAKEN
200ce4c: 01 00 00 00 nop
{
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
200ce50: c2 0c 20 18 ldub [ %l0 + 0x18 ], %g1
200ce54: 80 a0 60 00 cmp %g1, 0
200ce58: 02 80 00 0a be 200ce80 <rtems_bdbuf_swapout_write+0x190>
200ce5c: 01 00 00 00 nop
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
200ce60: d0 06 20 08 ld [ %i0 + 8 ], %o0
{
/*
* If sync'ing and the deivce is capability of handling a sync IO control
* call perform the call.
*/
if (transfer->syncing &&
200ce64: c2 02 20 0c ld [ %o0 + 0xc ], %g1
200ce68: 80 88 60 02 btst 2, %g1
200ce6c: 02 80 00 05 be 200ce80 <rtems_bdbuf_swapout_write+0x190> <== ALWAYS TAKEN
200ce70: 92 10 20 02 mov 2, %o1
(dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))
{
/* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
200ce74: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED
200ce78: 9f c0 40 00 call %g1 <== NOT EXECUTED
200ce7c: 94 10 20 00 clr %o2 <== NOT EXECUTED
/* How should the error be handled ? */
}
rtems_disk_release (dd);
200ce80: 7f ff d7 ba call 2002d68 <rtems_disk_release>
200ce84: 81 e8 00 00 restore
200ce88: 81 c7 e0 08 ret <== NOT EXECUTED
200ce8c: 81 e8 00 00 restore <== NOT EXECUTED
0200c368 <rtems_bdbuf_swapout_writereq_alloc>:
*
* @return rtems_blkdev_request* The write reference memory.
*/
static rtems_blkdev_request*
rtems_bdbuf_swapout_writereq_alloc (void)
{
200c368: 9d e3 bf a0 save %sp, -96, %sp
* I am disappointment at finding code like this in RTEMS. The request should
* have been a rtems_chain_control. Simple, fast and less storage as the node
* is already part of the buffer structure.
*/
rtems_blkdev_request* write_req =
malloc (sizeof (rtems_blkdev_request) +
200c36c: 03 00 80 7f sethi %hi(0x201fc00), %g1
200c370: d0 00 60 20 ld [ %g1 + 0x20 ], %o0 ! 201fc20 <rtems_bdbuf_configuration+0x4>
200c374: 91 2a 20 04 sll %o0, 4, %o0
200c378: 7f ff de e0 call 2003ef8 <malloc>
200c37c: 90 02 20 18 add %o0, 0x18, %o0
(bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
if (!write_req)
200c380: a0 92 20 00 orcc %o0, 0, %l0
200c384: 12 80 00 05 bne 200c398 <rtems_bdbuf_swapout_writereq_alloc+0x30><== ALWAYS TAKEN
200c388: 82 10 20 01 mov 1, %g1
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
200c38c: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200c390: 7f ff ee 5f call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200c394: 90 12 20 15 or %o0, 0x15, %o0 ! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
200c398: c2 24 00 00 st %g1, [ %l0 ]
write_req->req_done = rtems_bdbuf_transfer_done;
200c39c: 03 00 80 2f sethi %hi(0x200bc00), %g1
200c3a0: 82 10 61 24 or %g1, 0x124, %g1 ! 200bd24 <rtems_bdbuf_transfer_done>
write_req->done_arg = write_req;
200c3a4: e0 24 20 08 st %l0, [ %l0 + 8 ]
if (!write_req)
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);
write_req->req = RTEMS_BLKDEV_REQ_WRITE;
write_req->req_done = rtems_bdbuf_transfer_done;
200c3a8: c2 24 20 04 st %g1, [ %l0 + 4 ]
write_req->done_arg = write_req;
write_req->io_task = rtems_task_self ();
200c3ac: 40 00 13 b6 call 2011284 <rtems_task_self>
200c3b0: b0 10 00 10 mov %l0, %i0
200c3b4: d0 24 20 14 st %o0, [ %l0 + 0x14 ]
return write_req;
}
200c3b8: 81 c7 e0 08 ret
200c3bc: 81 e8 00 00 restore
0200d2a4 <rtems_bdbuf_sync>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
200d2a4: 9d e3 bf a0 save %sp, -96, %sp
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
200d2a8: 21 00 80 87 sethi %hi(0x2021c00), %l0
200d2ac: a0 14 20 28 or %l0, 0x28, %l0 ! 2021c28 <bdbuf_cache>
200d2b0: c2 0c 20 88 ldub [ %l0 + 0x88 ], %g1
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)
{
200d2b4: a2 10 00 18 mov %i0, %l1
}
static rtems_status_code
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{
if (!bdbuf_cache.initialised)
200d2b8: 80 a0 60 00 cmp %g1, 0
200d2bc: 02 80 00 55 be 200d410 <rtems_bdbuf_sync+0x16c> <== NEVER TAKEN
200d2c0: b0 10 20 16 mov 0x16, %i0
return RTEMS_NOT_CONFIGURED;
if (bd == NULL)
200d2c4: 80 a4 60 00 cmp %l1, 0
200d2c8: 02 80 00 52 be 200d410 <rtems_bdbuf_sync+0x16c> <== NEVER TAKEN
200d2cc: b0 10 20 09 mov 9, %i0
if (rtems_bdbuf_tracer)
{
printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);
rtems_bdbuf_show_users (kind, bd);
}
rtems_bdbuf_lock_cache();
200d2d0: 7f ff f9 66 call 200b868 <rtems_bdbuf_lock_cache>
200d2d4: 01 00 00 00 nop
sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");
if (sc != RTEMS_SUCCESSFUL)
return sc;
switch (bd->state)
200d2d8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200d2dc: 80 a0 60 03 cmp %g1, 3
200d2e0: 0a 80 00 44 bcs 200d3f0 <rtems_bdbuf_sync+0x14c> <== NEVER TAKEN
200d2e4: 80 a0 60 05 cmp %g1, 5
200d2e8: 28 80 00 06 bleu,a 200d300 <rtems_bdbuf_sync+0x5c>
200d2ec: 82 10 20 08 mov 8, %g1
200d2f0: 80 a0 60 06 cmp %g1, 6
200d2f4: 12 80 00 3f bne 200d3f0 <rtems_bdbuf_sync+0x14c> <== NEVER TAKEN
200d2f8: 01 00 00 00 nop
200d2fc: 30 80 00 3a b,a 200d3e4 <rtems_bdbuf_sync+0x140>
200d300: 90 04 20 5c add %l0, 0x5c, %o0
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d304: c2 24 60 28 st %g1, [ %l1 + 0x28 ]
200d308: 7f ff eb d8 call 2008268 <_Chain_Append>
200d30c: 92 10 00 11 mov %l1, %o1
{
rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);
rtems_chain_append (&bdbuf_cache.sync, &bd->link);
if (bd->waiters)
200d310: c2 04 60 2c ld [ %l1 + 0x2c ], %g1
200d314: 80 a0 60 00 cmp %g1, 0
200d318: 02 80 00 04 be 200d328 <rtems_bdbuf_sync+0x84>
200d31c: 01 00 00 00 nop
rtems_bdbuf_wake (&bdbuf_cache.access_waiters);
200d320: 7f ff f9 5a call 200b888 <rtems_bdbuf_wake>
200d324: 90 04 20 68 add %l0, 0x68, %o0
rtems_bdbuf_wake_swapper ();
200d328: 7f ff fa 39 call 200bc0c <rtems_bdbuf_wake_swapper>
200d32c: 21 00 80 87 sethi %hi(0x2021c00), %l0
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
return;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200d330: a0 14 20 98 or %l0, 0x98, %l0 ! 2021c98 <bdbuf_cache+0x70>
static void
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)
{
while (true)
{
switch (bd->state)
200d334: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200d338: 80 a0 60 01 cmp %g1, 1
200d33c: 0a 80 00 0a bcs 200d364 <rtems_bdbuf_sync+0xc0> <== NEVER TAKEN
200d340: 80 a0 60 07 cmp %g1, 7
200d344: 08 80 00 0d bleu 200d378 <rtems_bdbuf_sync+0xd4>
200d348: 80 a0 60 0a cmp %g1, 0xa
200d34c: 18 80 00 06 bgu 200d364 <rtems_bdbuf_sync+0xc0> <== NEVER TAKEN
200d350: 01 00 00 00 nop
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
return;
case RTEMS_BDBUF_STATE_SYNC:
case RTEMS_BDBUF_STATE_TRANSFER:
case RTEMS_BDBUF_STATE_TRANSFER_PURGED:
rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);
200d354: 90 10 00 11 mov %l1, %o0
200d358: 7f ff fa f0 call 200bf18 <rtems_bdbuf_wait>
200d35c: 92 10 00 10 mov %l0, %o1
200d360: 30 bf ff f5 b,a 200d334 <rtems_bdbuf_sync+0x90>
break;
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
200d364: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200d368: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d36c: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d370: 10 80 00 24 b 200d400 <rtems_bdbuf_sync+0x15c> <== NOT EXECUTED
200d374: 82 10 60 07 or %g1, 7, %g1 <== NOT EXECUTED
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
200d378: c2 04 60 2c ld [ %l1 + 0x2c ], %g1
rtems_bdbuf_wait_for_sync_done (bd);
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
200d37c: 80 a0 60 00 cmp %g1, 0
200d380: 12 80 00 22 bne 200d408 <rtems_bdbuf_sync+0x164>
200d384: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
200d388: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
rtems_bdbuf_wait_for_sync_done (bd);
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
200d38c: 80 a0 60 02 cmp %g1, 2
200d390: 02 80 00 06 be 200d3a8 <rtems_bdbuf_sync+0x104>
200d394: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
200d398: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
rtems_bdbuf_wait_for_sync_done (bd);
/*
* We may have created a cached or empty buffer which may be recycled.
*/
if (bd->waiters == 0
200d39c: 80 a0 60 01 cmp %g1, 1
200d3a0: 12 80 00 1a bne 200d408 <rtems_bdbuf_sync+0x164> <== NEVER TAKEN
200d3a4: 01 00 00 00 nop
&& (bd->state == RTEMS_BDBUF_STATE_CACHED
|| bd->state == RTEMS_BDBUF_STATE_EMPTY))
{
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
200d3a8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
200d3ac: 80 a0 60 01 cmp %g1, 1
200d3b0: 32 80 00 0a bne,a 200d3d8 <rtems_bdbuf_sync+0x134>
200d3b4: 11 00 80 87 sethi %hi(0x2021c00), %o0
{
rtems_bdbuf_remove_from_tree (bd);
200d3b8: 7f ff fc 02 call 200c3c0 <rtems_bdbuf_remove_from_tree>
200d3bc: 90 10 00 11 mov %l1, %o0
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
200d3c0: 11 00 80 87 sethi %hi(0x2021c00), %o0
200d3c4: 92 10 00 11 mov %l1, %o1
}
static void
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{
bd->state = state;
200d3c8: c0 24 60 28 clr [ %l1 + 0x28 ]
200d3cc: 40 00 10 78 call 20115ac <_Chain_Insert>
200d3d0: 90 12 20 6c or %o0, 0x6c, %o0
if (bd->state == RTEMS_BDBUF_STATE_EMPTY)
{
rtems_bdbuf_remove_from_tree (bd);
rtems_bdbuf_make_free_and_add_to_lru_list (bd);
}
rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);
200d3d4: 11 00 80 87 sethi %hi(0x2021c00), %o0
200d3d8: 7f ff f9 2c call 200b888 <rtems_bdbuf_wake>
200d3dc: 90 12 20 a0 or %o0, 0xa0, %o0 ! 2021ca0 <bdbuf_cache+0x78>
200d3e0: 30 80 00 0a b,a 200d408 <rtems_bdbuf_sync+0x164>
case RTEMS_BDBUF_STATE_ACCESS_EMPTY:
case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:
rtems_bdbuf_sync_after_access (bd);
break;
case RTEMS_BDBUF_STATE_ACCESS_PURGED:
rtems_bdbuf_discard_buffer_after_access (bd);
200d3e4: 7f ff fd 04 call 200c7f4 <rtems_bdbuf_discard_buffer_after_access>
200d3e8: 90 10 00 11 mov %l1, %o0
break;
200d3ec: 30 80 00 07 b,a 200d408 <rtems_bdbuf_sync+0x164>
default:
rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
200d3f0: d0 04 60 28 ld [ %l1 + 0x28 ], %o0 <== NOT EXECUTED
#endif
static void
rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error)
{
rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);
200d3f4: 03 10 80 00 sethi %hi(0x42000000), %g1 <== NOT EXECUTED
200d3f8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
200d3fc: 82 10 60 03 or %g1, 3, %g1 <== NOT EXECUTED
200d400: 7f ff ea 43 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200d404: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
}
if (rtems_bdbuf_tracer)
rtems_bdbuf_show_usage ();
rtems_bdbuf_unlock_cache ();
200d408: 7f ff f9 a3 call 200ba94 <rtems_bdbuf_unlock_cache>
200d40c: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200d410: 81 c7 e0 08 ret
200d414: 81 e8 00 00 restore
0200bd8c <rtems_bdbuf_syncdev>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
200bd8c: 9d e3 bf 98 save %sp, -104, %sp
rtems_disk_device *dd = NULL;
if (rtems_bdbuf_tracer)
printf ("bdbuf:syncdev: %08x\n", (unsigned) dev);
sc = rtems_bdbuf_obtain_disk (dev, 0, &dd, NULL, NULL);
200bd90: 94 10 20 00 clr %o2
200bd94: 90 10 00 18 mov %i0, %o0
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
200bd98: c0 27 bf fc clr [ %fp + -4 ]
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_bdbuf_syncdev (dev_t dev)
{
200bd9c: a0 10 00 18 mov %i0, %l0
rtems_disk_device *dd = NULL;
if (rtems_bdbuf_tracer)
printf ("bdbuf:syncdev: %08x\n", (unsigned) dev);
sc = rtems_bdbuf_obtain_disk (dev, 0, &dd, NULL, NULL);
200bda0: 92 10 00 19 mov %i1, %o1
200bda4: 96 07 bf fc add %fp, -4, %o3
200bda8: 98 10 20 00 clr %o4
200bdac: 9a 10 20 00 clr %o5
200bdb0: 7f ff ff 4f call 200baec <rtems_bdbuf_obtain_disk>
200bdb4: a2 10 00 19 mov %i1, %l1
if (sc != RTEMS_SUCCESSFUL)
200bdb8: b0 92 20 00 orcc %o0, 0, %i0
200bdbc: 12 80 00 19 bne 200be20 <rtems_bdbuf_syncdev+0x94> <== NEVER TAKEN
200bdc0: 25 00 80 87 sethi %hi(0x2021c00), %l2
* Lock the cache's sync. A single task can nest calls.
*/
static void
rtems_bdbuf_lock_sync (void)
{
rtems_bdbuf_lock (bdbuf_cache.sync_lock, RTEMS_BLKDEV_FATAL_BDBUF_SYNC_LOCK);
200bdc4: a4 14 a0 28 or %l2, 0x28, %l2 ! 2021c28 <bdbuf_cache>
200bdc8: d0 04 a0 2c ld [ %l2 + 0x2c ], %o0
200bdcc: 13 10 80 00 sethi %hi(0x42000000), %o1
200bdd0: 7f ff fe 9a call 200b838 <rtems_bdbuf_lock>
200bdd4: 92 12 60 0b or %o1, 0xb, %o1 ! 4200000b <RAM_END+0x3fc0000b>
* can lock the cache. If another thread has the sync lock it will cause this
* thread to block until it owns the sync lock then it can own the cache. The
* sync lock can only be obtained with the cache unlocked.
*/
rtems_bdbuf_lock_sync ();
rtems_bdbuf_lock_cache ();
200bdd8: 7f ff fe a4 call 200b868 <rtems_bdbuf_lock_cache>
200bddc: 01 00 00 00 nop
* out task know the id of the requester to wake when done.
*
* The swap out task will negate the sync active flag when no more buffers
* for the device are held on the "modified for sync" queues.
*/
bdbuf_cache.sync_active = true;
200bde0: 82 10 20 01 mov 1, %g1 ! 1 <PROM_START+0x1>
200bde4: c2 2c a0 30 stb %g1, [ %l2 + 0x30 ]
bdbuf_cache.sync_requester = rtems_task_self ();
200bde8: 40 00 15 27 call 2011284 <rtems_task_self>
200bdec: 01 00 00 00 nop
200bdf0: d0 24 a0 34 st %o0, [ %l2 + 0x34 ]
bdbuf_cache.sync_device = dev;
200bdf4: e0 3c a0 38 std %l0, [ %l2 + 0x38 ]
rtems_bdbuf_wake_swapper ();
200bdf8: 7f ff ff 85 call 200bc0c <rtems_bdbuf_wake_swapper>
200bdfc: 01 00 00 00 nop
rtems_bdbuf_unlock_cache ();
200be00: 7f ff ff 25 call 200ba94 <rtems_bdbuf_unlock_cache>
200be04: 01 00 00 00 nop
rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);
200be08: 7f ff ff cf call 200bd44 <rtems_bdbuf_wait_for_event>
200be0c: 90 10 20 02 mov 2, %o0 ! 2 <PROM_START+0x2>
rtems_bdbuf_unlock_sync ();
200be10: 7f ff ff 2c call 200bac0 <rtems_bdbuf_unlock_sync>
200be14: 01 00 00 00 nop
rtems_bdbuf_release_disk (dd);
200be18: 7f ff ff 73 call 200bbe4 <rtems_bdbuf_release_disk>
200be1c: d0 07 bf fc ld [ %fp + -4 ], %o0
return RTEMS_SUCCESSFUL;
}
200be20: 81 c7 e0 08 ret
200be24: 81 e8 00 00 restore
0200ba94 <rtems_bdbuf_unlock_cache>:
/**
* Unlock the cache.
*/
static void
rtems_bdbuf_unlock_cache (void)
{
200ba94: 9d e3 bf a0 save %sp, -96, %sp
* @param fatal_error_code The error code if the call fails.
*/
static void
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)
{
rtems_status_code sc = rtems_semaphore_release (lock);
200ba98: 03 00 80 87 sethi %hi(0x2021c00), %g1
200ba9c: 7f ff ef 60 call 200781c <rtems_semaphore_release>
200baa0: d0 00 60 50 ld [ %g1 + 0x50 ], %o0 ! 2021c50 <bdbuf_cache+0x28>
if (sc != RTEMS_SUCCESSFUL)
200baa4: 80 a2 20 00 cmp %o0, 0
200baa8: 02 80 00 04 be 200bab8 <rtems_bdbuf_unlock_cache+0x24> <== ALWAYS TAKEN
200baac: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (fatal_error_code);
200bab0: 7f ff f0 97 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200bab4: 90 12 20 0e or %o0, 0xe, %o0 ! 4200000e <RAM_END+0x3fc0000e><== NOT EXECUTED
200bab8: 81 c7 e0 08 ret
200babc: 81 e8 00 00 restore
0200bac0 <rtems_bdbuf_unlock_sync>:
/**
* Unlock the cache's sync lock. Any blocked writers are woken.
*/
static void
rtems_bdbuf_unlock_sync (void)
{
200bac0: 9d e3 bf a0 save %sp, -96, %sp
* @param fatal_error_code The error code if the call fails.
*/
static void
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)
{
rtems_status_code sc = rtems_semaphore_release (lock);
200bac4: 03 00 80 87 sethi %hi(0x2021c00), %g1
200bac8: 7f ff ef 55 call 200781c <rtems_semaphore_release>
200bacc: d0 00 60 54 ld [ %g1 + 0x54 ], %o0 ! 2021c54 <bdbuf_cache+0x2c>
if (sc != RTEMS_SUCCESSFUL)
200bad0: 80 a2 20 00 cmp %o0, 0
200bad4: 02 80 00 04 be 200bae4 <rtems_bdbuf_unlock_sync+0x24> <== ALWAYS TAKEN
200bad8: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (fatal_error_code);
200badc: 7f ff f0 8c call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200bae0: 90 12 20 0c or %o0, 0xc, %o0 ! 4200000c <RAM_END+0x3fc0000c><== NOT EXECUTED
200bae4: 81 c7 e0 08 ret
200bae8: 81 e8 00 00 restore
0200bd44 <rtems_bdbuf_wait_for_event>:
return RTEMS_UNSATISFIED;
}
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
200bd44: 9d e3 bf 98 save %sp, -104, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
sc = rtems_event_receive (event,
200bd48: 92 10 20 00 clr %o1
static void
rtems_bdbuf_wait_for_event (rtems_event_set event)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_event_set out = 0;
200bd4c: c0 27 bf fc clr [ %fp + -4 ]
sc = rtems_event_receive (event,
200bd50: 90 10 00 18 mov %i0, %o0
200bd54: 94 10 20 00 clr %o2
200bd58: 7f ff ec ca call 2007080 <rtems_event_receive>
200bd5c: 96 07 bf fc add %fp, -4, %o3
RTEMS_EVENT_ALL | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&out);
if (sc != RTEMS_SUCCESSFUL || out != event)
200bd60: 80 a2 20 00 cmp %o0, 0
200bd64: 12 80 00 05 bne 200bd78 <rtems_bdbuf_wait_for_event+0x34> <== NEVER TAKEN
200bd68: c2 07 bf fc ld [ %fp + -4 ], %g1
200bd6c: 80 a0 40 18 cmp %g1, %i0
200bd70: 02 80 00 05 be 200bd84 <rtems_bdbuf_wait_for_event+0x40> <== ALWAYS TAKEN
200bd74: 01 00 00 00 nop
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);
200bd78: 11 10 80 00 sethi %hi(0x42000000), %o0 <== NOT EXECUTED
200bd7c: 7f ff ef e4 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200bd80: 90 12 20 1a or %o0, 0x1a, %o0 ! 4200001a <RAM_END+0x3fc0001a><== NOT EXECUTED
200bd84: 81 c7 e0 08 ret
200bd88: 81 e8 00 00 restore
0200b888 <rtems_bdbuf_wake>:
* Wake a blocked resource. The resource has a counter that lets us know if
* there are any waiters.
*/
static void
rtems_bdbuf_wake (const rtems_bdbuf_waiters *waiters)
{
200b888: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (waiters->count > 0)
200b88c: c2 06 00 00 ld [ %i0 ], %g1
200b890: 80 a0 60 00 cmp %g1, 0
200b894: 02 80 00 09 be 200b8b8 <rtems_bdbuf_wake+0x30>
200b898: 01 00 00 00 nop
{
sc = rtems_semaphore_flush (waiters->sema);
200b89c: 40 00 15 fb call 2011088 <rtems_semaphore_flush>
200b8a0: d0 06 20 04 ld [ %i0 + 4 ], %o0
if (sc != RTEMS_SUCCESSFUL)
200b8a4: 80 a2 20 00 cmp %o0, 0
200b8a8: 02 80 00 04 be 200b8b8 <rtems_bdbuf_wake+0x30> <== ALWAYS TAKEN
200b8ac: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
200b8b0: 7f ff f1 17 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200b8b4: 90 12 20 13 or %o0, 0x13, %o0 ! 42000013 <RAM_END+0x3fc00013><== NOT EXECUTED
200b8b8: 81 c7 e0 08 ret
200b8bc: 81 e8 00 00 restore
0200bc0c <rtems_bdbuf_wake_swapper>:
}
}
static void
rtems_bdbuf_wake_swapper (void)
{
200bc0c: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
200bc10: 03 00 80 87 sethi %hi(0x2021c00), %g1
200bc14: d0 00 60 28 ld [ %g1 + 0x28 ], %o0 ! 2021c28 <bdbuf_cache>
200bc18: 7f ff ed 7c call 2007208 <rtems_event_send>
200bc1c: 92 10 20 04 mov 4, %o1
RTEMS_BDBUF_SWAPOUT_SYNC);
if (sc != RTEMS_SUCCESSFUL)
200bc20: 80 a2 20 00 cmp %o0, 0
200bc24: 02 80 00 04 be 200bc34 <rtems_bdbuf_wake_swapper+0x28> <== ALWAYS TAKEN
200bc28: 11 10 80 00 sethi %hi(0x42000000), %o0
rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
200bc2c: 7f ff f0 38 call 2007d0c <rtems_fatal_error_occurred> <== NOT EXECUTED
200bc30: 90 12 20 14 or %o0, 0x14, %o0 ! 42000014 <RAM_END+0x3fc00014><== NOT EXECUTED
200bc34: 81 c7 e0 08 ret
200bc38: 81 e8 00 00 restore
02023b64 <rtems_bdpart_create>:
const rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
const unsigned *dist,
size_t count
)
{
2023b64: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
2023b68: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2023b6c: 02 80 00 08 be 2023b8c <rtems_bdpart_create+0x28> <== NOT EXECUTED
2023b70: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
2023b74: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2023b78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023b7c: 32 80 00 05 bne,a 2023b90 <rtems_bdpart_create+0x2c> <== NOT EXECUTED
2023b80: a2 10 20 00 clr %l1 <== NOT EXECUTED
2023b84: 10 80 00 03 b 2023b90 <rtems_bdpart_create+0x2c> <== NOT EXECUTED
2023b88: e2 0e 60 08 ldub [ %i1 + 8 ], %l1 <== NOT EXECUTED
2023b8c: a2 10 20 00 clr %l1 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum pos = 0;
rtems_blkdev_bnum dist_sum = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
2023b90: 80 a0 00 11 cmp %g0, %l1 <== NOT EXECUTED
rtems_blkdev_bnum free_space = 0;
dev_t disk = 0;
size_t i = 0;
/* Check if we have something to do */
if (count == 0) {
2023b94: a4 10 20 00 clr %l2 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum pos = 0;
rtems_blkdev_bnum dist_sum = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
2023b98: a0 60 20 00 subx %g0, 0, %l0 <== NOT EXECUTED
rtems_blkdev_bnum free_space = 0;
dev_t disk = 0;
size_t i = 0;
/* Check if we have something to do */
if (count == 0) {
2023b9c: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum pos = 0;
rtems_blkdev_bnum dist_sum = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
2023ba0: a0 0c 20 3e and %l0, 0x3e, %l0 <== NOT EXECUTED
rtems_blkdev_bnum free_space = 0;
dev_t disk = 0;
size_t i = 0;
/* Check if we have something to do */
if (count == 0) {
2023ba4: 02 80 00 72 be 2023d6c <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023ba8: a0 04 20 01 inc %l0 <== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL || dist == NULL) {
2023bac: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
2023bb0: 02 80 00 6c be 2023d60 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2023bb4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2023bb8: 02 80 00 6a be 2023d60 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2023bbc: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
2023bc0: 02 80 00 68 be 2023d60 <rtems_bdpart_create+0x1fc> <== NOT EXECUTED
2023bc4: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
rtems_blkdev_bnum dist_sum = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
rtems_blkdev_bnum overhead = 0;
rtems_blkdev_bnum free_space = 0;
dev_t disk = 0;
2023bc8: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2023bcc: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_blkdev_bnum disk_end = 0;
2023bd0: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
if (format == NULL || pt == NULL || dist == NULL) {
return RTEMS_INVALID_ADDRESS;
}
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
2023bd4: 40 00 01 80 call 20241d4 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2023bd8: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2023bdc: 82 10 20 00 clr %g1 <== NOT EXECUTED
2023be0: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2023be4: 02 80 00 0c be 2023c14 <rtems_bdpart_create+0xb0> <== NOT EXECUTED
2023be8: a8 10 20 00 clr %l4 <== NOT EXECUTED
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
return RTEMS_SUCCESSFUL;
}
2023bec: 81 c7 e0 08 ret <== NOT EXECUTED
2023bf0: 91 e8 00 12 restore %g0, %l2, %o0 <== NOT EXECUTED
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
unsigned prev_sum = dist_sum;
dist_sum += dist [i];
2023bf4: c6 06 c0 02 ld [ %i3 + %g2 ], %g3 <== NOT EXECUTED
2023bf8: 84 05 00 03 add %l4, %g3, %g2 <== NOT EXECUTED
if (dist_sum < prev_sum) {
2023bfc: 80 a0 80 14 cmp %g2, %l4 <== NOT EXECUTED
2023c00: 0a 80 00 5a bcs 2023d68 <rtems_bdpart_create+0x204> <== NOT EXECUTED
2023c04: 82 00 60 01 inc %g1 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
if (dist [i] == 0) {
2023c08: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2023c0c: 02 80 00 57 be 2023d68 <rtems_bdpart_create+0x204> <== NOT EXECUTED
2023c10: a8 10 00 02 mov %g2, %l4 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
/* Get distribution sum and check for overflow */
for (i = 0; i < count; ++i) {
2023c14: 80 a0 40 1c cmp %g1, %i4 <== NOT EXECUTED
2023c18: 0a bf ff f7 bcs 2023bf4 <rtems_bdpart_create+0x90> <== NOT EXECUTED
2023c1c: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
2023c20: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2023c24: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023c28: 02 80 00 04 be 2023c38 <rtems_bdpart_create+0xd4> <== NOT EXECUTED
2023c2c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2023c30: 10 80 00 4f b 2023d6c <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023c34: a4 10 20 18 mov 0x18, %l2 <== NOT EXECUTED
return RTEMS_NOT_IMPLEMENTED;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
2023c38: 02 80 00 09 be 2023c5c <rtems_bdpart_create+0xf8> <== NOT EXECUTED
2023c3c: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
disk_end -= (disk_end % record_space);
2023c40: e6 07 bf fc ld [ %fp + -4 ], %l3 <== NOT EXECUTED
2023c44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023c48: 40 00 e3 80 call 205ca48 <.urem> <== NOT EXECUTED
2023c4c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2023c50: 90 24 c0 08 sub %l3, %o0, %o0 <== NOT EXECUTED
2023c54: d0 27 bf fc st %o0, [ %fp + -4 ] <== NOT EXECUTED
/*
* In case we need an extended partition and logical partitions we have to
* account for the space of each EBR.
*/
if (count > 4) {
2023c58: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
2023c5c: 08 80 00 06 bleu 2023c74 <rtems_bdpart_create+0x110> <== NOT EXECUTED
2023c60: b2 10 00 10 mov %l0, %i1 <== NOT EXECUTED
overhead += (count - 3) * record_space;
2023c64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2023c68: 7f ff 7b 64 call 20029f8 <.umul> <== NOT EXECUTED
2023c6c: 92 07 3f fd add %i4, -3, %o1 <== NOT EXECUTED
2023c70: b2 02 00 10 add %o0, %l0, %i1 <== NOT EXECUTED
/*
* Account space to align every partition on cylinder boundaries if
* necessary.
*/
if (dos_compatibility) {
2023c74: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2023c78: 02 80 00 07 be 2023c94 <rtems_bdpart_create+0x130> <== NOT EXECUTED
2023c7c: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
overhead += (count - 1) * record_space;
2023c80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2023c84: 7f ff 7b 5d call 20029f8 <.umul> <== NOT EXECUTED
2023c88: 92 07 3f ff add %i4, -1, %o1 <== NOT EXECUTED
2023c8c: b2 06 40 08 add %i1, %o0, %i1 <== NOT EXECUTED
}
/* Check disk space */
if ((overhead + count) > disk_end) {
2023c90: ea 07 bf fc ld [ %fp + -4 ], %l5 <== NOT EXECUTED
2023c94: 82 06 40 1c add %i1, %i4, %g1 <== NOT EXECUTED
2023c98: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2023c9c: 08 80 00 04 bleu 2023cac <rtems_bdpart_create+0x148> <== NOT EXECUTED
2023ca0: ac 25 40 19 sub %l5, %i1, %l6 <== NOT EXECUTED
2023ca4: 10 80 00 32 b 2023d6c <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023ca8: a4 10 20 1b mov 0x1b, %l2 <== NOT EXECUTED
/* Begin of first primary partition */
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
2023cac: a6 10 00 10 mov %l0, %l3 <== NOT EXECUTED
2023cb0: b2 10 00 1a mov %i2, %i1 <== NOT EXECUTED
for (i = 0; i < count; ++i) {
2023cb4: 10 80 00 1f b 2023d30 <rtems_bdpart_create+0x1cc> <== NOT EXECUTED
2023cb8: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
2023cbc: fa 06 c0 01 ld [ %i3 + %g1 ], %i5 <== NOT EXECUTED
2023cc0: 7f ff 7b 4e call 20029f8 <.umul> <== NOT EXECUTED
2023cc4: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
if (s < free_space || s < dist [i]) {
2023cc8: 80 a2 00 16 cmp %o0, %l6 <== NOT EXECUTED
2023ccc: 0a 80 00 27 bcs 2023d68 <rtems_bdpart_create+0x204> <== NOT EXECUTED
2023cd0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2023cd4: 80 a2 00 1d cmp %o0, %i5 <== NOT EXECUTED
2023cd8: 2a 80 00 25 bcs,a 2023d6c <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023cdc: a4 10 20 0a mov 0xa, %l2 <== NOT EXECUTED
/* TODO: Calculate without overflow */
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
2023ce0: 40 00 e2 ae call 205c798 <.udiv> <== NOT EXECUTED
2023ce4: 01 00 00 00 nop <== NOT EXECUTED
/* Align partition upwards */
s += record_space - (s % record_space);
/* Partition begin and end */
p->begin = pos;
pos += s;
2023ce8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
s /= dist_sum;
/* Ensure that the partition is not empty */
if (s == 0) {
2023cec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023cf0: 12 80 00 03 bne 2023cfc <rtems_bdpart_create+0x198> <== NOT EXECUTED
2023cf4: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
2023cf8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
/* Align partition upwards */
s += record_space - (s % record_space);
/* Partition begin and end */
p->begin = pos;
2023cfc: e6 26 40 00 st %l3, [ %i1 ] <== NOT EXECUTED
pos += s;
2023d00: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2023d04: 40 00 e3 51 call 205ca48 <.urem> <== NOT EXECUTED
2023d08: a6 05 c0 01 add %l7, %g1, %l3 <== NOT EXECUTED
2023d0c: a6 24 c0 08 sub %l3, %o0, %l3 <== NOT EXECUTED
p->end = pos;
/* Reserve space for the EBR if necessary */
if (count > 4 && i > 2) {
2023d10: 80 a4 60 02 cmp %l1, 2 <== NOT EXECUTED
2023d14: 08 80 00 05 bleu 2023d28 <rtems_bdpart_create+0x1c4> <== NOT EXECUTED
2023d18: e6 26 60 04 st %l3, [ %i1 + 4 ] <== NOT EXECUTED
2023d1c: 80 a7 20 04 cmp %i4, 4 <== NOT EXECUTED
2023d20: 38 80 00 02 bgu,a 2023d28 <rtems_bdpart_create+0x1c4> <== NOT EXECUTED
2023d24: ee 26 40 00 st %l7, [ %i1 ] <== NOT EXECUTED
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
for (i = 0; i < count; ++i) {
2023d28: a2 04 60 01 inc %l1 <== NOT EXECUTED
2023d2c: b2 06 60 30 add %i1, 0x30, %i1 <== NOT EXECUTED
rtems_bdpart_partition *p = pt + i;
/* Partition size */
rtems_blkdev_bnum s = free_space * dist [i];
2023d30: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
if (s == 0) {
s = 1;
}
/* Align partition upwards */
s += record_space - (s % record_space);
2023d34: ae 04 c0 10 add %l3, %l0, %l7 <== NOT EXECUTED
pos = record_space;
/* Space for partitions */
free_space = disk_end - overhead;
for (i = 0; i < count; ++i) {
2023d38: 80 a4 40 1c cmp %l1, %i4 <== NOT EXECUTED
2023d3c: 0a bf ff e0 bcs 2023cbc <rtems_bdpart_create+0x158> <== NOT EXECUTED
2023d40: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
p->begin += record_space;
}
}
/* Expand the last partition to the disk end */
pt [count - 1].end = disk_end;
2023d44: b8 07 3f ff add %i4, -1, %i4 <== NOT EXECUTED
2023d48: 83 2f 20 06 sll %i4, 6, %g1 <== NOT EXECUTED
2023d4c: b9 2f 20 04 sll %i4, 4, %i4 <== NOT EXECUTED
2023d50: b8 20 40 1c sub %g1, %i4, %i4 <== NOT EXECUTED
2023d54: b4 06 80 1c add %i2, %i4, %i2 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
2023d58: 10 80 00 05 b 2023d6c <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023d5c: ea 26 a0 04 st %l5, [ %i2 + 4 ] <== NOT EXECUTED
2023d60: 10 80 00 03 b 2023d6c <rtems_bdpart_create+0x208> <== NOT EXECUTED
2023d64: a4 10 20 09 mov 9, %l2 <== NOT EXECUTED
2023d68: a4 10 20 0a mov 0xa, %l2 <== NOT EXECUTED
}
2023d6c: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
2023d70: 81 c7 e0 08 ret <== NOT EXECUTED
2023d74: 81 e8 00 00 restore <== NOT EXECUTED
02023d78 <rtems_bdpart_dump>:
{
uuid_unparse_lower( type, str);
}
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
2023d78: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
size_t i = 0;
printf(
2023d7c: 11 00 81 91 sethi %hi(0x2064400), %o0 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16:
type = "FAT 16";
break;
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
2023d80: 39 00 81 91 sethi %hi(0x2064400), %i4 <== NOT EXECUTED
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
size_t i = 0;
printf(
2023d84: 90 12 20 68 or %o0, 0x68, %o0 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2023d88: 3b 00 81 91 sethi %hi(0x2064400), %i5 <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
2023d8c: 2f 00 81 91 sethi %hi(0x2064400), %l7 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
case RTEMS_BDPART_MBR_FAT_32_LBA:
type = "FAT 32 LBA";
break;
2023d90: 2d 00 81 91 sethi %hi(0x2064400), %l6 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
2023d94: 2b 00 81 91 sethi %hi(0x2064400), %l5 <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
2023d98: 29 00 81 91 sethi %hi(0x2064400), %l4 <== NOT EXECUTED
2023d9c: 27 00 81 91 sethi %hi(0x2064400), %l3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023da0: 25 00 81 91 sethi %hi(0x2064400), %l2 <== NOT EXECUTED
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{
size_t i = 0;
printf(
2023da4: 40 00 93 e3 call 2048d30 <puts> <== NOT EXECUTED
2023da8: a2 10 20 00 clr %l1 <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
2023dac: b6 07 bf ff add %fp, -1, %i3 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16:
type = "FAT 16";
break;
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
2023db0: b8 17 21 c8 or %i4, 0x1c8, %i4 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2023db4: ba 17 61 e8 or %i5, 0x1e8, %i5 <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
2023db8: ae 15 e1 b8 or %l7, 0x1b8, %l7 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
case RTEMS_BDPART_MBR_FAT_32_LBA:
type = "FAT 32 LBA";
break;
2023dbc: ac 15 a1 e0 or %l6, 0x1e0, %l6 <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
2023dc0: aa 15 61 d0 or %l5, 0x1d0, %l5 <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
2023dc4: a8 15 21 b0 or %l4, 0x1b0, %l4 <== NOT EXECUTED
2023dc8: a6 14 e1 a8 or %l3, 0x1a8, %l3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023dcc: a4 14 a1 f0 or %l2, 0x1f0, %l2 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2023dd0: 10 80 00 2f b 2023e8c <rtems_bdpart_dump+0x114> <== NOT EXECUTED
2023dd4: a0 07 bf c8 add %fp, -56, %l0 <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
2023dd8: b4 06 20 08 add %i0, 8, %i2 <== NOT EXECUTED
2023ddc: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2023de0: 40 00 01 1b call 202424c <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
2023de4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2023de8: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2023dec: 02 80 00 1e be 2023e64 <rtems_bdpart_dump+0xec> <== NOT EXECUTED
2023df0: c4 0f bf ff ldub [ %fp + -1 ], %g2 <== NOT EXECUTED
switch (type_mbr) {
2023df4: 82 08 a0 ff and %g2, 0xff, %g1 <== NOT EXECUTED
2023df8: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2023dfc: 02 80 00 1e be 2023e74 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023e00: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
2023e04: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2023e08: 18 80 00 08 bgu 2023e28 <rtems_bdpart_dump+0xb0> <== NOT EXECUTED
2023e0c: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED
2023e10: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2023e14: 02 80 00 18 be 2023e74 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023e18: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
2023e1c: 80 a0 60 04 cmp %g1, 4 <== NOT EXECUTED
2023e20: 10 80 00 09 b 2023e44 <rtems_bdpart_dump+0xcc> <== NOT EXECUTED
2023e24: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
2023e28: 02 80 00 13 be 2023e74 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023e2c: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
2023e30: 80 a0 60 da cmp %g1, 0xda <== NOT EXECUTED
2023e34: 02 80 00 10 be 2023e74 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023e38: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
2023e3c: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED
case RTEMS_BDPART_MBR_FAT_16_LBA:
type = "FAT 16 LBA";
break;
case RTEMS_BDPART_MBR_FAT_32:
type = "FAT 32";
break;
2023e40: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
const char *type = NULL;
char type_buffer [52];
uint8_t type_mbr = 0;
if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {
switch (type_mbr) {
2023e44: 02 80 00 0c be 2023e74 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023e48: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
break;
case RTEMS_BDPART_MBR_DATA:
type = "DATA";
break;
default:
snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
2023e4c: 96 08 a0 ff and %g2, 0xff, %o3 <== NOT EXECUTED
2023e50: 92 10 20 34 mov 0x34, %o1 <== NOT EXECUTED
2023e54: 40 00 99 03 call 204a260 <snprintf> <== NOT EXECUTED
2023e58: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
static void rtems_bdpart_type_to_string(
const uuid_t type,
char str [37]
)
{
uuid_unparse_lower( type, str);
2023e5c: 10 80 00 06 b 2023e74 <rtems_bdpart_dump+0xfc> <== NOT EXECUTED
2023e60: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2023e64: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2023e68: 40 00 6c e5 call 203f1fc <uuid_unparse_lower> <== NOT EXECUTED
2023e6c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023e70: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023e74: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2023e78: d4 06 20 04 ld [ %i0 + 4 ], %o2 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2023e7c: a2 04 60 01 inc %l1 <== NOT EXECUTED
2023e80: b0 06 20 30 add %i0, 0x30, %i0 <== NOT EXECUTED
} else {
rtems_bdpart_type_to_string( p->type, type_buffer);
type = type_buffer;
}
printf(
2023e84: 40 00 92 ff call 2048a80 <printf> <== NOT EXECUTED
2023e88: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
"------------+------------+-----------------------------------------------------\n"
" BEGIN | END | TYPE\n"
"------------+------------+-----------------------------------------------------\n"
);
for (i = 0; i < count; ++i) {
2023e8c: 80 a4 40 19 cmp %l1, %i1 <== NOT EXECUTED
2023e90: 2a bf ff d2 bcs,a 2023dd8 <rtems_bdpart_dump+0x60> <== NOT EXECUTED
2023e94: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
p->end,
type
);
}
puts( "------------+------------+-----------------------------------------------------");
2023e98: 11 00 81 91 sethi %hi(0x2064400), %o0 <== NOT EXECUTED
2023e9c: 40 00 93 a5 call 2048d30 <puts> <== NOT EXECUTED
2023ea0: 90 12 22 08 or %o0, 0x208, %o0 ! 2064608 <C.51.7970+0x1e0><== NOT EXECUTED
}
2023ea4: 81 c7 e0 08 ret <== NOT EXECUTED
2023ea8: 81 e8 00 00 restore <== NOT EXECUTED
020241d4 <rtems_bdpart_get_disk_data>:
rtems_status_code rtems_bdpart_get_disk_data(
const char *disk_name,
dev_t *disk,
rtems_blkdev_bnum *disk_end
)
{
20241d4: 9d e3 bf 58 save %sp, -168, %sp <== NOT EXECUTED
rtems_blkdev_bnum block_size = 0;
rtems_disk_device *dd = NULL;
struct stat st;
/* Get disk handle */
rv = stat( disk_name, &st);
20241d8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20241dc: 7f ff 96 62 call 2009b64 <stat> <== NOT EXECUTED
20241e0: 92 07 bf b8 add %fp, -72, %o1 <== NOT EXECUTED
if (rv != 0) {
20241e4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20241e8: 12 80 00 17 bne 2024244 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
20241ec: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
*disk = st.st_rdev;
20241f0: d0 1f bf d0 ldd [ %fp + -48 ], %o0 <== NOT EXECUTED
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
20241f4: 7f ff 8b 52 call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
20241f8: d0 3e 40 00 std %o0, [ %i1 ] <== NOT EXECUTED
if (dd == NULL) {
20241fc: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
2024200: 22 80 00 11 be,a 2024244 <rtems_bdpart_get_disk_data+0x70><== NOT EXECUTED
2024204: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
*disk_end = dd->size;
2024208: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
/* Get disk begin, end and block size */
dd = rtems_disk_obtain( *disk);
if (dd == NULL) {
return RTEMS_INVALID_NAME;
}
disk_begin = dd->start;
202420c: f2 00 60 18 ld [ %g1 + 0x18 ], %i1 <== NOT EXECUTED
*disk_end = dd->size;
2024210: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED
block_size = dd->block_size;
sc = rtems_disk_release( dd);
2024214: 7f ff 8b 38 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
2024218: f4 00 60 20 ld [ %g1 + 0x20 ], %i2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202421c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024220: 12 80 00 09 bne 2024244 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
2024224: 80 a6 a1 ff cmp %i2, 0x1ff <== NOT EXECUTED
return sc;
}
/* Check block size */
if (block_size < RTEMS_BDPART_BLOCK_SIZE) {
2024228: 08 80 00 06 bleu 2024240 <rtems_bdpart_get_disk_data+0x6c><== NOT EXECUTED
202422c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
/* Check that we have do not have a logical disk */
if (disk_begin != 0) {
2024230: 02 80 00 05 be 2024244 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
2024234: 01 00 00 00 nop <== NOT EXECUTED
2024238: 10 80 00 03 b 2024244 <rtems_bdpart_get_disk_data+0x70> <== NOT EXECUTED
202423c: 90 10 20 1b mov 0x1b, %o0 ! 1b <PROM_START+0x1b> <== NOT EXECUTED
2024240: 90 10 20 1b mov 0x1b, %o0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
2024244: 81 c7 e0 08 ret <== NOT EXECUTED
2024248: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02023fc4 <rtems_bdpart_mount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
2023fc4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
2023fc8: 92 10 20 2f mov 0x2f, %o1 <== NOT EXECUTED
2023fcc: 40 00 a0 0c call 204bffc <strrchr> <== NOT EXECUTED
2023fd0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023fd4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
char *logical_disk_name = NULL;
char *logical_disk_marker = NULL;
char *mount_point = NULL;
char *mount_marker = NULL;
size_t disk_file_name_size = 0;
size_t disk_name_size = strlen( disk_name);
2023fd8: 40 00 9c 6b call 204b184 <strlen> <== NOT EXECUTED
2023fdc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023fe0: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
2023fe4: 40 00 9c 68 call 204b184 <strlen> <== NOT EXECUTED
2023fe8: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
size_t i = 0;
/* Create logical disk name base */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
if (logical_disk_name == NULL) {
2023fec: ae 10 20 1a mov 0x1a, %l7 <== NOT EXECUTED
char *logical_disk_marker = NULL;
char *mount_point = NULL;
char *mount_marker = NULL;
size_t disk_file_name_size = 0;
size_t disk_name_size = strlen( disk_name);
size_t mount_base_size = strlen( mount_base);
2023ff0: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
size_t i = 0;
/* Create logical disk name base */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
2023ff4: 7f ff 92 62 call 200897c <malloc> <== NOT EXECUTED
2023ff8: 90 04 e0 04 add %l3, 4, %o0 <== NOT EXECUTED
if (logical_disk_name == NULL) {
2023ffc: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2024000: 02 80 00 4d be 2024134 <rtems_bdpart_mount+0x170> <== NOT EXECUTED
2024004: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
2024008: 40 00 9d 23 call 204b494 <strncpy> <== NOT EXECUTED
202400c: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
/* Get disk file name */
if (disk_file_name != NULL) {
2024010: ac 10 00 18 mov %i0, %l6 <== NOT EXECUTED
2024014: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2024018: 02 80 00 06 be 2024030 <rtems_bdpart_mount+0x6c> <== NOT EXECUTED
202401c: a8 10 00 13 mov %l3, %l4 <== NOT EXECUTED
disk_file_name += 1;
2024020: ac 04 60 01 add %l1, 1, %l6 <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
2024024: 40 00 9c 58 call 204b184 <strlen> <== NOT EXECUTED
2024028: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
202402c: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
disk_file_name = disk_name;
disk_file_name_size = disk_name_size;
}
/* Create mount point base */
mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
2024030: aa 05 00 12 add %l4, %l2, %l5 <== NOT EXECUTED
if (mount_point == NULL) {
2024034: ae 10 20 1a mov 0x1a, %l7 <== NOT EXECUTED
disk_file_name = disk_name;
disk_file_name_size = disk_name_size;
}
/* Create mount point base */
mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
2024038: 7f ff 92 51 call 200897c <malloc> <== NOT EXECUTED
202403c: 90 05 60 05 add %l5, 5, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
2024040: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2024044: 02 80 00 38 be 2024124 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
2024048: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
202404c: 40 00 9d 12 call 204b494 <strncpy> <== NOT EXECUTED
2024050: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
mount_point [mount_base_size] = '/';
2024054: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2024058: 90 04 a0 01 add %l2, 1, %o0 <== NOT EXECUTED
202405c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
if (mount_point == NULL) {
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
mount_point [mount_base_size] = '/';
2024060: c2 2c 40 12 stb %g1, [ %l1 + %l2 ] <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2024064: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2024068: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
202406c: b0 04 00 13 add %l0, %l3, %i0 <== NOT EXECUTED
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2024070: aa 05 60 01 inc %l5 <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2024074: 29 00 81 91 sethi %hi(0x2064400), %l4 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
mount_point [mount_base_size] = '/';
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2024078: 40 00 9d 07 call 204b494 <strncpy> <== NOT EXECUTED
202407c: 27 00 81 91 sethi %hi(0x2064400), %l3 <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2024080: aa 04 40 15 add %l1, %l5, %l5 <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2024084: a8 15 22 58 or %l4, 0x258, %l4 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
2024088: a6 14 e2 60 or %l3, 0x260, %l3 <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
202408c: 10 80 00 22 b 2024114 <rtems_bdpart_mount+0x150> <== NOT EXECUTED
2024090: a4 10 20 00 clr %l2 <== NOT EXECUTED
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2024094: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2024098: a4 04 a0 01 inc %l2 <== NOT EXECUTED
202409c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20240a0: 40 00 98 70 call 204a260 <snprintf> <== NOT EXECUTED
20240a4: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
20240a8: 94 10 20 04 mov 4, %o2 <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
20240ac: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
20240b0: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create logical disk name */
int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
20240b4: 04 80 00 04 ble 20240c4 <rtems_bdpart_mount+0x100> <== NOT EXECUTED
20240b8: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
20240bc: 10 80 00 1a b 2024124 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
20240c0: ae 10 20 03 mov 3, %l7 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create mount point */
strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
20240c4: 40 00 9c f4 call 204b494 <strncpy> <== NOT EXECUTED
20240c8: 01 00 00 00 nop <== NOT EXECUTED
rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);
20240cc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20240d0: 7f ff 96 3a call 20099b8 <rtems_mkdir> <== NOT EXECUTED
20240d4: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
if (rv != 0) {
20240d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20240dc: 02 80 00 04 be 20240ec <rtems_bdpart_mount+0x128> <== NOT EXECUTED
20240e0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20240e4: 10 80 00 10 b 2024124 <rtems_bdpart_mount+0x160> <== NOT EXECUTED
20240e8: ae 10 20 1b mov 0x1b, %l7 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Mount */
rv = mount(
20240ec: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20240f0: 96 10 20 00 clr %o3 <== NOT EXECUTED
20240f4: 98 10 20 00 clr %o4 <== NOT EXECUTED
20240f8: 7f ff 93 08 call 2008d18 <mount> <== NOT EXECUTED
20240fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
mount_point,
"msdos",
0,
NULL
);
if (rv != 0) {
2024100: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024104: 02 80 00 05 be 2024118 <rtems_bdpart_mount+0x154> <== NOT EXECUTED
2024108: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED
rmdir( mount_point);
202410c: 40 00 19 59 call 202a670 <rmdir> <== NOT EXECUTED
2024110: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/* Markers */
logical_disk_marker = logical_disk_name + disk_name_size;
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
2024114: 80 a4 80 1a cmp %l2, %i2 <== NOT EXECUTED
2024118: 0a bf ff df bcs 2024094 <rtems_bdpart_mount+0xd0> <== NOT EXECUTED
202411c: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2024120: ae 10 20 00 clr %l7 <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
2024124: 7f ff 90 4f call 2008260 <free> <== NOT EXECUTED
2024128: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free( mount_point);
202412c: 7f ff 90 4d call 2008260 <free> <== NOT EXECUTED
2024130: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return esc;
}
2024134: 81 c7 e0 08 ret <== NOT EXECUTED
2024138: 91 e8 00 17 restore %g0, %l7, %o0 <== NOT EXECUTED
02024634 <rtems_bdpart_new_record>:
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2024634: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
2024638: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
static rtems_status_code rtems_bdpart_new_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
202463c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Synchronize previous block if necessary */
if (*block != NULL) {
2024640: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024644: 02 80 00 07 be 2024660 <rtems_bdpart_new_record+0x2c> <== NOT EXECUTED
2024648: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
sc = rtems_bdbuf_sync( *block);
202464c: 7f ff 83 75 call 2005420 <rtems_bdbuf_sync> <== NOT EXECUTED
2024650: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024654: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024658: 12 80 00 1b bne 20246c4 <rtems_bdpart_new_record+0x90> <== NOT EXECUTED
202465c: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
}
/* Read the new record block (this accounts for disk block sizes > 512) */
sc = rtems_bdbuf_read( disk, index, block);
2024660: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024664: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2024668: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
202466c: 7f ff 85 90 call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2024670: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024674: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024678: 12 80 00 13 bne 20246c4 <rtems_bdpart_new_record+0x90> <== NOT EXECUTED
202467c: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
2024680: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2024684: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024688: 32 80 00 04 bne,a 2024698 <rtems_bdpart_new_record+0x64> <== NOT EXECUTED
202468c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2024690: 81 c7 e0 08 ret <== NOT EXECUTED
2024694: 91 e8 20 09 restore %g0, 9, %o0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Clear record */
memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);
2024698: 92 10 20 00 clr %o1 <== NOT EXECUTED
202469c: 40 00 8c dd call 2047a10 <memset> <== NOT EXECUTED
20246a0: 94 10 22 00 mov 0x200, %o2 <== NOT EXECUTED
/* Write signature */
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =
20246a4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20246a8: 84 10 20 55 mov 0x55, %g2 <== NOT EXECUTED
20246ac: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20246b0: c4 28 61 fe stb %g2, [ %g1 + 0x1fe ] <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_0;
(*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =
20246b4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20246b8: 84 10 3f aa mov -86, %g2 <== NOT EXECUTED
20246bc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20246c0: c4 28 61 ff stb %g2, [ %g1 + 0x1ff ] <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
20246c4: 81 c7 e0 08 ret <== NOT EXECUTED
20246c8: 81 e8 00 00 restore <== NOT EXECUTED
02024398 <rtems_bdpart_read>:
const char *disk_name,
rtems_bdpart_format *format,
rtems_bdpart_partition *pt,
size_t *count
)
{
2024398: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
202439c: a2 10 20 00 clr %l1 <== NOT EXECUTED
20243a0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20243a4: 02 80 00 06 be 20243bc <rtems_bdpart_read+0x24> <== NOT EXECUTED
20243a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20243ac: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20243b0: a3 28 60 06 sll %g1, 6, %l1 <== NOT EXECUTED
20243b4: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
20243b8: a2 24 40 01 sub %l1, %g1, %l1 <== NOT EXECUTED
dev_t disk = 0;
size_t i = 0;
const uint8_t *data = NULL;
/* Check parameter */
if (format == NULL || pt == NULL || count == NULL) {
20243bc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20243c0: 02 80 00 9a be 2024628 <rtems_bdpart_read+0x290> <== NOT EXECUTED
20243c4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20243c8: 02 80 00 98 be 2024628 <rtems_bdpart_read+0x290> <== NOT EXECUTED
20243cc: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20243d0: 02 80 00 96 be 2024628 <rtems_bdpart_read+0x290> <== NOT EXECUTED
20243d4: 82 06 bf d0 add %i2, -48, %g1 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
}
/* Set count to a save value */
*count = 0;
20243d8: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
rtems_blkdev_bnum disk_end = 0;
dev_t disk = 0;
20243dc: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
20243e0: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
rtems_blkdev_bnum disk_end = 0;
20243e4: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */
20243e8: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
size_t *count
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
20243ec: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_bdpart_partition *p = pt - 1;
20243f0: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
/* Set count to a save value */
*count = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
20243f4: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
20243f8: 7f ff ff 77 call 20241d4 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
20243fc: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024400: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024404: 12 80 00 87 bne 2024620 <rtems_bdpart_read+0x288> <== NOT EXECUTED
2024408: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
return sc;
}
/* Read MBR */
sc = rtems_bdpart_read_record( disk, 0, &block);
202440c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2024410: 7f ff ff 4b call 202413c <rtems_bdpart_read_record> <== NOT EXECUTED
2024414: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024418: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
202441c: 12 80 00 7c bne 202460c <rtems_bdpart_read+0x274> <== NOT EXECUTED
2024420: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
2024424: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_bdbuf_buffer *block = NULL;
rtems_bdpart_partition *p = pt - 1;
const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
2024428: a2 06 80 11 add %i2, %l1, %l1 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
202442c: e8 00 60 24 ld [ %g1 + 0x24 ], %l4 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
2024430: a4 07 bf f8 add %fp, -8, %l2 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read the first partition entry */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
2024434: a0 05 21 be add %l4, 0x1be, %l0 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
2024438: a6 07 bf f4 add %fp, -12, %l3 <== NOT EXECUTED
202443c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024440: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2024444: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2024448: 7f ff ff 96 call 20242a0 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
202444c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024450: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
2024454: 12 80 00 6e bne 202460c <rtems_bdpart_read+0x274> <== NOT EXECUTED
2024458: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Determine if we have a MBR or GPT format */
if (rtems_bdpart_mbr_partition_type( p->type) == RTEMS_BDPART_MBR_GPT) {
202445c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2024460: c2 08 60 08 ldub [ %g1 + 8 ], %g1 <== NOT EXECUTED
2024464: 80 a0 60 ee cmp %g1, 0xee <== NOT EXECUTED
2024468: 02 80 00 69 be 202460c <rtems_bdpart_read+0x274> <== NOT EXECUTED
202446c: aa 10 20 18 mov 0x18, %l5 <== NOT EXECUTED
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
format->mbr.disk_id = rtems_uint32_from_little_endian(
2024470: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
esc = RTEMS_NOT_IMPLEMENTED;
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
2024474: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
format->mbr.disk_id = rtems_uint32_from_little_endian(
2024478: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_read(
202447c: a8 05 21 ee add %l4, 0x1ee, %l4 <== NOT EXECUTED
goto cleanup;
}
/* Set format */
format->type = RTEMS_BDPART_FORMAT_MBR;
format->mbr.disk_id = rtems_uint32_from_little_endian(
2024480: c4 08 61 b8 ldub [ %g1 + 0x1b8 ], %g2 <== NOT EXECUTED
2024484: 82 00 61 b8 add %g1, 0x1b8, %g1 <== NOT EXECUTED
2024488: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
202448c: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
2024490: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
2024494: 83 2b 60 08 sll %o5, 8, %g1 <== NOT EXECUTED
2024498: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED
202449c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20244a0: 82 00 40 03 add %g1, %g3, %g1 <== NOT EXECUTED
20244a4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20244a8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20244ac: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
20244b0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20244b4: c2 2e 60 08 stb %g1, [ %i1 + 8 ] <== NOT EXECUTED
/* Iterate through the rest of the primary partition table */
for (i = 1; i < 4; ++i) {
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
20244b8: a0 04 20 10 add %l0, 0x10, %l0 <== NOT EXECUTED
sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
20244bc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20244c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20244c4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20244c8: 7f ff ff 76 call 20242a0 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
20244cc: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20244d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20244d4: 12 80 00 15 bne 2024528 <rtems_bdpart_read+0x190> <== NOT EXECUTED
20244d8: 80 a4 00 14 cmp %l0, %l4 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
format->mbr.dos_compatibility = true;
/* Iterate through the rest of the primary partition table */
for (i = 1; i < 4; ++i) {
20244dc: 32 bf ff f8 bne,a 20244bc <rtems_bdpart_read+0x124> <== NOT EXECUTED
20244e0: a0 04 20 10 add %l0, 0x10, %l0 <== NOT EXECUTED
goto cleanup;
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
20244e4: f2 07 bf f4 ld [ %fp + -12 ], %i1 <== NOT EXECUTED
while (ebr != 0) {
20244e8: 10 80 00 35 b 20245bc <rtems_bdpart_read+0x224> <== NOT EXECUTED
20244ec: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
20244f0: 7f ff ff 13 call 202413c <rtems_bdpart_read_record> <== NOT EXECUTED
20244f4: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
20244f8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20244fc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
while (ebr != 0) {
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
if (sc != RTEMS_SUCCESSFUL) {
2024500: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024504: 12 80 00 09 bne 2024528 <rtems_bdpart_read+0x190> <== NOT EXECUTED
2024508: 96 10 20 00 clr %o3 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Read first partition entry */
sc = rtems_bdpart_read_mbr_partition(
202450c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2024510: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
2024514: 7f ff ff 63 call 20242a0 <rtems_bdpart_read_mbr_partition><== NOT EXECUTED
2024518: 90 02 21 be add %o0, 0x1be, %o0 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
&p,
p_end,
NULL
);
if (sc != RTEMS_SUCCESSFUL) {
202451c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024520: 02 80 00 04 be 2024530 <rtems_bdpart_read+0x198> <== NOT EXECUTED
2024524: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2024528: 10 80 00 38 b 2024608 <rtems_bdpart_read+0x270> <== NOT EXECUTED
202452c: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Adjust partition begin */
tmp = p->begin + ebr;
2024530: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED
2024534: 86 06 40 02 add %i1, %g2, %g3 <== NOT EXECUTED
if (tmp > p->begin) {
2024538: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
202453c: 08 80 00 33 bleu 2024608 <rtems_bdpart_read+0x270> <== NOT EXECUTED
2024540: aa 10 20 1b mov 0x1b, %l5 <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Adjust partition end */
tmp = p->end + ebr;
2024544: c4 00 60 04 ld [ %g1 + 4 ], %g2 <== NOT EXECUTED
2024548: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
if (tmp > p->end) {
202454c: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
2024550: 08 80 00 2e bleu 2024608 <rtems_bdpart_read+0x270> <== NOT EXECUTED
2024554: c6 20 40 00 st %g3, [ %g1 ] <== NOT EXECUTED
p->end = tmp;
2024558: f2 20 60 04 st %i1, [ %g1 + 4 ] <== NOT EXECUTED
esc = RTEMS_IO_ERROR;
goto cleanup;
}
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
202455c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2024560: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
}
static rtems_blkdev_bnum rtems_bdpart_next_ebr( const uint8_t *data)
{
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
2024564: 84 00 61 d6 add %g1, 0x1d6, %g2 <== NOT EXECUTED
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EXTENDED) {
2024568: c8 08 61 d2 ldub [ %g1 + 0x1d2 ], %g4 <== NOT EXECUTED
202456c: c6 08 a0 01 ldub [ %g2 + 1 ], %g3 <== NOT EXECUTED
2024570: f2 08 a0 03 ldub [ %g2 + 3 ], %i1 <== NOT EXECUTED
2024574: c2 08 61 d6 ldub [ %g1 + 0x1d6 ], %g1 <== NOT EXECUTED
2024578: c4 08 a0 02 ldub [ %g2 + 2 ], %g2 <== NOT EXECUTED
202457c: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
2024580: 80 a1 20 05 cmp %g4, 5 <== NOT EXECUTED
2024584: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
2024588: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
202458c: b2 06 40 03 add %i1, %g3, %i1 <== NOT EXECUTED
2024590: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
2024594: 12 80 00 0e bne 20245cc <rtems_bdpart_read+0x234> <== NOT EXECUTED
2024598: b2 06 40 01 add %i1, %g1, %i1 <== NOT EXECUTED
/* Read second partition entry for next EBR block */
ebr = rtems_bdpart_next_ebr(
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1
);
if (ebr != 0) {
202459c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20245a0: 02 80 00 0c be 20245d0 <rtems_bdpart_read+0x238> <== NOT EXECUTED
20245a4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
/* Adjust partition EBR block index */
tmp = ebr + ep_begin;
20245a8: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
20245ac: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
if (tmp > ebr) {
20245b0: 80 a0 40 19 cmp %g1, %i1 <== NOT EXECUTED
20245b4: 08 80 00 15 bleu 2024608 <rtems_bdpart_read+0x270> <== NOT EXECUTED
20245b8: b2 10 00 01 mov %g1, %i1 <== NOT EXECUTED
ebr = ep_begin;
while (ebr != 0) {
rtems_blkdev_bnum tmp = 0;
/* Read EBR */
sc = rtems_bdpart_read_record( disk, ebr, &block);
20245bc: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
}
}
/* Iterate through the logical partitions within the extended partition */
ebr = ep_begin;
while (ebr != 0) {
20245c0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20245c4: 12 bf ff cb bne 20244f0 <rtems_bdpart_read+0x158> <== NOT EXECUTED
20245c8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
}
}
}
/* Return partition count */
*count = (size_t) (p - pt + 1);
20245cc: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
20245d0: aa 10 20 00 clr %l5 <== NOT EXECUTED
20245d4: b4 20 40 1a sub %g1, %i2, %i2 <== NOT EXECUTED
20245d8: b5 3e a0 04 sra %i2, 4, %i2 <== NOT EXECUTED
20245dc: 83 2e a0 02 sll %i2, 2, %g1 <== NOT EXECUTED
20245e0: 82 00 40 1a add %g1, %i2, %g1 <== NOT EXECUTED
20245e4: 85 28 60 04 sll %g1, 4, %g2 <== NOT EXECUTED
20245e8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20245ec: 85 28 60 08 sll %g1, 8, %g2 <== NOT EXECUTED
20245f0: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20245f4: 85 28 60 10 sll %g1, 0x10, %g2 <== NOT EXECUTED
20245f8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20245fc: 82 20 00 01 neg %g1 <== NOT EXECUTED
2024600: 82 00 60 01 inc %g1 <== NOT EXECUTED
2024604: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
cleanup:
if (block != NULL) {
2024608: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
202460c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024610: 02 80 00 04 be 2024620 <rtems_bdpart_read+0x288> <== NOT EXECUTED
2024614: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED
rtems_bdbuf_release( block);
2024618: 7f ff 81 0d call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
202461c: 01 00 00 00 nop <== NOT EXECUTED
2024620: 81 c7 e0 08 ret <== NOT EXECUTED
2024624: 81 e8 00 00 restore <== NOT EXECUTED
2024628: b0 10 20 09 mov 9, %i0 <== NOT EXECUTED
}
return esc;
}
202462c: 81 c7 e0 08 ret <== NOT EXECUTED
2024630: 81 e8 00 00 restore <== NOT EXECUTED
020242a0 <rtems_bdpart_read_mbr_partition>:
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
20242a0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
20242a4: 84 06 20 08 add %i0, 8, %g2 <== NOT EXECUTED
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
20242a8: 82 06 20 0c add %i0, 0xc, %g1 <== NOT EXECUTED
{
uint32_t value = 0;
ssize_t i = 0;
for (i = 3; i >= 0; --i) {
value = (value << 8) + data [i];
20242ac: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
20242b0: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
20242b4: e2 08 a0 03 ldub [ %g2 + 3 ], %l1 <== NOT EXECUTED
20242b8: d8 08 a0 02 ldub [ %g2 + 2 ], %o4 <== NOT EXECUTED
20242bc: e6 08 60 03 ldub [ %g1 + 3 ], %l3 <== NOT EXECUTED
20242c0: da 08 60 02 ldub [ %g1 + 2 ], %o5 <== NOT EXECUTED
20242c4: c4 0e 20 08 ldub [ %i0 + 8 ], %g2 <== NOT EXECUTED
20242c8: c2 0e 20 0c ldub [ %i0 + 0xc ], %g1 <== NOT EXECUTED
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EMPTY) {
20242cc: e4 0e 20 04 ldub [ %i0 + 4 ], %l2 <== NOT EXECUTED
20242d0: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
20242d4: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
20242d8: a2 04 40 0c add %l1, %o4, %l1 <== NOT EXECUTED
20242dc: a6 04 c0 0d add %l3, %o5, %l3 <== NOT EXECUTED
20242e0: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
20242e4: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
20242e8: a2 04 40 04 add %l1, %g4, %l1 <== NOT EXECUTED
20242ec: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
20242f0: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
20242f4: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
const uint8_t *data,
rtems_bdpart_partition **p,
const rtems_bdpart_partition *p_end,
rtems_blkdev_bnum *ep_begin
)
{
20242f8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
20242fc: a2 04 40 02 add %l1, %g2, %l1 <== NOT EXECUTED
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
rtems_blkdev_bnum end = begin + size;
uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];
if (type == RTEMS_BDPART_MBR_EMPTY) {
2024300: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2024304: 02 80 00 22 be 202438c <rtems_bdpart_read_mbr_partition+0xec><== NOT EXECUTED
2024308: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
202430c: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
2024310: 80 a2 00 1a cmp %o0, %i2 <== NOT EXECUTED
2024314: 02 80 00 1f be 2024390 <rtems_bdpart_read_mbr_partition+0xf0><== NOT EXECUTED
2024318: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
{
rtems_blkdev_bnum begin =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_blkdev_bnum size =
rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
rtems_blkdev_bnum end = begin + size;
202431c: a6 04 c0 11 add %l3, %l1, %l3 <== NOT EXECUTED
if (type == RTEMS_BDPART_MBR_EMPTY) {
return RTEMS_SUCCESSFUL;
} else if (*p == p_end) {
return RTEMS_TOO_MANY;
} else if (begin >= end) {
2024320: 80 a4 40 13 cmp %l1, %l3 <== NOT EXECUTED
2024324: 1a 80 00 1b bcc 2024390 <rtems_bdpart_read_mbr_partition+0xf0><== NOT EXECUTED
2024328: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
} else if (type == RTEMS_BDPART_MBR_EXTENDED) {
202432c: 80 a4 a0 05 cmp %l2, 5 <== NOT EXECUTED
2024330: 32 80 00 07 bne,a 202434c <rtems_bdpart_read_mbr_partition+0xac><== NOT EXECUTED
2024334: 90 02 20 30 add %o0, 0x30, %o0 <== NOT EXECUTED
if (ep_begin != NULL) {
2024338: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
202433c: 22 80 00 15 be,a 2024390 <rtems_bdpart_read_mbr_partition+0xf0><== NOT EXECUTED
2024340: b0 10 20 00 clr %i0 <== NOT EXECUTED
*ep_begin = begin;
2024344: 10 80 00 10 b 2024384 <rtems_bdpart_read_mbr_partition+0xe4><== NOT EXECUTED
2024348: e2 26 c0 00 st %l1, [ %i3 ] <== NOT EXECUTED
} else {
/* Increment partition index */
++(*p);
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
202434c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2024350: 94 10 20 30 mov 0x30, %o2 <== NOT EXECUTED
2024354: 40 00 8d af call 2047a10 <memset> <== NOT EXECUTED
2024358: d0 26 40 00 st %o0, [ %i1 ] <== NOT EXECUTED
/* Set values */
(*p)->begin = begin;
202435c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
(*p)->end = end;
rtems_bdpart_to_partition_type( type, (*p)->type);
2024360: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
/* Clear partition */
memset( *p, 0, sizeof( rtems_bdpart_partition));
/* Set values */
(*p)->begin = begin;
2024364: e2 22 40 00 st %l1, [ %o1 ] <== NOT EXECUTED
(*p)->end = end;
2024368: e6 22 60 04 st %l3, [ %o1 + 4 ] <== NOT EXECUTED
rtems_bdpart_to_partition_type( type, (*p)->type);
202436c: 7f ff ff c4 call 202427c <rtems_bdpart_to_partition_type> <== NOT EXECUTED
2024370: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
(*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];
2024374: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
2024378: c4 0c 00 00 ldub [ %l0 ], %g2 <== NOT EXECUTED
202437c: c0 20 60 28 clr [ %g1 + 0x28 ] <== NOT EXECUTED
2024380: c4 20 60 2c st %g2, [ %g1 + 0x2c ] <== NOT EXECUTED
2024384: 81 c7 e0 08 ret <== NOT EXECUTED
2024388: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
202438c: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
}
2024390: 81 c7 e0 08 ret <== NOT EXECUTED
2024394: 81 e8 00 00 restore <== NOT EXECUTED
0202413c <rtems_bdpart_read_record>:
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
202413c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
2024140: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
static rtems_status_code rtems_bdpart_read_record(
dev_t disk,
rtems_blkdev_bnum index,
rtems_bdbuf_buffer **block
)
{
2024144: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
/* Release previous block if necessary */
if (*block != NULL) {
2024148: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202414c: 02 80 00 07 be 2024168 <rtems_bdpart_read_record+0x2c> <== NOT EXECUTED
2024150: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
sc = rtems_bdbuf_release( *block);
2024154: 7f ff 82 3e call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2024158: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202415c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024160: 12 80 00 1b bne 20241cc <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
2024164: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
}
/* Read the record block */
sc = rtems_bdbuf_read( disk, index, block);
2024168: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202416c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2024170: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2024174: 7f ff 86 ce call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2024178: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
202417c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024180: 12 80 00 13 bne 20241cc <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
2024184: 01 00 00 00 nop <== NOT EXECUTED
return sc;
}
/* just in case block did not get filled in */
if ( *block == NULL ) {
2024188: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
202418c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2024190: 32 80 00 04 bne,a 20241a0 <rtems_bdpart_read_record+0x64><== NOT EXECUTED
2024194: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2024198: 10 80 00 0d b 20241cc <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
202419c: 90 10 20 09 mov 9, %o0 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
static bool rtems_bdpart_is_valid_record( const uint8_t *data)
{
return data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0]
20241a0: c6 08 a1 fe ldub [ %g2 + 0x1fe ], %g3 <== NOT EXECUTED
20241a4: 80 a0 e0 55 cmp %g3, 0x55 <== NOT EXECUTED
20241a8: 12 80 00 06 bne 20241c0 <rtems_bdpart_read_record+0x84> <== NOT EXECUTED
20241ac: 82 10 20 00 clr %g1 <== NOT EXECUTED
20241b0: c2 08 a1 ff ldub [ %g2 + 0x1ff ], %g1 <== NOT EXECUTED
20241b4: 82 18 60 aa xor %g1, 0xaa, %g1 <== NOT EXECUTED
20241b8: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
20241bc: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
if ( *block == NULL ) {
return RTEMS_INVALID_ADDRESS;
}
/* Check MBR signature */
if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
20241c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20241c4: 22 80 00 02 be,a 20241cc <rtems_bdpart_read_record+0x90> <== NOT EXECUTED
20241c8: 90 10 20 1b mov 0x1b, %o0 <== NOT EXECUTED
return RTEMS_IO_ERROR;
}
return RTEMS_SUCCESSFUL;
}
20241cc: 81 c7 e0 08 ret <== NOT EXECUTED
20241d0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02005fe0 <rtems_bdpart_register>:
rtems_status_code rtems_bdpart_register(
const char *disk_name,
const rtems_bdpart_partition *pt,
size_t count
)
{
2005fe0: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
dev_t disk = 0;
dev_t logical_disk = 0;
char *logical_disk_name = NULL;
char *logical_disk_marker = NULL;
size_t disk_name_size = strlen( disk_name);
2005fe4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_blkdev_bnum disk_end = 0;
2005fe8: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
dev_t disk = 0;
2005fec: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
dev_t logical_disk = 0;
char *logical_disk_name = NULL;
char *logical_disk_marker = NULL;
size_t disk_name_size = strlen( disk_name);
2005ff0: 40 01 14 65 call 204b184 <strlen> <== NOT EXECUTED
2005ff4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
rtems_status_code rtems_bdpart_register(
const char *disk_name,
const rtems_bdpart_partition *pt,
size_t count
)
{
2005ff8: a6 10 00 18 mov %i0, %l3 <== NOT EXECUTED
rtems_blkdev_bnum disk_end = 0;
dev_t disk = 0;
dev_t logical_disk = 0;
char *logical_disk_name = NULL;
char *logical_disk_marker = NULL;
size_t disk_name_size = strlen( disk_name);
2005ffc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
size_t i = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
2006000: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2006004: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2006008: 40 00 78 73 call 20241d4 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
200600c: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2006010: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2006014: 12 80 00 30 bne 20060d4 <rtems_bdpart_register+0xf4> <== NOT EXECUTED
2006018: ea 07 bf f0 ld [ %fp + -16 ], %l5 <== NOT EXECUTED
return sc;
}
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
200601c: e4 07 bf f4 ld [ %fp + -12 ], %l2 <== NOT EXECUTED
/* Create logical disk name */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
2006020: 90 04 60 04 add %l1, 4, %o0 <== NOT EXECUTED
2006024: 40 00 0a 56 call 200897c <malloc> <== NOT EXECUTED
2006028: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED
if (logical_disk_name == NULL) {
200602c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2006030: 02 80 00 29 be 20060d4 <rtems_bdpart_register+0xf4> <== NOT EXECUTED
2006034: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
2006038: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
logical_disk_marker = logical_disk_name + disk_name_size;
200603c: a8 04 00 11 add %l0, %l1, %l4 <== NOT EXECUTED
/* Create logical disk name */
logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
if (logical_disk_name == NULL) {
return RTEMS_NO_MEMORY;
}
strncpy( logical_disk_name, disk_name, disk_name_size);
2006040: 40 01 15 15 call 204b494 <strncpy> <== NOT EXECUTED
2006044: 27 00 81 7e sethi %hi(0x205f800), %l3 <== NOT EXECUTED
logical_disk_marker = logical_disk_name + disk_name_size;
2006048: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
200604c: 10 80 00 1c b 20060bc <rtems_bdpart_register+0xdc> <== NOT EXECUTED
2006050: a6 14 e1 50 or %l3, 0x150, %l3 <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
int rv = 0;
/* New minor number */
++minor;
2006054: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2006058: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED
return temp.device;
200605c: ec 1f bf e8 ldd [ %fp + -24 ], %l6 <== NOT EXECUTED
/* Create a new device identifier */
logical_disk = rtems_filesystem_make_dev_t( major, minor);
/* Set partition number for logical disk name */
rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2006060: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2006064: a2 04 60 01 inc %l1 <== NOT EXECUTED
2006068: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
200606c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2006070: 40 01 10 7c call 204a260 <snprintf> <== NOT EXECUTED
2006074: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create logical disk */
sc = rtems_disk_create_log(
2006078: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
/* Create a new device identifier */
logical_disk = rtems_filesystem_make_dev_t( major, minor);
/* Set partition number for logical disk name */
rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
200607c: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2006080: 04 80 00 04 ble 2006090 <rtems_bdpart_register+0xb0> <== NOT EXECUTED
2006084: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2006088: 10 80 00 11 b 20060cc <rtems_bdpart_register+0xec> <== NOT EXECUTED
200608c: b0 10 20 03 mov 3, %i0 <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Create logical disk */
sc = rtems_disk_create_log(
2006090: d8 1e 40 00 ldd [ %i1 ], %o4 <== NOT EXECUTED
2006094: d4 1f bf f0 ldd [ %fp + -16 ], %o2 <== NOT EXECUTED
2006098: e0 23 a0 5c st %l0, [ %sp + 0x5c ] <== NOT EXECUTED
200609c: 9a 23 40 0c sub %o5, %o4, %o5 <== NOT EXECUTED
20060a0: 40 00 04 3b call 200718c <rtems_disk_create_log> <== NOT EXECUTED
20060a4: b2 06 60 30 add %i1, 0x30, %i1 <== NOT EXECUTED
disk,
p->begin,
p->end - p->begin,
logical_disk_name
);
if (sc != RTEMS_SUCCESSFUL) {
20060a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20060ac: 02 80 00 05 be 20060c0 <rtems_bdpart_register+0xe0> <== NOT EXECUTED
20060b0: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
20060b4: 10 80 00 06 b 20060cc <rtems_bdpart_register+0xec> <== NOT EXECUTED
20060b8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
strncpy( logical_disk_name, disk_name, disk_name_size);
logical_disk_marker = logical_disk_name + disk_name_size;
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
20060bc: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
20060c0: 2a bf ff e5 bcs,a 2006054 <rtems_bdpart_register+0x74> <== NOT EXECUTED
20060c4: ea 27 bf e8 st %l5, [ %fp + -24 ] <== NOT EXECUTED
20060c8: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
cleanup:
free( logical_disk_name);
20060cc: 40 00 08 65 call 2008260 <free> <== NOT EXECUTED
20060d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return esc;
}
20060d4: 81 c7 e0 08 ret <== NOT EXECUTED
20060d8: 81 e8 00 00 restore <== NOT EXECUTED
020060dc <rtems_bdpart_register_from_disk>:
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{
20060dc: 9d e3 bc 88 save %sp, -888, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_bdpart_format format;
rtems_bdpart_partition pt [RTEMS_BDPART_PARTITION_NUMBER_HINT];
size_t count = RTEMS_BDPART_PARTITION_NUMBER_HINT;
20060e0: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED
/* Read partitions */
sc = rtems_bdpart_read( disk_name, &format, pt, &count);
20060e4: a0 07 bc e8 add %fp, -792, %l0 <== NOT EXECUTED
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_bdpart_format format;
rtems_bdpart_partition pt [RTEMS_BDPART_PARTITION_NUMBER_HINT];
size_t count = RTEMS_BDPART_PARTITION_NUMBER_HINT;
20060e8: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
/* Read partitions */
sc = rtems_bdpart_read( disk_name, &format, pt, &count);
20060ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20060f0: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
20060f4: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
20060f8: 40 00 78 a8 call 2024398 <rtems_bdpart_read> <== NOT EXECUTED
20060fc: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2006100: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2006104: 12 80 00 05 bne 2006118 <rtems_bdpart_register_from_disk+0x3c><== NOT EXECUTED
2006108: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return sc;
}
/* Register partitions */
return rtems_bdpart_register( disk_name, pt, count);
200610c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2006110: 7f ff ff b4 call 2005fe0 <rtems_bdpart_register> <== NOT EXECUTED
2006114: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
2006118: 81 c7 e0 08 ret <== NOT EXECUTED
200611c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0202424c <rtems_bdpart_to_mbr_partition_type>:
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
202424c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
*mbr_type = rtems_bdpart_mbr_partition_type( type);
2024250: c2 0e 00 00 ldub [ %i0 ], %g1 <== NOT EXECUTED
return memcmp(
2024254: 90 06 20 01 add %i0, 1, %o0 <== NOT EXECUTED
bool rtems_bdpart_to_mbr_partition_type(
const uuid_t type,
uint8_t *mbr_type
)
{
*mbr_type = rtems_bdpart_mbr_partition_type( type);
2024258: c2 2e 40 00 stb %g1, [ %i1 ] <== NOT EXECUTED
return memcmp(
202425c: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED
2024260: 13 00 81 91 sethi %hi(0x2064400), %o1 <== NOT EXECUTED
2024264: 40 00 8d 27 call 2047700 <memcmp> <== NOT EXECUTED
2024268: 92 12 62 69 or %o1, 0x269, %o1 ! 2064669 <RTEMS_BDPART_MBR_MASTER_TYPE+0x1><== NOT EXECUTED
202426c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2024270: b0 60 3f ff subx %g0, -1, %i0 <== NOT EXECUTED
type + 1,
RTEMS_BDPART_MBR_MASTER_TYPE + 1,
sizeof( uuid_t) - 1
) == 0;
}
2024274: 81 c7 e0 08 ret <== NOT EXECUTED
2024278: 81 e8 00 00 restore <== NOT EXECUTED
0202427c <rtems_bdpart_to_partition_type>:
static const uuid_t RTEMS_BDPART_MBR_MASTER_TYPE =
RTEMS_BDPART_MBR_PARTITION_TYPE( RTEMS_BDPART_MBR_EMPTY);
void rtems_bdpart_to_partition_type( uint8_t mbr_type, uuid_t type)
{
type [0] = mbr_type;
202427c: d0 2a 40 00 stb %o0, [ %o1 ] <== NOT EXECUTED
memcpy( type + 1, RTEMS_BDPART_MBR_MASTER_TYPE + 1, sizeof( uuid_t) - 1);
2024280: 94 10 20 0f mov 0xf, %o2 <== NOT EXECUTED
2024284: 90 02 60 01 add %o1, 1, %o0 <== NOT EXECUTED
2024288: 13 00 81 91 sethi %hi(0x2064400), %o1 <== NOT EXECUTED
202428c: 92 12 62 69 or %o1, 0x269, %o1 ! 2064669 <RTEMS_BDPART_MBR_MASTER_TYPE+0x1><== NOT EXECUTED
2024290: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2024294: 40 00 8d 4c call 20477c4 <memcpy> <== NOT EXECUTED
2024298: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02023eac <rtems_bdpart_unmount>:
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count,
const char *mount_base
)
{
2023eac: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
const char *disk_file_name = strrchr( disk_name, '/');
2023eb0: 92 10 20 2f mov 0x2f, %o1 <== NOT EXECUTED
2023eb4: 40 00 a0 52 call 204bffc <strrchr> <== NOT EXECUTED
2023eb8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023ebc: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
char *mount_point = NULL;
char *mount_marker = NULL;
size_t disk_file_name_size = 0;
size_t disk_name_size = strlen( disk_name);
2023ec0: 40 00 9c b1 call 204b184 <strlen> <== NOT EXECUTED
2023ec4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023ec8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
size_t mount_base_size = strlen( mount_base);
2023ecc: 40 00 9c ae call 204b184 <strlen> <== NOT EXECUTED
2023ed0: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
size_t i = 0;
/* Get disk file name */
if (disk_file_name != NULL) {
2023ed4: a8 10 00 18 mov %i0, %l4 <== NOT EXECUTED
2023ed8: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2023edc: 02 80 00 06 be 2023ef4 <rtems_bdpart_unmount+0x48> <== NOT EXECUTED
2023ee0: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
disk_file_name += 1;
2023ee4: a8 04 20 01 add %l0, 1, %l4 <== NOT EXECUTED
disk_file_name_size = strlen( disk_file_name);
2023ee8: 40 00 9c a7 call 204b184 <strlen> <== NOT EXECUTED
2023eec: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2023ef0: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
disk_file_name = disk_name;
disk_file_name_size = disk_name_size;
}
/* Create mount point base */
mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
2023ef4: a4 04 c0 11 add %l3, %l1, %l2 <== NOT EXECUTED
if (mount_point == NULL) {
2023ef8: b0 10 20 1a mov 0x1a, %i0 <== NOT EXECUTED
disk_file_name = disk_name;
disk_file_name_size = disk_name_size;
}
/* Create mount point base */
mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
2023efc: 7f ff 92 a0 call 200897c <malloc> <== NOT EXECUTED
2023f00: 90 04 a0 05 add %l2, 5, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
2023f04: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2023f08: 02 80 00 2b be 2023fb4 <rtems_bdpart_unmount+0x108> <== NOT EXECUTED
2023f0c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
2023f10: 40 00 9d 61 call 204b494 <strncpy> <== NOT EXECUTED
2023f14: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
mount_point [mount_base_size] = '/';
2023f18: 82 10 20 2f mov 0x2f, %g1 <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023f1c: 90 04 60 01 add %l1, 1, %o0 <== NOT EXECUTED
if (mount_point == NULL) {
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
mount_point [mount_base_size] = '/';
2023f20: c2 2c 00 11 stb %g1, [ %l0 + %l1 ] <== NOT EXECUTED
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023f24: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2023f28: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2023f2c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2023f30: a4 04 a0 01 inc %l2 <== NOT EXECUTED
esc = RTEMS_NO_MEMORY;
goto cleanup;
}
strncpy( mount_point, mount_base, mount_base_size);
mount_point [mount_base_size] = '/';
strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
2023f34: 40 00 9d 58 call 204b494 <strncpy> <== NOT EXECUTED
2023f38: 31 00 81 91 sethi %hi(0x2064400), %i0 <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
2023f3c: a4 04 00 12 add %l0, %l2, %l2 <== NOT EXECUTED
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2023f40: b0 16 22 58 or %i0, 0x258, %i0 <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
2023f44: 10 80 00 18 b 2023fa4 <rtems_bdpart_unmount+0xf8> <== NOT EXECUTED
2023f48: a2 10 20 00 clr %l1 <== NOT EXECUTED
/* Create mount point */
int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
2023f4c: 92 10 20 04 mov 4, %o1 <== NOT EXECUTED
2023f50: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2023f54: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2023f58: 40 00 98 c2 call 204a260 <snprintf> <== NOT EXECUTED
2023f5c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (rv >= RTEMS_BDPART_NUMBER_SIZE) {
2023f60: 80 a2 20 03 cmp %o0, 3 <== NOT EXECUTED
2023f64: 04 80 00 04 ble 2023f74 <rtems_bdpart_unmount+0xc8> <== NOT EXECUTED
2023f68: 01 00 00 00 nop <== NOT EXECUTED
2023f6c: 10 80 00 12 b 2023fb4 <rtems_bdpart_unmount+0x108> <== NOT EXECUTED
2023f70: b0 10 20 03 mov 3, %i0 ! 3 <PROM_START+0x3> <== NOT EXECUTED
esc = RTEMS_INVALID_NAME;
goto cleanup;
}
/* Unmount */
rv = unmount( mount_point);
2023f74: 40 00 1b 60 call 202acf4 <unmount> <== NOT EXECUTED
2023f78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rv == 0) {
2023f7c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023f80: 12 80 00 0a bne 2023fa8 <rtems_bdpart_unmount+0xfc> <== NOT EXECUTED
2023f84: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
/* Remove mount point */
rv = rmdir( mount_point);
2023f88: 40 00 19 ba call 202a670 <rmdir> <== NOT EXECUTED
2023f8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rv != 0) {
2023f90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023f94: 02 80 00 05 be 2023fa8 <rtems_bdpart_unmount+0xfc> <== NOT EXECUTED
2023f98: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
2023f9c: 10 80 00 06 b 2023fb4 <rtems_bdpart_unmount+0x108> <== NOT EXECUTED
2023fa0: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
/* Marker */
mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
/* Mount supported file systems for each partition */
for (i = 0; i < count; ++i) {
2023fa4: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
2023fa8: 2a bf ff e9 bcs,a 2023f4c <rtems_bdpart_unmount+0xa0> <== NOT EXECUTED
2023fac: a2 04 60 01 inc %l1 <== NOT EXECUTED
2023fb0: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
}
cleanup:
free( mount_point);
2023fb4: 7f ff 90 ab call 2008260 <free> <== NOT EXECUTED
2023fb8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return esc;
}
2023fbc: 81 c7 e0 08 ret <== NOT EXECUTED
2023fc0: 81 e8 00 00 restore <== NOT EXECUTED
02005f6c <rtems_bdpart_unregister>:
rtems_status_code rtems_bdpart_unregister(
const char *disk_name,
const rtems_bdpart_partition *pt __attribute__((unused)),
size_t count
)
{
2005f6c: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
rtems_blkdev_bnum disk_end = 0;
2005f70: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
dev_t disk = 0;
2005f74: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
2005f78: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
dev_t logical_disk = 0;
size_t i = 0;
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
2005f7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2005f80: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
2005f84: 40 00 78 94 call 20241d4 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
2005f88: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2005f8c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2005f90: 12 80 00 12 bne 2005fd8 <rtems_bdpart_unregister+0x6c> <== NOT EXECUTED
2005f94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return sc;
}
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
2005f98: e6 07 bf f0 ld [ %fp + -16 ], %l3 <== NOT EXECUTED
2005f9c: e4 07 bf f4 ld [ %fp + -12 ], %l2 <== NOT EXECUTED
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
2005fa0: 10 80 00 0a b 2005fc8 <rtems_bdpart_unregister+0x5c> <== NOT EXECUTED
2005fa4: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2005fa8: e6 27 bf e8 st %l3, [ %fp + -24 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2005fac: e4 27 bf ec st %l2, [ %fp + -20 ] <== NOT EXECUTED
/* Get the device identifier */
logical_disk = rtems_filesystem_make_dev_t( major, minor);
/* Delete logical disk */
sc = rtems_disk_delete( logical_disk);
2005fb0: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
2005fb4: 40 00 03 66 call 2006d4c <rtems_disk_delete> <== NOT EXECUTED
2005fb8: a2 04 60 01 inc %l1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2005fbc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005fc0: 12 80 00 06 bne 2005fd8 <rtems_bdpart_unregister+0x6c> <== NOT EXECUTED
2005fc4: 01 00 00 00 nop <== NOT EXECUTED
/* Get the disk device identifier */
rtems_filesystem_split_dev_t( disk, major, minor);
/* Create a logical disk for each partition */
for (i = 0; i < count; ++i) {
2005fc8: 80 a4 40 1a cmp %l1, %i2 <== NOT EXECUTED
2005fcc: 0a bf ff f7 bcs 2005fa8 <rtems_bdpart_unregister+0x3c> <== NOT EXECUTED
2005fd0: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2005fd4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return sc;
}
}
return RTEMS_SUCCESSFUL;
}
2005fd8: 81 c7 e0 08 ret <== NOT EXECUTED
2005fdc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020246cc <rtems_bdpart_write>:
const char *disk_name,
const rtems_bdpart_format *format,
const rtems_bdpart_partition *pt,
size_t count
)
{
20246cc: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
20246d0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20246d4: 02 80 00 08 be 20246f4 <rtems_bdpart_write+0x28> <== NOT EXECUTED
20246d8: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
20246dc: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
20246e0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20246e4: 32 80 00 05 bne,a 20246f8 <rtems_bdpart_write+0x2c> <== NOT EXECUTED
20246e8: a6 10 20 00 clr %l3 <== NOT EXECUTED
20246ec: 10 80 00 03 b 20246f8 <rtems_bdpart_write+0x2c> <== NOT EXECUTED
20246f0: e6 0e 60 08 ldub [ %i1 + 8 ], %l3 <== NOT EXECUTED
20246f4: a6 10 20 00 clr %l3 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
20246f8: a0 0c e0 ff and %l3, 0xff, %l0 <== NOT EXECUTED
20246fc: 80 a0 00 10 cmp %g0, %l0 <== NOT EXECUTED
size_t ppc = 0; /* Primary partition count */
size_t i = 0;
uint8_t *data = NULL;
/* Check if we have something to do */
if (count == 0) {
2024700: b0 10 20 00 clr %i0 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
2024704: a2 60 20 00 subx %g0, 0, %l1 <== NOT EXECUTED
size_t ppc = 0; /* Primary partition count */
size_t i = 0;
uint8_t *data = NULL;
/* Check if we have something to do */
if (count == 0) {
2024708: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
202470c: a2 0c 60 3e and %l1, 0x3e, %l1 <== NOT EXECUTED
size_t ppc = 0; /* Primary partition count */
size_t i = 0;
uint8_t *data = NULL;
/* Check if we have something to do */
if (count == 0) {
2024710: 02 80 01 11 be 2024b54 <rtems_bdpart_write+0x488> <== NOT EXECUTED
2024714: a2 04 60 01 inc %l1 <== NOT EXECUTED
/* Nothing to do */
return RTEMS_SUCCESSFUL;
}
/* Check parameter */
if (format == NULL || pt == NULL) {
2024718: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
202471c: 02 80 00 04 be 202472c <rtems_bdpart_write+0x60> <== NOT EXECUTED
2024720: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2024724: 32 80 00 04 bne,a 2024734 <rtems_bdpart_write+0x68> <== NOT EXECUTED
2024728: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
202472c: 81 c7 e0 08 ret <== NOT EXECUTED
2024730: 91 e8 20 09 restore %g0, 9, %o0 <== NOT EXECUTED
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
rtems_blkdev_bnum record_space =
dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;
dev_t disk = 0;
2024734: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
rtems_blkdev_bnum disk_end = 0;
2024738: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_status_code esc = RTEMS_SUCCESSFUL;
bool dos_compatibility = format != NULL
&& format->type == RTEMS_BDPART_FORMAT_MBR
&& format->mbr.dos_compatibility;
rtems_bdbuf_buffer *block = NULL;
202473c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
if (format == NULL || pt == NULL) {
return RTEMS_INVALID_ADDRESS;
}
/* Get disk data */
sc = rtems_bdpart_get_disk_data( disk_name, &disk, &disk_end);
2024740: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
2024744: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2024748: 7f ff fe a3 call 20241d4 <rtems_bdpart_get_disk_data> <== NOT EXECUTED
202474c: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024750: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2024754: 12 80 01 00 bne 2024b54 <rtems_bdpart_write+0x488> <== NOT EXECUTED
2024758: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
return sc;
}
/* Align end of disk on cylinder boundary if necessary */
if (dos_compatibility) {
202475c: 22 80 00 09 be,a 2024780 <rtems_bdpart_write+0xb4> <== NOT EXECUTED
2024760: c8 07 bf f4 ld [ %fp + -12 ], %g4 <== NOT EXECUTED
disk_end -= (disk_end % record_space);
2024764: e0 07 bf f4 ld [ %fp + -12 ], %l0 <== NOT EXECUTED
2024768: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202476c: 40 00 e0 b7 call 205ca48 <.urem> <== NOT EXECUTED
2024770: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2024774: 90 24 00 08 sub %l0, %o0, %o0 <== NOT EXECUTED
2024778: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
/* Check that we have a consistent partition table */
for (i = 0; i < count; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Check that begin and end are proper within the disk */
if (p->begin >= disk_end || p->end > disk_end) {
202477c: c8 07 bf f4 ld [ %fp + -12 ], %g4 <== NOT EXECUTED
2024780: a4 10 00 1a mov %i2, %l2 <== NOT EXECUTED
2024784: 82 10 00 1a mov %i2, %g1 <== NOT EXECUTED
2024788: 10 80 00 12 b 20247d0 <rtems_bdpart_write+0x104> <== NOT EXECUTED
202478c: 84 10 20 00 clr %g2 <== NOT EXECUTED
2024790: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
2024794: 1a 80 00 ea bcc 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024798: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
202479c: da 00 60 04 ld [ %g1 + 4 ], %o5 <== NOT EXECUTED
20247a0: 80 a3 40 04 cmp %o5, %g4 <== NOT EXECUTED
20247a4: 18 80 00 e6 bgu 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
20247a8: 80 a0 c0 0d cmp %g3, %o5 <== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that begin and end are valid */
if (p->begin >= p->end) {
20247ac: 1a 80 00 e4 bcc 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
20247b0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
esc = RTEMS_INVALID_NUMBER;
goto cleanup;
}
/* Check that partitions do not overlap */
if (i > 0 && pt [i - 1].end > p->begin) {
20247b4: 02 80 00 06 be 20247cc <rtems_bdpart_write+0x100> <== NOT EXECUTED
20247b8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20247bc: da 00 7f d4 ld [ %g1 + -44 ], %o5 <== NOT EXECUTED
20247c0: 80 a3 40 03 cmp %o5, %g3 <== NOT EXECUTED
20247c4: 18 80 00 de bgu 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
20247c8: 01 00 00 00 nop <== NOT EXECUTED
if (dos_compatibility) {
disk_end -= (disk_end % record_space);
}
/* Check that we have a consistent partition table */
for (i = 0; i < count; ++i) {
20247cc: 82 00 60 30 add %g1, 0x30, %g1 <== NOT EXECUTED
20247d0: 80 a0 80 1b cmp %g2, %i3 <== NOT EXECUTED
20247d4: 2a bf ff ef bcs,a 2024790 <rtems_bdpart_write+0xc4> <== NOT EXECUTED
20247d8: c6 00 40 00 ld [ %g1 ], %g3 <== NOT EXECUTED
goto cleanup;
}
}
/* Check format */
if (format->type != RTEMS_BDPART_FORMAT_MBR) {
20247dc: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
20247e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20247e4: 12 80 00 d6 bne 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
20247e8: aa 10 20 18 mov 0x18, %l5 <== NOT EXECUTED
* Set primary partition count. If we have more than four partitions we need
* an extended partition which will contain the partitions of number four and
* above as logical partitions. If we have four or less partitions we can
* use the primary partition table.
*/
ppc = count <= 4 ? count : 3;
20247ec: 80 a6 e0 04 cmp %i3, 4 <== NOT EXECUTED
20247f0: 18 80 00 03 bgu 20247fc <rtems_bdpart_write+0x130> <== NOT EXECUTED
20247f4: a0 10 20 03 mov 3, %l0 <== NOT EXECUTED
20247f8: a0 10 00 1b mov %i3, %l0 <== NOT EXECUTED
/*
* Check that the first primary partition starts at head one and sector one
* under the virtual one head and 63 sectors geometry if necessary.
*/
if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
20247fc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2024800: 32 80 00 0f bne,a 202483c <rtems_bdpart_write+0x170> <== NOT EXECUTED
2024804: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
* The space for the EBR and maybe some space which is needed for DOS
* compatibility resides between the partitions. So there have to be gaps of
* the appropriate size between the partitions.
*/
for (i = ppc; i < count; ++i) {
if ((pt [i].begin - pt [i - 1].end) < record_space) {
2024808: 82 04 3f ff add %l0, -1, %g1 <== NOT EXECUTED
202480c: 85 2c 20 04 sll %l0, 4, %g2 <== NOT EXECUTED
2024810: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
2024814: 83 28 60 04 sll %g1, 4, %g1 <== NOT EXECUTED
2024818: a9 2c 20 06 sll %l0, 6, %l4 <== NOT EXECUTED
202481c: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED
2024820: a8 25 00 02 sub %l4, %g2, %l4 <== NOT EXECUTED
2024824: 86 06 80 03 add %i2, %g3, %g3 <== NOT EXECUTED
2024828: a6 06 80 14 add %i2, %l4, %l3 <== NOT EXECUTED
202482c: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
2024830: 84 10 00 10 mov %l0, %g2 <== NOT EXECUTED
2024834: 10 80 00 0e b 202486c <rtems_bdpart_write+0x1a0> <== NOT EXECUTED
2024838: 82 10 00 13 mov %l3, %g1 <== NOT EXECUTED
/*
* Check that the first primary partition starts at head one and sector one
* under the virtual one head and 63 sectors geometry if necessary.
*/
if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
202483c: 80 a0 60 3f cmp %g1, 0x3f <== NOT EXECUTED
2024840: 32 80 00 bf bne,a 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024844: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
* The space for the EBR and maybe some space which is needed for DOS
* compatibility resides between the partitions. So there have to be gaps of
* the appropriate size between the partitions.
*/
for (i = ppc; i < count; ++i) {
if ((pt [i].begin - pt [i - 1].end) < record_space) {
2024848: 10 bf ff f1 b 202480c <rtems_bdpart_write+0x140> <== NOT EXECUTED
202484c: 82 04 3f ff add %l0, -1, %g1 <== NOT EXECUTED
2024850: c8 00 c0 00 ld [ %g3 ], %g4 <== NOT EXECUTED
2024854: 82 00 60 30 add %g1, 0x30, %g1 <== NOT EXECUTED
2024858: 88 23 40 04 sub %o5, %g4, %g4 <== NOT EXECUTED
202485c: 80 a1 00 11 cmp %g4, %l1 <== NOT EXECUTED
2024860: 0a 80 00 b2 bcs 2024b28 <rtems_bdpart_write+0x45c> <== NOT EXECUTED
2024864: 86 00 e0 30 add %g3, 0x30, %g3 <== NOT EXECUTED
* Each logical partition is described via one EBR preceding the partition.
* The space for the EBR and maybe some space which is needed for DOS
* compatibility resides between the partitions. So there have to be gaps of
* the appropriate size between the partitions.
*/
for (i = ppc; i < count; ++i) {
2024868: 84 00 a0 01 inc %g2 <== NOT EXECUTED
202486c: 80 a0 80 1b cmp %g2, %i3 <== NOT EXECUTED
2024870: 2a bf ff f8 bcs,a 2024850 <rtems_bdpart_write+0x184> <== NOT EXECUTED
2024874: da 00 40 00 ld [ %g1 ], %o5 <== NOT EXECUTED
2024878: aa 10 00 1a mov %i2, %l5 <== NOT EXECUTED
202487c: ac 10 20 00 clr %l6 <== NOT EXECUTED
uint8_t type = 0;
const rtems_bdpart_partition *p = pt + i;
/* Check type */
if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {
2024880: 10 80 00 11 b 20248c4 <rtems_bdpart_write+0x1f8> <== NOT EXECUTED
2024884: ae 07 bf ff add %fp, -1, %l7 <== NOT EXECUTED
2024888: 90 05 60 08 add %l5, 8, %o0 <== NOT EXECUTED
202488c: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2024890: 7f ff fe 6f call 202424c <rtems_bdpart_to_mbr_partition_type><== NOT EXECUTED
2024894: ac 05 a0 01 inc %l6 <== NOT EXECUTED
2024898: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
202489c: 22 80 00 a8 be,a 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
20248a0: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
esc = RTEMS_INVALID_ID;
goto cleanup;
}
/* Check flags */
if (p->flags > 0xffU) {
20248a4: c4 05 60 28 ld [ %l5 + 0x28 ], %g2 <== NOT EXECUTED
20248a8: c2 05 60 2c ld [ %l5 + 0x2c ], %g1 <== NOT EXECUTED
20248ac: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20248b0: 12 80 00 a0 bne 2024b30 <rtems_bdpart_write+0x464> <== NOT EXECUTED
20248b4: aa 05 60 30 add %l5, 0x30, %l5 <== NOT EXECUTED
20248b8: 80 a0 60 ff cmp %g1, 0xff <== NOT EXECUTED
20248bc: 38 80 00 a0 bgu,a 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
20248c0: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
goto cleanup;
}
}
/* Check that we can convert the parition descriptions to the MBR format */
for (i = 0; i < count; ++i) {
20248c4: 80 a5 80 1b cmp %l6, %i3 <== NOT EXECUTED
20248c8: 2a bf ff f0 bcs,a 2024888 <rtems_bdpart_write+0x1bc> <== NOT EXECUTED
20248cc: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
/* Check ID */
/* TODO */
}
/* New MBR */
sc = rtems_bdpart_new_record( disk, 0, &block);
20248d0: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
20248d4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20248d8: 7f ff ff 57 call 2024634 <rtems_bdpart_new_record> <== NOT EXECUTED
20248dc: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
20248e0: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
20248e4: 12 80 00 97 bne 2024b40 <rtems_bdpart_write+0x474> <== NOT EXECUTED
20248e8: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write disk ID */
rtems_uint32_to_little_endian(
20248ec: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
20248f0: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
20248f4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
20248f8: 87 30 60 18 srl %g1, 0x18, %g3 <== NOT EXECUTED
20248fc: c2 28 a1 b8 stb %g1, [ %g2 + 0x1b8 ] <== NOT EXECUTED
2024900: 84 00 a1 b8 add %g2, 0x1b8, %g2 <== NOT EXECUTED
2024904: c6 28 a0 03 stb %g3, [ %g2 + 3 ] <== NOT EXECUTED
value >>= 8;
2024908: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
202490c: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
2024910: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2024914: c2 28 a0 02 stb %g1, [ %g2 + 2 ] <== NOT EXECUTED
format->mbr.disk_id,
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
/* Write primary partition table */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
2024918: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202491c: 9a 10 20 00 clr %o5 <== NOT EXECUTED
2024920: c8 00 60 24 ld [ %g1 + 0x24 ], %g4 <== NOT EXECUTED
2024924: 88 01 21 be add %g4, 0x1be, %g4 <== NOT EXECUTED
for (i = 0; i < ppc; ++i) {
2024928: 10 80 00 18 b 2024988 <rtems_bdpart_write+0x2bc> <== NOT EXECUTED
202492c: 82 10 00 04 mov %g4, %g1 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
data,
p->begin,
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
2024930: d8 04 a0 2c ld [ %l2 + 0x2c ], %o4 <== NOT EXECUTED
static inline uint8_t rtems_bdpart_mbr_partition_type(
const uuid_t type
)
{
return type [0];
2024934: d6 0c a0 08 ldub [ %l2 + 8 ], %o3 <== NOT EXECUTED
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
for (i = 0; i < ppc; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Write partition entry */
rtems_bdpart_write_mbr_partition(
2024938: 86 20 c0 02 sub %g3, %g2, %g3 <== NOT EXECUTED
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
202493c: d8 28 40 00 stb %o4, [ %g1 ] <== NOT EXECUTED
2024940: 99 30 e0 18 srl %g3, 0x18, %o4 <== NOT EXECUTED
2024944: d8 28 60 0f stb %o4, [ %g1 + 0xf ] <== NOT EXECUTED
value >>= 8;
2024948: 99 30 a0 08 srl %g2, 8, %o4 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
202494c: c4 28 60 08 stb %g2, [ %g1 + 8 ] <== NOT EXECUTED
2024950: d8 28 60 09 stb %o4, [ %g1 + 9 ] <== NOT EXECUTED
value >>= 8;
2024954: 99 30 a0 10 srl %g2, 0x10, %o4 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
2024958: 85 30 a0 18 srl %g2, 0x18, %g2 <== NOT EXECUTED
202495c: c6 28 60 0c stb %g3, [ %g1 + 0xc ] <== NOT EXECUTED
2024960: c4 28 60 0b stb %g2, [ %g1 + 0xb ] <== NOT EXECUTED
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2024964: d6 28 60 04 stb %o3, [ %g1 + 4 ] <== NOT EXECUTED
value >>= 8;
2024968: 85 30 e0 08 srl %g3, 8, %g2 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
202496c: d8 28 60 0a stb %o4, [ %g1 + 0xa ] <== NOT EXECUTED
2024970: c4 28 60 0d stb %g2, [ %g1 + 0xd ] <== NOT EXECUTED
value >>= 8;
2024974: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
/* Write primary partition table */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
for (i = 0; i < ppc; ++i) {
2024978: 9a 03 60 01 inc %o5 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
202497c: c6 28 60 0e stb %g3, [ %g1 + 0xe ] <== NOT EXECUTED
2024980: a4 04 a0 30 add %l2, 0x30, %l2 <== NOT EXECUTED
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
);
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
2024984: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID
);
/* Write primary partition table */
data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;
for (i = 0; i < ppc; ++i) {
2024988: 80 a3 40 10 cmp %o5, %l0 <== NOT EXECUTED
202498c: 2a bf ff e9 bcs,a 2024930 <rtems_bdpart_write+0x264> <== NOT EXECUTED
2024990: c4 1c 80 00 ldd [ %l2 ], %g2 <== NOT EXECUTED
2024994: 9b 2c 20 04 sll %l0, 4, %o5 <== NOT EXECUTED
data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;
}
/* Write extended partition with logical partitions if necessary */
if (ppc != count) {
2024998: 80 a4 00 1b cmp %l0, %i3 <== NOT EXECUTED
202499c: 02 80 00 67 be 2024b38 <rtems_bdpart_write+0x46c> <== NOT EXECUTED
20249a0: 82 01 00 0d add %g4, %o5, %g1 <== NOT EXECUTED
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
/* Begin of extended partition */
rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;
20249a4: f2 06 80 14 ld [ %i2 + %l4 ], %i1 <== NOT EXECUTED
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
20249a8: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
/* Write extended partition with logical partitions if necessary */
if (ppc != count) {
rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */
/* Begin of extended partition */
rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;
20249ac: b2 26 40 11 sub %i1, %l1, %i1 <== NOT EXECUTED
20249b0: f2 28 60 08 stb %i1, [ %g1 + 8 ] <== NOT EXECUTED
value >>= 8;
20249b4: 99 36 60 08 srl %i1, 8, %o4 <== NOT EXECUTED
uint32_t size,
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
20249b8: 86 00 60 08 add %g1, 8, %g3 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
20249bc: d8 28 e0 01 stb %o4, [ %g3 + 1 ] <== NOT EXECUTED
value >>= 8;
20249c0: 99 36 60 10 srl %i1, 0x10, %o4 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
20249c4: d8 28 e0 02 stb %o4, [ %g3 + 2 ] <== NOT EXECUTED
20249c8: 99 36 60 18 srl %i1, 0x18, %o4 <== NOT EXECUTED
20249cc: d8 28 e0 03 stb %o4, [ %g3 + 3 ] <== NOT EXECUTED
/* Begin of extended partition */
rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;
/* Write extended partition */
rtems_bdpart_write_mbr_partition(
20249d0: 84 20 80 19 sub %g2, %i1, %g2 <== NOT EXECUTED
20249d4: c4 28 60 0c stb %g2, [ %g1 + 0xc ] <== NOT EXECUTED
20249d8: 99 30 a0 18 srl %g2, 0x18, %o4 <== NOT EXECUTED
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
20249dc: 86 00 60 0c add %g1, 0xc, %g3 <== NOT EXECUTED
20249e0: d8 28 e0 03 stb %o4, [ %g3 + 3 ] <== NOT EXECUTED
value >>= 8;
20249e4: 99 30 a0 08 srl %g2, 8, %o4 <== NOT EXECUTED
20249e8: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
20249ec: d8 28 e0 01 stb %o4, [ %g3 + 1 ] <== NOT EXECUTED
20249f0: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
20249f4: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
20249f8: c4 28 60 04 stb %g2, [ %g1 + 4 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
20249fc: b4 04 e0 04 add %l3, 4, %i2 <== NOT EXECUTED
2024a00: c0 29 00 0d clrb [ %g4 + %o5 ] <== NOT EXECUTED
2024a04: a4 10 00 10 mov %l0, %l2 <== NOT EXECUTED
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2024a08: a8 10 20 05 mov 5, %l4 <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2024a0c: 10 80 00 42 b 2024b14 <rtems_bdpart_write+0x448> <== NOT EXECUTED
2024a10: a6 07 bf f8 add %fp, -8, %l3 <== NOT EXECUTED
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
2024a14: 28 80 00 1c bleu,a 2024a84 <rtems_bdpart_write+0x3b8> <== NOT EXECUTED
2024a18: d4 06 bf fc ld [ %i2 + -4 ], %o2 <== NOT EXECUTED
rtems_blkdev_bnum begin = p->begin - record_space;
rtems_bdpart_write_mbr_partition(
2024a1c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
for (i = ppc; i < count; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
rtems_blkdev_bnum begin = p->begin - record_space;
2024a20: c4 06 bf fc ld [ %i2 + -4 ], %g2 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
2024a24: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2024a28: da 07 bf f4 ld [ %fp + -12 ], %o5 <== NOT EXECUTED
for (i = ppc; i < count; ++i) {
const rtems_bdpart_partition *p = pt + i;
/* Write second partition entry */
if (i > ppc) {
rtems_blkdev_bnum begin = p->begin - record_space;
2024a2c: 84 20 80 11 sub %g2, %l1, %g2 <== NOT EXECUTED
rtems_bdpart_write_mbr_partition(
2024a30: 86 20 80 19 sub %g2, %i1, %g3 <== NOT EXECUTED
2024a34: c6 28 61 d6 stb %g3, [ %g1 + 0x1d6 ] <== NOT EXECUTED
2024a38: 99 30 e0 18 srl %g3, 0x18, %o4 <== NOT EXECUTED
uint32_t size,
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
2024a3c: 88 00 61 d6 add %g1, 0x1d6, %g4 <== NOT EXECUTED
2024a40: d8 29 20 03 stb %o4, [ %g4 + 3 ] <== NOT EXECUTED
value >>= 8;
2024a44: 99 30 e0 08 srl %g3, 8, %o4 <== NOT EXECUTED
2024a48: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
2024a4c: d8 29 20 01 stb %o4, [ %g4 + 1 ] <== NOT EXECUTED
2024a50: c6 29 20 02 stb %g3, [ %g4 + 2 ] <== NOT EXECUTED
/* Write second partition entry */
if (i > ppc) {
rtems_blkdev_bnum begin = p->begin - record_space;
rtems_bdpart_write_mbr_partition(
2024a54: 84 23 40 02 sub %o5, %g2, %g2 <== NOT EXECUTED
2024a58: c4 28 61 da stb %g2, [ %g1 + 0x1da ] <== NOT EXECUTED
2024a5c: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
2024a60: 86 00 61 da add %g1, 0x1da, %g3 <== NOT EXECUTED
2024a64: c8 28 e0 03 stb %g4, [ %g3 + 3 ] <== NOT EXECUTED
value >>= 8;
2024a68: 89 30 a0 08 srl %g2, 8, %g4 <== NOT EXECUTED
2024a6c: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
2024a70: c8 28 e0 01 stb %g4, [ %g3 + 1 ] <== NOT EXECUTED
2024a74: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2024a78: c0 28 61 ce clrb [ %g1 + 0x1ce ] <== NOT EXECUTED
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2024a7c: e8 28 61 d2 stb %l4, [ %g1 + 0x1d2 ] <== NOT EXECUTED
);
}
/* New EBR */
ebr = p->begin - record_space;
sc = rtems_bdpart_new_record( disk, ebr, &block);
2024a80: d4 06 bf fc ld [ %i2 + -4 ], %o2 <== NOT EXECUTED
2024a84: d0 1f bf e8 ldd [ %fp + -24 ], %o0 <== NOT EXECUTED
2024a88: 94 22 80 11 sub %o2, %l1, %o2 <== NOT EXECUTED
2024a8c: 7f ff fe ea call 2024634 <rtems_bdpart_new_record> <== NOT EXECUTED
2024a90: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
2024a94: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024a98: 02 80 00 04 be 2024aa8 <rtems_bdpart_write+0x3dc> <== NOT EXECUTED
2024a9c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2024aa0: 10 80 00 27 b 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024aa4: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2024aa8: d4 06 80 00 ld [ %i2 ], %o2 <== NOT EXECUTED
2024aac: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2024ab0: d6 06 bf fc ld [ %i2 + -4 ], %o3 <== NOT EXECUTED
2024ab4: d8 0e a0 04 ldub [ %i2 + 4 ], %o4 <== NOT EXECUTED
block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,
record_space,
p->end - p->begin,
rtems_bdpart_mbr_partition_type( p->type),
(uint8_t) p->flags
2024ab8: da 06 a0 28 ld [ %i2 + 0x28 ], %o5 <== NOT EXECUTED
2024abc: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2024ac0: 86 00 a1 be add %g2, 0x1be, %g3 <== NOT EXECUTED
RTEMS_BDPART_MBR_SIGNATURE_1;
return RTEMS_SUCCESSFUL;
}
rtems_status_code rtems_bdpart_write(
2024ac4: 92 00 a0 04 add %g2, 4, %o1 <== NOT EXECUTED
2024ac8: 88 10 00 11 mov %l1, %g4 <== NOT EXECUTED
2024acc: c8 28 61 c6 stb %g4, [ %g1 + 0x1c6 ] <== NOT EXECUTED
2024ad0: 82 00 60 01 inc %g1 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
2024ad4: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED
2024ad8: 12 bf ff fd bne 2024acc <rtems_bdpart_write+0x400> <== NOT EXECUTED
2024adc: 88 10 20 00 clr %g4 <== NOT EXECUTED
esc = sc;
goto cleanup;
}
/* Write first partition entry */
rtems_bdpart_write_mbr_partition(
2024ae0: 82 22 80 0b sub %o2, %o3, %g1 <== NOT EXECUTED
data [i] = (uint8_t) value;
2024ae4: c2 28 e0 0c stb %g1, [ %g3 + 0xc ] <== NOT EXECUTED
2024ae8: 97 30 60 18 srl %g1, 0x18, %o3 <== NOT EXECUTED
uint8_t type,
uint8_t flags
)
{
rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
2024aec: 88 00 e0 0c add %g3, 0xc, %g4 <== NOT EXECUTED
2024af0: d6 29 20 03 stb %o3, [ %g4 + 3 ] <== NOT EXECUTED
value >>= 8;
2024af4: 97 30 60 08 srl %g1, 8, %o3 <== NOT EXECUTED
2024af8: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{
size_t i = 0;
for (i = 0; i < 4; ++i) {
data [i] = (uint8_t) value;
2024afc: d6 29 20 01 stb %o3, [ %g4 + 1 ] <== NOT EXECUTED
2024b00: c2 29 20 02 stb %g1, [ %g4 + 2 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;
2024b04: d8 28 e0 04 stb %o4, [ %g3 + 4 ] <== NOT EXECUTED
data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;
2024b08: da 28 a1 be stb %o5, [ %g2 + 0x1be ] <== NOT EXECUTED
RTEMS_BDPART_MBR_EXTENDED,
0
);
/* Write logical partitions */
for (i = ppc; i < count; ++i) {
2024b0c: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2024b10: b4 06 a0 30 add %i2, 0x30, %i2 <== NOT EXECUTED
2024b14: 80 a4 80 1b cmp %l2, %i3 <== NOT EXECUTED
2024b18: 0a bf ff bf bcs 2024a14 <rtems_bdpart_write+0x348> <== NOT EXECUTED
2024b1c: 80 a4 80 10 cmp %l2, %l0 <== NOT EXECUTED
2024b20: 10 80 00 07 b 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024b24: aa 10 20 00 clr %l5 <== NOT EXECUTED
2024b28: 10 80 00 05 b 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024b2c: aa 10 20 0a mov 0xa, %l5 <== NOT EXECUTED
2024b30: 10 80 00 03 b 2024b3c <rtems_bdpart_write+0x470> <== NOT EXECUTED
2024b34: aa 10 20 04 mov 4, %l5 <== NOT EXECUTED
2024b38: aa 10 20 00 clr %l5 <== NOT EXECUTED
}
}
cleanup:
if (block != NULL) {
2024b3c: d0 07 bf f8 ld [ %fp + -8 ], %o0 <== NOT EXECUTED
2024b40: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2024b44: 02 80 00 04 be 2024b54 <rtems_bdpart_write+0x488> <== NOT EXECUTED
2024b48: b0 10 00 15 mov %l5, %i0 <== NOT EXECUTED
rtems_bdbuf_sync( block);
2024b4c: 7f ff 82 35 call 2005420 <rtems_bdbuf_sync> <== NOT EXECUTED
2024b50: 01 00 00 00 nop <== NOT EXECUTED
}
return esc;
}
2024b54: 81 c7 e0 08 ret <== NOT EXECUTED
2024b58: 81 e8 00 00 restore <== NOT EXECUTED
0200de98 <rtems_blkdev_generic_ioctl>:
rtems_device_driver
rtems_blkdev_generic_ioctl(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void * arg)
{
200de98: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_ioctl_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
200de9c: c2 06 80 00 ld [ %i2 ], %g1
int rc;
switch (args->command)
200dea0: d2 06 a0 04 ld [ %i2 + 4 ], %o1
200dea4: 05 10 01 10 sethi %hi(0x40044000), %g2
200dea8: 86 10 a2 03 or %g2, 0x203, %g3 ! 40044203 <RAM_END+0x3dc44203>
200deac: 80 a2 40 03 cmp %o1, %g3
200deb0: 02 80 00 1e be 200df28 <rtems_blkdev_generic_ioctl+0x90> <== NEVER TAKEN
200deb4: c2 00 60 38 ld [ %g1 + 0x38 ], %g1
200deb8: 80 a2 40 03 cmp %o1, %g3
200debc: 18 80 00 0c bgu 200deec <rtems_blkdev_generic_ioctl+0x54> <== ALWAYS TAKEN
200dec0: 07 20 01 10 sethi %hi(0x80044000), %g3
200dec4: 07 08 00 10 sethi %hi(0x20004000), %g3 <== NOT EXECUTED
200dec8: 86 10 e2 06 or %g3, 0x206, %g3 ! 20004206 <RAM_END+0x1dc04206><== NOT EXECUTED
200decc: 80 a2 40 03 cmp %o1, %g3 <== NOT EXECUTED
200ded0: 02 80 00 21 be 200df54 <rtems_blkdev_generic_ioctl+0xbc> <== NOT EXECUTED
200ded4: 84 10 a2 02 or %g2, 0x202, %g2 <== NOT EXECUTED
200ded8: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
200dedc: 32 80 00 26 bne,a 200df74 <rtems_blkdev_generic_ioctl+0xdc><== NOT EXECUTED
200dee0: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*((uint32_t *) args->buffer) = dd->media_block_size;
200dee4: 10 80 00 0f b 200df20 <rtems_blkdev_generic_ioctl+0x88> <== NOT EXECUTED
200dee8: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
rtems_libio_ioctl_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
int rc;
switch (args->command)
200deec: 86 10 e2 04 or %g3, 0x204, %g3
200def0: 80 a2 40 03 cmp %o1, %g3
200def4: 02 80 00 12 be 200df3c <rtems_blkdev_generic_ioctl+0xa4> <== ALWAYS TAKEN
200def8: 07 30 06 10 sethi %hi(0xc0184000), %g3
200defc: 86 10 e2 01 or %g3, 0x201, %g3 ! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
200df00: 80 a2 40 03 cmp %o1, %g3 <== NOT EXECUTED
200df04: 02 80 00 19 be 200df68 <rtems_blkdev_generic_ioctl+0xd0> <== NOT EXECUTED
200df08: 84 10 a2 05 or %g2, 0x205, %g2 <== NOT EXECUTED
200df0c: 80 a2 40 02 cmp %o1, %g2 <== NOT EXECUTED
200df10: 32 80 00 19 bne,a 200df74 <rtems_blkdev_generic_ioctl+0xdc><== NOT EXECUTED
200df14: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
dd->block_size = *((uint32_t *) args->buffer);
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETSIZE:
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
200df18: 10 80 00 0d b 200df4c <rtems_blkdev_generic_ioctl+0xb4> <== NOT EXECUTED
200df1c: c4 00 60 1c ld [ %g1 + 0x1c ], %g2 <== NOT EXECUTED
*((uint32_t *) args->buffer) = dd->media_block_size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*((uint32_t *) args->buffer) = dd->block_size;
200df20: 10 80 00 04 b 200df30 <rtems_blkdev_generic_ioctl+0x98> <== NOT EXECUTED
200df24: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200df28: c4 00 60 20 ld [ %g1 + 0x20 ], %g2 <== NOT EXECUTED
200df2c: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
200df30: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
args->ioctl_return = 0;
break;
200df34: 10 80 00 14 b 200df84 <rtems_blkdev_generic_ioctl+0xec>
200df38: c0 26 a0 0c clr [ %i2 + 0xc ]
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *((uint32_t *) args->buffer);
200df3c: c4 06 a0 08 ld [ %i2 + 8 ], %g2
200df40: c4 00 80 00 ld [ %g2 ], %g2
200df44: 10 bf ff fc b 200df34 <rtems_blkdev_generic_ioctl+0x9c>
200df48: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
*((uint32_t *) args->buffer) = dd->media_block_size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*((uint32_t *) args->buffer) = dd->block_size;
200df4c: 10 bf ff f9 b 200df30 <rtems_blkdev_generic_ioctl+0x98> <== NOT EXECUTED
200df50: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
*((rtems_blkdev_bnum *) args->buffer) = dd->size;
args->ioctl_return = 0;
break;
case RTEMS_BLKIO_SYNCDEV:
rc = rtems_bdbuf_syncdev(dd->dev);
200df54: 7f ff f7 8e call 200bd8c <rtems_bdbuf_syncdev> <== NOT EXECUTED
200df58: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
200df5c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
200df60: 10 80 00 03 b 200df6c <rtems_blkdev_generic_ioctl+0xd4> <== NOT EXECUTED
200df64: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
case RTEMS_BLKIO_REQUEST:
/*
* It is not allowed to directly access the driver circumventing
* the cache.
*/
args->ioctl_return = (uint32_t) -1;
200df68: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
break;
200df6c: 10 80 00 06 b 200df84 <rtems_blkdev_generic_ioctl+0xec> <== NOT EXECUTED
200df70: c2 26 a0 0c st %g1, [ %i2 + 0xc ] <== NOT EXECUTED
default:
args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,
200df74: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 <== NOT EXECUTED
200df78: 9f c0 40 00 call %g1 <== NOT EXECUTED
200df7c: d4 06 a0 08 ld [ %i2 + 8 ], %o2 <== NOT EXECUTED
200df80: d0 26 a0 0c st %o0, [ %i2 + 0xc ] <== NOT EXECUTED
args->buffer);
break;
}
return RTEMS_SUCCESSFUL;
}
200df84: 81 c7 e0 08 ret
200df88: 91 e8 20 00 restore %g0, 0, %o0
0200e0e4 <rtems_blkdev_generic_read>:
rtems_device_driver
rtems_blkdev_generic_read(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void * arg)
{
200e0e4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
200e0e8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200e0ec: ec 1e a0 08 ldd [ %i2 + 8 ], %l6 <== NOT EXECUTED
void * arg)
{
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
200e0f0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200e0f4: 94 10 20 00 clr %o2 <== NOT EXECUTED
{
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
200e0f8: e6 04 20 20 ld [ %l0 + 0x20 ], %l3 <== NOT EXECUTED
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200e0fc: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200e100: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
200e104: 40 00 40 73 call 201e2d0 <__divdi3> <== NOT EXECUTED
200e108: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e10c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200e110: a8 10 00 09 mov %o1, %l4 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e114: 94 10 20 00 clr %o2 <== NOT EXECUTED
200e118: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
200e11c: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
200e120: 40 00 41 53 call 201e66c <__moddi3> <== NOT EXECUTED
200e124: e4 06 a0 10 ld [ %i2 + 0x10 ], %l2 <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200e128: ac 07 bf fc add %fp, -4, %l6 <== NOT EXECUTED
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
200e12c: f8 1c 00 00 ldd [ %l0 ], %i4 <== NOT EXECUTED
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e130: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
dev_t dev = dd->dev;
args->bytes_moved = 0;
200e134: c0 26 a0 1c clr [ %i2 + 0x1c ] <== NOT EXECUTED
while (count > 0)
200e138: 10 80 00 1d b 200e1ac <rtems_blkdev_generic_read+0xc8> <== NOT EXECUTED
200e13c: e0 06 a0 14 ld [ %i2 + 0x14 ], %l0 <== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200e140: 7f ff fe 7c call 200db30 <rtems_bdbuf_read> <== NOT EXECUTED
200e144: 01 00 00 00 nop <== NOT EXECUTED
200e148: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200e14c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200e150: 12 80 00 1e bne 200e1c8 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200e154: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
break;
copy = block_size - blkofs;
200e158: aa 24 c0 11 sub %l3, %l1, %l5 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
200e15c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
break;
copy = block_size - blkofs;
200e160: 80 a5 40 10 cmp %l5, %l0 <== NOT EXECUTED
200e164: 08 80 00 03 bleu 200e170 <rtems_blkdev_generic_read+0x8c> <== NOT EXECUTED
200e168: a8 05 20 01 inc %l4 <== NOT EXECUTED
200e16c: aa 10 00 10 mov %l0, %l5 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
200e170: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
200e174: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
200e178: 40 00 1c 25 call 201520c <memcpy> <== NOT EXECUTED
200e17c: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED
rc = rtems_bdbuf_release(diskbuf);
200e180: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
200e184: 7f ff f9 d3 call 200c8d0 <rtems_bdbuf_release> <== NOT EXECUTED
200e188: a4 04 80 15 add %l2, %l5, %l2 <== NOT EXECUTED
args->bytes_moved += copy;
200e18c: c2 06 a0 1c ld [ %i2 + 0x1c ], %g1 <== NOT EXECUTED
break;
copy = block_size - blkofs;
if (copy > count)
copy = count;
memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);
rc = rtems_bdbuf_release(diskbuf);
200e190: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
args->bytes_moved += copy;
200e194: 82 00 40 15 add %g1, %l5, %g1 <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200e198: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e19c: 12 80 00 0b bne 200e1c8 <rtems_blkdev_generic_read+0xe4> <== NOT EXECUTED
200e1a0: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
break;
count -= copy;
200e1a4: a0 24 00 15 sub %l0, %l5, %l0 <== NOT EXECUTED
buf += copy;
blkofs = 0;
block++;
200e1a8: a2 10 20 00 clr %l1 <== NOT EXECUTED
while (count > 0)
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200e1ac: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
200e1b0: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
200e1b4: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200e1b8: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
200e1bc: 12 bf ff e1 bne 200e140 <rtems_blkdev_generic_read+0x5c> <== NOT EXECUTED
200e1c0: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
200e1c4: b0 10 20 00 clr %i0 <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
200e1c8: 81 c7 e0 08 ret <== NOT EXECUTED
200e1cc: 81 e8 00 00 restore <== NOT EXECUTED
0200dfd4 <rtems_blkdev_generic_write>:
rtems_device_driver
rtems_blkdev_generic_write(
rtems_device_major_number major __attribute__((unused)),
rtems_device_minor_number minor __attribute__((unused)),
void * arg)
{
200dfd4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
200dfd8: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200dfdc: e8 1e a0 08 ldd [ %i2 + 8 ], %l4 <== NOT EXECUTED
void * arg)
{
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
200dfe0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0 <== NOT EXECUTED
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200dfe4: 94 10 20 00 clr %o2 <== NOT EXECUTED
{
rtems_status_code rc = RTEMS_SUCCESSFUL;
rtems_libio_rw_args_t *args = arg;
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
200dfe8: e4 04 20 20 ld [ %l0 + 0x20 ], %l2 <== NOT EXECUTED
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200dfec: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
200dff0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
200dff4: 40 00 40 b7 call 201e2d0 <__divdi3> <== NOT EXECUTED
200dff8: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200dffc: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
rtems_libio_t *iop = args->iop;
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
200e000: a6 10 00 09 mov %o1, %l3 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e004: 94 10 20 00 clr %o2 <== NOT EXECUTED
200e008: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
200e00c: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
200e010: 40 00 41 97 call 201e66c <__moddi3> <== NOT EXECUTED
200e014: e8 06 a0 10 ld [ %i2 + 0x10 ], %l4 <== NOT EXECUTED
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
rc = rtems_bdbuf_get(dev, block, &diskbuf);
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200e018: aa 07 bf fc add %fp, -4, %l5 <== NOT EXECUTED
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
200e01c: ec 1c 00 00 ldd [ %l0 ], %l6 <== NOT EXECUTED
rtems_disk_device *dd = iop->data1;
uint32_t block_size = dd->block_size;
char *buf = args->buffer;
uint32_t count = args->count;
rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
uint32_t blkofs = (uint32_t) (args->offset % block_size);
200e020: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
dev_t dev = dd->dev;
args->bytes_moved = 0;
200e024: c0 26 a0 1c clr [ %i2 + 0x1c ] <== NOT EXECUTED
while (count > 0)
200e028: 10 80 00 29 b 200e0cc <rtems_blkdev_generic_write+0xf8> <== NOT EXECUTED
200e02c: e0 06 a0 14 ld [ %i2 + 0x14 ], %l0 <== NOT EXECUTED
{
rtems_bdbuf_buffer *diskbuf;
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
200e030: 0a 80 00 0c bcs 200e060 <rtems_blkdev_generic_write+0x8c> <== NOT EXECUTED
200e034: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
200e038: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
200e03c: 12 80 00 0a bne 200e064 <rtems_blkdev_generic_write+0x90> <== NOT EXECUTED
200e040: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
rc = rtems_bdbuf_get(dev, block, &diskbuf);
200e044: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200e048: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
200e04c: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
200e050: 7f ff fe 85 call 200da64 <rtems_bdbuf_get> <== NOT EXECUTED
200e054: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
break;
copy = block_size - blkofs;
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200e058: 10 80 00 07 b 200e074 <rtems_blkdev_generic_write+0xa0> <== NOT EXECUTED
200e05c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
uint32_t copy;
if ((blkofs == 0) && (count >= block_size))
rc = rtems_bdbuf_get(dev, block, &diskbuf);
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
200e060: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
200e064: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
200e068: 7f ff fe b2 call 200db30 <rtems_bdbuf_read> <== NOT EXECUTED
200e06c: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
break;
copy = block_size - blkofs;
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200e070: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
if ((blkofs == 0) && (count >= block_size))
rc = rtems_bdbuf_get(dev, block, &diskbuf);
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
200e074: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e078: 12 80 00 19 bne 200e0dc <rtems_blkdev_generic_write+0x108><== NOT EXECUTED
200e07c: ba 24 80 11 sub %l2, %l1, %i5 <== NOT EXECUTED
break;
copy = block_size - blkofs;
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200e080: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
else
rc = rtems_bdbuf_read(dev, block, &diskbuf);
if (rc != RTEMS_SUCCESSFUL)
break;
copy = block_size - blkofs;
200e084: 80 a7 40 10 cmp %i5, %l0 <== NOT EXECUTED
200e088: 08 80 00 03 bleu 200e094 <rtems_blkdev_generic_write+0xc0><== NOT EXECUTED
200e08c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
200e090: ba 10 00 10 mov %l0, %i5 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
200e094: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
200e098: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
200e09c: 40 00 1c 5c call 201520c <memcpy> <== NOT EXECUTED
200e0a0: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED
args->bytes_moved += copy;
200e0a4: c2 06 a0 1c ld [ %i2 + 0x1c ], %g1 <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
200e0a8: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
copy = block_size - blkofs;
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
args->bytes_moved += copy;
200e0ac: 82 00 40 1d add %g1, %i5, %g1 <== NOT EXECUTED
rc = rtems_bdbuf_release_modified(diskbuf);
if (rc != RTEMS_SUCCESSFUL)
break;
count -= copy;
buf += copy;
200e0b0: a8 05 00 1d add %l4, %i5, %l4 <== NOT EXECUTED
if (copy > count)
copy = count;
memcpy((char *)diskbuf->buffer + blkofs, buf, copy);
args->bytes_moved += copy;
rc = rtems_bdbuf_release_modified(diskbuf);
200e0b4: 7f ff f9 e1 call 200c838 <rtems_bdbuf_release_modified> <== NOT EXECUTED
200e0b8: c2 26 a0 1c st %g1, [ %i2 + 0x1c ] <== NOT EXECUTED
if (rc != RTEMS_SUCCESSFUL)
200e0bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200e0c0: 12 80 00 07 bne 200e0dc <rtems_blkdev_generic_write+0x108><== NOT EXECUTED
200e0c4: a0 24 00 1d sub %l0, %i5, %l0 <== NOT EXECUTED
break;
count -= copy;
buf += copy;
blkofs = 0;
block++;
200e0c8: a2 10 20 00 clr %l1 <== NOT EXECUTED
uint32_t blkofs = (uint32_t) (args->offset % block_size);
dev_t dev = dd->dev;
args->bytes_moved = 0;
while (count > 0)
200e0cc: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
200e0d0: 32 bf ff d8 bne,a 200e030 <rtems_blkdev_generic_write+0x5c><== NOT EXECUTED
200e0d4: 80 a4 00 12 cmp %l0, %l2 <== NOT EXECUTED
200e0d8: 90 10 20 00 clr %o0 <== NOT EXECUTED
blkofs = 0;
block++;
}
return rc;
}
200e0dc: 81 c7 e0 08 ret <== NOT EXECUTED
200e0e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0200ddf0 <rtems_blkdev_ioctl>:
return RTEMS_SUCCESSFUL;
}
int
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
200ddf0: 9d e3 bf a0 save %sp, -96, %sp
size_t *arg_size = argp;
int rc = 0;
switch (req)
200ddf4: 05 10 01 10 sethi %hi(0x40044000), %g2
200ddf8: 86 10 a2 03 or %g2, 0x203, %g3 ! 40044203 <RAM_END+0x3dc44203>
200ddfc: 80 a6 40 03 cmp %i1, %g3
200de00: 02 80 00 16 be 200de58 <rtems_blkdev_ioctl+0x68> <== NEVER TAKEN
200de04: 82 10 00 18 mov %i0, %g1
200de08: 80 a6 40 03 cmp %i1, %g3
200de0c: 38 80 00 08 bgu,a 200de2c <rtems_blkdev_ioctl+0x3c> <== NEVER TAKEN
200de10: 84 10 a2 05 or %g2, 0x205, %g2 <== NOT EXECUTED
200de14: 84 10 a2 02 or %g2, 0x202, %g2
200de18: 80 a6 40 02 cmp %i1, %g2
200de1c: 12 80 00 19 bne 200de80 <rtems_blkdev_ioctl+0x90> <== ALWAYS TAKEN
200de20: 01 00 00 00 nop
{
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
200de24: 10 80 00 0b b 200de50 <rtems_blkdev_ioctl+0x60> <== NOT EXECUTED
200de28: c2 06 20 24 ld [ %i0 + 0x24 ], %g1 <== NOT EXECUTED
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)
{
size_t *arg_size = argp;
int rc = 0;
switch (req)
200de2c: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
200de30: 02 80 00 0f be 200de6c <rtems_blkdev_ioctl+0x7c> <== NOT EXECUTED
200de34: 05 20 01 10 sethi %hi(0x80044000), %g2 <== NOT EXECUTED
200de38: 84 10 a2 04 or %g2, 0x204, %g2 ! 80044204 <RAM_END+0x7dc44204><== NOT EXECUTED
200de3c: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
200de40: 12 80 00 10 bne 200de80 <rtems_blkdev_ioctl+0x90> <== NOT EXECUTED
200de44: 01 00 00 00 nop <== NOT EXECUTED
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
break;
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
200de48: 10 80 00 06 b 200de60 <rtems_blkdev_ioctl+0x70> <== NOT EXECUTED
200de4c: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
break;
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
200de50: 10 80 00 09 b 200de74 <rtems_blkdev_ioctl+0x84> <== NOT EXECUTED
200de54: b0 10 20 00 clr %i0 <== NOT EXECUTED
case RTEMS_BLKIO_GETMEDIABLKSIZE:
*arg_size = dd->media_block_size;
break;
case RTEMS_BLKIO_GETBLKSIZE:
*arg_size = dd->block_size;
200de58: 10 80 00 06 b 200de70 <rtems_blkdev_ioctl+0x80> <== NOT EXECUTED
200de5c: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
break;
case RTEMS_BLKIO_SETBLKSIZE:
dd->block_size = *arg_size;
200de60: c4 20 60 20 st %g2, [ %g1 + 0x20 ] <== NOT EXECUTED
break;
200de64: 81 c7 e0 08 ret <== NOT EXECUTED
200de68: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
case RTEMS_BLKIO_GETSIZE:
*arg_size = dd->size;
200de6c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
200de70: b0 10 20 00 clr %i0 <== NOT EXECUTED
200de74: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
break;
200de78: 81 c7 e0 08 ret <== NOT EXECUTED
200de7c: 81 e8 00 00 restore <== NOT EXECUTED
default:
errno = EINVAL;
200de80: 40 00 1a a7 call 201491c <__errno>
200de84: b0 10 3f ff mov -1, %i0
200de88: 82 10 20 16 mov 0x16, %g1
200de8c: c2 22 00 00 st %g1, [ %o0 ]
rc = -1;
break;
}
return rc;
}
200de90: 81 c7 e0 08 ret
200de94: 81 e8 00 00 restore
0200246c <rtems_bsp_cmdline_get_param>:
const char *rtems_bsp_cmdline_get_param(
const char *name,
char *value,
size_t length
)
{
200246c: 9d e3 bf a0 save %sp, -96, %sp
const char *p;
if ( !name )
2002470: 90 96 20 00 orcc %i0, 0, %o0
2002474: 22 80 00 26 be,a 200250c <rtems_bsp_cmdline_get_param+0xa0>
2002478: b2 10 20 00 clr %i1
return NULL;
if ( !value )
200247c: 80 a6 60 00 cmp %i1, 0
2002480: 22 80 00 24 be,a 2002510 <rtems_bsp_cmdline_get_param+0xa4>
2002484: b0 10 00 19 mov %i1, %i0
return NULL;
if ( !length )
2002488: 80 a6 a0 00 cmp %i2, 0
200248c: 22 80 00 20 be,a 200250c <rtems_bsp_cmdline_get_param+0xa0>
2002490: b2 10 20 00 clr %i1
return NULL;
value[0] = '\0';
p = rtems_bsp_cmdline_get_param_raw( name );
2002494: 40 00 00 21 call 2002518 <rtems_bsp_cmdline_get_param_raw>
2002498: c0 2e 40 00 clrb [ %i1 ]
if ( !p )
200249c: 80 a2 20 00 cmp %o0, 0
20024a0: 02 80 00 1a be 2002508 <rtems_bsp_cmdline_get_param+0x9c>
20024a4: b4 06 bf ff add %i2, -1, %i2
20024a8: 84 10 20 00 clr %g2
20024ac: 10 80 00 0e b 20024e4 <rtems_bsp_cmdline_get_param+0x78>
20024b0: 82 10 20 00 clr %g1
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
if ( *p == '\"' ) {
20024b4: 12 80 00 04 bne 20024c4 <rtems_bsp_cmdline_get_param+0x58>
20024b8: 80 88 a0 01 btst 1, %g2
quotes++;
20024bc: 10 80 00 07 b 20024d8 <rtems_bsp_cmdline_get_param+0x6c>
20024c0: 84 00 a0 01 inc %g2
} else if ( ((quotes % 2) == 0) && *p == ' ' )
20024c4: 32 80 00 06 bne,a 20024dc <rtems_bsp_cmdline_get_param+0x70>
20024c8: c8 2e 40 01 stb %g4, [ %i1 + %g1 ]
20024cc: 80 a0 e0 20 cmp %g3, 0x20
20024d0: 02 80 00 10 be 2002510 <rtems_bsp_cmdline_get_param+0xa4>
20024d4: b0 10 00 19 mov %i1, %i0
break;
value[i++] = *p++;
20024d8: c8 2e 40 01 stb %g4, [ %i1 + %g1 ]
20024dc: 82 00 60 01 inc %g1
value[i] = '\0';
20024e0: c0 2e 40 01 clrb [ %i1 + %g1 ]
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
20024e4: c6 4a 00 01 ldsb [ %o0 + %g1 ], %g3
20024e8: 80 a0 e0 00 cmp %g3, 0
20024ec: 02 80 00 08 be 200250c <rtems_bsp_cmdline_get_param+0xa0>
20024f0: c8 0a 00 01 ldub [ %o0 + %g1 ], %g4
20024f4: 80 a0 40 1a cmp %g1, %i2
20024f8: 0a bf ff ef bcs 20024b4 <rtems_bsp_cmdline_get_param+0x48><== ALWAYS TAKEN
20024fc: 80 a0 e0 22 cmp %g3, 0x22
return NULL;
copy_string( p, value, length );
return value;
}
2002500: 81 c7 e0 08 ret <== NOT EXECUTED
2002504: 91 e8 00 19 restore %g0, %i1, %o0 <== NOT EXECUTED
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
2002508: b2 10 20 00 clr %i1
return NULL;
copy_string( p, value, length );
return value;
}
200250c: b0 10 00 19 mov %i1, %i0
2002510: 81 c7 e0 08 ret
2002514: 81 e8 00 00 restore
02002548 <rtems_bsp_cmdline_get_param_rhs>:
const char *rtems_bsp_cmdline_get_param_rhs(
const char *name,
char *value,
size_t length
)
{
2002548: 9d e3 bf a0 save %sp, -96, %sp
const char *p;
const char *rhs;
char *d;
p = rtems_bsp_cmdline_get_param( name, value, length );
200254c: 94 10 00 1a mov %i2, %o2
2002550: 90 10 00 18 mov %i0, %o0
2002554: 7f ff ff c6 call 200246c <rtems_bsp_cmdline_get_param>
2002558: 92 10 00 19 mov %i1, %o1
if ( !p )
200255c: a2 92 20 00 orcc %o0, 0, %l1
2002560: 22 80 00 1e be,a 20025d8 <rtems_bsp_cmdline_get_param_rhs+0x90>
2002564: b2 10 20 00 clr %i1
return NULL;
rhs = &p[strlen(name)];
2002568: 40 00 3d 3d call 2011a5c <strlen>
200256c: 90 10 00 18 mov %i0, %o0
if ( *rhs != '=' )
2002570: c2 4c 40 08 ldsb [ %l1 + %o0 ], %g1
2002574: 80 a0 60 3d cmp %g1, 0x3d
2002578: 12 80 00 17 bne 20025d4 <rtems_bsp_cmdline_get_param_rhs+0x8c><== NEVER TAKEN
200257c: a2 04 40 08 add %l1, %o0, %l1
return NULL;
rhs++;
if ( *rhs == '\"' )
2002580: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1
2002584: 80 a0 60 22 cmp %g1, 0x22
2002588: 12 80 00 03 bne 2002594 <rtems_bsp_cmdline_get_param_rhs+0x4c>
200258c: 84 04 60 01 add %l1, 1, %g2
rhs++;
2002590: 84 04 60 02 add %l1, 2, %g2
2002594: 10 80 00 05 b 20025a8 <rtems_bsp_cmdline_get_param_rhs+0x60>
2002598: 82 10 00 19 mov %i1, %g1
for ( d=value ; *rhs ; )
*d++ = *rhs++;
200259c: c8 28 40 00 stb %g4, [ %g1 ]
20025a0: 84 00 a0 01 inc %g2
20025a4: 82 00 60 01 inc %g1
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
20025a8: c6 48 80 00 ldsb [ %g2 ], %g3
20025ac: 80 a0 e0 00 cmp %g3, 0
20025b0: 12 bf ff fb bne 200259c <rtems_bsp_cmdline_get_param_rhs+0x54>
20025b4: c8 08 80 00 ldub [ %g2 ], %g4
*d++ = *rhs++;
if ( *(d-1) == '\"' )
20025b8: c6 48 7f ff ldsb [ %g1 + -1 ], %g3
20025bc: 80 a0 e0 22 cmp %g3, 0x22
20025c0: 12 80 00 03 bne 20025cc <rtems_bsp_cmdline_get_param_rhs+0x84>
20025c4: 84 00 7f ff add %g1, -1, %g2
20025c8: 82 10 00 02 mov %g2, %g1
d--;
*d = '\0';
return value;
20025cc: 10 80 00 03 b 20025d8 <rtems_bsp_cmdline_get_param_rhs+0x90>
20025d0: c0 28 40 00 clrb [ %g1 ]
20025d4: b2 10 20 00 clr %i1 <== NOT EXECUTED
}
20025d8: 81 c7 e0 08 ret
20025dc: 91 e8 00 19 restore %g0, %i1, %o0
020030ac <rtems_cpu_usage_report_with_plugin>:
void rtems_cpu_usage_report_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
20030ac: 9d e3 bf 60 save %sp, -160, %sp
Timestamp_Control uptime, total, ran;
#else
uint32_t total_units = 0;
#endif
if ( !print )
20030b0: 80 a6 60 00 cmp %i1, 0
20030b4: 02 80 00 69 be 2003258 <rtems_cpu_usage_report_with_plugin+0x1ac><== NEVER TAKEN
20030b8: ae 07 bf f0 add %fp, -16, %l7
* When not using nanosecond CPU usage resolution, we have to count
* the number of "ticks" we gave credit for to give the user a rough
* guideline as to what each number means proportionally.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
20030bc: 40 00 16 f7 call 2008c98 <_TOD_Get_uptime>
20030c0: 90 10 00 17 mov %l7, %o0
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
20030c4: 92 10 00 17 mov %l7, %o1
20030c8: ba 07 bf e8 add %fp, -24, %i5
20030cc: 11 00 80 94 sethi %hi(0x2025000), %o0
20030d0: 94 10 00 1d mov %i5, %o2
20030d4: 40 00 21 55 call 200b628 <_Timespec_Subtract>
20030d8: 90 12 23 e8 or %o0, 0x3e8, %o0
}
}
}
#endif
(*print)(
20030dc: 90 10 00 18 mov %i0, %o0
20030e0: 13 00 80 86 sethi %hi(0x2021800), %o1
20030e4: 21 00 80 93 sethi %hi(0x2024c00), %l0
20030e8: 92 12 62 e8 or %o1, 0x2e8, %o1
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
(*print)(
20030ec: 39 00 80 87 sethi %hi(0x2021c00), %i4
/*
* If this is the currently executing thread, account for time
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
20030f0: 2d 00 80 93 sethi %hi(0x2024c00), %l6
/*
* Print the information
*/
(*print)( context,
20030f4: 37 00 80 87 sethi %hi(0x2021c00), %i3
}
}
}
#endif
(*print)(
20030f8: 9f c6 40 00 call %i1
20030fc: 35 00 80 93 sethi %hi(0x2024c00), %i2
the_thread = (Thread_Control *)information->local_table[ i ];
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
2003100: a8 07 bf c8 add %fp, -56, %l4
}
}
}
#endif
(*print)(
2003104: a0 14 21 84 or %l0, 0x184, %l0
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
(*print)(
2003108: b8 17 20 60 or %i4, 0x60, %i4
/*
* If this is the currently executing thread, account for time
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
200310c: ac 15 a2 e0 or %l6, 0x2e0, %l6
/*
* Print the information
*/
(*print)( context,
2003110: b6 16 e0 78 or %i3, 0x78, %i3
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
Timestamp_Control used;
_Timestamp_Subtract(
2003114: b4 16 a2 e8 or %i2, 0x2e8, %i2
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
2003118: a6 07 bf e0 add %fp, -32, %l3
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
200311c: c2 04 00 00 ld [ %l0 ], %g1
2003120: 80 a0 60 00 cmp %g1, 0
2003124: 22 80 00 3f be,a 2003220 <rtems_cpu_usage_report_with_plugin+0x174>
2003128: a0 04 20 04 add %l0, 4, %l0
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
200312c: e4 00 60 04 ld [ %g1 + 4 ], %l2
if ( information ) {
2003130: a2 10 20 01 mov 1, %l1
2003134: 80 a4 a0 00 cmp %l2, 0
2003138: 12 80 00 33 bne 2003204 <rtems_cpu_usage_report_with_plugin+0x158><== ALWAYS TAKEN
200313c: aa 07 bf d8 add %fp, -40, %l5
for ( i=1 ; i <= information->maximum ; i++ ) {
2003140: 10 80 00 38 b 2003220 <rtems_cpu_usage_report_with_plugin+0x174><== NOT EXECUTED
2003144: a0 04 20 04 add %l0, 4, %l0 <== NOT EXECUTED
the_thread = (Thread_Control *)information->local_table[ i ];
2003148: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1
200314c: c2 00 40 02 ld [ %g1 + %g2 ], %g1
if ( !the_thread )
2003150: 80 a0 60 00 cmp %g1, 0
2003154: 02 80 00 2c be 2003204 <rtems_cpu_usage_report_with_plugin+0x158><== NEVER TAKEN
2003158: a2 04 60 01 inc %l1
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
200315c: d0 00 60 08 ld [ %g1 + 8 ], %o0
2003160: 40 00 11 c6 call 2007878 <rtems_object_get_name>
2003164: c2 27 bf c4 st %g1, [ %fp + -60 ]
(*print)(
2003168: c2 07 bf c4 ld [ %fp + -60 ], %g1
200316c: 90 10 00 18 mov %i0, %o0
2003170: d4 00 60 08 ld [ %g1 + 8 ], %o2
2003174: 92 10 00 1c mov %i4, %o1
2003178: 9f c6 40 00 call %i1
200317c: 96 10 00 14 mov %l4, %o3
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
/*
* If this is the currently executing thread, account for time
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
2003180: c2 07 bf c4 ld [ %fp + -60 ], %g1
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
2003184: c4 05 80 00 ld [ %l6 ], %g2
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
/*
* If this is the currently executing thread, account for time
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
2003188: c6 00 60 84 ld [ %g1 + 0x84 ], %g3
200318c: c6 27 bf e0 st %g3, [ %fp + -32 ]
2003190: c6 00 60 88 ld [ %g1 + 0x88 ], %g3
2003194: c6 27 bf e4 st %g3, [ %fp + -28 ]
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
2003198: c4 00 a0 08 ld [ %g2 + 8 ], %g2
200319c: c2 00 60 08 ld [ %g1 + 8 ], %g1
20031a0: 80 a0 80 01 cmp %g2, %g1
20031a4: 12 80 00 0a bne 20031cc <rtems_cpu_usage_report_with_plugin+0x120>
20031a8: 94 07 bf fc add %fp, -4, %o2
Timestamp_Control used;
_Timestamp_Subtract(
20031ac: 90 10 00 1a mov %i2, %o0
20031b0: 92 10 00 17 mov %l7, %o1
20031b4: 40 00 21 1d call 200b628 <_Timespec_Subtract>
20031b8: 94 10 00 15 mov %l5, %o2
&_Thread_Time_of_last_context_switch, &uptime, &used
);
_Timestamp_Add_to( &ran, &used );
20031bc: 90 10 00 13 mov %l3, %o0
20031c0: 40 00 20 70 call 200b380 <_Timespec_Add_to>
20031c4: 92 10 00 15 mov %l5, %o1
};
_Timestamp_Divide( &ran, &total, &ival, &fval );
20031c8: 94 07 bf fc add %fp, -4, %o2
20031cc: 96 07 bf f8 add %fp, -8, %o3
20031d0: 90 10 00 13 mov %l3, %o0
20031d4: 40 00 20 85 call 200b3e8 <_Timespec_Divide>
20031d8: 92 10 00 1d mov %i5, %o1
/*
* Print the information
*/
(*print)( context,
20031dc: d0 07 bf e4 ld [ %fp + -28 ], %o0
20031e0: 40 00 70 47 call 201f2fc <.udiv>
20031e4: 92 10 23 e8 mov 0x3e8, %o1
20031e8: d4 07 bf e0 ld [ %fp + -32 ], %o2
20031ec: d8 07 bf fc ld [ %fp + -4 ], %o4
20031f0: da 07 bf f8 ld [ %fp + -8 ], %o5
20031f4: 96 10 00 08 mov %o0, %o3
20031f8: 92 10 00 1b mov %i3, %o1
20031fc: 9f c6 40 00 call %i1
2003200: 90 10 00 18 mov %i0, %o0
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {
2003204: c2 14 a0 10 lduh [ %l2 + 0x10 ], %g1
the_thread = (Thread_Control *)information->local_table[ i ];
if ( !the_thread )
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
2003208: 94 10 00 14 mov %l4, %o2
200320c: 92 10 20 0d mov 0xd, %o1
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {
2003210: 80 a4 40 01 cmp %l1, %g1
2003214: 08 bf ff cd bleu 2003148 <rtems_cpu_usage_report_with_plugin+0x9c>
2003218: 85 2c 60 02 sll %l1, 2, %g2
200321c: a0 04 20 04 add %l0, 4, %l0
" ID | NAME | TICKS | PERCENT\n"
#endif
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
2003220: 03 00 80 93 sethi %hi(0x2024c00), %g1
2003224: 82 10 61 94 or %g1, 0x194, %g1 ! 2024d94 <_Objects_Information_table+0x14>
2003228: 80 a4 00 01 cmp %l0, %g1
200322c: 32 bf ff bd bne,a 2003120 <rtems_cpu_usage_report_with_plugin+0x74>
2003230: c2 04 00 00 ld [ %l0 ], %g1
}
}
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)(
2003234: d0 07 bf ec ld [ %fp + -20 ], %o0
2003238: 40 00 70 31 call 201f2fc <.udiv>
200323c: 92 10 23 e8 mov 0x3e8, %o1
2003240: d4 07 bf e8 ld [ %fp + -24 ], %o2
2003244: 96 10 00 08 mov %o0, %o3
2003248: 13 00 80 87 sethi %hi(0x2021c00), %o1
200324c: 90 10 00 18 mov %i0, %o0
2003250: 9f c6 40 00 call %i1
2003254: 92 12 60 90 or %o1, 0x90, %o1
2003258: 81 c7 e0 08 ret
200325c: 81 e8 00 00 restore
020107e0 <rtems_deviceio_errno>:
{ 0, 0, 0 },
};
int
rtems_deviceio_errno(rtems_status_code code)
{
20107e0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code)))
20107e4: 11 00 80 73 sethi %hi(0x201cc00), %o0 <== NOT EXECUTED
20107e8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20107ec: 40 00 00 0a call 2010814 <rtems_assoc_remote_by_local> <== NOT EXECUTED
20107f0: 90 12 22 a0 or %o0, 0x2a0, %o0 <== NOT EXECUTED
20107f4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20107f8: 02 80 00 05 be 201080c <rtems_deviceio_errno+0x2c> <== NOT EXECUTED
20107fc: 01 00 00 00 nop <== NOT EXECUTED
{
errno = rc;
2010800: 40 00 00 52 call 2010948 <__errno> <== NOT EXECUTED
2010804: 01 00 00 00 nop <== NOT EXECUTED
2010808: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return -1;
}
return -1;
}
201080c: 81 c7 e0 08 ret <== NOT EXECUTED
2010810: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
02003000 <rtems_disk_create_log>:
dev_t phys,
rtems_blkdev_bnum begin_block,
rtems_blkdev_bnum block_count,
const char *name
)
{
2003000: 9d e3 bf 98 save %sp, -104, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *physical_disk = NULL;
rtems_disk_device *dd = NULL;
rtems_blkdev_bnum end_block = begin_block + block_count;
sc = disk_lock();
2003004: 7f ff fe 96 call 2002a5c <disk_lock>
2003008: c0 27 bf fc clr [ %fp + -4 ]
dev_t phys,
rtems_blkdev_bnum begin_block,
rtems_blkdev_bnum block_count,
const char *name
)
{
200300c: 92 10 00 1b mov %i3, %o1
rtems_disk_device *physical_disk = NULL;
rtems_disk_device *dd = NULL;
rtems_blkdev_bnum end_block = begin_block + block_count;
sc = disk_lock();
if (sc != RTEMS_SUCCESSFUL) {
2003010: a0 92 20 00 orcc %o0, 0, %l0
2003014: 12 80 00 31 bne 20030d8 <rtems_disk_create_log+0xd8> <== NEVER TAKEN
2003018: 90 10 00 1a mov %i2, %o0
return sc;
}
physical_disk = get_disk_entry(phys, true);
200301c: 7f ff fd fd call 2002810 <get_disk_entry>
2003020: 94 10 20 01 mov 1, %o2
if (physical_disk == NULL || !is_physical_disk(physical_disk)) {
2003024: 80 a2 20 00 cmp %o0, 0
2003028: 02 80 00 06 be 2003040 <rtems_disk_create_log+0x40>
200302c: 01 00 00 00 nop
}
static bool
is_physical_disk(const rtems_disk_device *dd)
{
return dd->phys_dev == dd;
2003030: e2 02 20 08 ld [ %o0 + 8 ], %l1
if (sc != RTEMS_SUCCESSFUL) {
return sc;
}
physical_disk = get_disk_entry(phys, true);
if (physical_disk == NULL || !is_physical_disk(physical_disk)) {
2003034: 80 a4 40 08 cmp %l1, %o0
2003038: 02 80 00 06 be 2003050 <rtems_disk_create_log+0x50>
200303c: 84 07 40 1c add %i5, %i4, %g2
disk_unlock();
2003040: 7f ff fe 96 call 2002a98 <disk_unlock>
2003044: a0 10 20 04 mov 4, %l0
return RTEMS_INVALID_ID;
2003048: 81 c7 e0 08 ret
200304c: 91 e8 00 10 restore %g0, %l0, %o0
}
if (
2003050: 80 a0 80 1c cmp %g2, %i4
2003054: 08 80 00 07 bleu 2003070 <rtems_disk_create_log+0x70>
2003058: c2 04 60 1c ld [ %l1 + 0x1c ], %g1
200305c: 80 a7 00 01 cmp %i4, %g1
2003060: 1a 80 00 04 bcc 2003070 <rtems_disk_create_log+0x70> <== NEVER TAKEN
2003064: 80 a0 80 01 cmp %g2, %g1
2003068: 08 80 00 06 bleu 2003080 <rtems_disk_create_log+0x80>
200306c: d4 07 a0 5c ld [ %fp + 0x5c ], %o2
begin_block >= physical_disk->size
|| end_block <= begin_block
|| end_block > physical_disk->size
) {
disk_unlock();
2003070: 7f ff fe 8a call 2002a98 <disk_unlock>
2003074: a0 10 20 0a mov 0xa, %l0
return RTEMS_INVALID_NUMBER;
2003078: 81 c7 e0 08 ret
200307c: 91 e8 00 10 restore %g0, %l0, %o0
}
sc = create_disk(dev, name, &dd);
2003080: 90 10 00 18 mov %i0, %o0
2003084: 92 10 00 19 mov %i1, %o1
2003088: 7f ff ff 69 call 2002e2c <create_disk>
200308c: 96 07 bf fc add %fp, -4, %o3
if (sc != RTEMS_SUCCESSFUL) {
2003090: a0 92 20 00 orcc %o0, 0, %l0
2003094: 12 80 00 0f bne 20030d0 <rtems_disk_create_log+0xd0>
2003098: c2 07 bf fc ld [ %fp + -4 ], %g1
}
dd->phys_dev = physical_disk;
dd->start = begin_block;
dd->size = block_count;
dd->block_size = dd->media_block_size = physical_disk->block_size;
200309c: c4 04 60 20 ld [ %l1 + 0x20 ], %g2
dd->ioctl = physical_disk->ioctl;
dd->driver_data = physical_disk->driver_data;
++physical_disk->uses;
20030a0: c6 04 60 14 ld [ %l1 + 0x14 ], %g3
dd->phys_dev = physical_disk;
dd->start = begin_block;
dd->size = block_count;
dd->block_size = dd->media_block_size = physical_disk->block_size;
dd->ioctl = physical_disk->ioctl;
20030a4: c8 04 60 28 ld [ %l1 + 0x28 ], %g4
dd->driver_data = physical_disk->driver_data;
20030a8: da 04 60 2c ld [ %l1 + 0x2c ], %o5
++physical_disk->uses;
20030ac: 86 00 e0 01 inc %g3
return sc;
}
dd->phys_dev = physical_disk;
dd->start = begin_block;
20030b0: f8 20 60 18 st %i4, [ %g1 + 0x18 ]
dd->size = block_count;
dd->block_size = dd->media_block_size = physical_disk->block_size;
dd->ioctl = physical_disk->ioctl;
dd->driver_data = physical_disk->driver_data;
20030b4: da 20 60 2c st %o5, [ %g1 + 0x2c ]
return sc;
}
dd->phys_dev = physical_disk;
dd->start = begin_block;
dd->size = block_count;
20030b8: fa 20 60 1c st %i5, [ %g1 + 0x1c ]
dd->block_size = dd->media_block_size = physical_disk->block_size;
20030bc: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
dd->ioctl = physical_disk->ioctl;
20030c0: c8 20 60 28 st %g4, [ %g1 + 0x28 ]
dd->driver_data = physical_disk->driver_data;
++physical_disk->uses;
20030c4: c6 24 60 14 st %g3, [ %l1 + 0x14 ]
disk_unlock();
return sc;
}
dd->phys_dev = physical_disk;
20030c8: e2 20 60 08 st %l1, [ %g1 + 8 ]
dd->start = begin_block;
dd->size = block_count;
dd->block_size = dd->media_block_size = physical_disk->block_size;
20030cc: c4 20 60 24 st %g2, [ %g1 + 0x24 ]
dd->ioctl = physical_disk->ioctl;
dd->driver_data = physical_disk->driver_data;
++physical_disk->uses;
disk_unlock();
20030d0: 7f ff fe 72 call 2002a98 <disk_unlock>
20030d4: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
}
20030d8: b0 10 00 10 mov %l0, %i0
20030dc: 81 c7 e0 08 ret
20030e0: 81 e8 00 00 restore
020030e4 <rtems_disk_create_phys>:
rtems_blkdev_bnum block_count,
rtems_block_device_ioctl handler,
void *driver_data,
const char *name
)
{
20030e4: 9d e3 bf 98 save %sp, -104, %sp
20030e8: a0 10 00 18 mov %i0, %l0
rtems_disk_device *dd = NULL;
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (handler == NULL) {
20030ec: 80 a7 20 00 cmp %i4, 0
20030f0: 02 80 00 13 be 200313c <rtems_disk_create_phys+0x58>
20030f4: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
}
if (block_size == 0) {
20030f8: 80 a6 a0 00 cmp %i2, 0
20030fc: 02 80 00 10 be 200313c <rtems_disk_create_phys+0x58>
2003100: b0 10 20 0a mov 0xa, %i0
return RTEMS_INVALID_NUMBER;
}
sc = disk_lock();
2003104: 7f ff fe 56 call 2002a5c <disk_lock>
2003108: c0 27 bf fc clr [ %fp + -4 ]
if (sc != RTEMS_SUCCESSFUL) {
200310c: b0 92 20 00 orcc %o0, 0, %i0
2003110: 12 80 00 0b bne 200313c <rtems_disk_create_phys+0x58> <== NEVER TAKEN
2003114: d4 07 a0 5c ld [ %fp + 0x5c ], %o2
return sc;
}
sc = create_disk(dev, name, &dd);
2003118: 90 10 00 10 mov %l0, %o0
200311c: 92 10 00 19 mov %i1, %o1
2003120: 7f ff ff 43 call 2002e2c <create_disk>
2003124: 96 07 bf fc add %fp, -4, %o3
if (sc != RTEMS_SUCCESSFUL) {
2003128: b0 92 20 00 orcc %o0, 0, %i0
200312c: 02 80 00 06 be 2003144 <rtems_disk_create_phys+0x60>
2003130: c2 07 bf fc ld [ %fp + -4 ], %g1
disk_unlock();
2003134: 7f ff fe 59 call 2002a98 <disk_unlock>
2003138: 01 00 00 00 nop
return sc;
200313c: 81 c7 e0 08 ret
2003140: 81 e8 00 00 restore
dd->size = block_count;
dd->block_size = dd->media_block_size = block_size;
dd->ioctl = handler;
dd->driver_data = driver_data;
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
2003144: 13 08 00 10 sethi %hi(0x20004000), %o1
return sc;
}
dd->phys_dev = dd;
dd->start = 0;
dd->size = block_count;
2003148: f6 20 60 1c st %i3, [ %g1 + 0x1c ]
dd->block_size = dd->media_block_size = block_size;
200314c: f4 20 60 20 st %i2, [ %g1 + 0x20 ]
dd->ioctl = handler;
dd->driver_data = driver_data;
2003150: fa 20 60 2c st %i5, [ %g1 + 0x2c ]
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
2003154: 90 10 00 01 mov %g1, %o0
disk_unlock();
return sc;
}
dd->phys_dev = dd;
2003158: c2 20 60 08 st %g1, [ %g1 + 8 ]
dd->start = 0;
200315c: c0 20 60 18 clr [ %g1 + 0x18 ]
dd->size = block_count;
dd->block_size = dd->media_block_size = block_size;
2003160: f4 20 60 24 st %i2, [ %g1 + 0x24 ]
dd->ioctl = handler;
2003164: f8 20 60 28 st %i4, [ %g1 + 0x28 ]
dd->driver_data = driver_data;
if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
2003168: 92 12 62 08 or %o1, 0x208, %o1
200316c: 9f c7 00 00 call %i4
2003170: 94 00 60 0c add %g1, 0xc, %o2
2003174: 80 a2 20 00 cmp %o0, 0
2003178: 16 80 00 03 bge 2003184 <rtems_disk_create_phys+0xa0> <== NEVER TAKEN
200317c: c2 07 bf fc ld [ %fp + -4 ], %g1
dd->capabilities = 0;
2003180: c0 20 60 0c clr [ %g1 + 0xc ]
}
disk_unlock();
2003184: 7f ff fe 45 call 2002a98 <disk_unlock>
2003188: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
}
200318c: 81 c7 e0 08 ret
2003190: 81 e8 00 00 restore
02002bc0 <rtems_disk_delete>:
}
}
rtems_status_code
rtems_disk_delete(dev_t dev)
{
2002bc0: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
sc = disk_lock();
2002bc4: 7f ff ff a6 call 2002a5c <disk_lock>
2002bc8: 01 00 00 00 nop
}
}
rtems_status_code
rtems_disk_delete(dev_t dev)
{
2002bcc: 92 10 00 19 mov %i1, %o1
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
sc = disk_lock();
if (sc != RTEMS_SUCCESSFUL) {
2002bd0: a0 92 20 00 orcc %o0, 0, %l0
2002bd4: 12 80 00 62 bne 2002d5c <rtems_disk_delete+0x19c> <== NEVER TAKEN
2002bd8: 90 10 00 18 mov %i0, %o0
return sc;
}
dd = get_disk_entry(dev, true);
2002bdc: 7f ff ff 0d call 2002810 <get_disk_entry>
2002be0: 94 10 20 01 mov 1, %o2
if (dd == NULL) {
2002be4: 82 92 20 00 orcc %o0, 0, %g1
2002be8: 32 80 00 06 bne,a 2002c00 <rtems_disk_delete+0x40> <== ALWAYS TAKEN
2002bec: e2 00 60 08 ld [ %g1 + 8 ], %l1
disk_unlock();
2002bf0: 7f ff ff aa call 2002a98 <disk_unlock> <== NOT EXECUTED
2002bf4: a0 10 20 04 mov 4, %l0 <== NOT EXECUTED
return RTEMS_INVALID_ID;
2002bf8: 81 c7 e0 08 ret <== NOT EXECUTED
2002bfc: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
}
dd->deleted = true;
2002c00: 84 10 20 01 mov 1, %g2
2002c04: c4 28 60 30 stb %g2, [ %g1 + 0x30 ]
{
rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
if (physical_disk->deleted) {
2002c08: c4 0c 60 30 ldub [ %l1 + 0x30 ], %g2
2002c0c: 80 a0 a0 00 cmp %g2, 0
2002c10: 22 80 00 42 be,a 2002d18 <rtems_disk_delete+0x158>
2002c14: c4 00 60 14 ld [ %g1 + 0x14 ], %g2
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
2002c18: 37 00 80 86 sethi %hi(0x2021800), %i3
rtems_disk_device_table *dtab = disktab + major;
2002c1c: 39 00 80 86 sethi %hi(0x2021800), %i4
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
2002c20: b6 16 e3 0c or %i3, 0x30c, %i3
rtems_disk_device_table *dtab = disktab + major;
2002c24: b8 17 23 08 or %i4, 0x308, %i4
rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
2002c28: fa 04 40 00 ld [ %l1 ], %i5
2002c2c: ee 04 60 04 ld [ %l1 + 4 ], %l7
2002c30: a8 10 20 00 clr %l4
2002c34: a4 10 20 00 clr %l2
if (dd->uses == 0) {
++deleted_count;
dtab->minor [minor] = NULL;
free_disk_device(dd);
} else {
dd->deleted = true;
2002c38: 10 80 00 25 b 2002ccc <rtems_disk_delete+0x10c>
2002c3c: ac 10 20 01 mov 1, %l6
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
2002c40: 83 2c a0 03 sll %l2, 3, %g1
2002c44: a6 10 20 00 clr %l3
2002c48: 10 80 00 1c b 2002cb8 <rtems_disk_delete+0xf8>
2002c4c: aa 05 40 01 add %l5, %g1, %l5
for (minor = 0; minor < dtab->size; ++minor) {
rtems_disk_device *dd = dtab->minor [minor];
2002c50: c4 05 40 00 ld [ %l5 ], %g2
2002c54: d0 00 80 01 ld [ %g2 + %g1 ], %o0
if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
2002c58: 80 a2 20 00 cmp %o0, 0
2002c5c: 02 80 00 16 be 2002cb4 <rtems_disk_delete+0xf4>
2002c60: 80 a2 00 11 cmp %o0, %l1
2002c64: 22 80 00 15 be,a 2002cb8 <rtems_disk_delete+0xf8>
2002c68: a6 04 e0 01 inc %l3
2002c6c: c6 02 20 08 ld [ %o0 + 8 ], %g3
2002c70: c8 00 c0 00 ld [ %g3 ], %g4
2002c74: 80 a1 00 1d cmp %g4, %i5
2002c78: 32 80 00 10 bne,a 2002cb8 <rtems_disk_delete+0xf8> <== NEVER TAKEN
2002c7c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
2002c80: c6 00 e0 04 ld [ %g3 + 4 ], %g3
2002c84: 80 a0 c0 17 cmp %g3, %l7
2002c88: 32 80 00 0c bne,a 2002cb8 <rtems_disk_delete+0xf8> <== NEVER TAKEN
2002c8c: a6 04 e0 01 inc %l3 <== NOT EXECUTED
if (dd->uses == 0) {
2002c90: c6 02 20 14 ld [ %o0 + 0x14 ], %g3
2002c94: 80 a0 e0 00 cmp %g3, 0
2002c98: 32 80 00 07 bne,a 2002cb4 <rtems_disk_delete+0xf4>
2002c9c: ec 2a 20 30 stb %l6, [ %o0 + 0x30 ]
++deleted_count;
dtab->minor [minor] = NULL;
2002ca0: c0 20 80 01 clr [ %g2 + %g1 ]
free_disk_device(dd);
2002ca4: 7f ff ff 00 call 20028a4 <free_disk_device>
2002ca8: a8 05 20 01 inc %l4
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
for (minor = 0; minor < dtab->size; ++minor) {
2002cac: 10 80 00 03 b 2002cb8 <rtems_disk_delete+0xf8>
2002cb0: a6 04 e0 01 inc %l3
2002cb4: a6 04 e0 01 inc %l3
2002cb8: c4 05 60 04 ld [ %l5 + 4 ], %g2
2002cbc: 80 a4 c0 02 cmp %l3, %g2
2002cc0: 0a bf ff e4 bcs 2002c50 <rtems_disk_delete+0x90>
2002cc4: 83 2c e0 02 sll %l3, 2, %g1
if (physical_disk->deleted) {
dev_t dev = physical_disk->dev;
unsigned deleted_count = 0;
for (major = 0; major < disktab_size; ++major) {
2002cc8: a4 04 a0 01 inc %l2
2002ccc: c2 06 c0 00 ld [ %i3 ], %g1
2002cd0: 80 a4 80 01 cmp %l2, %g1
2002cd4: 2a bf ff db bcs,a 2002c40 <rtems_disk_delete+0x80>
2002cd8: ea 07 00 00 ld [ %i4 ], %l5
}
}
}
}
physical_disk->uses -= deleted_count;
2002cdc: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
2002ce0: a8 20 40 14 sub %g1, %l4, %l4
if (physical_disk->uses == 0) {
2002ce4: 80 a5 20 00 cmp %l4, 0
2002ce8: 12 80 00 1b bne 2002d54 <rtems_disk_delete+0x194>
2002cec: e8 24 60 14 st %l4, [ %l1 + 0x14 ]
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
2002cf0: c2 04 40 00 ld [ %l1 ], %g1
disktab [major].minor [minor] = NULL;
2002cf4: 05 00 80 86 sethi %hi(0x2021800), %g2
2002cf8: c4 00 a3 08 ld [ %g2 + 0x308 ], %g2 ! 2021b08 <disktab>
2002cfc: 83 28 60 03 sll %g1, 3, %g1
2002d00: c4 00 80 01 ld [ %g2 + %g1 ], %g2
}
}
physical_disk->uses -= deleted_count;
if (physical_disk->uses == 0) {
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
2002d04: c2 04 60 04 ld [ %l1 + 4 ], %g1
disktab [major].minor [minor] = NULL;
free_disk_device(physical_disk);
2002d08: 90 10 00 11 mov %l1, %o0
}
physical_disk->uses -= deleted_count;
if (physical_disk->uses == 0) {
rtems_filesystem_split_dev_t(physical_disk->dev, major, minor);
disktab [major].minor [minor] = NULL;
2002d0c: 83 28 60 02 sll %g1, 2, %g1
2002d10: 10 80 00 0f b 2002d4c <rtems_disk_delete+0x18c>
2002d14: c0 20 80 01 clr [ %g2 + %g1 ]
free_disk_device(physical_disk);
}
} else {
if (disk_to_remove->uses == 0) {
2002d18: 80 a0 a0 00 cmp %g2, 0
2002d1c: 12 80 00 0e bne 2002d54 <rtems_disk_delete+0x194> <== NEVER TAKEN
2002d20: 05 00 80 86 sethi %hi(0x2021800), %g2
--physical_disk->uses;
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
2002d24: c8 00 40 00 ld [ %g1 ], %g4
disktab [major].minor [minor] = NULL;
2002d28: c6 00 a3 08 ld [ %g2 + 0x308 ], %g3
free_disk_device(physical_disk);
}
} else {
if (disk_to_remove->uses == 0) {
--physical_disk->uses;
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
2002d2c: c4 00 60 04 ld [ %g1 + 4 ], %g2
disktab [major].minor [minor] = NULL;
2002d30: 83 29 20 03 sll %g4, 3, %g1
2002d34: c6 00 c0 01 ld [ %g3 + %g1 ], %g3
disktab [major].minor [minor] = NULL;
free_disk_device(physical_disk);
}
} else {
if (disk_to_remove->uses == 0) {
--physical_disk->uses;
2002d38: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
disktab [major].minor [minor] = NULL;
2002d3c: 85 28 a0 02 sll %g2, 2, %g2
disktab [major].minor [minor] = NULL;
free_disk_device(physical_disk);
}
} else {
if (disk_to_remove->uses == 0) {
--physical_disk->uses;
2002d40: 82 00 7f ff add %g1, -1, %g1
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
disktab [major].minor [minor] = NULL;
2002d44: c0 20 c0 02 clr [ %g3 + %g2 ]
disktab [major].minor [minor] = NULL;
free_disk_device(physical_disk);
}
} else {
if (disk_to_remove->uses == 0) {
--physical_disk->uses;
2002d48: c2 24 60 14 st %g1, [ %l1 + 0x14 ]
rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
disktab [major].minor [minor] = NULL;
free_disk_device(disk_to_remove);
2002d4c: 7f ff fe d6 call 20028a4 <free_disk_device>
2002d50: 01 00 00 00 nop
}
dd->deleted = true;
rtems_disk_cleanup(dd);
disk_unlock();
2002d54: 7f ff ff 51 call 2002a98 <disk_unlock>
2002d58: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
}
2002d5c: b0 10 00 10 mov %l0, %i0
2002d60: 81 c7 e0 08 ret
2002d64: 81 e8 00 00 restore
020028fc <rtems_disk_io_done>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_disk_io_done(void)
{
20028fc: 9d e3 bf a0 save %sp, -96, %sp
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
2002900: 21 00 80 86 sethi %hi(0x2021800), %l0
2002904: 29 00 80 86 sethi %hi(0x2021800), %l4
2002908: a0 14 23 0c or %l0, 0x30c, %l0
rtems_disk_device_table *dtab = disktab + major;
200290c: a8 15 23 08 or %l4, 0x308, %l4
rtems_disk_io_done(void)
{
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
2002910: 10 80 00 15 b 2002964 <rtems_disk_io_done+0x68>
2002914: a4 10 20 00 clr %l2
rtems_disk_device_table *dtab = disktab + major;
2002918: e6 05 00 00 ld [ %l4 ], %l3
200291c: 83 2c a0 03 sll %l2, 3, %g1
2002920: a2 10 20 00 clr %l1
for (minor = 0; minor < dtab->size; ++minor) {
2002924: 10 80 00 08 b 2002944 <rtems_disk_io_done+0x48>
2002928: a6 04 c0 01 add %l3, %g1, %l3
rtems_disk_device *dd = dtab->minor [minor];
200292c: d0 02 00 02 ld [ %o0 + %g2 ], %o0
if (dd != NULL) {
2002930: 80 a2 20 00 cmp %o0, 0
2002934: 22 80 00 05 be,a 2002948 <rtems_disk_io_done+0x4c> <== ALWAYS TAKEN
2002938: c2 04 e0 04 ld [ %l3 + 4 ], %g1
free_disk_device(dd);
200293c: 7f ff ff da call 20028a4 <free_disk_device> <== NOT EXECUTED
2002940: 01 00 00 00 nop <== NOT EXECUTED
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
for (minor = 0; minor < dtab->size; ++minor) {
2002944: c2 04 e0 04 ld [ %l3 + 4 ], %g1
rtems_disk_device *dd = dtab->minor [minor];
2002948: 85 2c 60 02 sll %l1, 2, %g2
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
rtems_disk_device_table *dtab = disktab + major;
for (minor = 0; minor < dtab->size; ++minor) {
200294c: 80 a4 40 01 cmp %l1, %g1
2002950: d0 04 c0 00 ld [ %l3 ], %o0
2002954: 0a bf ff f6 bcs 200292c <rtems_disk_io_done+0x30>
2002958: a2 04 60 01 inc %l1
if (dd != NULL) {
free_disk_device(dd);
}
}
free(dtab->minor);
200295c: 40 00 04 88 call 2003b7c <free>
2002960: a4 04 a0 01 inc %l2
rtems_disk_io_done(void)
{
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
for (major = 0; major < disktab_size; ++major) {
2002964: c2 04 00 00 ld [ %l0 ], %g1
2002968: 80 a4 80 01 cmp %l2, %g1
200296c: 0a bf ff eb bcs 2002918 <rtems_disk_io_done+0x1c>
2002970: 23 00 80 86 sethi %hi(0x2021800), %l1
free_disk_device(dd);
}
}
free(dtab->minor);
}
free(disktab);
2002974: d0 04 63 08 ld [ %l1 + 0x308 ], %o0 ! 2021b08 <disktab>
2002978: 40 00 04 81 call 2003b7c <free>
200297c: 25 00 80 86 sethi %hi(0x2021800), %l2
rtems_semaphore_delete(diskdevs_mutex);
2002980: d0 04 a3 10 ld [ %l2 + 0x310 ], %o0 ! 2021b10 <diskdevs_mutex>
2002984: 40 00 13 31 call 2007648 <rtems_semaphore_delete>
2002988: b0 10 20 00 clr %i0
diskdevs_mutex = RTEMS_ID_NONE;
200298c: c0 24 a3 10 clr [ %l2 + 0x310 ]
disktab = NULL;
2002990: c0 24 63 08 clr [ %l1 + 0x308 ]
disktab_size = 0;
2002994: c0 24 00 00 clr [ %l0 ]
return RTEMS_SUCCESSFUL;
}
2002998: 81 c7 e0 08 ret
200299c: 81 e8 00 00 restore
020029a0 <rtems_disk_io_initialize>:
}
}
rtems_status_code
rtems_disk_io_initialize(void)
{
20029a0: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_device_major_number size = DISKTAB_INITIAL_SIZE;
if (disktab_size > 0) {
20029a4: 23 00 80 86 sethi %hi(0x2021800), %l1
20029a8: c2 04 63 0c ld [ %l1 + 0x30c ], %g1 ! 2021b0c <disktab_size>
20029ac: 80 a0 60 00 cmp %g1, 0
20029b0: 12 80 00 19 bne 2002a14 <rtems_disk_io_initialize+0x74> <== NEVER TAKEN
20029b4: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
disktab = calloc(size, sizeof(rtems_disk_device_table));
20029b8: 90 10 20 08 mov 8, %o0
20029bc: 92 10 20 08 mov 8, %o1
20029c0: 40 00 03 dd call 2003934 <calloc>
20029c4: 21 00 80 86 sethi %hi(0x2021800), %l0
20029c8: d0 24 23 08 st %o0, [ %l0 + 0x308 ] ! 2021b08 <disktab>
if (disktab == NULL) {
20029cc: 80 a2 20 00 cmp %o0, 0
20029d0: 02 80 00 11 be 2002a14 <rtems_disk_io_initialize+0x74> <== NEVER TAKEN
20029d4: b0 10 20 1a mov 0x1a, %i0
return RTEMS_NO_MEMORY;
}
diskdevs_protected = false;
20029d8: 03 00 80 86 sethi %hi(0x2021800), %g1
sc = rtems_semaphore_create(
20029dc: 11 11 11 11 sethi %hi(0x44444400), %o0
disktab = calloc(size, sizeof(rtems_disk_device_table));
if (disktab == NULL) {
return RTEMS_NO_MEMORY;
}
diskdevs_protected = false;
20029e0: c0 28 63 14 clrb [ %g1 + 0x314 ]
sc = rtems_semaphore_create(
20029e4: 90 12 21 56 or %o0, 0x156, %o0
20029e8: 92 10 20 01 mov 1, %o1
20029ec: 94 10 20 10 mov 0x10, %o2
20029f0: 96 10 20 00 clr %o3
20029f4: 25 00 80 86 sethi %hi(0x2021800), %l2
20029f8: 40 00 12 a0 call 2007478 <rtems_semaphore_create>
20029fc: 98 14 a3 10 or %l2, 0x310, %o4 ! 2021b10 <diskdevs_mutex>
RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY
| RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL,
0,
&diskdevs_mutex
);
if (sc != RTEMS_SUCCESSFUL) {
2002a00: 80 a2 20 00 cmp %o0, 0
2002a04: 02 80 00 06 be 2002a1c <rtems_disk_io_initialize+0x7c> <== ALWAYS TAKEN
2002a08: 01 00 00 00 nop
free(disktab);
2002a0c: 40 00 04 5c call 2003b7c <free> <== NOT EXECUTED
2002a10: d0 04 23 08 ld [ %l0 + 0x308 ], %o0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
2002a14: 81 c7 e0 08 ret <== NOT EXECUTED
2002a18: 81 e8 00 00 restore <== NOT EXECUTED
}
sc = rtems_bdbuf_init();
2002a1c: 40 00 25 53 call 200bf68 <rtems_bdbuf_init>
2002a20: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002a24: 80 a2 20 00 cmp %o0, 0
2002a28: 02 80 00 09 be 2002a4c <rtems_disk_io_initialize+0xac> <== ALWAYS TAKEN
2002a2c: 82 10 20 08 mov 8, %g1
rtems_semaphore_delete(diskdevs_mutex);
2002a30: d0 04 a3 10 ld [ %l2 + 0x310 ], %o0 <== NOT EXECUTED
2002a34: 40 00 13 05 call 2007648 <rtems_semaphore_delete> <== NOT EXECUTED
2002a38: b0 10 20 0d mov 0xd, %i0 <== NOT EXECUTED
free(disktab);
2002a3c: 40 00 04 50 call 2003b7c <free> <== NOT EXECUTED
2002a40: d0 04 23 08 ld [ %l0 + 0x308 ], %o0 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
2002a44: 81 c7 e0 08 ret <== NOT EXECUTED
2002a48: 81 e8 00 00 restore <== NOT EXECUTED
}
disktab_size = size;
2002a4c: b0 10 20 00 clr %i0
2002a50: c2 24 63 0c st %g1, [ %l1 + 0x30c ]
return RTEMS_SUCCESSFUL;
}
2002a54: 81 c7 e0 08 ret
2002a58: 81 e8 00 00 restore
02002ad0 <rtems_disk_next>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_next(dev_t dev)
{
2002ad0: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device_table *dtab = NULL;
rtems_device_major_number major = 0;
rtems_device_minor_number minor = 0;
if (dev != (dev_t) -1) {
2002ad4: 80 a6 3f ff cmp %i0, -1
2002ad8: 12 80 00 07 bne 2002af4 <rtems_disk_next+0x24>
2002adc: a2 06 60 01 add %i1, 1, %l1
2002ae0: 80 a6 7f ff cmp %i1, -1
2002ae4: a2 10 20 00 clr %l1
2002ae8: 02 80 00 0a be 2002b10 <rtems_disk_next+0x40> <== ALWAYS TAKEN
2002aec: a0 10 20 00 clr %l0
rtems_filesystem_split_dev_t(dev, major, minor);
/* If minor wraps around */
if ((minor + 1) < minor) {
2002af0: a2 06 60 01 add %i1, 1, %l1 <== NOT EXECUTED
2002af4: 80 a4 40 19 cmp %l1, %i1
2002af8: 1a 80 00 06 bcc 2002b10 <rtems_disk_next+0x40> <== ALWAYS TAKEN
2002afc: a0 10 00 18 mov %i0, %l0
/* If major wraps around */
if ((major + 1) < major) {
2002b00: a0 06 20 01 add %i0, 1, %l0 <== NOT EXECUTED
2002b04: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2002b08: 0a 80 00 2c bcs 2002bb8 <rtems_disk_next+0xe8> <== NOT EXECUTED
2002b0c: a2 10 20 00 clr %l1 <== NOT EXECUTED
} else {
++minor;
}
}
sc = disk_lock();
2002b10: 7f ff ff d3 call 2002a5c <disk_lock>
2002b14: 01 00 00 00 nop
if (sc != RTEMS_SUCCESSFUL) {
2002b18: 80 a2 20 00 cmp %o0, 0
2002b1c: 12 80 00 27 bne 2002bb8 <rtems_disk_next+0xe8> <== NEVER TAKEN
2002b20: 03 00 80 86 sethi %hi(0x2021800), %g1
return NULL;
}
if (major >= disktab_size) {
2002b24: c6 00 63 0c ld [ %g1 + 0x30c ], %g3 ! 2021b0c <disktab_size>
2002b28: 80 a4 00 03 cmp %l0, %g3
2002b2c: 1a 80 00 11 bcc 2002b70 <rtems_disk_next+0xa0> <== NEVER TAKEN
2002b30: 03 00 80 86 sethi %hi(0x2021800), %g1
disk_unlock();
return NULL;
}
dtab = disktab + major;
2002b34: c4 00 63 08 ld [ %g1 + 0x308 ], %g2 ! 2021b08 <disktab>
2002b38: a5 2c 20 03 sll %l0, 3, %l2
2002b3c: a4 00 80 12 add %g2, %l2, %l2
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
2002b40: c2 04 80 00 ld [ %l2 ], %g1
2002b44: 80 a0 60 00 cmp %g1, 0
2002b48: 02 80 00 06 be 2002b60 <rtems_disk_next+0x90>
2002b4c: b1 2c 60 02 sll %l1, 2, %i0
2002b50: c8 04 a0 04 ld [ %l2 + 4 ], %g4
2002b54: 80 a4 40 04 cmp %l1, %g4
2002b58: 2a 80 00 0d bcs,a 2002b8c <rtems_disk_next+0xbc>
2002b5c: c2 00 40 18 ld [ %g1 + %i0 ], %g1
minor = 0;
++major;
2002b60: a0 04 20 01 inc %l0
if (major >= disktab_size) {
2002b64: 80 a4 00 03 cmp %l0, %g3
2002b68: 2a 80 00 06 bcs,a 2002b80 <rtems_disk_next+0xb0>
2002b6c: a5 2c 20 03 sll %l0, 3, %l2
disk_unlock();
2002b70: 7f ff ff ca call 2002a98 <disk_unlock>
2002b74: b0 10 20 00 clr %i0
return NULL;
2002b78: 81 c7 e0 08 ret
2002b7c: 81 e8 00 00 restore
}
dtab = disktab + major;
2002b80: a2 10 20 00 clr %l1
return NULL;
}
dtab = disktab + major;
while (true) {
if (dtab->minor == NULL || minor >= dtab->size) {
2002b84: 10 bf ff ef b 2002b40 <rtems_disk_next+0x70>
2002b88: a4 00 80 12 add %g2, %l2, %l2
disk_unlock();
return NULL;
}
dtab = disktab + major;
} else if (dtab->minor [minor] == NULL) {
2002b8c: 80 a0 60 00 cmp %g1, 0
2002b90: 02 bf ff ec be 2002b40 <rtems_disk_next+0x70>
2002b94: a2 04 60 01 inc %l1
++minor;
} else {
++dtab->minor [minor]->uses;
2002b98: c4 00 60 14 ld [ %g1 + 0x14 ], %g2
2002b9c: 84 00 a0 01 inc %g2
disk_unlock();
2002ba0: 7f ff ff be call 2002a98 <disk_unlock>
2002ba4: c4 20 60 14 st %g2, [ %g1 + 0x14 ]
return dtab->minor [minor];
2002ba8: c2 04 80 00 ld [ %l2 ], %g1
2002bac: f0 00 40 18 ld [ %g1 + %i0 ], %i0
2002bb0: 81 c7 e0 08 ret
2002bb4: 81 e8 00 00 restore
}
}
}
2002bb8: 81 c7 e0 08 ret <== NOT EXECUTED
2002bbc: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02002db0 <rtems_disk_obtain>:
return RTEMS_SUCCESSFUL;
}
rtems_disk_device *
rtems_disk_obtain(dev_t dev)
{
2002db0: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_disk_device *dd = NULL;
rtems_interrupt_level level;
rtems_interrupt_disable(level);
2002db4: 7f ff fe 22 call 200263c <sparc_disable_interrupts>
2002db8: a4 10 00 18 mov %i0, %l2
2002dbc: a0 10 00 08 mov %o0, %l0
if (!diskdevs_protected) {
2002dc0: 03 00 80 86 sethi %hi(0x2021800), %g1
2002dc4: c2 08 63 14 ldub [ %g1 + 0x314 ], %g1 ! 2021b14 <diskdevs_protected>
2002dc8: 80 a0 60 00 cmp %g1, 0
2002dcc: 12 80 00 0a bne 2002df4 <rtems_disk_obtain+0x44> <== NEVER TAKEN
2002dd0: 92 10 00 19 mov %i1, %o1
/* Frequent and quickest case */
dd = get_disk_entry(dev, false);
2002dd4: 90 10 00 18 mov %i0, %o0
2002dd8: 7f ff fe 8e call 2002810 <get_disk_entry>
2002ddc: 94 10 20 00 clr %o2
2002de0: b0 10 00 08 mov %o0, %i0
rtems_interrupt_enable(level);
2002de4: 7f ff fe 1a call 200264c <sparc_enable_interrupts>
2002de8: 90 10 00 10 mov %l0, %o0
2002dec: 81 c7 e0 08 ret
2002df0: 81 e8 00 00 restore
} else {
rtems_interrupt_enable(level);
2002df4: 7f ff fe 16 call 200264c <sparc_enable_interrupts> <== NOT EXECUTED
2002df8: b0 10 20 00 clr %i0 <== NOT EXECUTED
sc = disk_lock();
2002dfc: 7f ff ff 18 call 2002a5c <disk_lock> <== NOT EXECUTED
2002e00: 01 00 00 00 nop <== NOT EXECUTED
if (sc == RTEMS_SUCCESSFUL) {
2002e04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2002e08: 12 bf ff f9 bne 2002dec <rtems_disk_obtain+0x3c> <== NOT EXECUTED
2002e0c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
dd = get_disk_entry(dev, false);
2002e10: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2002e14: 7f ff fe 7f call 2002810 <get_disk_entry> <== NOT EXECUTED
2002e18: 94 10 20 00 clr %o2 <== NOT EXECUTED
disk_unlock();
2002e1c: 7f ff ff 1f call 2002a98 <disk_unlock> <== NOT EXECUTED
2002e20: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
}
return dd;
}
2002e24: 81 c7 e0 08 ret <== NOT EXECUTED
2002e28: 81 e8 00 00 restore <== NOT EXECUTED
020200e0 <rtems_dosfs_initialize>:
int rtems_dosfs_initialize(rtems_filesystem_mount_table_entry_t *mt_entry,
const void *data)
{
int rc;
rc = msdos_initialize_support(mt_entry,
20200e0: 13 00 81 8d sethi %hi(0x2063400), %o1 <== NOT EXECUTED
20200e4: 15 00 81 a0 sethi %hi(0x2068000), %o2 <== NOT EXECUTED
20200e8: 17 00 81 a0 sethi %hi(0x2068000), %o3 <== NOT EXECUTED
20200ec: 92 12 63 88 or %o1, 0x388, %o1 <== NOT EXECUTED
20200f0: 94 12 a1 50 or %o2, 0x150, %o2 <== NOT EXECUTED
20200f4: 96 12 e1 18 or %o3, 0x118, %o3 <== NOT EXECUTED
20200f8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20200fc: 40 00 00 03 call 2020108 <msdos_initialize_support> <== NOT EXECUTED
2020100: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0200792c <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
200792c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
2007930: 94 07 a0 4c add %fp, 0x4c, %o2 <== NOT EXECUTED
2007934: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
2007938: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
200793c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2007940: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
2007944: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2007948: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
200794c: 7f ff ff 7d call 2007740 <rtems_verror> <== NOT EXECUTED
2007950: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
va_end(arglist);
return chars_written;
}
2007954: 81 c7 e0 08 ret <== NOT EXECUTED
2007958: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02002a88 <rtems_filesystem_evaluate_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
2002a88: 9d e3 bf 98 save %sp, -104, %sp
/*
* Verify Input parameters.
*/
if ( !pathname )
2002a8c: 80 a6 20 00 cmp %i0, 0
2002a90: 12 80 00 06 bne 2002aa8 <rtems_filesystem_evaluate_path+0x20><== ALWAYS TAKEN
2002a94: c0 27 bf fc clr [ %fp + -4 ]
rtems_set_errno_and_return_minus_one( EFAULT );
2002a98: 40 00 37 ac call 2010948 <__errno> <== NOT EXECUTED
2002a9c: 01 00 00 00 nop <== NOT EXECUTED
2002aa0: 10 80 00 08 b 2002ac0 <rtems_filesystem_evaluate_path+0x38><== NOT EXECUTED
2002aa4: 82 10 20 0e mov 0xe, %g1 ! e <PROM_START+0xe> <== NOT EXECUTED
if ( !pathloc )
2002aa8: 80 a6 e0 00 cmp %i3, 0
2002aac: 32 80 00 08 bne,a 2002acc <rtems_filesystem_evaluate_path+0x44><== ALWAYS TAKEN
2002ab0: 90 10 00 18 mov %i0, %o0
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
2002ab4: 40 00 37 a5 call 2010948 <__errno> <== NOT EXECUTED
2002ab8: 01 00 00 00 nop <== NOT EXECUTED
2002abc: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2002ac0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002ac4: 10 80 00 0c b 2002af4 <rtems_filesystem_evaluate_path+0x6c><== NOT EXECUTED
2002ac8: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
/*
* Evaluate the path using the optable evalpath.
*/
rtems_filesystem_get_start_loc( pathname, &i, pathloc );
2002acc: 92 07 bf fc add %fp, -4, %o1
2002ad0: 40 00 03 e9 call 2003a74 <rtems_filesystem_get_start_loc>
2002ad4: 94 10 00 1b mov %i3, %o2
/*
* We evaluation the path relative to the start location we get got.
*/
return rtems_filesystem_evaluate_relative_path( &pathname[i],
2002ad8: d0 07 bf fc ld [ %fp + -4 ], %o0
2002adc: 94 10 00 1a mov %i2, %o2
2002ae0: 92 26 40 08 sub %i1, %o0, %o1
2002ae4: 96 10 00 1b mov %i3, %o3
2002ae8: 90 06 00 08 add %i0, %o0, %o0
2002aec: 7f ff ff ab call 2002998 <rtems_filesystem_evaluate_relative_path>
2002af0: 98 10 00 1c mov %i4, %o4
pathnamelen - i,
flags,
pathloc,
follow_link );
}
2002af4: 81 c7 e0 08 ret
2002af8: 91 e8 00 08 restore %g0, %o0, %o0
02002998 <rtems_filesystem_evaluate_relative_path>:
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
2002998: 9d e3 bf a0 save %sp, -96, %sp
200299c: 90 10 00 18 mov %i0, %o0
/*
* Verify Input parameters.
*/
if ( !pathname )
20029a0: 80 a6 20 00 cmp %i0, 0
20029a4: 12 80 00 06 bne 20029bc <rtems_filesystem_evaluate_relative_path+0x24><== ALWAYS TAKEN
20029a8: 92 10 00 19 mov %i1, %o1
rtems_set_errno_and_return_minus_one( EFAULT );
20029ac: 40 00 37 e7 call 2010948 <__errno> <== NOT EXECUTED
20029b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20029b4: 10 80 00 2d b 2002a68 <rtems_filesystem_evaluate_relative_path+0xd0><== NOT EXECUTED
20029b8: 82 10 20 0e mov 0xe, %g1 <== NOT EXECUTED
if ( !pathloc )
20029bc: 80 a6 e0 00 cmp %i3, 0
20029c0: 32 80 00 06 bne,a 20029d8 <rtems_filesystem_evaluate_relative_path+0x40><== ALWAYS TAKEN
20029c4: c2 06 e0 0c ld [ %i3 + 0xc ], %g1
rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */
20029c8: 40 00 37 e0 call 2010948 <__errno> <== NOT EXECUTED
20029cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20029d0: 10 80 00 26 b 2002a68 <rtems_filesystem_evaluate_relative_path+0xd0><== NOT EXECUTED
20029d4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
if ( !pathloc->ops->evalpath_h )
20029d8: c2 00 40 00 ld [ %g1 ], %g1
20029dc: 80 a0 60 00 cmp %g1, 0
20029e0: 02 80 00 1f be 2002a5c <rtems_filesystem_evaluate_relative_path+0xc4><== NEVER TAKEN
20029e4: 94 10 00 1a mov %i2, %o2
rtems_set_errno_and_return_minus_one( ENOTSUP );
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
20029e8: 9f c0 40 00 call %g1
20029ec: 96 10 00 1b mov %i3, %o3
/*
* Get the Node type and determine if you need to follow the link or
* not.
*/
if ( (result == 0) && follow_link ) {
20029f0: b0 92 20 00 orcc %o0, 0, %i0
20029f4: 12 80 00 1e bne 2002a6c <rtems_filesystem_evaluate_relative_path+0xd4>
20029f8: 80 a7 20 00 cmp %i4, 0
20029fc: 02 80 00 21 be 2002a80 <rtems_filesystem_evaluate_relative_path+0xe8>
2002a00: 01 00 00 00 nop
if ( !pathloc->ops->node_type_h ){
2002a04: c4 06 e0 0c ld [ %i3 + 0xc ], %g2
2002a08: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
2002a0c: 80 a0 60 00 cmp %g1, 0
2002a10: 22 80 00 0e be,a 2002a48 <rtems_filesystem_evaluate_relative_path+0xb0><== NEVER TAKEN
2002a14: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( pathloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
type = (*pathloc->ops->node_type_h)( pathloc );
2002a18: 9f c0 40 00 call %g1
2002a1c: 90 10 00 1b mov %i3, %o0
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
2002a20: 90 02 3f fd add %o0, -3, %o0
2002a24: 80 a2 20 01 cmp %o0, 1
2002a28: 18 80 00 16 bgu 2002a80 <rtems_filesystem_evaluate_relative_path+0xe8>
2002a2c: 01 00 00 00 nop
( type == RTEMS_FILESYSTEM_SYM_LINK ) ) {
if ( !pathloc->ops->eval_link_h ){
2002a30: c4 06 e0 0c ld [ %i3 + 0xc ], %g2
2002a34: c2 00 a0 34 ld [ %g2 + 0x34 ], %g1
2002a38: 80 a0 60 00 cmp %g1, 0
2002a3c: 12 80 00 0e bne 2002a74 <rtems_filesystem_evaluate_relative_path+0xdc><== ALWAYS TAKEN
2002a40: 90 10 00 1b mov %i3, %o0
rtems_filesystem_freenode( pathloc );
2002a44: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
2002a48: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002a4c: 02 80 00 04 be 2002a5c <rtems_filesystem_evaluate_relative_path+0xc4><== NOT EXECUTED
2002a50: 01 00 00 00 nop <== NOT EXECUTED
2002a54: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002a58: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2002a5c: 40 00 37 bb call 2010948 <__errno> <== NOT EXECUTED
2002a60: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2002a64: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2002a68: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2002a6c: 81 c7 e0 08 ret
2002a70: 81 e8 00 00 restore
* pathloc will be passed up (and eventually released).
* Hence, the (valid) originial node that we submit to
* eval_link_h() should be released by the handler.
*/
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
2002a74: 9f c0 40 00 call %g1
2002a78: 92 10 00 1a mov %i2, %o1
2002a7c: b0 10 00 08 mov %o0, %i0
}
}
return result;
}
2002a80: 81 c7 e0 08 ret
2002a84: 81 e8 00 00 restore
0200c3ec <rtems_filesystem_get_mount_handler>:
rtems_filesystem_fsmount_me_t
rtems_filesystem_get_mount_handler(
const char *type
)
{
200c3ec: 9d e3 bf 98 save %sp, -104, %sp
find_arg fa = {
.type = type,
.mount_h = NULL
};
200c3f0: c0 27 bf fc clr [ %fp + -4 ]
if ( type != NULL ) {
200c3f4: 80 a6 20 00 cmp %i0, 0
200c3f8: 02 80 00 06 be 200c410 <rtems_filesystem_get_mount_handler+0x24><== NEVER TAKEN
200c3fc: f0 27 bf f8 st %i0, [ %fp + -8 ]
rtems_filesystem_iterate( find_handler, &fa );
200c400: 11 00 80 30 sethi %hi(0x200c000), %o0
200c404: 92 07 bf f8 add %fp, -8, %o1
200c408: 7f ff ff c8 call 200c328 <rtems_filesystem_iterate>
200c40c: 90 12 22 38 or %o0, 0x238, %o0
}
return fa.mount_h;
}
200c410: f0 07 bf fc ld [ %fp + -4 ], %i0
200c414: 81 c7 e0 08 ret
200c418: 81 e8 00 00 restore
020027bc <rtems_filesystem_initialize>:
* configuration is a single instantiation of the IMFS or miniIMFS with
* a single "/dev" directory in it.
*/
void rtems_filesystem_initialize( void )
{
20027bc: 9d e3 bf 88 save %sp, -120, %sp
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
20027c0: 23 00 80 76 sethi %hi(0x201d800), %l1
20027c4: c2 04 60 70 ld [ %l1 + 0x70 ], %g1 ! 201d870 <rtems_current_user_env>
20027c8: 84 10 20 12 mov 0x12, %g2
20027cc: c4 20 60 2c st %g2, [ %g1 + 0x2c ]
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
20027d0: 03 00 80 6f sethi %hi(0x201bc00), %g1
20027d4: c2 00 63 18 ld [ %g1 + 0x318 ], %g1 ! 201bf18 <rtems_filesystem_mount_table_size>
rtems_fatal_error_occurred( 0xABCD0001 );
20027d8: 11 2a f3 40 sethi %hi(0xabcd0000), %o0
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
20027dc: 80 a0 60 00 cmp %g1, 0
20027e0: 02 80 00 0f be 200281c <rtems_filesystem_initialize+0x60> <== NEVER TAKEN
20027e4: 90 12 20 01 or %o0, 1, %o0
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
20027e8: 03 00 80 75 sethi %hi(0x201d400), %g1
20027ec: c2 00 62 ac ld [ %g1 + 0x2ac ], %g1 ! 201d6ac <rtems_filesystem_mount_table>
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
20027f0: 98 10 20 00 clr %o4
20027f4: d6 00 60 04 ld [ %g1 + 4 ], %o3
20027f8: d0 00 60 08 ld [ %g1 + 8 ], %o0
20027fc: d2 00 60 0c ld [ %g1 + 0xc ], %o1
2002800: 40 00 02 55 call 2003154 <mount>
2002804: d4 00 40 00 ld [ %g1 ], %o2
if ( status == -1 )
2002808: 80 a2 3f ff cmp %o0, -1
200280c: 12 80 00 06 bne 2002824 <rtems_filesystem_initialize+0x68><== ALWAYS TAKEN
2002810: c2 04 60 70 ld [ %l1 + 0x70 ], %g1
rtems_fatal_error_occurred( 0xABCD0002 );
2002814: 11 2a f3 40 sethi %hi(0xabcd0000), %o0 <== NOT EXECUTED
2002818: 90 12 20 02 or %o0, 2, %o0 ! abcd0002 <RAM_END+0xa98d0002><== NOT EXECUTED
200281c: 40 00 10 65 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002820: 01 00 00 00 nop <== NOT EXECUTED
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
2002824: a0 07 bf ec add %fp, -20, %l0
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
rtems_filesystem_link_counts = 0;
2002828: c0 30 60 30 clrh [ %g1 + 0x30 ]
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
200282c: 96 10 00 10 mov %l0, %o3
2002830: 98 10 20 00 clr %o4
2002834: 25 00 80 70 sethi %hi(0x201c000), %l2
2002838: 92 10 20 01 mov 1, %o1
200283c: 94 10 20 00 clr %o2
2002840: 40 00 00 92 call 2002a88 <rtems_filesystem_evaluate_path>
2002844: 90 14 a3 c8 or %l2, 0x3c8, %o0
rtems_filesystem_root = loc;
2002848: d0 04 60 70 ld [ %l1 + 0x70 ], %o0
200284c: 92 10 00 10 mov %l0, %o1
2002850: 94 10 20 14 mov 0x14, %o2
2002854: 40 00 3a 79 call 2011238 <memcpy>
2002858: 90 02 20 18 add %o0, 0x18, %o0
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
200285c: 96 10 00 10 mov %l0, %o3
2002860: 98 10 20 00 clr %o4
2002864: 92 10 20 01 mov 1, %o1
2002868: 94 10 20 00 clr %o2
200286c: 40 00 00 87 call 2002a88 <rtems_filesystem_evaluate_path>
2002870: 90 14 a3 c8 or %l2, 0x3c8, %o0
rtems_filesystem_current = loc;
2002874: d0 04 60 70 ld [ %l1 + 0x70 ], %o0
2002878: 92 10 00 10 mov %l0, %o1
200287c: 94 10 20 14 mov 0x14, %o2
2002880: 40 00 3a 6e call 2011238 <memcpy>
2002884: 90 02 20 04 add %o0, 4, %o0
*
* NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
2002888: 92 10 21 ff mov 0x1ff, %o1
200288c: 11 00 80 70 sethi %hi(0x201c000), %o0
2002890: 40 00 01 bb call 2002f7c <mkdir>
2002894: 90 12 23 d0 or %o0, 0x3d0, %o0 ! 201c3d0 <IMFS_ops+0x50>
if ( status != 0 )
2002898: 80 a2 20 00 cmp %o0, 0
200289c: 02 80 00 04 be 20028ac <rtems_filesystem_initialize+0xf0> <== ALWAYS TAKEN
20028a0: 11 2a f3 40 sethi %hi(0xabcd0000), %o0
rtems_fatal_error_occurred( 0xABCD0003 );
20028a4: 10 bf ff de b 200281c <rtems_filesystem_initialize+0x60> <== NOT EXECUTED
20028a8: 90 12 20 03 or %o0, 3, %o0 ! abcd0003 <RAM_END+0xa98d0003><== NOT EXECUTED
20028ac: 81 c7 e0 08 ret
20028b0: 81 e8 00 00 restore
020030e0 <rtems_filesystem_mount_iterate>:
bool rtems_filesystem_mount_iterate(
rtems_per_filesystem_mount_routine routine,
void *routine_arg
)
{
20030e0: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
20030e4: 03 00 80 78 sethi %hi(0x201e000), %g1
20030e8: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore>
20030ec: 92 10 20 00 clr %o1
20030f0: 40 00 0c 95 call 2006344 <rtems_semaphore_obtain>
20030f4: 94 10 20 00 clr %o2
20030f8: a0 10 00 18 mov %i0, %l0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
20030fc: 03 00 80 76 sethi %hi(0x201d800), %g1
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2003100: 25 00 80 76 sethi %hi(0x201d800), %l2
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
2003104: b0 10 20 00 clr %i0
2003108: e2 00 60 50 ld [ %g1 + 0x50 ], %l1
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
200310c: 10 80 00 06 b 2003124 <rtems_filesystem_mount_iterate+0x44>
2003110: a4 14 a0 54 or %l2, 0x54, %l2
node = rtems_chain_next( node )
) {
const rtems_filesystem_mount_table_entry_t *mt_entry =
(rtems_filesystem_mount_table_entry_t *) node;
stop = (*routine)( mt_entry, routine_arg );
2003114: 9f c4 00 00 call %l0
2003118: 01 00 00 00 nop
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
200311c: e2 04 40 00 ld [ %l1 ], %l1
2003120: b0 10 00 08 mov %o0, %i0
2003124: 90 10 00 11 mov %l1, %o0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
2003128: 80 a4 40 12 cmp %l1, %l2
200312c: 02 80 00 05 be 2003140 <rtems_filesystem_mount_iterate+0x60>
2003130: 92 10 00 19 mov %i1, %o1
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
2003134: 80 8e 20 ff btst 0xff, %i0
2003138: 02 bf ff f7 be 2003114 <rtems_filesystem_mount_iterate+0x34><== ALWAYS TAKEN
200313c: 01 00 00 00 nop
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
2003140: 03 00 80 78 sethi %hi(0x201e000), %g1
2003144: 40 00 0c c7 call 2006460 <rtems_semaphore_release>
2003148: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore>
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
200314c: 81 c7 e0 08 ret
2003150: 81 e8 00 00 restore
02002910 <rtems_filesystem_prefix_separators>:
int rtems_filesystem_prefix_separators(
const char *pathname,
int pathnamelen
)
{
2002910: 9d e3 bf a0 save %sp, -96, %sp
2002914: a0 10 00 18 mov %i0, %l0
2002918: b0 10 20 00 clr %i0
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
200291c: 80 a6 40 18 cmp %i1, %i0
2002920: 02 80 00 0c be 2002950 <rtems_filesystem_prefix_separators+0x40><== NEVER TAKEN
2002924: d0 0c 00 18 ldub [ %l0 + %i0 ], %o0
2002928: 91 2a 20 18 sll %o0, 0x18, %o0
200292c: 91 3a 20 18 sra %o0, 0x18, %o0
2002930: 80 a2 20 00 cmp %o0, 0
2002934: 02 80 00 07 be 2002950 <rtems_filesystem_prefix_separators+0x40><== NEVER TAKEN
2002938: 01 00 00 00 nop
200293c: 40 00 04 65 call 2003ad0 <rtems_filesystem_is_separator>
2002940: 01 00 00 00 nop
2002944: 80 a2 20 00 cmp %o0, 0
2002948: 32 bf ff f5 bne,a 200291c <rtems_filesystem_prefix_separators+0xc>
200294c: b0 06 20 01 inc %i0
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
2002950: 81 c7 e0 08 ret
2002954: 81 e8 00 00 restore
0200c41c <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
200c41c: 9d e3 bf a0 save %sp, -96, %sp
size_t fsn_size = sizeof( filesystem_node ) + strlen(type) + 1;
200c420: 40 00 15 17 call 201187c <strlen>
200c424: 90 10 00 18 mov %i0, %o0
filesystem_node *fsn = malloc( fsn_size );
200c428: 7f ff da 94 call 2002e78 <malloc>
200c42c: 90 02 20 11 add %o0, 0x11, %o0
char *type_storage = (char *) fsn + sizeof( filesystem_node );
if ( fsn == NULL )
200c430: a0 92 20 00 orcc %o0, 0, %l0
200c434: 12 80 00 08 bne 200c454 <rtems_filesystem_register+0x38> <== ALWAYS TAKEN
200c438: a4 04 20 10 add %l0, 0x10, %l2
rtems_set_errno_and_return_minus_one( ENOMEM );
200c43c: 40 00 11 43 call 2010948 <__errno> <== NOT EXECUTED
200c440: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c444: 82 10 20 0c mov 0xc, %g1 <== NOT EXECUTED
200c448: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c44c: 81 c7 e0 08 ret <== NOT EXECUTED
200c450: 81 e8 00 00 restore <== NOT EXECUTED
strcpy(type_storage, type);
200c454: 92 10 00 18 mov %i0, %o1
200c458: 40 00 14 d1 call 201179c <strcpy>
200c45c: 90 10 00 12 mov %l2, %o0
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
200c460: 23 00 80 78 sethi %hi(0x201e000), %l1
200c464: d0 04 60 bc ld [ %l1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore>
200c468: 92 10 20 00 clr %o1
200c46c: 94 10 20 00 clr %o2
fsn->entry.type = type_storage;
200c470: e4 24 20 08 st %l2, [ %l0 + 8 ]
200c474: 7f ff e7 b4 call 2006344 <rtems_semaphore_obtain>
200c478: f2 24 20 0c st %i1, [ %l0 + 0xc ]
fsn->entry.mount_h = mount_h;
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
200c47c: 7f ff ff dc call 200c3ec <rtems_filesystem_get_mount_handler>
200c480: 90 10 00 18 mov %i0, %o0
200c484: 80 a2 20 00 cmp %o0, 0
200c488: 12 80 00 0a bne 200c4b0 <rtems_filesystem_register+0x94> <== NEVER TAKEN
200c48c: 92 10 00 10 mov %l0, %o1
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
200c490: 11 00 80 76 sethi %hi(0x201d800), %o0
200c494: 7f ff ea 22 call 2006d1c <_Chain_Append>
200c498: 90 12 20 78 or %o0, 0x78, %o0 ! 201d878 <filesystem_chain>
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c49c: d0 04 60 bc ld [ %l1 + 0xbc ], %o0
200c4a0: 7f ff e7 f0 call 2006460 <rtems_semaphore_release>
200c4a4: b0 10 20 00 clr %i0
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_unlock();
return 0;
200c4a8: 81 c7 e0 08 ret
200c4ac: 81 e8 00 00 restore
200c4b0: d0 04 60 bc ld [ %l1 + 0xbc ], %o0 <== NOT EXECUTED
200c4b4: 7f ff e7 eb call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200c4b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
rtems_chain_append( &filesystem_chain, &fsn->node );
} else {
rtems_libio_unlock();
free( fsn );
200c4bc: 7f ff d9 90 call 2002afc <free> <== NOT EXECUTED
200c4c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
200c4c4: 40 00 11 21 call 2010948 <__errno> <== NOT EXECUTED
200c4c8: 01 00 00 00 nop <== NOT EXECUTED
200c4cc: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
200c4d0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
rtems_libio_unlock();
return 0;
}
200c4d4: 81 c7 e0 08 ret <== NOT EXECUTED
200c4d8: 81 e8 00 00 restore <== NOT EXECUTED
0200c26c <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
200c26c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
200c270: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
200c274: 12 80 00 08 bne 200c294 <rtems_filesystem_unregister+0x28><== NOT EXECUTED
200c278: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
200c27c: 40 00 11 b3 call 2010948 <__errno> <== NOT EXECUTED
200c280: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200c284: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
200c288: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
200c28c: 81 c7 e0 08 ret <== NOT EXECUTED
200c290: 81 e8 00 00 restore <== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
200c294: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 <== NOT EXECUTED
200c298: 92 10 20 00 clr %o1 <== NOT EXECUTED
200c29c: 7f ff e8 2a call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
200c2a0: 94 10 20 00 clr %o2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200c2a4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200c2a8: 23 00 80 76 sethi %hi(0x201d800), %l1 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
200c2ac: e0 00 60 78 ld [ %g1 + 0x78 ], %l0 <== NOT EXECUTED
}
rtems_libio_lock();
for (
200c2b0: 10 80 00 11 b 200c2f4 <rtems_filesystem_unregister+0x88> <== NOT EXECUTED
200c2b4: a2 14 60 7c or %l1, 0x7c, %l1 <== NOT EXECUTED
!rtems_chain_is_tail( &filesystem_chain, node );
node = rtems_chain_next( node )
) {
filesystem_node *fsn = (filesystem_node *) node;
if ( strcmp( fsn->entry.type, type ) == 0 ) {
200c2b8: 40 00 15 0b call 20116e4 <strcmp> <== NOT EXECUTED
200c2bc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
200c2c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200c2c4: 32 80 00 0c bne,a 200c2f4 <rtems_filesystem_unregister+0x88><== NOT EXECUTED
200c2c8: e0 04 00 00 ld [ %l0 ], %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
200c2cc: 7f ff ea a0 call 2006d4c <_Chain_Extract> <== NOT EXECUTED
200c2d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
200c2d4: 7f ff da 0a call 2002afc <free> <== NOT EXECUTED
200c2d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c2dc: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
200c2e0: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore><== NOT EXECUTED
200c2e4: 7f ff e8 5f call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200c2e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_libio_unlock();
return 0;
200c2ec: 81 c7 e0 08 ret <== NOT EXECUTED
200c2f0: 81 e8 00 00 restore <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
200c2f4: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
200c2f8: 32 bf ff f0 bne,a 200c2b8 <rtems_filesystem_unregister+0x4c><== NOT EXECUTED
200c2fc: d0 04 20 08 ld [ %l0 + 8 ], %o0 <== NOT EXECUTED
200c300: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
200c304: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore><== NOT EXECUTED
200c308: 7f ff e8 56 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
200c30c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
200c310: 40 00 11 8e call 2010948 <__errno> <== NOT EXECUTED
200c314: 01 00 00 00 nop <== NOT EXECUTED
200c318: 82 10 20 02 mov 2, %g1 ! 2 <PROM_START+0x2> <== NOT EXECUTED
200c31c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
200c320: 81 c7 e0 08 ret <== NOT EXECUTED
200c324: 81 e8 00 00 restore <== NOT EXECUTED
02007320 <rtems_fsmount>:
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2007320: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
2007324: 23 00 81 ad sethi %hi(0x206b400), %l1 <== NOT EXECUTED
2007328: 2b 00 81 7e sethi %hi(0x205f800), %l5 <== NOT EXECUTED
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
200732c: 29 00 81 7e sethi %hi(0x205f800), %l4 <== NOT EXECUTED
*/
if (tmp_rc == 0) {
tmp_rc = rtems_mkdir(fstab_ptr->target, S_IRWXU | S_IRWXG | S_IRWXO);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
2007330: 27 00 81 7e sethi %hi(0x205f800), %l3 <== NOT EXECUTED
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
2007334: a2 14 61 48 or %l1, 0x148, %l1 <== NOT EXECUTED
2007338: aa 15 63 78 or %l5, 0x378, %l5 <== NOT EXECUTED
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
fprintf(stdout,"fsmount: mounting of \"%s\" to"
200733c: a8 15 23 48 or %l4, 0x348, %l4 <== NOT EXECUTED
*/
if (tmp_rc == 0) {
tmp_rc = rtems_mkdir(fstab_ptr->target, S_IRWXU | S_IRWXG | S_IRWXO);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
2007340: a6 14 e3 10 or %l3, 0x310, %l3 <== NOT EXECUTED
)
/*-------------------------------------------------------------------------*\
| Return Value: |
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
{
2007344: 10 80 00 3d b 2007438 <rtems_fsmount+0x118> <== NOT EXECUTED
2007348: a0 10 20 00 clr %l0 <== NOT EXECUTED
tmp_rc = 0;
/*
* create mount point
*/
if (tmp_rc == 0) {
tmp_rc = rtems_mkdir(fstab_ptr->target, S_IRWXU | S_IRWXG | S_IRWXO);
200734c: 40 00 09 9b call 20099b8 <rtems_mkdir> <== NOT EXECUTED
2007350: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
if (tmp_rc != 0) {
2007354: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2007358: 22 80 00 41 be,a 200745c <rtems_fsmount+0x13c> <== NOT EXECUTED
200735c: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNTPNT_CRTERR)) {
2007360: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
2007364: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
2007368: 22 80 00 0e be,a 20073a0 <rtems_fsmount+0x80> <== NOT EXECUTED
200736c: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED
fprintf(stdout,"fsmount: creation of mount point \"%s\" failed: %s\n",
2007370: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED
2007374: ec 06 20 04 ld [ %i0 + 4 ], %l6 <== NOT EXECUTED
2007378: 40 00 f3 c7 call 2044294 <__errno> <== NOT EXECUTED
200737c: ee 00 60 08 ld [ %g1 + 8 ], %l7 <== NOT EXECUTED
2007380: 40 01 0e 75 call 204ad54 <strerror> <== NOT EXECUTED
2007384: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2007388: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
200738c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2007390: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2007394: 40 00 f6 70 call 2044d54 <fprintf> <== NOT EXECUTED
2007398: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNTPNT_CRTERR)) {
200739c: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED
20073a0: 10 80 00 14 b 20073f0 <rtems_fsmount+0xd0> <== NOT EXECUTED
20073a4: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_FAILED)) {
20073a8: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
20073ac: 22 80 00 10 be,a 20073ec <rtems_fsmount+0xcc> <== NOT EXECUTED
20073b0: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED
fprintf(stdout,"fsmount: mounting of \"%s\" to"
20073b4: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED
20073b8: ee 06 00 00 ld [ %i0 ], %l7 <== NOT EXECUTED
20073bc: fa 00 60 08 ld [ %g1 + 8 ], %i5 <== NOT EXECUTED
20073c0: 40 00 f3 b5 call 2044294 <__errno> <== NOT EXECUTED
20073c4: ec 06 20 04 ld [ %i0 + 4 ], %l6 <== NOT EXECUTED
20073c8: 40 01 0e 63 call 204ad54 <strerror> <== NOT EXECUTED
20073cc: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
20073d0: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20073d4: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
20073d8: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
20073dc: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
20073e0: 40 00 f6 5d call 2044d54 <fprintf> <== NOT EXECUTED
20073e4: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
" \"%s\" failed: %s\n",
fstab_ptr->source,
fstab_ptr->target,
strerror(errno));
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_FAILED)) {
20073e8: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED
20073ec: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
20073f0: 02 80 00 11 be 2007434 <rtems_fsmount+0x114> <== NOT EXECUTED
20073f4: b0 06 20 14 add %i0, 0x14, %i0 <== NOT EXECUTED
if (!terminate) {
fstab_ptr++;
fstab_idx++;
}
}
if (fail_idx != NULL) {
20073f8: 10 80 00 15 b 200744c <rtems_fsmount+0x12c> <== NOT EXECUTED
20073fc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
terminate = true;
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
2007400: 22 80 00 09 be,a 2007424 <rtems_fsmount+0x104> <== NOT EXECUTED
2007404: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED
fprintf(stdout,"fsmount: mounting of \"%s\" to"
2007408: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED
200740c: d4 06 00 00 ld [ %i0 ], %o2 <== NOT EXECUTED
2007410: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
2007414: d6 06 20 04 ld [ %i0 + 4 ], %o3 <== NOT EXECUTED
2007418: 40 00 f6 4f call 2044d54 <fprintf> <== NOT EXECUTED
200741c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
" \"%s\" succeeded\n",
fstab_ptr->source,
fstab_ptr->target);
}
if (0 != (fstab_ptr->abort_reasons & FSMOUNT_MNT_OK)) {
2007420: c2 16 20 12 lduh [ %i0 + 0x12 ], %g1 <== NOT EXECUTED
2007424: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2007428: 12 80 00 08 bne 2007448 <rtems_fsmount+0x128> <== NOT EXECUTED
200742c: a4 10 20 00 clr %l2 <== NOT EXECUTED
}
/*
* proceed to next entry
*/
if (!terminate) {
fstab_ptr++;
2007430: b0 06 20 14 add %i0, 0x14, %i0 <== NOT EXECUTED
fstab_idx++;
2007434: a0 04 20 01 inc %l0 <== NOT EXECUTED
bool terminate = false;
/*
* scan through all fstab entries;
*/
while (!terminate &&
2007438: 80 a4 00 19 cmp %l0, %i1 <== NOT EXECUTED
200743c: 2a bf ff c4 bcs,a 200734c <rtems_fsmount+0x2c> <== NOT EXECUTED
2007440: d0 06 20 04 ld [ %i0 + 4 ], %o0 <== NOT EXECUTED
2007444: a4 10 20 00 clr %l2 <== NOT EXECUTED
if (!terminate) {
fstab_ptr++;
fstab_idx++;
}
}
if (fail_idx != NULL) {
2007448: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
200744c: 32 80 00 02 bne,a 2007454 <rtems_fsmount+0x134> <== NOT EXECUTED
2007450: e0 26 80 00 st %l0, [ %i2 ] <== NOT EXECUTED
*fail_idx = fstab_idx;
}
return rc;
}
2007454: 81 c7 e0 08 ret <== NOT EXECUTED
2007458: 91 e8 00 12 restore %g0, %l2, %o0 <== NOT EXECUTED
}
/*
* mount device to given mount point
*/
if (tmp_rc == 0) {
tmp_rc = mount(fstab_ptr->source,
200745c: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2007460: d4 06 20 08 ld [ %i0 + 8 ], %o2 <== NOT EXECUTED
2007464: d6 06 20 0c ld [ %i0 + 0xc ], %o3 <== NOT EXECUTED
2007468: 40 00 06 2c call 2008d18 <mount> <== NOT EXECUTED
200746c: 98 10 20 00 clr %o4 <== NOT EXECUTED
fstab_ptr->target,
fstab_ptr->type,
fstab_ptr->options,
NULL);
if (tmp_rc != 0) {
2007470: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2007474: 12 bf ff cd bne 20073a8 <rtems_fsmount+0x88> <== NOT EXECUTED
2007478: c2 16 20 10 lduh [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
terminate = true;
rc = tmp_rc;
}
}
else {
if (0 != (fstab_ptr->report_reasons & FSMOUNT_MNT_OK)) {
200747c: 10 bf ff e1 b 2007400 <rtems_fsmount+0xe0> <== NOT EXECUTED
2007480: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
02002674 <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
2002674: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
rtems_filesystem_location_info_t loc;
int result;
rtems_filesystem_node_types_t node_type;
result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
2002678: 40 00 3c 81 call 201187c <strlen> <== NOT EXECUTED
200267c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2002680: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
2002684: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2002688: 94 10 20 00 clr %o2 <== NOT EXECUTED
200268c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2002690: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2002694: 40 00 00 fd call 2002a88 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2002698: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
200269c: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
rtems_filesystem_location_info_t loc;
int result;
rtems_filesystem_node_types_t node_type;
result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true );
20026a0: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
the_jnode = loc.node_access;
if ( !loc.ops->node_type_h ) {
20026a4: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1 <== NOT EXECUTED
20026a8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20026ac: 12 80 00 0e bne 20026e4 <rtems_io_lookup_name+0x70> <== NOT EXECUTED
20026b0: e4 07 bf ec ld [ %fp + -20 ], %l2 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
20026b4: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
20026b8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20026bc: 02 80 00 04 be 20026cc <rtems_io_lookup_name+0x58> <== NOT EXECUTED
20026c0: 01 00 00 00 nop <== NOT EXECUTED
20026c4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20026c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
20026cc: 40 00 38 9f call 2010948 <__errno> <== NOT EXECUTED
20026d0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20026d4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
20026d8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20026dc: 81 c7 e0 08 ret <== NOT EXECUTED
20026e0: 81 e8 00 00 restore <== NOT EXECUTED
}
node_type = (*loc.ops->node_type_h)( &loc );
20026e4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20026e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
20026ec: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
20026f0: 12 80 00 05 bne 2002704 <rtems_io_lookup_name+0x90> <== NOT EXECUTED
20026f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
20026f8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
20026fc: 22 80 00 0d be,a 2002730 <rtems_io_lookup_name+0xbc> <== NOT EXECUTED
2002700: f0 26 40 00 st %i0, [ %i1 ] <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
2002704: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002708: 02 80 00 1c be 2002778 <rtems_io_lookup_name+0x104> <== NOT EXECUTED
200270c: 01 00 00 00 nop <== NOT EXECUTED
2002710: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2002714: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002718: 02 80 00 18 be 2002778 <rtems_io_lookup_name+0x104> <== NOT EXECUTED
200271c: 01 00 00 00 nop <== NOT EXECUTED
2002720: 9f c0 40 00 call %g1 <== NOT EXECUTED
2002724: 90 07 bf ec add %fp, -20, %o0 <== NOT EXECUTED
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
device_info->major = the_jnode->info.device.major;
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
2002728: 81 c7 e0 08 ret <== NOT EXECUTED
200272c: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
2002730: 40 00 3c 53 call 201187c <strlen> <== NOT EXECUTED
2002734: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2002738: d0 26 60 04 st %o0, [ %i1 + 4 ] <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
200273c: c4 04 a0 50 ld [ %l2 + 0x50 ], %g2 <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
2002740: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
device_info->major = the_jnode->info.device.major;
2002744: c4 26 60 08 st %g2, [ %i1 + 8 ] <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
2002748: c4 04 a0 54 ld [ %l2 + 0x54 ], %g2 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
200274c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002750: 02 80 00 0c be 2002780 <rtems_io_lookup_name+0x10c> <== NOT EXECUTED
2002754: c4 26 60 0c st %g2, [ %i1 + 0xc ] <== NOT EXECUTED
2002758: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200275c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2002760: 02 80 00 08 be 2002780 <rtems_io_lookup_name+0x10c> <== NOT EXECUTED
2002764: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2002768: 9f c0 40 00 call %g1 <== NOT EXECUTED
200276c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2002770: 81 c7 e0 08 ret <== NOT EXECUTED
2002774: 81 e8 00 00 restore <== NOT EXECUTED
2002778: 81 c7 e0 08 ret <== NOT EXECUTED
200277c: 91 e8 20 0d restore %g0, 0xd, %o0 <== NOT EXECUTED
2002780: b0 10 20 00 clr %i0 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
2002784: 81 c7 e0 08 ret <== NOT EXECUTED
2002788: 81 e8 00 00 restore <== NOT EXECUTED
0200929c <rtems_iterate_over_all_threads>:
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
{
200929c: 9d e3 bf a0 save %sp, -96, %sp
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
20092a0: 80 a6 20 00 cmp %i0, 0
20092a4: 02 80 00 1d be 2009318 <rtems_iterate_over_all_threads+0x7c><== NEVER TAKEN
20092a8: 21 00 80 93 sethi %hi(0x2024c00), %l0
20092ac: a0 14 21 84 or %l0, 0x184, %l0 ! 2024d84 <_Objects_Information_table+0x4>
#endif
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
20092b0: a6 04 20 10 add %l0, 0x10, %l3
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
20092b4: c2 04 00 00 ld [ %l0 ], %g1
20092b8: 80 a0 60 00 cmp %g1, 0
20092bc: 22 80 00 14 be,a 200930c <rtems_iterate_over_all_threads+0x70>
20092c0: a0 04 20 04 add %l0, 4, %l0
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
20092c4: e4 00 60 04 ld [ %g1 + 4 ], %l2
if ( !information )
20092c8: 80 a4 a0 00 cmp %l2, 0
20092cc: 12 80 00 0b bne 20092f8 <rtems_iterate_over_all_threads+0x5c>
20092d0: a2 10 20 01 mov 1, %l1
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
20092d4: 10 80 00 0e b 200930c <rtems_iterate_over_all_threads+0x70>
20092d8: a0 04 20 04 add %l0, 4, %l0
the_thread = (Thread_Control *)information->local_table[ i ];
20092dc: c2 04 a0 1c ld [ %l2 + 0x1c ], %g1
20092e0: d0 00 40 02 ld [ %g1 + %g2 ], %o0
if ( !the_thread )
20092e4: 80 a2 20 00 cmp %o0, 0
20092e8: 02 80 00 04 be 20092f8 <rtems_iterate_over_all_threads+0x5c><== NEVER TAKEN
20092ec: a2 04 60 01 inc %l1
continue;
(*routine)(the_thread);
20092f0: 9f c6 00 00 call %i0
20092f4: 01 00 00 00 nop
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
20092f8: c2 14 a0 10 lduh [ %l2 + 0x10 ], %g1
20092fc: 80 a4 40 01 cmp %l1, %g1
2009300: 08 bf ff f7 bleu 20092dc <rtems_iterate_over_all_threads+0x40>
2009304: 85 2c 60 02 sll %l1, 2, %g2
2009308: a0 04 20 04 add %l0, 4, %l0
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
200930c: 80 a4 00 13 cmp %l0, %l3
2009310: 32 bf ff ea bne,a 20092b8 <rtems_iterate_over_all_threads+0x1c>
2009314: c2 04 00 00 ld [ %l0 ], %g1
2009318: 81 c7 e0 08 ret
200931c: 81 e8 00 00 restore
0200c134 <rtems_libio_allocate>:
* This routine searches the IOP Table for an unused entry. If it
* finds one, it returns it. Otherwise, it returns NULL.
*/
rtems_libio_t *rtems_libio_allocate( void )
{
200c134: 9d e3 bf 98 save %sp, -104, %sp
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
200c138: 03 00 80 78 sethi %hi(0x201e000), %g1
200c13c: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore>
200c140: 92 10 20 00 clr %o1
200c144: 7f ff e8 80 call 2006344 <rtems_semaphore_obtain>
200c148: 94 10 20 00 clr %o2
rtems_status_code rc;
rtems_id sema;
rtems_libio_lock();
if (rtems_libio_iop_freelist) {
200c14c: 21 00 80 78 sethi %hi(0x201e000), %l0
200c150: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 ! 201e0b8 <rtems_libio_iop_freelist>
200c154: 80 a0 60 00 cmp %g1, 0
200c158: 02 80 00 26 be 200c1f0 <rtems_libio_allocate+0xbc>
200c15c: b0 10 20 00 clr %i0
rc = rtems_semaphore_create(
200c160: 05 00 80 78 sethi %hi(0x201e000), %g2
200c164: c4 00 a0 b4 ld [ %g2 + 0xb4 ], %g2 ! 201e0b4 <rtems_libio_iops>
200c168: 92 10 20 01 mov 1, %o1
200c16c: 82 20 40 02 sub %g1, %g2, %g1
200c170: 83 38 60 03 sra %g1, 3, %g1
200c174: 87 28 60 06 sll %g1, 6, %g3
200c178: 85 28 60 03 sll %g1, 3, %g2
200c17c: 84 20 c0 02 sub %g3, %g2, %g2
200c180: 87 28 a0 06 sll %g2, 6, %g3
200c184: 84 00 80 03 add %g2, %g3, %g2
200c188: 84 00 80 01 add %g2, %g1, %g2
200c18c: 87 28 a0 0f sll %g2, 0xf, %g3
200c190: 84 20 c0 02 sub %g3, %g2, %g2
200c194: 07 13 10 92 sethi %hi(0x4c424800), %g3
200c198: 85 28 a0 03 sll %g2, 3, %g2
200c19c: 86 10 e1 00 or %g3, 0x100, %g3
200c1a0: 82 00 80 01 add %g2, %g1, %g1
200c1a4: 94 10 20 54 mov 0x54, %o2
200c1a8: 96 10 20 00 clr %o3
200c1ac: 90 10 40 03 or %g1, %g3, %o0
200c1b0: 7f ff e7 c3 call 20060bc <rtems_semaphore_create>
200c1b4: 98 07 bf fc add %fp, -4, %o4
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
0,
&sema
);
if (rc != RTEMS_SUCCESSFUL)
200c1b8: 80 a2 20 00 cmp %o0, 0
200c1bc: 32 80 00 0d bne,a 200c1f0 <rtems_libio_allocate+0xbc> <== NEVER TAKEN
200c1c0: b0 10 20 00 clr %i0 <== NOT EXECUTED
goto failed;
iop = rtems_libio_iop_freelist;
200c1c4: f0 04 20 b8 ld [ %l0 + 0xb8 ], %i0
next = iop->data1;
(void) memset( iop, 0, sizeof(rtems_libio_t) );
200c1c8: 92 10 20 00 clr %o1
&sema
);
if (rc != RTEMS_SUCCESSFUL)
goto failed;
iop = rtems_libio_iop_freelist;
next = iop->data1;
200c1cc: e2 06 20 38 ld [ %i0 + 0x38 ], %l1
(void) memset( iop, 0, sizeof(rtems_libio_t) );
200c1d0: 90 10 00 18 mov %i0, %o0
200c1d4: 40 00 14 58 call 2011334 <memset>
200c1d8: 94 10 20 48 mov 0x48, %o2
iop->flags = LIBIO_FLAGS_OPEN;
iop->sem = sema;
200c1dc: c2 07 bf fc ld [ %fp + -4 ], %g1
rtems_libio_iop_freelist = next;
200c1e0: e2 24 20 b8 st %l1, [ %l0 + 0xb8 ]
goto failed;
iop = rtems_libio_iop_freelist;
next = iop->data1;
(void) memset( iop, 0, sizeof(rtems_libio_t) );
iop->flags = LIBIO_FLAGS_OPEN;
iop->sem = sema;
200c1e4: c2 26 20 30 st %g1, [ %i0 + 0x30 ]
if (rc != RTEMS_SUCCESSFUL)
goto failed;
iop = rtems_libio_iop_freelist;
next = iop->data1;
(void) memset( iop, 0, sizeof(rtems_libio_t) );
iop->flags = LIBIO_FLAGS_OPEN;
200c1e8: 82 10 21 00 mov 0x100, %g1
200c1ec: c2 26 20 18 st %g1, [ %i0 + 0x18 ]
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c1f0: 03 00 80 78 sethi %hi(0x201e000), %g1
200c1f4: 7f ff e8 9b call 2006460 <rtems_semaphore_release>
200c1f8: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore>
iop = 0;
done:
rtems_libio_unlock();
return iop;
}
200c1fc: 81 c7 e0 08 ret
200c200: 81 e8 00 00 restore
0200c0d4 <rtems_libio_free>:
*/
void rtems_libio_free(
rtems_libio_t *iop
)
{
200c0d4: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
200c0d8: 03 00 80 78 sethi %hi(0x201e000), %g1
200c0dc: d0 00 60 bc ld [ %g1 + 0xbc ], %o0 ! 201e0bc <rtems_libio_semaphore>
200c0e0: 92 10 20 00 clr %o1
200c0e4: 7f ff e8 98 call 2006344 <rtems_semaphore_obtain>
200c0e8: 94 10 20 00 clr %o2
rtems_libio_lock();
if (iop->sem)
200c0ec: d0 06 20 30 ld [ %i0 + 0x30 ], %o0
200c0f0: 80 a2 20 00 cmp %o0, 0
200c0f4: 02 80 00 04 be 200c104 <rtems_libio_free+0x30> <== NEVER TAKEN
200c0f8: a0 10 00 18 mov %i0, %l0
rtems_semaphore_delete(iop->sem);
200c0fc: 7f ff e8 64 call 200628c <rtems_semaphore_delete>
200c100: 01 00 00 00 nop
iop->flags &= ~LIBIO_FLAGS_OPEN;
200c104: c4 04 20 18 ld [ %l0 + 0x18 ], %g2
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
200c108: 07 00 80 78 sethi %hi(0x201e000), %g3
iop->data1 = rtems_libio_iop_freelist;
200c10c: 03 00 80 78 sethi %hi(0x201e000), %g1
200c110: f0 00 e0 bc ld [ %g3 + 0xbc ], %i0
200c114: c6 00 60 b8 ld [ %g1 + 0xb8 ], %g3
rtems_libio_iop_freelist = iop;
200c118: e0 20 60 b8 st %l0, [ %g1 + 0xb8 ]
rtems_libio_lock();
if (iop->sem)
rtems_semaphore_delete(iop->sem);
iop->flags &= ~LIBIO_FLAGS_OPEN;
200c11c: 82 08 be ff and %g2, -257, %g1
iop->data1 = rtems_libio_iop_freelist;
200c120: c6 24 20 38 st %g3, [ %l0 + 0x38 ]
rtems_libio_lock();
if (iop->sem)
rtems_semaphore_delete(iop->sem);
iop->flags &= ~LIBIO_FLAGS_OPEN;
200c124: c2 24 20 18 st %g1, [ %l0 + 0x18 ]
200c128: 7f ff e8 ce call 2006460 <rtems_semaphore_release>
200c12c: 81 e8 00 00 restore
02002c30 <rtems_libio_init>:
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
2002c30: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
2002c34: 21 00 80 75 sethi %hi(0x201d400), %l0
2002c38: d0 04 22 a4 ld [ %l0 + 0x2a4 ], %o0 ! 201d6a4 <rtems_libio_number_iops>
2002c3c: 80 a2 20 00 cmp %o0, 0
2002c40: 22 80 00 18 be,a 2002ca0 <rtems_libio_init+0x70> <== NEVER TAKEN
2002c44: 11 13 10 92 sethi %hi(0x4c424800), %o0 <== NOT EXECUTED
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
2002c48: 7f ff ff 1b call 20028b4 <calloc>
2002c4c: 92 10 20 48 mov 0x48, %o1
2002c50: 03 00 80 78 sethi %hi(0x201e000), %g1
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
2002c54: 80 a2 20 00 cmp %o0, 0
2002c58: 12 80 00 04 bne 2002c68 <rtems_libio_init+0x38> <== ALWAYS TAKEN
2002c5c: d0 20 60 b4 st %o0, [ %g1 + 0xb4 ]
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
2002c60: 10 80 00 1a b 2002cc8 <rtems_libio_init+0x98> <== NOT EXECUTED
2002c64: 90 10 20 1a mov 0x1a, %o0 <== NOT EXECUTED
iop = rtems_libio_iop_freelist = rtems_libio_iops;
2002c68: 05 00 80 78 sethi %hi(0x201e000), %g2
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
2002c6c: c8 04 22 a4 ld [ %l0 + 0x2a4 ], %g4
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
2002c70: d0 20 a0 b8 st %o0, [ %g2 + 0xb8 ]
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
2002c74: 82 10 00 08 mov %o0, %g1
2002c78: 10 80 00 03 b 2002c84 <rtems_libio_init+0x54>
2002c7c: 84 10 20 00 clr %g2
iop->data1 = iop + 1;
2002c80: c2 20 7f f0 st %g1, [ %g1 + -16 ]
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
2002c84: 84 00 a0 01 inc %g2
iop->data1 = iop + 1;
2002c88: 86 10 00 01 mov %g1, %g3
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
2002c8c: 80 a0 80 04 cmp %g2, %g4
2002c90: 0a bf ff fc bcs 2002c80 <rtems_libio_init+0x50>
2002c94: 82 00 60 48 add %g1, 0x48, %g1
iop->data1 = iop + 1;
iop->data1 = NULL;
2002c98: c0 20 e0 38 clr [ %g3 + 0x38 ]
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
2002c9c: 11 13 10 92 sethi %hi(0x4c424800), %o0
2002ca0: 92 10 20 01 mov 1, %o1
2002ca4: 90 12 21 4f or %o0, 0x14f, %o0
2002ca8: 94 10 20 54 mov 0x54, %o2
2002cac: 96 10 20 00 clr %o3
2002cb0: 19 00 80 78 sethi %hi(0x201e000), %o4
2002cb4: 40 00 0d 02 call 20060bc <rtems_semaphore_create>
2002cb8: 98 13 20 bc or %o4, 0xbc, %o4 ! 201e0bc <rtems_libio_semaphore>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
2002cbc: 80 a2 20 00 cmp %o0, 0
2002cc0: 02 80 00 04 be 2002cd0 <rtems_libio_init+0xa0> <== ALWAYS TAKEN
2002cc4: 03 00 80 75 sethi %hi(0x201d400), %g1
rtems_fatal_error_occurred( rc );
2002cc8: 40 00 0f 3a call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2002ccc: 01 00 00 00 nop <== NOT EXECUTED
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
2002cd0: c2 00 62 a0 ld [ %g1 + 0x2a0 ], %g1
2002cd4: 80 a0 60 00 cmp %g1, 0
2002cd8: 02 80 00 04 be 2002ce8 <rtems_libio_init+0xb8> <== NEVER TAKEN
2002cdc: 01 00 00 00 nop
(* rtems_fs_init_helper)();
2002ce0: 9f c0 40 00 call %g1
2002ce4: 01 00 00 00 nop
2002ce8: 81 c7 e0 08 ret
2002cec: 81 e8 00 00 restore
0202a438 <rtems_libio_set_private_env>:
rtems_filesystem_freenode( &env->root_directory);
free(env);
}
}
rtems_status_code rtems_libio_set_private_env(void) {
202a438: 9d e3 bf 88 save %sp, -120, %sp
rtems_status_code sc;
rtems_id task_id;
rtems_filesystem_location_info_t loc;
sc=rtems_task_ident(RTEMS_SELF,0,&task_id);
202a43c: 90 10 20 00 clr %o0
202a440: 92 10 20 00 clr %o1
202a444: 40 00 06 f5 call 202c018 <rtems_task_ident>
202a448: 94 07 bf fc add %fp, -4, %o2
if (sc != RTEMS_SUCCESSFUL) return sc;
202a44c: b0 92 20 00 orcc %o0, 0, %i0
202a450: 12 80 00 19 bne 202a4b4 <rtems_libio_set_private_env+0x7c><== NEVER TAKEN
202a454: 21 00 81 ab sethi %hi(0x206ac00), %l0
/* Only for the first time a malloc is necesary */
if (rtems_current_user_env==&rtems_global_user_env) {
202a458: c4 04 21 64 ld [ %l0 + 0x164 ], %g2 ! 206ad64 <rtems_current_user_env>
202a45c: 03 00 81 ba sethi %hi(0x206e800), %g1
202a460: 82 10 63 fc or %g1, 0x3fc, %g1 ! 206ebfc <rtems_global_user_env>
202a464: 80 a0 80 01 cmp %g2, %g1
202a468: 12 80 00 15 bne 202a4bc <rtems_libio_set_private_env+0x84>
202a46c: a4 14 21 64 or %l0, 0x164, %l2
rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t));
202a470: 7f ff 79 43 call 200897c <malloc>
202a474: 90 10 20 48 mov 0x48, %o0
if (!tmp)
202a478: a2 92 20 00 orcc %o0, 0, %l1
202a47c: 12 80 00 04 bne 202a48c <rtems_libio_set_private_env+0x54><== ALWAYS TAKEN
202a480: 92 10 00 12 mov %l2, %o1
202a484: 81 c7 e0 08 ret <== NOT EXECUTED
202a488: 91 e8 20 1a restore %g0, 0x1a, %o0 <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
tmp->refcnt = 1;
#endif
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
202a48c: 90 10 20 00 clr %o0
202a490: 15 00 80 a8 sethi %hi(0x202a000), %o2
202a494: 40 00 07 83 call 202c2a0 <rtems_task_variable_add>
202a498: 94 12 a3 04 or %o2, 0x304, %o2 ! 202a304 <free_user_env>
if (sc != RTEMS_SUCCESSFUL) {
202a49c: 82 92 20 00 orcc %o0, 0, %g1
202a4a0: 22 80 00 07 be,a 202a4bc <rtems_libio_set_private_env+0x84><== ALWAYS TAKEN
202a4a4: e2 24 21 64 st %l1, [ %l0 + 0x164 ]
/* don't use free_user_env because the pathlocs are
* not initialized yet
*/
free(tmp);
202a4a8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202a4ac: 7f ff 77 6d call 2008260 <free> <== NOT EXECUTED
202a4b0: b0 10 00 01 mov %g1, %i0 <== NOT EXECUTED
return sc;
202a4b4: 81 c7 e0 08 ret <== NOT EXECUTED
202a4b8: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_current_user_env = tmp;
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
202a4bc: 23 00 81 ab sethi %hi(0x206ac00), %l1
202a4c0: e4 04 61 64 ld [ %l1 + 0x164 ], %l2 ! 206ad64 <rtems_current_user_env>
202a4c4: 94 10 20 48 mov 0x48, %o2
202a4c8: 90 10 00 12 mov %l2, %o0
202a4cc: 13 00 81 ba sethi %hi(0x206e800), %o1
202a4d0: 40 00 74 bd call 20477c4 <memcpy>
202a4d4: 92 12 63 fc or %o1, 0x3fc, %o1 ! 206ebfc <rtems_global_user_env>
rtems_current_user_env->task_id=task_id; /* mark the local values*/
202a4d8: c2 07 bf fc ld [ %fp + -4 ], %g1
* what we are trying to do here is forking off
* clones. The reason is a pathloc can be allocated by the
* file system and needs to be freed when deleting the environment.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202a4dc: a0 07 bf e8 add %fp, -24, %l0
}
rtems_current_user_env = tmp;
};
*rtems_current_user_env = rtems_global_user_env; /* get the global values*/
rtems_current_user_env->task_id=task_id; /* mark the local values*/
202a4e0: c2 24 80 00 st %g1, [ %l2 ]
* what we are trying to do here is forking off
* clones. The reason is a pathloc can be allocated by the
* file system and needs to be freed when deleting the environment.
*/
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202a4e4: 96 10 00 10 mov %l0, %o3
202a4e8: 98 10 20 00 clr %o4
202a4ec: 25 00 81 93 sethi %hi(0x2064c00), %l2
202a4f0: 92 10 20 01 mov 1, %o1
202a4f4: 94 10 20 00 clr %o2
202a4f8: 7f ff 77 3d call 20081ec <rtems_filesystem_evaluate_path>
202a4fc: 90 14 a2 58 or %l2, 0x258, %o0
rtems_filesystem_root = loc;
202a500: d0 04 61 64 ld [ %l1 + 0x164 ], %o0
202a504: 92 10 00 10 mov %l0, %o1
202a508: 94 10 20 14 mov 0x14, %o2
202a50c: 40 00 74 ae call 20477c4 <memcpy>
202a510: 90 02 20 18 add %o0, 0x18, %o0
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
202a514: 92 10 20 01 mov 1, %o1
202a518: 94 10 20 00 clr %o2
202a51c: 90 14 a2 58 or %l2, 0x258, %o0
202a520: 96 10 00 10 mov %l0, %o3
202a524: 7f ff 77 32 call 20081ec <rtems_filesystem_evaluate_path>
202a528: 98 10 20 00 clr %o4
rtems_filesystem_current = loc;
202a52c: d0 04 61 64 ld [ %l1 + 0x164 ], %o0
202a530: 92 10 00 10 mov %l0, %o1
202a534: 90 02 20 04 add %o0, 4, %o0
202a538: 40 00 74 a3 call 20477c4 <memcpy>
202a53c: 94 10 20 14 mov 0x14, %o2
return RTEMS_SUCCESSFUL;
}
202a540: 81 c7 e0 08 ret
202a544: 81 e8 00 00 restore
0202a37c <rtems_libio_share_private_env>:
* b) mutex access to rtems_filesystem_current, rtems_filesytem_root
* while changing any of those (chdir(), chroot()).
*/
#ifndef HAVE_USERENV_REFCNT
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
202a37c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_status_code sc;
rtems_user_env_t * shared_user_env;
rtems_id current_task_id;
sc=rtems_task_ident(RTEMS_SELF,0,¤t_task_id);
202a380: 90 10 20 00 clr %o0 <== NOT EXECUTED
202a384: 92 10 20 00 clr %o1 <== NOT EXECUTED
202a388: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
202a38c: 40 00 07 23 call 202c018 <rtems_task_ident> <== NOT EXECUTED
202a390: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
202a394: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202a398: 12 80 00 26 bne 202a430 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
202a39c: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
if (rtems_current_user_env->task_id==current_task_id) {
202a3a0: 13 00 81 ab sethi %hi(0x206ac00), %o1 <== NOT EXECUTED
202a3a4: e0 02 61 64 ld [ %o1 + 0x164 ], %l0 ! 206ad64 <rtems_current_user_env><== NOT EXECUTED
202a3a8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202a3ac: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED
202a3b0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
202a3b4: 12 80 00 09 bne 202a3d8 <rtems_libio_share_private_env+0x5c><== NOT EXECUTED
202a3b8: 92 12 61 64 or %o1, 0x164, %o1 <== NOT EXECUTED
/* kill the current user env & task_var*/
rtems_user_env_t *tmp = rtems_current_user_env;
sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env);
202a3bc: 40 00 07 e5 call 202c350 <rtems_task_variable_delete> <== NOT EXECUTED
202a3c0: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) return sc;
202a3c4: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202a3c8: 12 80 00 1a bne 202a430 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
202a3cc: 01 00 00 00 nop <== NOT EXECUTED
free_user_env(tmp);
202a3d0: 7f ff ff cd call 202a304 <free_user_env> <== NOT EXECUTED
202a3d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
};
/* AT THIS POINT, rtems_current_user_env is DANGLING */
sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env,
202a3d8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202a3dc: 21 00 81 ab sethi %hi(0x206ac00), %l0 <== NOT EXECUTED
202a3e0: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
202a3e4: a2 14 21 64 or %l0, 0x164, %l1 <== NOT EXECUTED
202a3e8: 40 00 08 00 call 202c3e8 <rtems_task_variable_get> <== NOT EXECUTED
202a3ec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
(void*)&shared_user_env );
if (sc != RTEMS_SUCCESSFUL)
202a3f0: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202a3f4: 12 80 00 0c bne 202a424 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
202a3f8: 07 00 81 ba sethi %hi(0x206e800), %g3 <== NOT EXECUTED
goto bailout;
sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
202a3fc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202a400: 15 00 80 a8 sethi %hi(0x202a000), %o2 <== NOT EXECUTED
202a404: 40 00 07 a7 call 202c2a0 <rtems_task_variable_add> <== NOT EXECUTED
202a408: 94 12 a3 04 or %o2, 0x304, %o2 ! 202a304 <free_user_env> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
202a40c: 82 92 20 00 orcc %o0, 0, %g1 <== NOT EXECUTED
202a410: 12 80 00 05 bne 202a424 <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
202a414: 07 00 81 ba sethi %hi(0x206e800), %g3 <== NOT EXECUTED
goto bailout;
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
202a418: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
/* increase the reference count */
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
202a41c: 10 80 00 05 b 202a430 <rtems_libio_share_private_env+0xb4><== NOT EXECUTED
202a420: c4 24 21 64 st %g2, [ %l0 + 0x164 ] <== NOT EXECUTED
bailout:
/* fallback to the global env */
rtems_current_user_env = &rtems_global_user_env;
202a424: 05 00 81 ab sethi %hi(0x206ac00), %g2 <== NOT EXECUTED
202a428: 86 10 e3 fc or %g3, 0x3fc, %g3 <== NOT EXECUTED
202a42c: c6 20 a1 64 st %g3, [ %g2 + 0x164 ] <== NOT EXECUTED
return sc;
}
202a430: 81 c7 e0 08 ret <== NOT EXECUTED
202a434: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
0200bf88 <rtems_libio_to_fcntl_flags>:
uint32_t flags
)
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
200bf88: 84 0a 20 06 and %o0, 6, %g2
200bf8c: 80 a0 a0 06 cmp %g2, 6
200bf90: 02 80 00 07 be 200bfac <rtems_libio_to_fcntl_flags+0x24> <== NEVER TAKEN
200bf94: 82 10 20 02 mov 2, %g1
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
200bf98: 82 0a 20 02 and %o0, 2, %g1
200bf9c: 80 a0 00 01 cmp %g0, %g1
200bfa0: 83 32 20 02 srl %o0, 2, %g1
200bfa4: 84 60 3f ff subx %g0, -1, %g2
200bfa8: 82 08 80 01 and %g2, %g1, %g1
fcntl_flags |= O_RDONLY;
} else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {
fcntl_flags |= O_WRONLY;
}
if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) {
200bfac: 80 8a 20 01 btst 1, %o0
200bfb0: 02 80 00 04 be 200bfc0 <rtems_libio_to_fcntl_flags+0x38>
200bfb4: 80 8a 22 00 btst 0x200, %o0
fcntl_flags |= O_NONBLOCK;
200bfb8: 05 00 00 10 sethi %hi(0x4000), %g2
200bfbc: 82 10 40 02 or %g1, %g2, %g1
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
200bfc0: 32 80 00 02 bne,a 200bfc8 <rtems_libio_to_fcntl_flags+0x40>
200bfc4: 82 10 60 08 or %g1, 8, %g1
fcntl_flags |= O_APPEND;
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
200bfc8: 80 8a 24 00 btst 0x400, %o0
200bfcc: 32 80 00 02 bne,a 200bfd4 <rtems_libio_to_fcntl_flags+0x4c>
200bfd0: 82 10 62 00 or %g1, 0x200, %g1
fcntl_flags |= O_CREAT;
}
return fcntl_flags;
}
200bfd4: 81 c3 e0 08 retl
200bfd8: 90 10 00 01 mov %g1, %o0
02008a80 <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
2008a80: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
2008a84: 03 00 81 aa sethi %hi(0x206a800), %g1 <== NOT EXECUTED
2008a88: d0 00 61 40 ld [ %g1 + 0x140 ], %o0 ! 206a940 <RTEMS_Malloc_Heap><== NOT EXECUTED
2008a8c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2008a90: 40 00 18 24 call 200eb20 <_Protected_heap_Get_block_size> <== NOT EXECUTED
2008a94: 94 07 bf fc add %fp, -4, %o2 <== NOT EXECUTED
2008a98: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2008a9c: 02 80 00 08 be 2008abc <rtems_malloc_statistics_at_free+0x3c><== NOT EXECUTED
2008aa0: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
MSBUMP(lifetime_freed, size);
2008aa4: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED
2008aa8: 82 10 63 c0 or %g1, 0x3c0, %g1 <== NOT EXECUTED
2008aac: c4 18 60 28 ldd [ %g1 + 0x28 ], %g2 <== NOT EXECUTED
2008ab0: 86 80 c0 04 addcc %g3, %g4, %g3 <== NOT EXECUTED
2008ab4: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED
2008ab8: c4 38 60 28 std %g2, [ %g1 + 0x28 ] <== NOT EXECUTED
2008abc: 81 c7 e0 08 ret <== NOT EXECUTED
2008ac0: 81 e8 00 00 restore <== NOT EXECUTED
02008ac4 <rtems_malloc_statistics_at_malloc>:
}
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
2008ac4: 9d e3 bf 98 save %sp, -104, %sp
uintptr_t actual_size = 0;
uint32_t current_depth;
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
2008ac8: 92 96 20 00 orcc %i0, 0, %o1
2008acc: 02 80 00 13 be 2008b18 <rtems_malloc_statistics_at_malloc+0x54><== NEVER TAKEN
2008ad0: 03 00 81 aa sethi %hi(0x206a800), %g1
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
2008ad4: d0 00 61 40 ld [ %g1 + 0x140 ], %o0 ! 206a940 <RTEMS_Malloc_Heap>
static void rtems_malloc_statistics_at_malloc(
void *pointer
)
{
uintptr_t actual_size = 0;
2008ad8: c0 27 bf fc clr [ %fp + -4 ]
rtems_malloc_statistics_t *s = &rtems_malloc_statistics;
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
2008adc: 40 00 18 11 call 200eb20 <_Protected_heap_Get_block_size>
2008ae0: 94 07 bf fc add %fp, -4, %o2
MSBUMP(lifetime_allocated, actual_size);
2008ae4: 03 00 81 ba sethi %hi(0x206e800), %g1
2008ae8: c8 07 bf fc ld [ %fp + -4 ], %g4
2008aec: 82 10 63 c0 or %g1, 0x3c0, %g1
2008af0: d8 18 60 20 ldd [ %g1 + 0x20 ], %o4
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
2008af4: c4 00 60 2c ld [ %g1 + 0x2c ], %g2
if (current_depth > s->max_depth)
2008af8: c6 00 60 18 ld [ %g1 + 0x18 ], %g3
if ( !pointer )
return;
_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
MSBUMP(lifetime_allocated, actual_size);
2008afc: 9a 83 40 04 addcc %o5, %g4, %o5
2008b00: 98 43 20 00 addx %o4, 0, %o4
current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
2008b04: 84 23 40 02 sub %o5, %g2, %g2
if (current_depth > s->max_depth)
2008b08: 80 a0 80 03 cmp %g2, %g3
2008b0c: 08 80 00 03 bleu 2008b18 <rtems_malloc_statistics_at_malloc+0x54><== NEVER TAKEN
2008b10: d8 38 60 20 std %o4, [ %g1 + 0x20 ]
s->max_depth = current_depth;
2008b14: c4 20 60 18 st %g2, [ %g1 + 0x18 ]
2008b18: 81 c7 e0 08 ret
2008b1c: 81 e8 00 00 restore
020104d8 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
20104d8: 9d e3 bf a0 save %sp, -96, %sp
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
20104dc: a0 96 20 00 orcc %i0, 0, %l0
20104e0: 02 80 00 20 be 2010560 <rtems_memalign+0x88>
20104e4: 03 00 80 88 sethi %hi(0x2022000), %g1
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
20104e8: c2 00 61 a0 ld [ %g1 + 0x1a0 ], %g1 ! 20221a0 <_System_state_Current>
20104ec: 80 a0 60 03 cmp %g1, 3
20104f0: 12 80 00 07 bne 201050c <rtems_memalign+0x34> <== NEVER TAKEN
20104f4: c0 24 00 00 clr [ %l0 ]
20104f8: 7f ff ce 1e call 2003d70 <malloc_is_system_state_OK>
20104fc: 01 00 00 00 nop
2010500: 80 8a 20 ff btst 0xff, %o0
2010504: 02 80 00 18 be 2010564 <rtems_memalign+0x8c> <== NEVER TAKEN
2010508: b0 10 20 16 mov 0x16, %i0
/*
*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
201050c: 7f ff ce 32 call 2003dd4 <malloc_deferred_frees_process>
2010510: b0 10 20 0c mov 0xc, %i0
uintptr_t size,
uintptr_t alignment
)
{
return
_Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 );
2010514: 03 00 80 84 sethi %hi(0x2021000), %g1
2010518: d0 00 63 60 ld [ %g1 + 0x360 ], %o0 ! 2021360 <RTEMS_Malloc_Heap>
201051c: 94 10 00 19 mov %i1, %o2
2010520: 92 10 00 1a mov %i2, %o1
2010524: 7f ff e3 87 call 2009340 <_Protected_heap_Allocate_aligned_with_boundary>
2010528: 96 10 20 00 clr %o3
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
201052c: b2 92 20 00 orcc %o0, 0, %i1
2010530: 02 80 00 0d be 2010564 <rtems_memalign+0x8c>
2010534: 03 00 80 86 sethi %hi(0x2021800), %g1
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
2010538: c2 00 62 b8 ld [ %g1 + 0x2b8 ], %g1 ! 2021ab8 <rtems_malloc_statistics_helpers>
201053c: 80 a0 60 00 cmp %g1, 0
2010540: 22 80 00 06 be,a 2010558 <rtems_memalign+0x80> <== ALWAYS TAKEN
2010544: f2 24 00 00 st %i1, [ %l0 ]
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
2010548: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
201054c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2010550: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
if (rtems_malloc_boundary_helpers)
(*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
#endif
*pointer = return_this;
2010554: f2 24 00 00 st %i1, [ %l0 ] <== NOT EXECUTED
return 0;
2010558: 81 c7 e0 08 ret
201055c: 91 e8 20 00 restore %g0, 0, %o0
2010560: b0 10 20 16 mov 0x16, %i0
}
2010564: 81 c7 e0 08 ret
2010568: 81 e8 00 00 restore
020099b8 <rtems_mkdir>:
return (retval);
}
int
rtems_mkdir(const char *path, mode_t mode)
{
20099b8: 9d e3 bf 58 save %sp, -168, %sp <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
20099bc: 40 01 04 42 call 204aac4 <strdup> <== NOT EXECUTED
20099c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (dup_path != NULL) {
20099c4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
20099c8: 22 80 00 65 be,a 2009b5c <rtems_mkdir+0x1a4> <== NOT EXECUTED
20099cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
20099d0: c2 4c 00 00 ldsb [ %l0 ], %g1 <== NOT EXECUTED
20099d4: 80 a0 60 2f cmp %g1, 0x2f <== NOT EXECUTED
20099d8: 02 80 00 03 be 20099e4 <rtems_mkdir+0x2c> <== NOT EXECUTED
20099dc: a2 04 20 01 add %l0, 1, %l1 <== NOT EXECUTED
20099e0: a2 10 00 10 mov %l0, %l1 <== NOT EXECUTED
++p;
20099e4: a6 10 20 00 clr %l3 <== NOT EXECUTED
20099e8: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
retval = 0;
break;
}
}
if (!last)
*p = '/';
20099ec: ae 10 20 2f mov 0x2f, %l7 <== NOT EXECUTED
}
if (last)
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
if (errno == EEXIST || errno == EISDIR) {
if (stat(path, &sb) < 0) {
20099f0: ac 07 bf b8 add %fp, -72, %l6 <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
20099f4: 2b 00 00 3c sethi %hi(0xf000), %l5 <== NOT EXECUTED
20099f8: 29 00 00 10 sethi %hi(0x4000), %l4 <== NOT EXECUTED
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
20099fc: c6 4c 40 00 ldsb [ %l1 ], %g3 <== NOT EXECUTED
2009a00: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
2009a04: 02 80 00 06 be 2009a1c <rtems_mkdir+0x64> <== NOT EXECUTED
2009a08: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
2009a0c: 80 a0 e0 2f cmp %g3, 0x2f <== NOT EXECUTED
2009a10: 32 bf ff fb bne,a 20099fc <rtems_mkdir+0x44> <== NOT EXECUTED
2009a14: a2 04 60 01 inc %l1 <== NOT EXECUTED
2009a18: 84 10 20 00 clr %g2 <== NOT EXECUTED
continue;
*p = '\0';
2009a1c: c0 2c 40 00 clrb [ %l1 ] <== NOT EXECUTED
if (!last && p[1] == '\0')
2009a20: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2009a24: 12 80 00 05 bne 2009a38 <rtems_mkdir+0x80> <== NOT EXECUTED
2009a28: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
2009a2c: c4 4c 60 01 ldsb [ %l1 + 1 ], %g2 <== NOT EXECUTED
2009a30: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
2009a34: a4 60 3f ff subx %g0, -1, %l2 <== NOT EXECUTED
last = 1;
if (first) {
2009a38: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2009a3c: 02 80 00 08 be 2009a5c <rtems_mkdir+0xa4> <== NOT EXECUTED
2009a40: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
* mkdir [-m mode] dir
*
* We change the user's umask and then restore it,
* instead of doing chmod's.
*/
oumask = umask(0);
2009a44: 40 00 08 25 call 200bad8 <umask> <== NOT EXECUTED
2009a48: 90 10 20 00 clr %o0 <== NOT EXECUTED
2009a4c: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
2009a50: 40 00 08 22 call 200bad8 <umask> <== NOT EXECUTED
2009a54: 90 0a 3f 3f and %o0, -193, %o0 <== NOT EXECUTED
first = 0;
}
if (last)
2009a58: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2009a5c: 02 80 00 05 be 2009a70 <rtems_mkdir+0xb8> <== NOT EXECUTED
2009a60: 92 10 21 ff mov 0x1ff, %o1 <== NOT EXECUTED
(void)umask(oumask);
2009a64: 40 00 08 1d call 200bad8 <umask> <== NOT EXECUTED
2009a68: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2009a6c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
2009a70: 7f ff fc 34 call 2008b40 <mkdir> <== NOT EXECUTED
2009a74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2009a78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2009a7c: 16 80 00 27 bge 2009b18 <rtems_mkdir+0x160> <== NOT EXECUTED
2009a80: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
if (errno == EEXIST || errno == EISDIR) {
2009a84: 40 00 ea 04 call 2044294 <__errno> <== NOT EXECUTED
2009a88: 01 00 00 00 nop <== NOT EXECUTED
2009a8c: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2009a90: 80 a0 60 11 cmp %g1, 0x11 <== NOT EXECUTED
2009a94: 02 80 00 08 be 2009ab4 <rtems_mkdir+0xfc> <== NOT EXECUTED
2009a98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2009a9c: 40 00 e9 fe call 2044294 <__errno> <== NOT EXECUTED
2009aa0: 01 00 00 00 nop <== NOT EXECUTED
2009aa4: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2009aa8: 80 a0 60 15 cmp %g1, 0x15 <== NOT EXECUTED
2009aac: 12 80 00 21 bne 2009b30 <rtems_mkdir+0x178> <== NOT EXECUTED
2009ab0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (stat(path, &sb) < 0) {
2009ab4: 40 00 00 2c call 2009b64 <stat> <== NOT EXECUTED
2009ab8: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2009abc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2009ac0: 06 80 00 1c bl 2009b30 <rtems_mkdir+0x178> <== NOT EXECUTED
2009ac4: c2 07 bf c4 ld [ %fp + -60 ], %g1 <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
2009ac8: 82 08 40 15 and %g1, %l5, %g1 <== NOT EXECUTED
2009acc: 80 a0 40 14 cmp %g1, %l4 <== NOT EXECUTED
2009ad0: 02 80 00 0e be 2009b08 <rtems_mkdir+0x150> <== NOT EXECUTED
2009ad4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
if (last)
2009ad8: 02 80 00 07 be 2009af4 <rtems_mkdir+0x13c> <== NOT EXECUTED
2009adc: 01 00 00 00 nop <== NOT EXECUTED
errno = EEXIST;
2009ae0: 40 00 e9 ed call 2044294 <__errno> <== NOT EXECUTED
2009ae4: a2 10 20 00 clr %l1 ! 0 <PROM_START> <== NOT EXECUTED
2009ae8: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
2009aec: 10 80 00 16 b 2009b44 <rtems_mkdir+0x18c> <== NOT EXECUTED
2009af0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
else
errno = ENOTDIR;
2009af4: 40 00 e9 e8 call 2044294 <__errno> <== NOT EXECUTED
2009af8: a2 10 20 00 clr %l1 <== NOT EXECUTED
2009afc: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
2009b00: 10 80 00 0f b 2009b3c <rtems_mkdir+0x184> <== NOT EXECUTED
2009b04: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
retval = 0;
break;
}
if (last)
2009b08: 22 80 00 07 be,a 2009b24 <rtems_mkdir+0x16c> <== NOT EXECUTED
2009b0c: ee 2c 40 00 stb %l7, [ %l1 ] <== NOT EXECUTED
2009b10: 10 80 00 0d b 2009b44 <rtems_mkdir+0x18c> <== NOT EXECUTED
2009b14: a2 10 20 02 mov 2, %l1 <== NOT EXECUTED
} else {
retval = 0;
break;
}
}
if (!last)
2009b18: 32 80 00 0b bne,a 2009b44 <rtems_mkdir+0x18c> <== NOT EXECUTED
2009b1c: a2 10 20 01 mov 1, %l1 <== NOT EXECUTED
*p = '/';
2009b20: ee 2c 40 00 stb %l7, [ %l1 ] <== NOT EXECUTED
2009b24: 82 10 20 00 clr %g1 <== NOT EXECUTED
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
2009b28: 10 bf ff b5 b 20099fc <rtems_mkdir+0x44> <== NOT EXECUTED
2009b2c: a2 04 60 01 inc %l1 <== NOT EXECUTED
}
}
if (!last)
*p = '/';
}
if (!first && !last)
2009b30: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2009b34: 12 80 00 04 bne 2009b44 <rtems_mkdir+0x18c> <== NOT EXECUTED
2009b38: a2 10 20 00 clr %l1 <== NOT EXECUTED
(void)umask(oumask);
2009b3c: 40 00 07 e7 call 200bad8 <umask> <== NOT EXECUTED
2009b40: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
2009b44: 7f ff f9 c7 call 2008260 <free> <== NOT EXECUTED
2009b48: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
2009b4c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2009b50: 12 80 00 03 bne 2009b5c <rtems_mkdir+0x1a4> <== NOT EXECUTED
2009b54: b0 10 20 00 clr %i0 <== NOT EXECUTED
2009b58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
}
2009b5c: 81 c7 e0 08 ret <== NOT EXECUTED
2009b60: 81 e8 00 00 restore <== NOT EXECUTED
02020b24 <rtems_nvdisk_crc16_gen_factors>:
* @relval RTEMS_SUCCESSFUL The table was generated.
* @retval RTEMS_NO_MEMORY The table could not be allocated from the heap.
*/
rtems_status_code
rtems_nvdisk_crc16_gen_factors (uint16_t pattern)
{
2020b24: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t b;
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
2020b28: 7f ff 9f 95 call 200897c <malloc> <== NOT EXECUTED
2020b2c: 90 10 22 00 mov 0x200, %o0 <== NOT EXECUTED
2020b30: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
2020b34: d0 20 63 a4 st %o0, [ %g1 + 0x3a4 ] ! 206e7a4 <rtems_nvdisk_crc16_factor><== NOT EXECUTED
if (!rtems_nvdisk_crc16_factor)
2020b38: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020b3c: 82 10 20 00 clr %g1 <== NOT EXECUTED
2020b40: 02 80 00 13 be 2020b8c <rtems_nvdisk_crc16_gen_factors+0x68><== NOT EXECUTED
2020b44: 84 10 20 1a mov 0x1a, %g2 <== NOT EXECUTED
2020b48: 84 10 00 01 mov %g1, %g2 <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
2020b4c: 10 80 00 06 b 2020b64 <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
2020b50: 86 10 20 08 mov 8, %g3 <== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
2020b54: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2020b58: 02 80 00 03 be 2020b64 <rtems_nvdisk_crc16_gen_factors+0x40><== NOT EXECUTED
2020b5c: 85 30 a0 11 srl %g2, 0x11, %g2 <== NOT EXECUTED
2020b60: 84 18 80 18 xor %g2, %i0, %g2 <== NOT EXECUTED
for (b = 0; b < 256; b++)
{
uint32_t i;
uint16_t v = b;
for (i = 8; i--;)
2020b64: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
2020b68: 80 a0 ff ff cmp %g3, -1 <== NOT EXECUTED
2020b6c: 12 bf ff fa bne 2020b54 <rtems_nvdisk_crc16_gen_factors+0x30><== NOT EXECUTED
2020b70: 80 88 a0 01 btst 1, %g2 <== NOT EXECUTED
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
2020b74: 87 28 60 01 sll %g1, 1, %g3 <== NOT EXECUTED
rtems_nvdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);
if (!rtems_nvdisk_crc16_factor)
return RTEMS_NO_MEMORY;
for (b = 0; b < 256; b++)
2020b78: 82 00 60 01 inc %g1 <== NOT EXECUTED
2020b7c: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED
2020b80: 12 bf ff f2 bne 2020b48 <rtems_nvdisk_crc16_gen_factors+0x24><== NOT EXECUTED
2020b84: c4 32 00 03 sth %g2, [ %o0 + %g3 ] <== NOT EXECUTED
2020b88: 84 10 20 00 clr %g2 <== NOT EXECUTED
for (i = 8; i--;)
v = v & 1 ? (v >> 1) ^ pattern : v >> 1;
rtems_nvdisk_crc16_factor[b] = v & 0xffff;
}
return RTEMS_SUCCESSFUL;
}
2020b8c: 81 c7 e0 08 ret <== NOT EXECUTED
2020b90: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02020434 <rtems_nvdisk_error>:
* @param ... The arguments for the format text.
* @return int The number of bytes written to the output.
*/
static int
rtems_nvdisk_error (const char *format, ...)
{
2020434: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
2020438: 21 00 81 ad sethi %hi(0x206b400), %l0 <== NOT EXECUTED
202043c: c2 04 21 48 ld [ %l0 + 0x148 ], %g1 ! 206b548 <_impure_ptr><== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2020440: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
2020444: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
2020448: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
202044c: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2020450: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2020454: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2020458: 82 07 a0 48 add %fp, 0x48, %g1 <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
202045c: 11 00 81 8d sethi %hi(0x2063400), %o0 <== NOT EXECUTED
static int
rtems_nvdisk_error (const char *format, ...)
{
int ret;
va_list args;
va_start (args, format);
2020460: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
fprintf (stderr, "nvdisk:error:");
2020464: 40 00 92 9a call 2044ecc <fputs> <== NOT EXECUTED
2020468: 90 12 23 d0 or %o0, 0x3d0, %o0 <== NOT EXECUTED
ret = vfprintf (stderr, format, args);
202046c: c2 04 21 48 ld [ %l0 + 0x148 ], %g1 <== NOT EXECUTED
2020470: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2020474: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2020478: 40 00 cb e8 call 2053418 <vfprintf> <== NOT EXECUTED
202047c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
fprintf (stderr, "\n");
2020480: c2 04 21 48 ld [ %l0 + 0x148 ], %g1 <== NOT EXECUTED
{
int ret;
va_list args;
va_start (args, format);
fprintf (stderr, "nvdisk:error:");
ret = vfprintf (stderr, format, args);
2020484: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
fprintf (stderr, "\n");
2020488: d2 00 60 0c ld [ %g1 + 0xc ], %o1 <== NOT EXECUTED
202048c: 40 00 92 4c call 2044dbc <fputc> <== NOT EXECUTED
2020490: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
fflush (stderr);
2020494: c2 04 21 48 ld [ %l0 + 0x148 ], %g1 <== NOT EXECUTED
2020498: 40 00 90 89 call 20446bc <fflush> <== NOT EXECUTED
202049c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
va_end (args);
return ret;
}
20204a0: 81 c7 e0 08 ret <== NOT EXECUTED
20204a4: 81 e8 00 00 restore <== NOT EXECUTED
020204a8 <rtems_nvdisk_get_device>:
/**
* Map a block to a device.
*/
static rtems_nvdisk_device_ctl*
rtems_nvdisk_get_device (rtems_nvdisk* nvd, uint32_t block)
{
20204a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
20204ac: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
/**
* Map a block to a device.
*/
static rtems_nvdisk_device_ctl*
rtems_nvdisk_get_device (rtems_nvdisk* nvd, uint32_t block)
{
20204b0: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
uint32_t device;
if (block >= nvd->block_count)
20204b4: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20204b8: 1a 80 00 06 bcc 20204d0 <rtems_nvdisk_get_device+0x28> <== NOT EXECUTED
20204bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
20204c0: da 06 20 18 ld [ %i0 + 0x18 ], %o5 <== NOT EXECUTED
20204c4: 86 10 20 00 clr %g3 <== NOT EXECUTED
20204c8: 10 80 00 15 b 202051c <rtems_nvdisk_get_device+0x74> <== NOT EXECUTED
20204cc: 84 10 20 00 clr %g2 <== NOT EXECUTED
{
uint32_t device;
if (block >= nvd->block_count)
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
20204d0: 11 00 81 8d sethi %hi(0x2063400), %o0 <== NOT EXECUTED
20204d4: b0 10 20 00 clr %i0 <== NOT EXECUTED
20204d8: 7f ff ff d7 call 2020434 <rtems_nvdisk_error> <== NOT EXECUTED
20204dc: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
return NULL;
20204e0: 81 c7 e0 08 ret <== NOT EXECUTED
20204e4: 81 e8 00 00 restore <== NOT EXECUTED
}
for (device = 0; device < nvd->device_count; device++)
20204e8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
20204ec: b0 06 00 03 add %i0, %g3, %i0 <== NOT EXECUTED
if ((block >= dc->block_base) &&
20204f0: c8 06 20 0c ld [ %i0 + 0xc ], %g4 <== NOT EXECUTED
20204f4: 80 a2 40 04 cmp %o1, %g4 <== NOT EXECUTED
20204f8: 0a 80 00 09 bcs 202051c <rtems_nvdisk_get_device+0x74> <== NOT EXECUTED
20204fc: 86 00 e0 14 add %g3, 0x14, %g3 <== NOT EXECUTED
(block < (dc->block_base + dc->pages - dc->pages_desc)))
2020500: d6 06 20 04 ld [ %i0 + 4 ], %o3 <== NOT EXECUTED
2020504: d8 06 20 08 ld [ %i0 + 8 ], %o4 <== NOT EXECUTED
2020508: 88 01 00 0b add %g4, %o3, %g4 <== NOT EXECUTED
202050c: 88 21 00 0c sub %g4, %o4, %g4 <== NOT EXECUTED
2020510: 80 a2 40 04 cmp %o1, %g4 <== NOT EXECUTED
2020514: 0a 80 00 09 bcs 2020538 <rtems_nvdisk_get_device+0x90> <== NOT EXECUTED
2020518: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: bad block: %d", block);
return NULL;
}
for (device = 0; device < nvd->device_count; device++)
202051c: 80 a0 80 0d cmp %g2, %o5 <== NOT EXECUTED
2020520: 2a bf ff f2 bcs,a 20204e8 <rtems_nvdisk_get_device+0x40> <== NOT EXECUTED
2020524: f0 00 60 14 ld [ %g1 + 0x14 ], %i0 <== NOT EXECUTED
if ((block >= dc->block_base) &&
(block < (dc->block_base + dc->pages - dc->pages_desc)))
return dc;
}
rtems_nvdisk_error ("map-block:%d: no device/page map found", block);
2020528: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
202052c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2020530: 7f ff ff c1 call 2020434 <rtems_nvdisk_error> <== NOT EXECUTED
2020534: 90 12 20 00 mov %o0, %o0 <== NOT EXECUTED
return NULL;
}
2020538: 81 c7 e0 08 ret <== NOT EXECUTED
202053c: 81 e8 00 00 restore <== NOT EXECUTED
02020b94 <rtems_nvdisk_initialize>:
*/
rtems_device_driver
rtems_nvdisk_initialize (rtems_device_major_number major,
rtems_device_minor_number minor,
void* arg __attribute__((unused)))
{
2020b94: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
const rtems_nvdisk_config* c = rtems_nvdisk_configuration;
rtems_nvdisk* nvd;
rtems_status_code sc;
sc = rtems_disk_io_initialize ();
2020b98: 7f ff 97 e5 call 2006b2c <rtems_disk_io_initialize> <== NOT EXECUTED
2020b9c: a8 10 00 18 mov %i0, %l4 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2020ba0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020ba4: 12 80 00 8d bne 2020dd8 <rtems_nvdisk_initialize+0x244> <== NOT EXECUTED
2020ba8: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
return sc;
sc = rtems_nvdisk_crc16_gen_factors (0x8408);
2020bac: 11 00 00 21 sethi %hi(0x8400), %o0 <== NOT EXECUTED
2020bb0: 7f ff ff dd call 2020b24 <rtems_nvdisk_crc16_gen_factors> <== NOT EXECUTED
2020bb4: 90 12 20 08 or %o0, 8, %o0 ! 8408 <PROM_START+0x8408> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2020bb8: b4 92 20 00 orcc %o0, 0, %i2 <== NOT EXECUTED
2020bbc: 32 80 00 88 bne,a 2020ddc <rtems_nvdisk_initialize+0x248><== NOT EXECUTED
2020bc0: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
2020bc4: 37 00 81 aa sethi %hi(0x206a800), %i3 <== NOT EXECUTED
2020bc8: d0 06 e2 8c ld [ %i3 + 0x28c ], %o0 ! 206aa8c <rtems_nvdisk_configuration_size><== NOT EXECUTED
2020bcc: 92 10 20 28 mov 0x28, %o1 <== NOT EXECUTED
2020bd0: 7f ff 9c 15 call 2007c24 <calloc> <== NOT EXECUTED
2020bd4: 39 00 81 b9 sethi %hi(0x206e400), %i4 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
2020bd8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020bdc: 02 80 00 7e be 2020dd4 <rtems_nvdisk_initialize+0x240> <== NOT EXECUTED
2020be0: d0 27 23 9c st %o0, [ %i4 + 0x39c ] <== NOT EXECUTED
2020be4: 23 00 81 7d sethi %hi(0x205f400), %l1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
2020be8: 3b 00 00 18 sethi %hi(0x6000), %i5 <== NOT EXECUTED
}
nvd->block_count = blocks;
nvd->device_count = c->device_count;
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020bec: 2f 00 80 81 sethi %hi(0x2020400), %l7 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
2020bf0: 2d 13 95 91 sethi %hi(0x4e564400), %l6 <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
2020bf4: b6 16 e2 8c or %i3, 0x28c, %i3 <== NOT EXECUTED
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
dev_t dev = rtems_filesystem_make_dev_t (major, minor);
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
2020bf8: b8 17 23 9c or %i4, 0x39c, %i4 <== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
2020bfc: a2 14 61 04 or %l1, 0x104, %l1 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
2020c00: ba 17 61 00 or %i5, 0x100, %i5 <== NOT EXECUTED
}
nvd->block_count = blocks;
nvd->device_count = c->device_count;
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020c04: ae 15 e1 40 or %l7, 0x140, %l7 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
2020c08: ac 15 a0 4b or %l6, 0x4b, %l6 <== NOT EXECUTED
return sc;
rtems_nvdisks = calloc (rtems_nvdisk_configuration_size,
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
2020c0c: a6 10 20 00 clr %l3 <== NOT EXECUTED
2020c10: a4 10 20 00 clr %l2 <== NOT EXECUTED
}
nvd->block_count = blocks;
nvd->device_count = c->device_count;
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020c14: 10 80 00 68 b 2020db4 <rtems_nvdisk_initialize+0x220> <== NOT EXECUTED
2020c18: aa 07 bf e8 add %fp, -24, %l5 <== NOT EXECUTED
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
dev_t dev = rtems_filesystem_make_dev_t (major, minor);
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
2020c1c: e0 07 00 00 ld [ %i4 ], %l0 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2020c20: e8 27 bf f8 st %l4, [ %fp + -8 ] <== NOT EXECUTED
temp.__overlay.minor = _minor;
2020c24: e4 27 bf fc st %l2, [ %fp + -4 ] <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
2020c28: e4 2f bf f1 stb %l2, [ %fp + -15 ] <== NOT EXECUTED
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
{
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
2020c2c: 05 0b d9 19 sethi %hi(0x2f646400), %g2 <== NOT EXECUTED
2020c30: 07 0b db 9d sethi %hi(0x2f6e7400), %g3 <== NOT EXECUTED
2020c34: 84 10 a1 76 or %g2, 0x176, %g2 <== NOT EXECUTED
2020c38: 86 10 e2 64 or %g3, 0x264, %g3 <== NOT EXECUTED
2020c3c: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
return temp.device;
2020c40: c4 1f bf f8 ldd [ %fp + -8 ], %g2 <== NOT EXECUTED
nvd = &rtems_nvdisks[minor];
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
nvd->major = major;
2020c44: e8 24 00 13 st %l4, [ %l0 + %l3 ] <== NOT EXECUTED
char name[] = RTEMS_NVDISK_DEVICE_BASE_NAME "a";
dev_t dev = rtems_filesystem_make_dev_t (major, minor);
uint32_t device;
uint32_t blocks = 0;
nvd = &rtems_nvdisks[minor];
2020c48: a0 04 00 13 add %l0, %l3, %l0 <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
nvd->major = major;
nvd->minor = minor;
2020c4c: e4 24 20 04 st %l2, [ %l0 + 4 ] <== NOT EXECUTED
nvd->flags = c->flags;
2020c50: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
2020c54: c4 3f bf e0 std %g2, [ %fp + -32 ] <== NOT EXECUTED
2020c58: c2 24 20 08 st %g1, [ %l0 + 8 ] <== NOT EXECUTED
nvd->block_size = c->block_size;
2020c5c: c2 04 40 00 ld [ %l1 ], %g1 <== NOT EXECUTED
nvd->info_level = c->info_level;
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
2020c60: 92 10 20 14 mov 0x14, %o1 <== NOT EXECUTED
name [sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME)] += minor;
nvd->major = major;
nvd->minor = minor;
nvd->flags = c->flags;
nvd->block_size = c->block_size;
2020c64: c2 24 20 0c st %g1, [ %l0 + 0xc ] <== NOT EXECUTED
nvd->info_level = c->info_level;
2020c68: c2 04 60 10 ld [ %l1 + 0x10 ], %g1 <== NOT EXECUTED
2020c6c: c2 24 20 24 st %g1, [ %l0 + 0x24 ] <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
2020c70: 7f ff 9b ed call 2007c24 <calloc> <== NOT EXECUTED
2020c74: d0 04 60 04 ld [ %l1 + 4 ], %o0 <== NOT EXECUTED
if (!nvd->devices)
2020c78: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020c7c: 02 80 00 56 be 2020dd4 <rtems_nvdisk_initialize+0x240> <== NOT EXECUTED
2020c80: d0 24 20 14 st %o0, [ %l0 + 0x14 ] <== NOT EXECUTED
2020c84: b0 10 20 00 clr %i0 <== NOT EXECUTED
2020c88: b4 10 20 00 clr %i2 <== NOT EXECUTED
2020c8c: 10 80 00 26 b 2020d24 <rtems_nvdisk_initialize+0x190> <== NOT EXECUTED
2020c90: b2 10 20 00 clr %i1 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
2020c94: c6 04 60 08 ld [ %l1 + 8 ], %g3 <== NOT EXECUTED
if (!nvd->devices)
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
2020c98: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
2020c9c: 84 00 c0 02 add %g3, %g2, %g2 <== NOT EXECUTED
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
2020ca0: f2 20 40 18 st %i1, [ %g1 + %i0 ] <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
2020ca4: d2 04 20 0c ld [ %l0 + 0xc ], %o1 <== NOT EXECUTED
2020ca8: d0 00 a0 08 ld [ %g2 + 8 ], %o0 <== NOT EXECUTED
if (!nvd->devices)
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
2020cac: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
2020cb0: c4 27 bf d0 st %g2, [ %fp + -48 ] <== NOT EXECUTED
2020cb4: 40 00 ee b9 call 205c798 <.udiv> <== NOT EXECUTED
2020cb8: c2 27 bf d4 st %g1, [ %fp + -44 ] <== NOT EXECUTED
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
2020cbc: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
rtems_nvdisk_page_desc_pages (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
uint32_t pages = rtems_nvdisk_pages_in_device (nvd, dd);
uint32_t bytes = pages * sizeof (uint16_t);
return ((bytes - 1) / nvd->block_size) + 1;
2020cc0: c4 07 bf d0 ld [ %fp + -48 ], %g2 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
2020cc4: 86 10 00 08 mov %o0, %g3 <== NOT EXECUTED
for (device = 0; device < c->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
2020cc8: d0 20 60 04 st %o0, [ %g1 + 4 ] <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_pages_in_device (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
return dd->size / nvd->block_size;
2020ccc: c8 04 20 0c ld [ %l0 + 0xc ], %g4 <== NOT EXECUTED
rtems_nvdisk_page_desc_pages (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
uint32_t pages = rtems_nvdisk_pages_in_device (nvd, dd);
uint32_t bytes = pages * sizeof (uint16_t);
return ((bytes - 1) / nvd->block_size) + 1;
2020cd0: d0 00 a0 08 ld [ %g2 + 8 ], %o0 <== NOT EXECUTED
2020cd4: 92 10 00 04 mov %g4, %o1 <== NOT EXECUTED
2020cd8: c6 27 bf d8 st %g3, [ %fp + -40 ] <== NOT EXECUTED
2020cdc: 40 00 ee af call 205c798 <.udiv> <== NOT EXECUTED
2020ce0: c8 27 bf dc st %g4, [ %fp + -36 ] <== NOT EXECUTED
2020ce4: c8 07 bf dc ld [ %fp + -36 ], %g4 <== NOT EXECUTED
2020ce8: 91 2a 20 01 sll %o0, 1, %o0 <== NOT EXECUTED
2020cec: 92 10 00 04 mov %g4, %o1 <== NOT EXECUTED
2020cf0: 40 00 ee aa call 205c798 <.udiv> <== NOT EXECUTED
2020cf4: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
dc->block_base = blocks;
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
2020cf8: c2 07 bf d4 ld [ %fp + -44 ], %g1 <== NOT EXECUTED
2020cfc: c4 07 bf d0 ld [ %fp + -48 ], %g2 <== NOT EXECUTED
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
dc->block_base = blocks;
blocks += dc->pages - dc->pages_desc;
2020d00: c6 07 bf d8 ld [ %fp + -40 ], %g3 <== NOT EXECUTED
rtems_nvdisk_page_desc_pages (const rtems_nvdisk* nvd,
const rtems_nvdisk_device_desc* dd)
{
uint32_t pages = rtems_nvdisk_pages_in_device (nvd, dd);
uint32_t bytes = pages * sizeof (uint16_t);
return ((bytes - 1) / nvd->block_size) + 1;
2020d04: 90 02 20 01 inc %o0 <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
dc->block_base = blocks;
2020d08: f4 20 60 0c st %i2, [ %g1 + 0xc ] <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
2020d0c: 86 20 c0 08 sub %g3, %o0, %g3 <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
if (!nvd->devices)
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
2020d10: b2 06 60 01 inc %i1 <== NOT EXECUTED
2020d14: b0 06 20 14 add %i0, 0x14, %i0 <== NOT EXECUTED
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
dc->block_base = blocks;
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
2020d18: c4 20 60 10 st %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
dc->block_base = blocks;
blocks += dc->pages - dc->pages_desc;
2020d1c: b4 06 80 03 add %i2, %g3, %i2 <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
dc->device = device;
dc->pages = rtems_nvdisk_pages_in_device (nvd, &c->devices[device]);
dc->pages_desc = rtems_nvdisk_page_desc_pages (nvd, &c->devices[device]);
2020d20: d0 20 60 08 st %o0, [ %g1 + 8 ] <== NOT EXECUTED
nvd->devices = calloc (c->device_count, sizeof (rtems_nvdisk_device_ctl));
if (!nvd->devices)
return RTEMS_NO_MEMORY;
for (device = 0; device < c->device_count; device++)
2020d24: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
2020d28: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2020d2c: 0a bf ff da bcs 2020c94 <rtems_nvdisk_initialize+0x100> <== NOT EXECUTED
2020d30: 85 2e 60 04 sll %i1, 4, %g2 <== NOT EXECUTED
blocks += dc->pages - dc->pages_desc;
dc->descriptor = &c->devices[device];
}
nvd->block_count = blocks;
2020d34: f4 24 20 10 st %i2, [ %l0 + 0x10 ] <== NOT EXECUTED
nvd->device_count = c->device_count;
2020d38: c2 04 60 04 ld [ %l1 + 4 ], %g1 <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020d3c: d0 1f bf e0 ldd [ %fp + -32 ], %o0 <== NOT EXECUTED
dc->descriptor = &c->devices[device];
}
nvd->block_count = blocks;
nvd->device_count = c->device_count;
2020d40: c2 24 20 18 st %g1, [ %l0 + 0x18 ] <== NOT EXECUTED
sc = rtems_disk_create_phys(dev, c->block_size, blocks,
2020d44: d4 04 40 00 ld [ %l1 ], %o2 <== NOT EXECUTED
2020d48: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2020d4c: ea 23 a0 5c st %l5, [ %sp + 0x5c ] <== NOT EXECUTED
2020d50: 98 10 00 17 mov %l7, %o4 <== NOT EXECUTED
2020d54: 7f ff 99 47 call 2007270 <rtems_disk_create_phys> <== NOT EXECUTED
2020d58: 9a 10 20 00 clr %o5 <== NOT EXECUTED
rtems_nvdisk_ioctl, NULL, name);
if (sc != RTEMS_SUCCESSFUL)
2020d5c: b4 92 20 00 orcc %o0, 0, %i2 <== NOT EXECUTED
2020d60: 02 80 00 05 be 2020d74 <rtems_nvdisk_initialize+0x1e0> <== NOT EXECUTED
2020d64: 98 04 20 20 add %l0, 0x20, %o4 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk create phy failed");
2020d68: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2020d6c: 10 80 00 0d b 2020da0 <rtems_nvdisk_initialize+0x20c> <== NOT EXECUTED
2020d70: 90 12 20 60 or %o0, 0x60, %o0 ! 2063860 <msdos_ops+0xd8> <== NOT EXECUTED
return sc;
}
sc = rtems_semaphore_create (rtems_build_name ('N', 'V', 'D', 'K'), 1,
2020d74: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2020d78: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2020d7c: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED
2020d80: 96 10 20 00 clr %o3 <== NOT EXECUTED
2020d84: 7f ff ae a0 call 200c804 <rtems_semaphore_create> <== NOT EXECUTED
2020d88: a6 04 e0 28 add %l3, 0x28, %l3 <== NOT EXECUTED
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY, 0, &nvd->lock);
if (sc != RTEMS_SUCCESSFUL)
2020d8c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020d90: 02 80 00 07 be 2020dac <rtems_nvdisk_initialize+0x218> <== NOT EXECUTED
2020d94: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_nvdisk_error ("disk lock create failed");
2020d98: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2020d9c: 90 12 20 78 or %o0, 0x78, %o0 ! 2063878 <msdos_ops+0xf0> <== NOT EXECUTED
2020da0: 7f ff fd a5 call 2020434 <rtems_nvdisk_error> <== NOT EXECUTED
2020da4: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
return sc;
2020da8: 30 80 00 0d b,a 2020ddc <rtems_nvdisk_initialize+0x248> <== NOT EXECUTED
sizeof (rtems_nvdisk));
if (!rtems_nvdisks)
return RTEMS_NO_MEMORY;
for (minor = 0; minor < rtems_nvdisk_configuration_size; minor++, c++)
2020dac: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2020db0: a2 04 60 14 add %l1, 0x14, %l1 <== NOT EXECUTED
2020db4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
2020db8: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2020dbc: 2a bf ff 98 bcs,a 2020c1c <rtems_nvdisk_initialize+0x88> <== NOT EXECUTED
2020dc0: fa 37 bf f0 sth %i5, [ %fp + -16 ] <== NOT EXECUTED
rtems_nvdisk_error ("disk lock create failed");
return sc;
}
}
rtems_nvdisk_count = rtems_nvdisk_configuration_size;
2020dc4: 05 00 81 b9 sethi %hi(0x206e400), %g2 <== NOT EXECUTED
2020dc8: b4 10 20 00 clr %i2 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
2020dcc: 10 80 00 03 b 2020dd8 <rtems_nvdisk_initialize+0x244> <== NOT EXECUTED
2020dd0: c2 20 a3 a0 st %g1, [ %g2 + 0x3a0 ] <== NOT EXECUTED
2020dd4: b4 10 20 1a mov 0x1a, %i2 <== NOT EXECUTED
}
2020dd8: b0 10 00 1a mov %i2, %i0 <== NOT EXECUTED
2020ddc: 81 c7 e0 08 ret <== NOT EXECUTED
2020de0: 81 e8 00 00 restore <== NOT EXECUTED
02020540 <rtems_nvdisk_ioctl>:
* @param argp IOCTL argument.
* @retval The IOCTL return value
*/
static int
rtems_nvdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)
{
2020540: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
dev_t dev = rtems_disk_get_device_identifier (dd);
rtems_device_minor_number minor = rtems_filesystem_dev_minor_t (dev);
rtems_blkdev_request* r = argp;
rtems_status_code sc;
if (minor >= rtems_nvdisk_count)
2020544: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
2020548: c4 00 63 a0 ld [ %g1 + 0x3a0 ], %g2 ! 206e7a0 <rtems_nvdisk_count><== NOT EXECUTED
dev_t device
)
{
union __rtems_dev_t temp;
temp.device = device;
202054c: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
2020550: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2020554: 1a 80 00 0b bcc 2020580 <rtems_nvdisk_ioctl+0x40> <== NOT EXECUTED
2020558: 87 28 60 05 sll %g1, 5, %g3 <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
if (rtems_nvdisks[minor].device_count == 0)
202055c: 23 00 81 b9 sethi %hi(0x206e400), %l1 <== NOT EXECUTED
2020560: c4 04 63 9c ld [ %l1 + 0x39c ], %g2 ! 206e79c <rtems_nvdisks><== NOT EXECUTED
2020564: a1 28 60 03 sll %g1, 3, %l0 <== NOT EXECUTED
2020568: a0 04 00 03 add %l0, %g3, %l0 <== NOT EXECUTED
202056c: 82 00 80 10 add %g2, %l0, %g1 <== NOT EXECUTED
2020570: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2020574: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020578: 12 80 00 08 bne 2020598 <rtems_nvdisk_ioctl+0x58> <== NOT EXECUTED
202057c: 01 00 00 00 nop <== NOT EXECUTED
{
errno = ENODEV;
2020580: 40 00 8f 45 call 2044294 <__errno> <== NOT EXECUTED
2020584: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2020588: 82 10 20 13 mov 0x13, %g1 <== NOT EXECUTED
202058c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
2020590: 81 c7 e0 08 ret <== NOT EXECUTED
2020594: 81 e8 00 00 restore <== NOT EXECUTED
}
errno = 0;
2020598: 40 00 8f 3f call 2044294 <__errno> <== NOT EXECUTED
202059c: 01 00 00 00 nop <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
20205a0: c2 04 63 9c ld [ %l1 + 0x39c ], %g1 <== NOT EXECUTED
{
errno = ENODEV;
return -1;
}
errno = 0;
20205a4: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
sc = rtems_semaphore_obtain (rtems_nvdisks[minor].lock, RTEMS_WAIT, 0);
20205a8: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
20205ac: d0 00 60 20 ld [ %g1 + 0x20 ], %o0 <== NOT EXECUTED
20205b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20205b4: 7f ff b1 4f call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20205b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20205bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20205c0: 12 80 01 46 bne 2020ad8 <rtems_nvdisk_ioctl+0x598> <== NOT EXECUTED
20205c4: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
else
{
errno = 0;
20205c8: 40 00 8f 33 call 2044294 <__errno> <== NOT EXECUTED
20205cc: 01 00 00 00 nop <== NOT EXECUTED
switch (req)
20205d0: 03 08 00 10 sethi %hi(0x20004000), %g1 <== NOT EXECUTED
20205d4: 84 10 62 82 or %g1, 0x282, %g2 ! 20004282 <RAM_END+0x1dc04282><== NOT EXECUTED
20205d8: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20205dc: 02 80 01 30 be 2020a9c <rtems_nvdisk_ioctl+0x55c> <== NOT EXECUTED
20205e0: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
20205e4: 05 30 06 10 sethi %hi(0xc0184000), %g2 <== NOT EXECUTED
20205e8: 84 10 a2 01 or %g2, 0x201, %g2 ! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
20205ec: 80 a6 40 02 cmp %i1, %g2 <== NOT EXECUTED
20205f0: 02 80 00 06 be 2020608 <rtems_nvdisk_ioctl+0xc8> <== NOT EXECUTED
20205f4: 82 10 62 80 or %g1, 0x280, %g1 <== NOT EXECUTED
20205f8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
20205fc: 32 80 01 2c bne,a 2020aac <rtems_nvdisk_ioctl+0x56c> <== NOT EXECUTED
2020600: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2020604: 30 80 00 f8 b,a 20209e4 <rtems_nvdisk_ioctl+0x4a4> <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
2020608: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
202060c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2020610: 02 80 00 05 be 2020624 <rtems_nvdisk_ioctl+0xe4> <== NOT EXECUTED
2020614: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2020618: 12 80 00 ee bne 20209d0 <rtems_nvdisk_ioctl+0x490> <== NOT EXECUTED
202061c: 01 00 00 00 nop <== NOT EXECUTED
2020620: 30 80 00 7d b,a 2020814 <rtems_nvdisk_ioctl+0x2d4> <== NOT EXECUTED
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
2020624: 40 00 8f 1c call 2044294 <__errno> <== NOT EXECUTED
2020628: 37 00 00 3f sethi %hi(0xfc00), %i3 <== NOT EXECUTED
202062c: e2 04 63 9c ld [ %l1 + 0x39c ], %l1 <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020630: 33 00 81 b9 sethi %hi(0x206e400), %i1 <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
2020634: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
2020638: a2 04 40 10 add %l1, %l0, %l1 <== NOT EXECUTED
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
if (ret)
return ret;
if (crc == 0xffff)
202063c: b6 16 e3 ff or %i3, 0x3ff, %i3 <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020640: b2 16 63 a4 or %i1, 0x3a4, %i1 <== NOT EXECUTED
* @retval int The ioctl return value.
*/
static int
rtems_nvdisk_read (rtems_nvdisk* nvd, rtems_blkdev_request* req)
{
rtems_blkdev_sg_buffer* sg = req->bufs;
2020644: a4 06 a0 18 add %i2, 0x18, %l2 <== NOT EXECUTED
2020648: 10 80 00 66 b 20207e0 <rtems_nvdisk_ioctl+0x2a0> <== NOT EXECUTED
202064c: ae 10 20 00 clr %l7 <== NOT EXECUTED
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
2020650: d2 04 60 0c ld [ %l1 + 0xc ], %o1 <== NOT EXECUTED
2020654: 40 00 f0 51 call 205c798 <.udiv> <== NOT EXECUTED
2020658: aa 10 20 00 clr %l5 <== NOT EXECUTED
data = sg->buffer;
202065c: e6 04 a0 08 ld [ %l2 + 8 ], %l3 <== NOT EXECUTED
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
2020660: 10 80 00 5b b 20207cc <rtems_nvdisk_ioctl+0x28c> <== NOT EXECUTED
2020664: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
uint32_t page;
uint16_t crc;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
2020668: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_read_block (nvd, sg->block + b, data);
202066c: ac 05 40 16 add %l5, %l6, %l6 <== NOT EXECUTED
uint32_t page;
uint16_t crc;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
2020670: 7f ff ff 8e call 20204a8 <rtems_nvdisk_get_device> <== NOT EXECUTED
2020674: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
if (!dc)
2020678: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
202067c: 02 80 00 51 be 20207c0 <rtems_nvdisk_ioctl+0x280> <== NOT EXECUTED
2020680: 98 07 bf fe add %fp, -2, %o4 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, " read-block:%d=>%02d-%03d, cs:%04x",
block, dc->device, page, crc);
#endif
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
2020684: d0 05 00 00 ld [ %l4 ], %o0 <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
2020688: c4 04 60 14 ld [ %l1 + 0x14 ], %g2 <== NOT EXECUTED
202068c: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
2020690: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
2020694: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2020698: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
202069c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
20206a0: fa 05 20 0c ld [ %l4 + 0xc ], %i5 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-read: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->read (device, dd->flags, dd->base, offset, buffer, size);
20206a4: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
20206a8: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
20206ac: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
20206b0: d2 00 80 00 ld [ %g2 ], %o1 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
20206b4: ba 25 80 1d sub %l6, %i5, %i5 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-read: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->read (device, dd->flags, dd->base, offset, buffer, size);
20206b8: 97 2f 60 01 sll %i5, 1, %o3 <== NOT EXECUTED
20206bc: 9f c0 40 00 call %g1 <== NOT EXECUTED
20206c0: 9a 10 20 02 mov 2, %o5 <== NOT EXECUTED
block, dc->device, page, crc);
#endif
ret = rtems_nvdisk_read_checksum (nvd, dc->device, page, &crc);
if (ret)
20206c4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20206c8: 12 80 00 3f bne 20207c4 <rtems_nvdisk_ioctl+0x284> <== NOT EXECUTED
20206cc: c2 17 bf fe lduh [ %fp + -2 ], %g1 <== NOT EXECUTED
return ret;
if (crc == 0xffff)
20206d0: 80 a0 40 1b cmp %g1, %i3 <== NOT EXECUTED
20206d4: 12 80 00 08 bne 20206f4 <rtems_nvdisk_ioctl+0x1b4> <== NOT EXECUTED
20206d8: f0 04 60 0c ld [ %l1 + 0xc ], %i0 <== NOT EXECUTED
{
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_warning (nvd, "read-block: crc not set: %d", block);
#endif
memset (buffer, 0, nvd->block_size);
20206dc: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
20206e0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20206e4: 40 00 9c cb call 2047a10 <memset> <== NOT EXECUTED
20206e8: 92 10 20 00 clr %o1 <== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
20206ec: 10 80 01 07 b 2020b08 <rtems_nvdisk_ioctl+0x5c8> <== NOT EXECUTED
20206f0: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
#endif
memset (buffer, 0, nvd->block_size);
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
20206f4: c4 05 00 00 ld [ %l4 ], %g2 <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
20206f8: c6 04 60 14 ld [ %l1 + 0x14 ], %g3 <== NOT EXECUTED
20206fc: 89 28 a0 02 sll %g2, 2, %g4 <== NOT EXECUTED
2020700: 83 28 a0 04 sll %g2, 4, %g1 <== NOT EXECUTED
2020704: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
2020708: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
202070c: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-read: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->read (device, dd->flags, dd->base, offset, buffer, size);
2020710: d0 05 20 08 ld [ %l4 + 8 ], %o0 <== NOT EXECUTED
2020714: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
2020718: e8 00 e0 04 ld [ %g3 + 4 ], %l4 <== NOT EXECUTED
202071c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2020720: 90 07 40 08 add %i5, %o0, %o0 <== NOT EXECUTED
2020724: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED
2020728: fa 00 c0 00 ld [ %g3 ], %i5 <== NOT EXECUTED
202072c: 7f ff 88 b3 call 20029f8 <.umul> <== NOT EXECUTED
2020730: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
2020734: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2020738: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
202073c: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
2020740: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2020744: 9a 10 00 18 mov %i0, %o5 <== NOT EXECUTED
2020748: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED
202074c: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
2020750: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2020754: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020758: 98 10 00 13 mov %l3, %o4 <== NOT EXECUTED
return 0;
}
ret = rtems_nvdisk_read_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
202075c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2020760: 12 80 00 19 bne 20207c4 <rtems_nvdisk_ioctl+0x284> <== NOT EXECUTED
2020764: 82 10 20 00 clr %g1 <== NOT EXECUTED
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
2020768: c6 04 60 0c ld [ %l1 + 0xc ], %g3 <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
202076c: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
2020770: 10 80 00 08 b 2020790 <rtems_nvdisk_ioctl+0x250> <== NOT EXECUTED
2020774: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
2020778: da 0c c0 01 ldub [ %l3 + %g1 ], %o5 <== NOT EXECUTED
rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
202077c: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020780: 88 19 00 0d xor %g4, %o5, %g4 <== NOT EXECUTED
2020784: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
2020788: 89 29 20 01 sll %g4, 1, %g4 <== NOT EXECUTED
202078c: d4 10 80 04 lduh [ %g2 + %g4 ], %o2 <== NOT EXECUTED
2020790: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
2020794: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2020798: 0a bf ff f8 bcs 2020778 <rtems_nvdisk_ioctl+0x238> <== NOT EXECUTED
202079c: 89 32 a0 10 srl %o2, 0x10, %g4 <== NOT EXECUTED
if (ret)
return ret;
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
if (cs != crc)
20207a0: d6 17 bf fe lduh [ %fp + -2 ], %o3 <== NOT EXECUTED
20207a4: 80 a1 00 0b cmp %g4, %o3 <== NOT EXECUTED
20207a8: 02 80 00 d7 be 2020b04 <rtems_nvdisk_ioctl+0x5c4> <== NOT EXECUTED
20207ac: 94 10 00 04 mov %g4, %o2 <== NOT EXECUTED
{
rtems_nvdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
20207b0: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
20207b4: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
20207b8: 7f ff ff 1f call 2020434 <rtems_nvdisk_error> <== NOT EXECUTED
20207bc: 90 12 20 28 or %o0, 0x28, %o0 <== NOT EXECUTED
20207c0: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
20207c4: 10 80 00 0d b 20207f8 <rtems_nvdisk_ioctl+0x2b8> <== NOT EXECUTED
20207c8: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
20207cc: 80 a5 40 1c cmp %l5, %i4 <== NOT EXECUTED
20207d0: 2a bf ff a6 bcs,a 2020668 <rtems_nvdisk_ioctl+0x128> <== NOT EXECUTED
20207d4: ec 04 80 00 ld [ %l2 ], %l6 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "read: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
20207d8: 10 80 00 cf b 2020b14 <rtems_nvdisk_ioctl+0x5d4> <== NOT EXECUTED
20207dc: ae 05 e0 01 inc %l7 <== NOT EXECUTED
20207e0: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1 <== NOT EXECUTED
20207e4: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
20207e8: 2a bf ff 9a bcs,a 2020650 <rtems_nvdisk_ioctl+0x110> <== NOT EXECUTED
20207ec: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED
20207f0: b0 10 20 00 clr %i0 <== NOT EXECUTED
20207f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
req->req_done (req->done_arg, req->status);
20207f8: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
20207fc: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
2020800: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020804: d2 26 a0 0c st %o1, [ %i2 + 0xc ] <== NOT EXECUTED
{
case RTEMS_BLKIO_REQUEST:
switch (r->req)
{
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
2020808: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
break;
202080c: 10 80 00 ab b 2020ab8 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020810: f0 20 40 00 st %i0, [ %g1 ] <== NOT EXECUTED
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
2020814: 40 00 8e a0 call 2044294 <__errno> <== NOT EXECUTED
2020818: 37 00 81 b9 sethi %hi(0x206e400), %i3 <== NOT EXECUTED
202081c: e2 04 63 9c ld [ %l1 + 0x39c ], %l1 <== NOT EXECUTED
2020820: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
2020824: a2 04 40 10 add %l1, %l0, %l1 <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020828: b6 16 e3 a4 or %i3, 0x3a4, %i3 <== NOT EXECUTED
* @retval int The ioctl return value.
*/
static int
rtems_nvdisk_write (rtems_nvdisk* nvd, rtems_blkdev_request* req)
{
rtems_blkdev_sg_buffer* sg = req->bufs;
202082c: a4 06 a0 18 add %i2, 0x18, %l2 <== NOT EXECUTED
2020830: ac 10 20 00 clr %l6 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
2020834: 10 80 00 5b b 20209a0 <rtems_nvdisk_ioctl+0x460> <== NOT EXECUTED
2020838: b2 07 bf fe add %fp, -2, %i1 <== NOT EXECUTED
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
202083c: d2 04 60 0c ld [ %l1 + 0xc ], %o1 <== NOT EXECUTED
2020840: 40 00 ef d6 call 205c798 <.udiv> <== NOT EXECUTED
2020844: aa 10 20 00 clr %l5 <== NOT EXECUTED
data = sg->buffer;
2020848: e8 04 a0 08 ld [ %l2 + 8 ], %l4 <== NOT EXECUTED
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
{
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
202084c: 10 80 00 4e b 2020984 <rtems_nvdisk_ioctl+0x444> <== NOT EXECUTED
2020850: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc;
uint32_t page;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
2020854: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_write_block (nvd, sg->block + b, data);
2020858: ba 05 40 1d add %l5, %i5, %i5 <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc;
uint32_t page;
uint16_t cs;
int ret;
dc = rtems_nvdisk_get_device (nvd, block);
202085c: 7f ff ff 13 call 20204a8 <rtems_nvdisk_get_device> <== NOT EXECUTED
2020860: 92 10 00 1d mov %i5, %o1 <== NOT EXECUTED
if (!dc)
2020864: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
2020868: 02 80 00 4c be 2020998 <rtems_nvdisk_ioctl+0x458> <== NOT EXECUTED
202086c: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
2020870: c2 04 e0 0c ld [ %l3 + 0xc ], %g1 <== NOT EXECUTED
if (!dc)
return EIO;
page = rtems_nvdisk_get_page (dc, block);
cs = rtems_nvdisk_page_checksum (buffer, nvd->block_size);
2020874: f0 04 60 0c ld [ %l1 + 0xc ], %i0 <== NOT EXECUTED
*/
static uint32_t
rtems_nvdisk_get_page (rtems_nvdisk_device_ctl* dc,
uint32_t block)
{
return block - dc->block_base;
2020878: ba 27 40 01 sub %i5, %g1, %i5 <== NOT EXECUTED
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
202087c: c4 06 c0 00 ld [ %i3 ], %g2 <== NOT EXECUTED
2020880: 10 80 00 08 b 20208a0 <rtems_nvdisk_ioctl+0x360> <== NOT EXECUTED
2020884: 82 10 20 00 clr %g1 <== NOT EXECUTED
2020888: c8 0d 00 01 ldub [ %l4 + %g1 ], %g4 <== NOT EXECUTED
rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
202088c: 82 00 60 01 inc %g1 <== NOT EXECUTED
cs = rtems_nvdisk_calc_crc16 (cs, *buffer);
2020890: 86 18 c0 04 xor %g3, %g4, %g3 <== NOT EXECUTED
2020894: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
2020898: 87 28 e0 01 sll %g3, 1, %g3 <== NOT EXECUTED
202089c: ee 10 80 03 lduh [ %g2 + %g3 ], %l7 <== NOT EXECUTED
20208a0: 87 2d e0 10 sll %l7, 0x10, %g3 <== NOT EXECUTED
rtems_nvdisk_page_checksum (const uint8_t* buffer, uint32_t page_size)
{
uint16_t cs = 0xffff;
uint32_t i;
for (i = 0; i < page_size; i++, buffer++)
20208a4: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED
20208a8: 0a bf ff f8 bcs 2020888 <rtems_nvdisk_ioctl+0x348> <== NOT EXECUTED
20208ac: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, " write-block:%d=>%02d-%03d", block, dc->device, page);
#endif
ret = rtems_nvdisk_write_page (nvd, dc->device, page + dc->pages_desc, buffer);
20208b0: c4 04 c0 00 ld [ %l3 ], %g2 <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
20208b4: c6 04 60 14 ld [ %l1 + 0x14 ], %g3 <== NOT EXECUTED
20208b8: 89 28 a0 02 sll %g2, 2, %g4 <== NOT EXECUTED
20208bc: 83 28 a0 04 sll %g2, 4, %g1 <== NOT EXECUTED
20208c0: 82 01 00 01 add %g4, %g1, %g1 <== NOT EXECUTED
20208c4: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
20208c8: c6 00 60 10 ld [ %g1 + 0x10 ], %g3 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
20208cc: d0 04 e0 08 ld [ %l3 + 8 ], %o0 <== NOT EXECUTED
20208d0: c2 00 e0 0c ld [ %g3 + 0xc ], %g1 <== NOT EXECUTED
20208d4: d4 00 e0 04 ld [ %g3 + 4 ], %o2 <== NOT EXECUTED
20208d8: c6 00 c0 00 ld [ %g3 ], %g3 <== NOT EXECUTED
20208dc: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
20208e0: c2 27 bf e4 st %g1, [ %fp + -28 ] <== NOT EXECUTED
20208e4: c4 27 bf e8 st %g2, [ %fp + -24 ] <== NOT EXECUTED
20208e8: c6 27 bf f0 st %g3, [ %fp + -16 ] <== NOT EXECUTED
20208ec: d4 27 bf ec st %o2, [ %fp + -20 ] <== NOT EXECUTED
20208f0: 7f ff 88 42 call 20029f8 <.umul> <== NOT EXECUTED
20208f4: 90 07 40 08 add %i5, %o0, %o0 <== NOT EXECUTED
20208f8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20208fc: c4 07 bf e8 ld [ %fp + -24 ], %g2 <== NOT EXECUTED
2020900: c6 07 bf f0 ld [ %fp + -16 ], %g3 <== NOT EXECUTED
2020904: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2020908: d4 07 bf ec ld [ %fp + -20 ], %o2 <== NOT EXECUTED
202090c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2020910: 92 10 00 03 mov %g3, %o1 <== NOT EXECUTED
2020914: 90 10 00 02 mov %g2, %o0 <== NOT EXECUTED
2020918: 9a 10 00 18 mov %i0, %o5 <== NOT EXECUTED
202091c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020920: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
rtems_nvdisk_info (nvd, " write-block:%d=>%02d-%03d", block, dc->device, page);
#endif
ret = rtems_nvdisk_write_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
2020924: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020928: 12 80 00 23 bne 20209b4 <rtems_nvdisk_ioctl+0x474> <== NOT EXECUTED
202092c: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
return ret;
return rtems_nvdisk_write_checksum (nvd, dc->device, page, cs);
2020930: d0 04 c0 00 ld [ %l3 ], %o0 <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
2020934: c4 04 60 14 ld [ %l1 + 0x14 ], %g2 <== NOT EXECUTED
2020938: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
202093c: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
2020940: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2020944: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2020948: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED
ret = rtems_nvdisk_write_page (nvd, dc->device, page + dc->pages_desc, buffer);
if (ret)
return ret;
return rtems_nvdisk_write_checksum (nvd, dc->device, page, cs);
202094c: ee 37 bf fe sth %l7, [ %fp + -2 ] <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
2020950: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
2020954: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
2020958: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
202095c: d2 00 80 00 ld [ %g2 ], %o1 <== NOT EXECUTED
2020960: 97 2f 60 01 sll %i5, 1, %o3 <== NOT EXECUTED
2020964: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
2020968: 9f c0 40 00 call %g1 <== NOT EXECUTED
202096c: 9a 10 20 02 mov 2, %o5 <== NOT EXECUTED
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
{
ret = rtems_nvdisk_write_block (nvd, sg->block + b, data);
if (ret)
2020970: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020974: 12 80 00 09 bne 2020998 <rtems_nvdisk_ioctl+0x458> <== NOT EXECUTED
2020978: aa 05 60 01 inc %l5 <== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
202097c: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
2020980: a8 05 00 01 add %l4, %g1, %l4 <== NOT EXECUTED
2020984: 80 a5 40 1c cmp %l5, %i4 <== NOT EXECUTED
2020988: 2a bf ff b3 bcs,a 2020854 <rtems_nvdisk_ioctl+0x314> <== NOT EXECUTED
202098c: fa 04 80 00 ld [ %l2 ], %i5 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "write: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
2020990: 10 80 00 63 b 2020b1c <rtems_nvdisk_ioctl+0x5dc> <== NOT EXECUTED
2020994: ac 05 a0 01 inc %l6 <== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
2020998: 10 80 00 07 b 20209b4 <rtems_nvdisk_ioctl+0x474> <== NOT EXECUTED
202099c: 92 10 20 1b mov 0x1b, %o1 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "write: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
20209a0: c2 06 a0 10 ld [ %i2 + 0x10 ], %g1 <== NOT EXECUTED
20209a4: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
20209a8: 2a bf ff a5 bcs,a 202083c <rtems_nvdisk_ioctl+0x2fc> <== NOT EXECUTED
20209ac: d0 04 a0 04 ld [ %l2 + 4 ], %o0 <== NOT EXECUTED
20209b0: 92 10 20 00 clr %o1 <== NOT EXECUTED
break;
}
}
req->status = ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL;
req->req_done (req->done_arg, req->status);
20209b4: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
20209b8: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
20209bc: 9f c0 40 00 call %g1 <== NOT EXECUTED
20209c0: d2 26 a0 0c st %o1, [ %i2 + 0xc ] <== NOT EXECUTED
case RTEMS_BLKDEV_REQ_READ:
errno = rtems_nvdisk_read (&rtems_nvdisks[minor], r);
break;
case RTEMS_BLKDEV_REQ_WRITE:
errno = rtems_nvdisk_write (&rtems_nvdisks[minor], r);
20209c4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
break;
20209c8: 10 80 00 3c b 2020ab8 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
20209cc: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
default:
errno = EINVAL;
20209d0: 40 00 8e 31 call 2044294 <__errno> <== NOT EXECUTED
20209d4: 01 00 00 00 nop <== NOT EXECUTED
20209d8: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
20209dc: 10 80 00 37 b 2020ab8 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
20209e0: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
break;
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
20209e4: 40 00 8e 2c call 2044294 <__errno> <== NOT EXECUTED
20209e8: a8 10 20 00 clr %l4 <== NOT EXECUTED
20209ec: e6 04 63 9c ld [ %l1 + 0x39c ], %l3 <== NOT EXECUTED
20209f0: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
20209f4: a6 04 c0 10 add %l3, %l0, %l3 <== NOT EXECUTED
20209f8: a4 10 20 00 clr %l2 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
20209fc: ba 07 bf fe add %fp, -2, %i5 <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
2020a00: 10 80 00 20 b 2020a80 <rtems_nvdisk_ioctl+0x540> <== NOT EXECUTED
2020a04: ae 10 3f ff mov -1, %l7 <== NOT EXECUTED
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
2020a08: a2 10 20 00 clr %l1 <== NOT EXECUTED
2020a0c: 10 80 00 13 b 2020a58 <rtems_nvdisk_ioctl+0x518> <== NOT EXECUTED
2020a10: aa 05 40 14 add %l5, %l4, %l5 <== NOT EXECUTED
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
2020a14: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED
* Get the descriptor for a device.
*/
static const rtems_nvdisk_device_desc*
rtems_nvdisk_device_descriptor (const rtems_nvdisk* nvd, uint32_t device)
{
return nvd->devices[device].descriptor;
2020a18: c4 04 e0 14 ld [ %l3 + 0x14 ], %g2 <== NOT EXECUTED
2020a1c: 87 2a 20 02 sll %o0, 2, %g3 <== NOT EXECUTED
2020a20: 83 2a 20 04 sll %o0, 4, %g1 <== NOT EXECUTED
2020a24: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2020a28: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2020a2c: c4 00 60 10 ld [ %g1 + 0x10 ], %g2 <== NOT EXECUTED
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
2020a30: ee 37 bf fe sth %l7, [ %fp + -2 ] <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
2020a34: c2 00 a0 0c ld [ %g2 + 0xc ], %g1 <== NOT EXECUTED
2020a38: d4 00 a0 04 ld [ %g2 + 4 ], %o2 <== NOT EXECUTED
2020a3c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
2020a40: 9f c0 40 00 call %g1 <== NOT EXECUTED
2020a44: d2 00 80 00 ld [ %g2 ], %o1 <== NOT EXECUTED
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
{
int ret = rtems_nvdisk_write_checksum (nvd, dc->device, page, 0xffff);
if (ret)
2020a48: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020a4c: 32 80 00 1b bne,a 2020ab8 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020a50: d0 25 80 00 st %o0, [ %l6 ] <== NOT EXECUTED
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
2020a54: a2 04 60 01 inc %l1 <== NOT EXECUTED
2020a58: c4 05 60 04 ld [ %l5 + 4 ], %g2 <== NOT EXECUTED
2020a5c: c2 05 60 08 ld [ %l5 + 8 ], %g1 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
2020a60: 97 2c 60 01 sll %l1, 1, %o3 <== NOT EXECUTED
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
2020a64: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
ops = nvd->devices[device].descriptor->nv_ops;
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_printf (nvd, " dev-write: %02d-%08x: s=%d",
device, offset, size);
#endif
return ops->write (device, dd->flags, dd->base, offset, buffer, size);
2020a68: 98 10 00 1d mov %i5, %o4 <== NOT EXECUTED
for (device = 0; device < nvd->device_count; device++)
{
rtems_nvdisk_device_ctl* dc = &nvd->devices[device];
uint32_t page;
for (page = 0; page < (dc->pages - dc->pages_desc); page++)
2020a6c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2020a70: 0a bf ff e9 bcs 2020a14 <rtems_nvdisk_ioctl+0x4d4> <== NOT EXECUTED
2020a74: 9a 10 20 02 mov 2, %o5 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "erase-disk");
#endif
for (device = 0; device < nvd->device_count; device++)
2020a78: a4 04 a0 01 inc %l2 <== NOT EXECUTED
2020a7c: a8 05 20 14 add %l4, 0x14, %l4 <== NOT EXECUTED
2020a80: c2 04 e0 18 ld [ %l3 + 0x18 ], %g1 <== NOT EXECUTED
2020a84: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
2020a88: 2a bf ff e0 bcs,a 2020a08 <rtems_nvdisk_ioctl+0x4c8> <== NOT EXECUTED
2020a8c: ea 04 e0 14 ld [ %l3 + 0x14 ], %l5 <== NOT EXECUTED
2020a90: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
break;
case RTEMS_NVDISK_IOCTL_ERASE_DISK:
errno = rtems_nvdisk_erase_disk (&rtems_nvdisks[minor]);
break;
2020a94: 10 80 00 09 b 2020ab8 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020a98: d0 25 80 00 st %o0, [ %l6 ] <== NOT EXECUTED
case RTEMS_NVDISK_IOCTL_INFO_LEVEL:
rtems_nvdisks[minor].info_level = (uintptr_t) argp;
2020a9c: c2 04 63 9c ld [ %l1 + 0x39c ], %g1 <== NOT EXECUTED
2020aa0: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
break;
2020aa4: 10 80 00 05 b 2020ab8 <rtems_nvdisk_ioctl+0x578> <== NOT EXECUTED
2020aa8: f4 20 60 24 st %i2, [ %g1 + 0x24 ] <== NOT EXECUTED
default:
rtems_blkdev_ioctl (dd, req, argp);
2020aac: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2020ab0: 7f ff 95 9c call 2006120 <rtems_blkdev_ioctl> <== NOT EXECUTED
2020ab4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
break;
}
sc = rtems_semaphore_release (rtems_nvdisks[minor].lock);
2020ab8: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
2020abc: c2 00 63 9c ld [ %g1 + 0x39c ], %g1 ! 206e79c <rtems_nvdisks><== NOT EXECUTED
2020ac0: a0 00 40 10 add %g1, %l0, %l0 <== NOT EXECUTED
2020ac4: 7f ff b0 52 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2020ac8: d0 04 20 20 ld [ %l0 + 0x20 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2020acc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2020ad0: 02 80 00 06 be 2020ae8 <rtems_nvdisk_ioctl+0x5a8> <== NOT EXECUTED
2020ad4: 01 00 00 00 nop <== NOT EXECUTED
errno = EIO;
2020ad8: 40 00 8d ef call 2044294 <__errno> <== NOT EXECUTED
2020adc: 01 00 00 00 nop <== NOT EXECUTED
2020ae0: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
2020ae4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
}
return errno == 0 ? 0 : -1;
2020ae8: 40 00 8d eb call 2044294 <__errno> <== NOT EXECUTED
2020aec: 01 00 00 00 nop <== NOT EXECUTED
2020af0: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
2020af4: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2020af8: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
}
2020afc: 81 c7 e0 08 ret <== NOT EXECUTED
2020b00: 81 e8 00 00 restore <== NOT EXECUTED
uint8_t* data;
uint32_t nvb;
uint32_t b;
nvb = sg->length / nvd->block_size;
data = sg->buffer;
for (b = 0; b < nvb; b++, data += nvd->block_size)
2020b04: c2 04 60 0c ld [ %l1 + 0xc ], %g1 <== NOT EXECUTED
2020b08: aa 05 60 01 inc %l5 <== NOT EXECUTED
2020b0c: 10 bf ff 30 b 20207cc <rtems_nvdisk_ioctl+0x28c> <== NOT EXECUTED
2020b10: a6 04 c0 01 add %l3, %g1, %l3 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "read: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
2020b14: 10 bf ff 33 b 20207e0 <rtems_nvdisk_ioctl+0x2a0> <== NOT EXECUTED
2020b18: a4 04 a0 10 add %l2, 0x10, %l2 <== NOT EXECUTED
#if RTEMS_NVDISK_TRACE
rtems_nvdisk_info (nvd, "write: blocks=%d", req->bufnum);
#endif
for (bufs = 0; (ret == 0) && (bufs < req->bufnum); bufs++, sg++)
2020b1c: 10 bf ff a1 b 20209a0 <rtems_nvdisk_ioctl+0x460> <== NOT EXECUTED
2020b20: a4 04 a0 10 add %l2, 0x10, %l2 <== NOT EXECUTED
02020e2c <rtems_nvdisk_sram_read>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
2020e2c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
memcpy (buffer, (base + offset), size);
return 0;
}
2020e30: b0 10 20 00 clr %i0 <== NOT EXECUTED
void* base,
uint32_t offset,
void* buffer,
size_t size)
{
memcpy (buffer, (base + offset), size);
2020e34: 92 06 80 1b add %i2, %i3, %o1 <== NOT EXECUTED
2020e38: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2020e3c: 40 00 9a 62 call 20477c4 <memcpy> <== NOT EXECUTED
2020e40: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
return 0;
}
2020e44: 81 c7 e0 08 ret <== NOT EXECUTED
2020e48: 81 e8 00 00 restore <== NOT EXECUTED
02020de4 <rtems_nvdisk_sram_verify>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
2020de4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
return memcmp ((base + offset), buffer, size) == 0 ? 0 : EIO;
2020de8: 90 06 80 1b add %i2, %i3, %o0 <== NOT EXECUTED
2020dec: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2020df0: 40 00 9a 44 call 2047700 <memcmp> <== NOT EXECUTED
2020df4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
2020df8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2020dfc: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2020e00: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
}
2020e04: 81 c7 e0 08 ret <== NOT EXECUTED
2020e08: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02020e0c <rtems_nvdisk_sram_write>:
uint32_t flags __attribute__((unused)),
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
2020e0c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
memcpy ((base + offset), buffer, size);
return 0;
}
2020e10: b0 10 20 00 clr %i0 <== NOT EXECUTED
void* base,
uint32_t offset,
const void* buffer,
size_t size)
{
memcpy ((base + offset), buffer, size);
2020e14: 90 06 80 1b add %i2, %i3, %o0 <== NOT EXECUTED
2020e18: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
2020e1c: 40 00 9a 6a call 20477c4 <memcpy> <== NOT EXECUTED
2020e20: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
return 0;
}
2020e24: 81 c7 e0 08 ret <== NOT EXECUTED
2020e28: 81 e8 00 00 restore <== NOT EXECUTED
020078f8 <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
20078f8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
va_list arglist;
va_start(arglist, printf_format);
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
20078fc: 11 08 00 00 sethi %hi(0x20000000), %o0 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
2007900: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED
2007904: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
2007908: f4 27 a0 4c st %i2, [ %fp + 0x4c ] <== NOT EXECUTED
200790c: f6 27 a0 50 st %i3, [ %fp + 0x50 ] <== NOT EXECUTED
2007910: f8 27 a0 54 st %i4, [ %fp + 0x54 ] <== NOT EXECUTED
2007914: fa 27 a0 58 st %i5, [ %fp + 0x58 ] <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
2007918: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
200791c: 7f ff ff 89 call 2007740 <rtems_verror> <== NOT EXECUTED
2007920: d4 27 bf fc st %o2, [ %fp + -4 ] <== NOT EXECUTED
va_end(arglist);
}
2007924: 81 c7 e0 08 ret <== NOT EXECUTED
2007928: 81 e8 00 00 restore <== NOT EXECUTED
0201365c <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
201365c: 9d e3 bf a0 save %sp, -96, %sp
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
2013660: a0 96 20 00 orcc %i0, 0, %l0
2013664: 02 80 00 1c be 20136d4 <rtems_partition_create+0x78>
2013668: b0 10 20 03 mov 3, %i0
return RTEMS_INVALID_NAME;
if ( !starting_address )
201366c: 80 a6 60 00 cmp %i1, 0
2013670: 02 80 00 34 be 2013740 <rtems_partition_create+0xe4>
2013674: 80 a7 60 00 cmp %i5, 0
return RTEMS_INVALID_ADDRESS;
if ( !id )
2013678: 02 80 00 32 be 2013740 <rtems_partition_create+0xe4> <== NEVER TAKEN
201367c: 80 a6 e0 00 cmp %i3, 0
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
2013680: 02 80 00 32 be 2013748 <rtems_partition_create+0xec>
2013684: 80 a6 a0 00 cmp %i2, 0
2013688: 02 80 00 30 be 2013748 <rtems_partition_create+0xec>
201368c: 80 a6 80 1b cmp %i2, %i3
2013690: 0a 80 00 2e bcs 2013748 <rtems_partition_create+0xec>
2013694: 80 8e e0 07 btst 7, %i3
2013698: 12 80 00 2c bne 2013748 <rtems_partition_create+0xec>
201369c: 80 8e 60 07 btst 7, %i1
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
20136a0: 12 80 00 28 bne 2013740 <rtems_partition_create+0xe4>
20136a4: 03 00 80 fb sethi %hi(0x203ec00), %g1
20136a8: c4 00 63 50 ld [ %g1 + 0x350 ], %g2 ! 203ef50 <_Thread_Dispatch_disable_level>
20136ac: 84 00 a0 01 inc %g2
20136b0: c4 20 63 50 st %g2, [ %g1 + 0x350 ]
* This function allocates a partition control block from
* the inactive chain of free partition control blocks.
*/
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )
{
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
20136b4: 25 00 80 fb sethi %hi(0x203ec00), %l2
20136b8: 40 00 12 00 call 2017eb8 <_Objects_Allocate>
20136bc: 90 14 a1 54 or %l2, 0x154, %o0 ! 203ed54 <_Partition_Information>
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
20136c0: a2 92 20 00 orcc %o0, 0, %l1
20136c4: 32 80 00 06 bne,a 20136dc <rtems_partition_create+0x80>
20136c8: f4 24 60 14 st %i2, [ %l1 + 0x14 ]
_Thread_Enable_dispatch();
20136cc: 40 00 15 fa call 2018eb4 <_Thread_Enable_dispatch>
20136d0: b0 10 20 05 mov 5, %i0
return RTEMS_TOO_MANY;
20136d4: 81 c7 e0 08 ret
20136d8: 81 e8 00 00 restore
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
_Chain_Initialize( &the_partition->Memory, starting_address,
20136dc: 90 10 00 1a mov %i2, %o0
20136e0: 92 10 00 1b mov %i3, %o1
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
20136e4: f8 24 60 1c st %i4, [ %l1 + 0x1c ]
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
20136e8: f2 24 60 10 st %i1, [ %l1 + 0x10 ]
the_partition->length = length;
the_partition->buffer_size = buffer_size;
20136ec: f6 24 60 18 st %i3, [ %l1 + 0x18 ]
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
_Chain_Initialize( &the_partition->Memory, starting_address,
20136f0: 40 00 69 ab call 202dd9c <.udiv>
20136f4: c0 24 60 20 clr [ %l1 + 0x20 ]
20136f8: 92 10 00 19 mov %i1, %o1
20136fc: 94 10 00 08 mov %o0, %o2
2013700: 96 10 00 1b mov %i3, %o3
2013704: b4 04 60 24 add %l1, 0x24, %i2
2013708: 40 00 0c 6f call 20168c4 <_Chain_Initialize>
201370c: 90 10 00 1a mov %i2, %o0
2013710: c2 14 60 0a lduh [ %l1 + 0xa ], %g1
2013714: c6 04 60 08 ld [ %l1 + 8 ], %g3
2013718: a4 14 a1 54 or %l2, 0x154, %l2
201371c: c4 04 a0 1c ld [ %l2 + 0x1c ], %g2
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
2013720: e0 24 60 0c st %l0, [ %l1 + 0xc ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
2013724: 83 28 60 02 sll %g1, 2, %g1
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
2013728: c6 27 40 00 st %g3, [ %i5 ]
201372c: e2 20 80 01 st %l1, [ %g2 + %g1 ]
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
2013730: 40 00 15 e1 call 2018eb4 <_Thread_Enable_dispatch>
2013734: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
2013738: 81 c7 e0 08 ret
201373c: 81 e8 00 00 restore
2013740: 81 c7 e0 08 ret
2013744: 91 e8 20 09 restore %g0, 9, %o0
2013748: b0 10 20 08 mov 8, %i0
}
201374c: 81 c7 e0 08 ret
2013750: 81 e8 00 00 restore
0200a1dc <rtems_pipe_initialize>:
/*
* Initialization of FIFO/pipe module.
*/
void rtems_pipe_initialize (void)
{
200a1dc: 9d e3 bf a0 save %sp, -96, %sp
if (!rtems_pipe_configured)
200a1e0: 03 00 80 77 sethi %hi(0x201dc00), %g1
200a1e4: c2 08 61 d4 ldub [ %g1 + 0x1d4 ], %g1 ! 201ddd4 <rtems_pipe_configured>
200a1e8: 80 a0 60 00 cmp %g1, 0
200a1ec: 02 80 00 15 be 200a240 <rtems_pipe_initialize+0x64> <== ALWAYS TAKEN
200a1f0: 19 00 80 77 sethi %hi(0x201dc00), %o4
return;
if (rtems_pipe_semaphore)
200a1f4: c2 03 23 38 ld [ %o4 + 0x338 ], %g1 ! 201df38 <rtems_pipe_semaphore><== NOT EXECUTED
200a1f8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200a1fc: 12 80 00 11 bne 200a240 <rtems_pipe_initialize+0x64> <== NOT EXECUTED
200a200: 98 13 23 38 or %o4, 0x338, %o4 <== NOT EXECUTED
return;
rtems_status_code sc;
sc = rtems_semaphore_create(
200a204: 11 14 12 54 sethi %hi(0x50495000), %o0 <== NOT EXECUTED
200a208: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
200a20c: 90 12 20 45 or %o0, 0x45, %o0 <== NOT EXECUTED
200a210: 94 10 20 54 mov 0x54, %o2 <== NOT EXECUTED
200a214: 7f ff ef aa call 20060bc <rtems_semaphore_create> <== NOT EXECUTED
200a218: 96 10 20 00 clr %o3 <== NOT EXECUTED
rtems_build_name ('P', 'I', 'P', 'E'), 1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY, &rtems_pipe_semaphore);
if (sc != RTEMS_SUCCESSFUL)
200a21c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200a220: 02 80 00 04 be 200a230 <rtems_pipe_initialize+0x54> <== NOT EXECUTED
200a224: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
200a228: 7f ff f1 e2 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
200a22c: 01 00 00 00 nop <== NOT EXECUTED
rtems_interval now;
now = rtems_clock_get_ticks_since_boot();
200a230: 7f ff ee 84 call 2005c40 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
200a234: 01 00 00 00 nop <== NOT EXECUTED
rtems_pipe_no = now;
200a238: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
200a23c: d0 30 63 40 sth %o0, [ %g1 + 0x340 ] ! 201df40 <rtems_pipe_no><== NOT EXECUTED
200a240: 81 c7 e0 08 ret
200a244: 81 e8 00 00 restore
02041110 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
2041110: 9d e3 bf 98 save %sp, -104, %sp
2041114: 11 00 81 be sethi %hi(0x206f800), %o0
2041118: 92 10 00 18 mov %i0, %o1
204111c: 90 12 20 a8 or %o0, 0xa8, %o0
2041120: 7f ff 35 cd call 200e854 <_Objects_Get>
2041124: 94 07 bf fc add %fp, -4, %o2
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
2041128: c2 07 bf fc ld [ %fp + -4 ], %g1
204112c: 80 a0 60 00 cmp %g1, 0
2041130: 12 80 00 63 bne 20412bc <rtems_rate_monotonic_period+0x1ac>
2041134: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
2041138: 25 00 81 bb sethi %hi(0x206ec00), %l2
204113c: c4 02 20 40 ld [ %o0 + 0x40 ], %g2
2041140: c2 04 a2 40 ld [ %l2 + 0x240 ], %g1
2041144: 80 a0 80 01 cmp %g2, %g1
2041148: 02 80 00 06 be 2041160 <rtems_rate_monotonic_period+0x50>
204114c: 80 a6 60 00 cmp %i1, 0
_Thread_Enable_dispatch();
2041150: 7f ff 38 40 call 200f250 <_Thread_Enable_dispatch>
2041154: b0 10 20 17 mov 0x17, %i0
return RTEMS_NOT_OWNER_OF_RESOURCE;
2041158: 81 c7 e0 08 ret
204115c: 81 e8 00 00 restore
}
if ( length == RTEMS_PERIOD_STATUS ) {
2041160: 12 80 00 0b bne 204118c <rtems_rate_monotonic_period+0x7c>
2041164: 01 00 00 00 nop
switch ( the_period->state ) {
2041168: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
204116c: 80 a0 60 04 cmp %g1, 4
2041170: 18 80 00 4f bgu 20412ac <rtems_rate_monotonic_period+0x19c><== NEVER TAKEN
2041174: b0 10 20 00 clr %i0
2041178: 83 28 60 02 sll %g1, 2, %g1
204117c: 05 00 81 a3 sethi %hi(0x2068c00), %g2
2041180: 84 10 a2 90 or %g2, 0x290, %g2 ! 2068e90 <CSWTCH.48>
2041184: 10 80 00 4a b 20412ac <rtems_rate_monotonic_period+0x19c>
2041188: f0 00 80 01 ld [ %g2 + %g1 ], %i0
}
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
204118c: 7f ff 09 88 call 20037ac <sparc_disable_interrupts>
2041190: 01 00 00 00 nop
2041194: a6 10 00 08 mov %o0, %l3
switch ( the_period->state ) {
2041198: e2 04 20 38 ld [ %l0 + 0x38 ], %l1
204119c: 80 a4 60 02 cmp %l1, 2
20411a0: 02 80 00 1a be 2041208 <rtems_rate_monotonic_period+0xf8>
20411a4: 80 a4 60 04 cmp %l1, 4
20411a8: 02 80 00 34 be 2041278 <rtems_rate_monotonic_period+0x168>
20411ac: 80 a4 60 00 cmp %l1, 0
20411b0: 12 80 00 43 bne 20412bc <rtems_rate_monotonic_period+0x1ac><== NEVER TAKEN
20411b4: 01 00 00 00 nop
case RATE_MONOTONIC_INACTIVE: {
_ISR_Enable( level );
20411b8: 7f ff 09 81 call 20037bc <sparc_enable_interrupts>
20411bc: 01 00 00 00 nop
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
20411c0: 7f ff ff 50 call 2040f00 <_Rate_monotonic_Initiate_statistics>
20411c4: 90 10 00 10 mov %l0, %o0
the_period->state = RATE_MONOTONIC_ACTIVE;
20411c8: 82 10 20 02 mov 2, %g1
20411cc: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
20411d0: 03 00 81 04 sethi %hi(0x2041000), %g1
20411d4: 82 10 62 c4 or %g1, 0x2c4, %g1 ! 20412c4 <_Rate_monotonic_Timeout>
the_watchdog->id = id;
20411d8: f0 24 20 30 st %i0, [ %l0 + 0x30 ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
20411dc: 92 04 20 10 add %l0, 0x10, %o1
20411e0: 11 00 81 bb sethi %hi(0x206ec00), %o0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
20411e4: f2 24 20 1c st %i1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
20411e8: 90 12 22 60 or %o0, 0x260, %o0
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
20411ec: c0 24 20 18 clr [ %l0 + 0x18 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
20411f0: c0 24 20 34 clr [ %l0 + 0x34 ]
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
20411f4: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
20411f8: c2 24 20 2c st %g1, [ %l0 + 0x2c ]
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
20411fc: 7f ff 3c 97 call 2010458 <_Watchdog_Insert>
2041200: b0 10 20 00 clr %i0
2041204: 30 80 00 2a b,a 20412ac <rtems_rate_monotonic_period+0x19c>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
2041208: 7f ff ff 84 call 2041018 <_Rate_monotonic_Update_statistics>
204120c: 90 10 00 10 mov %l0, %o0
/*
* This tells the _Rate_monotonic_Timeout that this task is
* in the process of blocking on the period and that we
* may be changing the length of the next period.
*/
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
2041210: 82 10 20 01 mov 1, %g1
the_period->next_length = length;
2041214: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
/*
* This tells the _Rate_monotonic_Timeout that this task is
* in the process of blocking on the period and that we
* may be changing the length of the next period.
*/
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
2041218: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
the_period->next_length = length;
_ISR_Enable( level );
204121c: 7f ff 09 68 call 20037bc <sparc_enable_interrupts>
2041220: 90 10 00 13 mov %l3, %o0
_Thread_Executing->Wait.id = the_period->Object.id;
2041224: c2 04 a2 40 ld [ %l2 + 0x240 ], %g1
2041228: c4 04 20 08 ld [ %l0 + 8 ], %g2
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
204122c: 90 10 00 01 mov %g1, %o0
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
2041230: c4 20 60 20 st %g2, [ %g1 + 0x20 ]
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
2041234: 7f ff 3a 7f call 200fc30 <_Thread_Set_state>
2041238: 13 00 00 10 sethi %hi(0x4000), %o1
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
204123c: 7f ff 09 5c call 20037ac <sparc_disable_interrupts>
2041240: 01 00 00 00 nop
local_state = the_period->state;
2041244: e6 04 20 38 ld [ %l0 + 0x38 ], %l3
the_period->state = RATE_MONOTONIC_ACTIVE;
2041248: e2 24 20 38 st %l1, [ %l0 + 0x38 ]
_ISR_Enable( level );
204124c: 7f ff 09 5c call 20037bc <sparc_enable_interrupts>
2041250: 01 00 00 00 nop
/*
* If it did, then we want to unblock ourself and continue as
* if nothing happen. The period was reset in the timeout routine.
*/
if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )
2041254: 80 a4 e0 03 cmp %l3, 3
2041258: 12 80 00 04 bne 2041268 <rtems_rate_monotonic_period+0x158>
204125c: d0 04 a2 40 ld [ %l2 + 0x240 ], %o0
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
2041260: 7f ff 36 ea call 200ee08 <_Thread_Clear_state>
2041264: 13 00 00 10 sethi %hi(0x4000), %o1
_Thread_Enable_dispatch();
2041268: 7f ff 37 fa call 200f250 <_Thread_Enable_dispatch>
204126c: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
2041270: 81 c7 e0 08 ret
2041274: 81 e8 00 00 restore
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
2041278: 7f ff ff 68 call 2041018 <_Rate_monotonic_Update_statistics>
204127c: 90 10 00 10 mov %l0, %o0
_ISR_Enable( level );
2041280: 7f ff 09 4f call 20037bc <sparc_enable_interrupts>
2041284: 90 10 00 13 mov %l3, %o0
the_period->state = RATE_MONOTONIC_ACTIVE;
2041288: 82 10 20 02 mov 2, %g1
204128c: 92 04 20 10 add %l0, 0x10, %o1
2041290: 11 00 81 bb sethi %hi(0x206ec00), %o0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
2041294: f2 24 20 1c st %i1, [ %l0 + 0x1c ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
2041298: 90 12 22 60 or %o0, 0x260, %o0
the_period->next_length = length;
204129c: f2 24 20 3c st %i1, [ %l0 + 0x3c ]
*/
_Rate_monotonic_Update_statistics( the_period );
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
20412a0: c2 24 20 38 st %g1, [ %l0 + 0x38 ]
20412a4: 7f ff 3c 6d call 2010458 <_Watchdog_Insert>
20412a8: b0 10 20 06 mov 6, %i0
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
20412ac: 7f ff 37 e9 call 200f250 <_Thread_Enable_dispatch>
20412b0: 01 00 00 00 nop
return RTEMS_TIMEOUT;
20412b4: 81 c7 e0 08 ret
20412b8: 81 e8 00 00 restore
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
20412bc: 81 c7 e0 08 ret
20412c0: 91 e8 20 04 restore %g0, 4, %o0
0202bd1c <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
202bd1c: 9d e3 bf 30 save %sp, -208, %sp
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
202bd20: 80 a6 60 00 cmp %i1, 0
202bd24: 02 80 00 7a be 202bf0c <rtems_rate_monotonic_report_statistics_with_plugin+0x1f0><== NEVER TAKEN
202bd28: 90 10 00 18 mov %i0, %o0
return;
(*print)( context, "Period information by period\n" );
202bd2c: 13 00 81 94 sethi %hi(0x2065000), %o1
202bd30: 9f c6 40 00 call %i1
202bd34: 92 12 60 c0 or %o1, 0xc0, %o1 ! 20650c0 <_TOD_Days_per_month+0x68>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
202bd38: 90 10 00 18 mov %i0, %o0
202bd3c: 13 00 81 94 sethi %hi(0x2065000), %o1
202bd40: 9f c6 40 00 call %i1
202bd44: 92 12 60 e0 or %o1, 0xe0, %o1 ! 20650e0 <_TOD_Days_per_month+0x88>
(*print)( context, "--- Wall times are in seconds ---\n" );
202bd48: 90 10 00 18 mov %i0, %o0
202bd4c: 13 00 81 94 sethi %hi(0x2065000), %o1
202bd50: 9f c6 40 00 call %i1
202bd54: 92 12 61 08 or %o1, 0x108, %o1 ! 2065108 <_TOD_Days_per_month+0xb0>
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
202bd58: 90 10 00 18 mov %i0, %o0
202bd5c: 13 00 81 94 sethi %hi(0x2065000), %o1
202bd60: 9f c6 40 00 call %i1
202bd64: 92 12 61 30 or %o1, 0x130, %o1 ! 2065130 <_TOD_Days_per_month+0xd8>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
202bd68: 90 10 00 18 mov %i0, %o0
202bd6c: 13 00 81 94 sethi %hi(0x2065000), %o1
202bd70: 9f c6 40 00 call %i1
202bd74: 92 12 61 80 or %o1, 0x180, %o1 ! 2065180 <_TOD_Days_per_month+0x128>
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
202bd78: 03 00 81 be sethi %hi(0x206f800), %g1
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202bd7c: 2d 00 81 94 sethi %hi(0x2065000), %l6
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
202bd80: 82 10 60 a8 or %g1, 0xa8, %g1
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
(*print)( context,
202bd84: 2b 00 81 94 sethi %hi(0x2065000), %l5
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
(*print)( context,
202bd88: 29 00 81 94 sethi %hi(0x2065000), %l4
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
202bd8c: 27 00 81 94 sethi %hi(0x2065000), %l3
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
202bd90: ba 07 bf a0 add %fp, -96, %i5
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
202bd94: ae 10 00 01 mov %g1, %l7
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202bd98: ac 15 a1 d0 or %l6, 0x1d0, %l6
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
(*print)( context,
202bd9c: aa 15 61 f0 or %l5, 0x1f0, %l5
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
(*print)( context,
202bda0: a8 15 22 10 or %l4, 0x210, %l4
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
202bda4: a6 14 e1 e8 or %l3, 0x1e8, %l3
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
202bda8: e0 00 60 08 ld [ %g1 + 8 ], %l0
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
if ( status != RTEMS_SUCCESSFUL )
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
202bdac: b8 07 bf d8 add %fp, -40, %i4
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
202bdb0: a4 07 bf f8 add %fp, -8, %l2
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
202bdb4: b4 07 bf b8 add %fp, -72, %i2
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
202bdb8: 10 80 00 51 b 202befc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
202bdbc: a2 07 bf f0 add %fp, -16, %l1
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
202bdc0: 40 00 53 f4 call 2040d90 <rtems_rate_monotonic_get_statistics>
202bdc4: 92 10 00 1d mov %i5, %o1
if ( status != RTEMS_SUCCESSFUL )
202bdc8: 80 a2 20 00 cmp %o0, 0
202bdcc: 32 80 00 4c bne,a 202befc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
202bdd0: a0 04 20 01 inc %l0
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
202bdd4: 92 10 00 1c mov %i4, %o1
202bdd8: 40 00 54 1b call 2040e44 <rtems_rate_monotonic_get_status>
202bddc: 90 10 00 10 mov %l0, %o0
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
202bde0: d0 07 bf d8 ld [ %fp + -40 ], %o0
202bde4: 94 10 00 12 mov %l2, %o2
202bde8: 7f ff 82 83 call 200c7f4 <rtems_object_get_name>
202bdec: 92 10 20 05 mov 5, %o1
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
202bdf0: d8 1f bf a0 ldd [ %fp + -96 ], %o4
202bdf4: 92 10 00 16 mov %l6, %o1
202bdf8: 94 10 00 10 mov %l0, %o2
202bdfc: 90 10 00 18 mov %i0, %o0
202be00: 9f c6 40 00 call %i1
202be04: 96 10 00 12 mov %l2, %o3
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
202be08: c2 07 bf a0 ld [ %fp + -96 ], %g1
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
202be0c: 94 10 00 11 mov %l1, %o2
202be10: 90 10 00 1a mov %i2, %o0
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
202be14: 80 a0 60 00 cmp %g1, 0
202be18: 12 80 00 06 bne 202be30 <rtems_rate_monotonic_report_statistics_with_plugin+0x114>
202be1c: 92 10 00 13 mov %l3, %o1
(*print)( context, "\n" );
202be20: 9f c6 40 00 call %i1
202be24: 90 10 00 18 mov %i0, %o0
continue;
202be28: 10 80 00 35 b 202befc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0>
202be2c: a0 04 20 01 inc %l0
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
202be30: 40 00 05 87 call 202d44c <_Timespec_Divide_by_integer>
202be34: 92 10 00 01 mov %g1, %o1
(*print)( context,
202be38: d0 07 bf ac ld [ %fp + -84 ], %o0
202be3c: 40 00 c2 59 call 205c7a0 <.div>
202be40: 92 10 23 e8 mov 0x3e8, %o1
202be44: 96 10 00 08 mov %o0, %o3
202be48: d0 07 bf b4 ld [ %fp + -76 ], %o0
202be4c: d6 27 bf 9c st %o3, [ %fp + -100 ]
202be50: 40 00 c2 54 call 205c7a0 <.div>
202be54: 92 10 23 e8 mov 0x3e8, %o1
202be58: c2 07 bf f0 ld [ %fp + -16 ], %g1
202be5c: b6 10 00 08 mov %o0, %i3
202be60: d0 07 bf f4 ld [ %fp + -12 ], %o0
202be64: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
202be68: 40 00 c2 4e call 205c7a0 <.div>
202be6c: 92 10 23 e8 mov 0x3e8, %o1
202be70: d8 07 bf b0 ld [ %fp + -80 ], %o4
202be74: d6 07 bf 9c ld [ %fp + -100 ], %o3
202be78: d4 07 bf a8 ld [ %fp + -88 ], %o2
202be7c: 9a 10 00 1b mov %i3, %o5
202be80: d0 23 a0 60 st %o0, [ %sp + 0x60 ]
202be84: 92 10 00 15 mov %l5, %o1
202be88: 9f c6 40 00 call %i1
202be8c: 90 10 00 18 mov %i0, %o0
struct timespec wall_average;
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
202be90: d2 07 bf a0 ld [ %fp + -96 ], %o1
202be94: 94 10 00 11 mov %l1, %o2
202be98: 40 00 05 6d call 202d44c <_Timespec_Divide_by_integer>
202be9c: 90 07 bf d0 add %fp, -48, %o0
(*print)( context,
202bea0: d0 07 bf c4 ld [ %fp + -60 ], %o0
202bea4: 40 00 c2 3f call 205c7a0 <.div>
202bea8: 92 10 23 e8 mov 0x3e8, %o1
202beac: 96 10 00 08 mov %o0, %o3
202beb0: d0 07 bf cc ld [ %fp + -52 ], %o0
202beb4: d6 27 bf 9c st %o3, [ %fp + -100 ]
202beb8: 40 00 c2 3a call 205c7a0 <.div>
202bebc: 92 10 23 e8 mov 0x3e8, %o1
202bec0: c2 07 bf f0 ld [ %fp + -16 ], %g1
202bec4: b6 10 00 08 mov %o0, %i3
202bec8: d0 07 bf f4 ld [ %fp + -12 ], %o0
202becc: 92 10 23 e8 mov 0x3e8, %o1
202bed0: 40 00 c2 34 call 205c7a0 <.div>
202bed4: c2 23 a0 5c st %g1, [ %sp + 0x5c ]
202bed8: d4 07 bf c0 ld [ %fp + -64 ], %o2
202bedc: d6 07 bf 9c ld [ %fp + -100 ], %o3
202bee0: d8 07 bf c8 ld [ %fp + -56 ], %o4
202bee4: d0 23 a0 60 st %o0, [ %sp + 0x60 ]
202bee8: 9a 10 00 1b mov %i3, %o5
202beec: 90 10 00 18 mov %i0, %o0
202bef0: 9f c6 40 00 call %i1
202bef4: 92 10 00 14 mov %l4, %o1
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
202bef8: a0 04 20 01 inc %l0
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
202befc: c2 05 e0 0c ld [ %l7 + 0xc ], %g1
202bf00: 80 a4 00 01 cmp %l0, %g1
202bf04: 08 bf ff af bleu 202bdc0 <rtems_rate_monotonic_report_statistics_with_plugin+0xa4>
202bf08: 90 10 00 10 mov %l0, %o0
202bf0c: 81 c7 e0 08 ret
202bf10: 81 e8 00 00 restore
02043344 <rtems_rfs_bitmap_close>:
return rtems_rfs_bitmap_create_search (control);
}
int
rtems_rfs_bitmap_close (rtems_rfs_bitmap_control* control)
{
2043344: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
free (control->search_bits);
2043348: d0 06 20 14 ld [ %i0 + 0x14 ], %o0 <== NOT EXECUTED
204334c: 7f ff 13 c5 call 2008260 <free> <== NOT EXECUTED
2043350: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2043354: 81 c7 e0 08 ret <== NOT EXECUTED
2043358: 81 e8 00 00 restore <== NOT EXECUTED
020433a8 <rtems_rfs_bitmap_create_search>:
return 0;
}
int
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)
{
20433a8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_map map;
size_t size;
rtems_rfs_bitmap_bit bit;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
20433ac: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
20433b0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20433b4: 7f ff ff ea call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
20433b8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
20433bc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20433c0: 14 80 00 2e bg 2043478 <rtems_rfs_bitmap_create_search+0xd0><== NOT EXECUTED
20433c4: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
return rc;
control->free = 0;
search_map = control->search_bits;
20433c8: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
control->free = 0;
20433cc: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
search_map = control->search_bits;
size = control->size;
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
20433d0: c2 20 c0 00 st %g1, [ %g3 ] <== NOT EXECUTED
20433d4: da 07 bf fc ld [ %fp + -4 ], %o5 <== NOT EXECUTED
if (rc > 0)
return rc;
control->free = 0;
search_map = control->search_bits;
size = control->size;
20433d8: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
20433dc: 84 10 20 00 clr %g2 <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
20433e0: 90 10 20 20 mov 0x20, %o0 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
20433e4: 94 10 3f ff mov -1, %o2 <== NOT EXECUTED
search_map = control->search_bits;
size = control->size;
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
while (size)
20433e8: 10 80 00 20 b 2043468 <rtems_rfs_bitmap_create_search+0xc0><== NOT EXECUTED
20433ec: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
{
rtems_rfs_bitmap_element bits;
int available;
if (size < rtems_rfs_bitmap_element_bits ())
20433f0: 18 80 00 07 bgu 204340c <rtems_rfs_bitmap_create_search+0x64><== NOT EXECUTED
20433f4: d6 03 40 00 ld [ %o5 ], %o3 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
20433f8: 88 22 00 01 sub %o0, %g1, %g4 <== NOT EXECUTED
if (size < rtems_rfs_bitmap_element_bits ())
{
bits = rtems_rfs_bitmap_merge (*map,
RTEMS_RFS_BITMAP_ELEMENT_SET,
rtems_rfs_bitmap_mask_section (0, size));
available = size;
20433fc: 98 10 00 01 mov %g1, %o4 <== NOT EXECUTED
{
/*
* Use the normal bit operators because we do not change the bits just merge
* the 2 separate parts.
*/
bits1 &= mask;
2043400: 89 32 80 04 srl %o2, %g4, %g4 <== NOT EXECUTED
2043404: 10 80 00 03 b 2043410 <rtems_rfs_bitmap_create_search+0x68><== NOT EXECUTED
2043408: 96 09 00 0b and %g4, %o3, %o3 <== NOT EXECUTED
rtems_rfs_bitmap_mask_section (0, size));
available = size;
}
else
{
bits = *map;
204340c: 98 10 20 20 mov 0x20, %o4 <== NOT EXECUTED
available = rtems_rfs_bitmap_element_bits ();
}
if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
2043410: 80 a2 e0 00 cmp %o3, 0 <== NOT EXECUTED
2043414: 02 80 00 0e be 204344c <rtems_rfs_bitmap_create_search+0xa4><== NOT EXECUTED
2043418: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
204341c: 88 10 20 00 clr %g4 <== NOT EXECUTED
rtems_rfs_bitmap_set (*search_map, bit);
else
{
int b;
for (b = 0; b < available; b++)
if (!rtems_rfs_bitmap_test (bits, b))
2043420: 9f 2a 40 04 sll %o1, %g4, %o7 <== NOT EXECUTED
2043424: 80 8b c0 0b btst %o7, %o3 <== NOT EXECUTED
2043428: 02 80 00 05 be 204343c <rtems_rfs_bitmap_create_search+0x94><== NOT EXECUTED
204342c: 88 01 20 01 inc %g4 <== NOT EXECUTED
control->free++;
2043430: de 04 20 10 ld [ %l0 + 0x10 ], %o7 <== NOT EXECUTED
2043434: 9e 03 e0 01 inc %o7 <== NOT EXECUTED
2043438: de 24 20 10 st %o7, [ %l0 + 0x10 ] <== NOT EXECUTED
if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
rtems_rfs_bitmap_set (*search_map, bit);
else
{
int b;
for (b = 0; b < available; b++)
204343c: 80 a1 00 0c cmp %g4, %o4 <== NOT EXECUTED
2043440: 06 bf ff f9 bl 2043424 <rtems_rfs_bitmap_create_search+0x7c><== NOT EXECUTED
2043444: 9f 2a 40 04 sll %o1, %g4, %o7 <== NOT EXECUTED
control->free++;
}
size -= available;
if (bit == rtems_rfs_bitmap_element_bits ())
2043448: 80 a0 a0 20 cmp %g2, 0x20 <== NOT EXECUTED
204344c: 32 80 00 05 bne,a 2043460 <rtems_rfs_bitmap_create_search+0xb8><== NOT EXECUTED
2043450: 84 00 a0 01 inc %g2 <== NOT EXECUTED
{
bit = 0;
search_map++;
2043454: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2043458: 84 10 20 00 clr %g2 <== NOT EXECUTED
204345c: d4 20 c0 00 st %o2, [ %g3 ] <== NOT EXECUTED
for (b = 0; b < available; b++)
if (!rtems_rfs_bitmap_test (bits, b))
control->free++;
}
size -= available;
2043460: 82 20 40 0c sub %g1, %o4, %g1 <== NOT EXECUTED
2043464: 9a 03 60 04 add %o5, 4, %o5 <== NOT EXECUTED
search_map = control->search_bits;
size = control->size;
bit = 0;
*search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
while (size)
2043468: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
204346c: 12 bf ff e1 bne 20433f0 <rtems_rfs_bitmap_create_search+0x48><== NOT EXECUTED
2043470: 80 a0 60 1f cmp %g1, 0x1f <== NOT EXECUTED
2043474: 90 10 20 00 clr %o0 <== NOT EXECUTED
bit++;
map++;
}
return 0;
}
2043478: 81 c7 e0 08 ret <== NOT EXECUTED
204347c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0204335c <rtems_rfs_bitmap_load_map>:
* @return int The error number (errno). No error if 0.
*/
static int
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_map* map)
{
204335c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (!control->buffer)
2043360: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2043364: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2043368: 02 80 00 0e be 20433a0 <rtems_rfs_bitmap_load_map+0x44> <== NOT EXECUTED
204336c: 90 10 20 06 mov 6, %o0 <== NOT EXECUTED
return ENXIO;
*map = NULL;
rc = rtems_rfs_buffer_handle_request (control->fs,
2043370: d0 06 20 04 ld [ %i0 + 4 ], %o0 <== NOT EXECUTED
2043374: d4 06 20 08 ld [ %i0 + 8 ], %o2 <== NOT EXECUTED
int rc;
if (!control->buffer)
return ENXIO;
*map = NULL;
2043378: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (control->fs,
204337c: 7f ff dc 3d call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2043380: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
control->buffer,
control->block,
true);
if (rc)
2043384: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043388: 12 80 00 06 bne 20433a0 <rtems_rfs_bitmap_load_map+0x44> <== NOT EXECUTED
204338c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
*map = rtems_rfs_buffer_data (control->buffer);
2043390: c2 06 00 00 ld [ %i0 ], %g1 <== NOT EXECUTED
2043394: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
2043398: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
204339c: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
return 0;
}
20433a0: 81 c7 e0 08 ret <== NOT EXECUTED
20433a4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02043990 <rtems_rfs_bitmap_map_alloc>:
int
rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit seed,
bool* allocated,
rtems_rfs_bitmap_bit* bit)
{
2043990: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
/*
* By default we assume the allocation failed.
*/
*allocated = false;
2043994: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
* we have searched all of the map. The seed may not be aligned to a window
* boundary so we may need to search a partial window and this may also not
* be balanced for the upper or lower seeds. We move to the limits, search
* then return false if no clear bits are found.
*/
while (((upper_seed >= 0) && (upper_seed < control->size))
2043998: 10 80 00 26 b 2043a30 <rtems_rfs_bitmap_map_alloc+0xa0> <== NOT EXECUTED
204399c: a0 10 00 19 mov %i1, %l0 <== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
{
/*
* Search up first so bits allocated in succession are grouped together.
*/
if (upper_seed < control->size)
20439a0: 1a 80 00 0f bcc 20439dc <rtems_rfs_bitmap_map_alloc+0x4c> <== NOT EXECUTED
20439a4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
{
*bit = upper_seed;
20439a8: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
20439ac: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20439b0: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
20439b4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20439b8: 7f ff ff 73 call 2043784 <T.54> <== NOT EXECUTED
20439bc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
window, 1);
if ((rc > 0) || *allocated)
20439c0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20439c4: 14 80 00 29 bg 2043a68 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
20439c8: 01 00 00 00 nop <== NOT EXECUTED
20439cc: c2 0e 80 00 ldub [ %i2 ], %g1 <== NOT EXECUTED
20439d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20439d4: 12 80 00 25 bne 2043a68 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
20439d8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
break;
}
if (lower_seed >= 0)
20439dc: 06 80 00 0e bl 2043a14 <rtems_rfs_bitmap_map_alloc+0x84> <== NOT EXECUTED
20439e0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
*bit = lower_seed;
20439e4: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED
rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
20439e8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
20439ec: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20439f0: 7f ff ff 65 call 2043784 <T.54> <== NOT EXECUTED
20439f4: 96 10 3f ff mov -1, %o3 <== NOT EXECUTED
window, -1);
if ((rc > 0) || *allocated)
20439f8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20439fc: 14 80 00 1b bg 2043a68 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
2043a00: 01 00 00 00 nop <== NOT EXECUTED
2043a04: c2 0e 80 00 ldub [ %i2 ], %g1 <== NOT EXECUTED
2043a08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2043a0c: 12 80 00 17 bne 2043a68 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
2043a10: 01 00 00 00 nop <== NOT EXECUTED
/*
* Do not bound the limits at the edges of the map. Do not update if an
* edge has been passed.
*/
if (upper_seed < control->size)
2043a14: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2043a18: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2043a1c: 2a 80 00 02 bcs,a 2043a24 <rtems_rfs_bitmap_map_alloc+0x94><== NOT EXECUTED
2043a20: a0 04 28 00 add %l0, 0x800, %l0 <== NOT EXECUTED
upper_seed += window;
if (lower_seed >= 0)
2043a24: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2043a28: 36 80 00 02 bge,a 2043a30 <rtems_rfs_bitmap_map_alloc+0xa0><== NOT EXECUTED
2043a2c: b2 06 78 00 add %i1, -2048, %i1 <== NOT EXECUTED
* we have searched all of the map. The seed may not be aligned to a window
* boundary so we may need to search a partial window and this may also not
* be balanced for the upper or lower seeds. We move to the limits, search
* then return false if no clear bits are found.
*/
while (((upper_seed >= 0) && (upper_seed < control->size))
2043a30: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2043a34: 06 80 00 07 bl 2043a50 <rtems_rfs_bitmap_map_alloc+0xc0> <== NOT EXECUTED
2043a38: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2043a3c: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2043a40: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2043a44: 0a bf ff d7 bcs 20439a0 <rtems_rfs_bitmap_map_alloc+0x10> <== NOT EXECUTED
2043a48: 01 00 00 00 nop <== NOT EXECUTED
2043a4c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2043a50: 06 80 00 06 bl 2043a68 <rtems_rfs_bitmap_map_alloc+0xd8> <== NOT EXECUTED
2043a54: 01 00 00 00 nop <== NOT EXECUTED
|| ((lower_seed >= 0) && (lower_seed < control->size)))
2043a58: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2043a5c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2043a60: 0a bf ff d0 bcs 20439a0 <rtems_rfs_bitmap_map_alloc+0x10> <== NOT EXECUTED
2043a64: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
if (lower_seed >= 0)
lower_seed -= window;
}
return 0;
}
2043a68: 81 c7 e0 08 ret <== NOT EXECUTED
2043a6c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0204366c <rtems_rfs_bitmap_map_clear>:
}
int
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
204366c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_map map;
rtems_rfs_bitmap_map search_map;
int index;
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
2043670: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2043674: 7f ff ff 3a call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2043678: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
204367c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043680: 14 80 00 1b bg 20436ec <rtems_rfs_bitmap_map_clear+0x80> <== NOT EXECUTED
2043684: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (bit >= control->size)
2043688: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
204368c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2043690: 1a 80 00 17 bcc 20436ec <rtems_rfs_bitmap_map_clear+0x80> <== NOT EXECUTED
2043694: 90 10 20 16 mov 0x16, %o0 <== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
2043698: d8 07 bf fc ld [ %fp + -4 ], %o4 <== NOT EXECUTED
if (rc > 0)
return rc;
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
204369c: 89 3e 60 05 sra %i1, 5, %g4 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
20436a0: c6 06 20 14 ld [ %i0 + 0x14 ], %g3 <== NOT EXECUTED
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
20436a4: 9b 29 20 02 sll %g4, 2, %o5 <== NOT EXECUTED
20436a8: d4 03 00 0d ld [ %o4 + %o5 ], %o2 <== NOT EXECUTED
20436ac: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
20436b0: 85 3e 60 0a sra %i1, 0xa, %g2 <== NOT EXECUTED
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
20436b4: b3 28 40 19 sll %g1, %i1, %i1 <== NOT EXECUTED
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
20436b8: 85 28 a0 02 sll %g2, 2, %g2 <== NOT EXECUTED
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
20436bc: b2 12 80 19 or %o2, %i1, %i1 <== NOT EXECUTED
20436c0: f2 23 00 0d st %i1, [ %o4 + %o5 ] <== NOT EXECUTED
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
rtems_rfs_buffer_mark_dirty (control->buffer);
20436c4: d8 06 00 00 ld [ %i0 ], %o4 <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
20436c8: da 00 c0 02 ld [ %g3 + %g2 ], %o5 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
20436cc: d6 06 20 10 ld [ %i0 + 0x10 ], %o3 <== NOT EXECUTED
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
rtems_rfs_buffer_mark_dirty (control->buffer);
20436d0: c2 2b 00 00 stb %g1, [ %o4 ] <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
20436d4: 83 28 40 04 sll %g1, %g4, %g1 <== NOT EXECUTED
20436d8: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
20436dc: 90 10 20 00 clr %o0 <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_clear (map[index], 1 << offset);
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset(bit);
search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
20436e0: c2 20 c0 02 st %g1, [ %g3 + %g2 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
control->free++;
20436e4: 82 02 e0 01 add %o3, 1, %g1 <== NOT EXECUTED
20436e8: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
return 0;
}
20436ec: 81 c7 e0 08 ret <== NOT EXECUTED
20436f0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020434c8 <rtems_rfs_bitmap_map_clear_all>:
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
{
20434c8: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_bit last_search_bit;
size_t elements;
int e;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
20434cc: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
20434d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20434d4: 7f ff ff a2 call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
20434d8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
20434dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20434e0: 14 80 00 25 bg 2043574 <rtems_rfs_bitmap_map_clear_all+0xac><== NOT EXECUTED
20434e4: da 07 bf fc ld [ %fp + -4 ], %o5 <== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
20434e8: c8 06 20 0c ld [ %i0 + 0xc ], %g4 <== NOT EXECUTED
20434ec: 88 01 3f ff add %g4, -1, %g4 <== NOT EXECUTED
control->free = elements;
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
20434f0: 84 10 20 00 clr %g2 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
20434f4: 89 31 20 05 srl %g4, 5, %g4 <== NOT EXECUTED
control->free = elements;
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
20434f8: 86 10 3f ff mov -1, %g3 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
20434fc: 82 01 20 01 add %g4, 1, %g1 <== NOT EXECUTED
control->free = elements;
for (e = 0; e < elements; e++)
2043500: 10 80 00 04 b 2043510 <rtems_rfs_bitmap_map_clear_all+0x48><== NOT EXECUTED
2043504: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
2043508: 84 00 a0 01 inc %g2 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
204350c: c6 23 40 0c st %g3, [ %o5 + %o4 ] <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = elements;
for (e = 0; e < elements; e++)
2043510: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2043514: 0a bf ff fd bcs 2043508 <rtems_rfs_bitmap_map_clear_all+0x40><== NOT EXECUTED
2043518: 99 28 a0 02 sll %g2, 2, %o4 <== NOT EXECUTED
* Set the un-mapped bits in the last search element so the available logic
* works.
*/
last_search_bit = rtems_rfs_bitmap_map_offset (elements);
if (last_search_bit == 0)
204351c: 86 88 60 1f andcc %g1, 0x1f, %g3 <== NOT EXECUTED
2043520: 22 80 00 02 be,a 2043528 <rtems_rfs_bitmap_map_clear_all+0x60><== NOT EXECUTED
2043524: 86 10 20 20 mov 0x20, %g3 <== NOT EXECUTED
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
2043528: 89 31 20 05 srl %g4, 5, %g4 <== NOT EXECUTED
return 0;
}
int
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)
204352c: 82 10 20 00 clr %g1 <== NOT EXECUTED
if (last_search_bit == 0)
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
2043530: 10 80 00 05 b 2043544 <rtems_rfs_bitmap_map_clear_all+0x7c><== NOT EXECUTED
2043534: 9a 10 3f ff mov -1, %o5 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2043538: 99 28 60 02 sll %g1, 2, %o4 <== NOT EXECUTED
if (last_search_bit == 0)
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
204353c: 82 00 60 01 inc %g1 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
2043540: da 20 80 0c st %o5, [ %g2 + %o4 ] <== NOT EXECUTED
if (last_search_bit == 0)
last_search_bit = rtems_rfs_bitmap_element_bits ();
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
2043544: 80 a0 40 04 cmp %g1, %g4 <== NOT EXECUTED
2043548: 12 bf ff fc bne 2043538 <rtems_rfs_bitmap_map_clear_all+0x70><== NOT EXECUTED
204354c: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
control->search_bits[elements - 1] =
rtems_rfs_bitmap_merge (RTEMS_RFS_BITMAP_ELEMENT_CLEAR,
RTEMS_RFS_BITMAP_ELEMENT_SET,
rtems_rfs_bitmap_mask (last_search_bit));
rtems_rfs_buffer_mark_dirty (control->buffer);
2043550: c8 04 00 00 ld [ %l0 ], %g4 <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
control->search_bits[elements - 1] =
2043554: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2043558: 86 20 00 03 neg %g3 <== NOT EXECUTED
204355c: 9a 10 3f ff mov -1, %o5 <== NOT EXECUTED
rtems_rfs_bitmap_merge (RTEMS_RFS_BITMAP_ELEMENT_CLEAR,
RTEMS_RFS_BITMAP_ELEMENT_SET,
rtems_rfs_bitmap_mask (last_search_bit));
rtems_rfs_buffer_mark_dirty (control->buffer);
2043560: 90 10 20 00 clr %o0 <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < (elements - 1); e++)
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;
control->search_bits[elements - 1] =
2043564: 87 33 40 03 srl %o5, %g3, %g3 <== NOT EXECUTED
2043568: c6 20 80 01 st %g3, [ %g2 + %g1 ] <== NOT EXECUTED
rtems_rfs_bitmap_merge (RTEMS_RFS_BITMAP_ELEMENT_CLEAR,
RTEMS_RFS_BITMAP_ELEMENT_SET,
rtems_rfs_bitmap_mask (last_search_bit));
rtems_rfs_buffer_mark_dirty (control->buffer);
204356c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2043570: c2 29 00 00 stb %g1, [ %g4 ] <== NOT EXECUTED
return 0;
}
2043574: 81 c7 e0 08 ret <== NOT EXECUTED
2043578: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020436f4 <rtems_rfs_bitmap_map_set>:
}
int
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit)
{
20436f4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_map map;
rtems_rfs_bitmap_map search_map;
int index;
int offset;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
20436f8: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
20436fc: 7f ff ff 18 call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2043700: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
2043704: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043708: 14 80 00 1d bg 204377c <rtems_rfs_bitmap_map_set+0x88> <== NOT EXECUTED
204370c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (bit >= control->size)
2043710: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2043714: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2043718: 1a 80 00 19 bcc 204377c <rtems_rfs_bitmap_map_set+0x88> <== NOT EXECUTED
204371c: 90 10 20 16 mov 0x16, %o0 <== NOT EXECUTED
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);
2043720: da 07 bf fc ld [ %fp + -4 ], %o5 <== NOT EXECUTED
if (rc > 0)
return rc;
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
2043724: 87 3e 60 05 sra %i1, 5, %g3 <== NOT EXECUTED
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);
2043728: 89 28 e0 02 sll %g3, 2, %g4 <== NOT EXECUTED
*/
static rtems_rfs_bitmap_element
rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target,
rtems_rfs_bitmap_element bits)
{
return RTEMS_RFS_BITMAP_SET_BITS (target, bits);
204372c: c4 03 40 04 ld [ %o5 + %g4 ], %g2 <== NOT EXECUTED
2043730: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2043734: 99 28 40 19 sll %g1, %i1, %o4 <== NOT EXECUTED
2043738: 84 28 80 0c andn %g2, %o4, %g2 <== NOT EXECUTED
if (bit >= control->size)
return EINVAL;
search_map = control->search_bits;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);
204373c: c4 23 40 04 st %g2, [ %o5 + %g4 ] <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
2043740: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2043744: 90 10 20 00 clr %o0 <== NOT EXECUTED
2043748: 12 80 00 0d bne 204377c <rtems_rfs_bitmap_map_set+0x88> <== NOT EXECUTED
204374c: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
{
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
2043750: b3 3e 60 0a sra %i1, 0xa, %i1 <== NOT EXECUTED
control->free--;
rtems_rfs_buffer_mark_dirty (control->buffer);
2043754: d8 06 00 00 ld [ %i0 ], %o4 <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
{
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
2043758: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
204375c: da 00 80 19 ld [ %g2 + %i1 ], %o5 <== NOT EXECUTED
control->free--;
2043760: c8 06 20 10 ld [ %i0 + 0x10 ], %g4 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
2043764: c2 2b 00 00 stb %g1, [ %o4 ] <== NOT EXECUTED
if (rtems_rfs_bitmap_match(map[index], RTEMS_RFS_BITMAP_ELEMENT_SET))
{
bit = index;
index = rtems_rfs_bitmap_map_index (bit);
offset = rtems_rfs_bitmap_map_offset (bit);
search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
2043768: 83 28 40 03 sll %g1, %g3, %g1 <== NOT EXECUTED
204376c: 82 2b 40 01 andn %o5, %g1, %g1 <== NOT EXECUTED
2043770: c2 20 80 19 st %g1, [ %g2 + %i1 ] <== NOT EXECUTED
control->free--;
2043774: 82 01 3f ff add %g4, -1, %g1 <== NOT EXECUTED
2043778: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (control->buffer);
}
return 0;
}
204377c: 81 c7 e0 08 ret <== NOT EXECUTED
2043780: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0204357c <rtems_rfs_bitmap_map_set_all>:
return 0;
}
int
rtems_rfs_bitmap_map_set_all (rtems_rfs_bitmap_control* control)
{
204357c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_map map;
size_t elements;
int e;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
2043580: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2043584: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2043588: 7f ff ff 75 call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
204358c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc > 0)
2043590: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043594: 14 80 00 1c bg 2043604 <rtems_rfs_bitmap_map_set_all+0x88><== NOT EXECUTED
2043598: 82 10 20 00 clr %g1 <== NOT EXECUTED
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
204359c: c4 06 20 0c ld [ %i0 + 0xc ], %g2 <== NOT EXECUTED
control->free = 0;
20435a0: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
20435a4: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
control->free = 0;
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
20435a8: c8 07 bf fc ld [ %fp + -4 ], %g4 <== NOT EXECUTED
rc = rtems_rfs_bitmap_load_map (control, &map);
if (rc > 0)
return rc;
elements = rtems_rfs_bitmap_elements (control->size);
20435ac: 85 30 a0 05 srl %g2, 5, %g2 <== NOT EXECUTED
control->free = 0;
for (e = 0; e < elements; e++)
20435b0: 10 80 00 04 b 20435c0 <rtems_rfs_bitmap_map_set_all+0x44> <== NOT EXECUTED
20435b4: 86 00 a0 01 add %g2, 1, %g3 <== NOT EXECUTED
20435b8: 82 00 60 01 inc %g1 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
20435bc: c0 21 00 0d clr [ %g4 + %o5 ] <== NOT EXECUTED
elements = rtems_rfs_bitmap_elements (control->size);
control->free = 0;
for (e = 0; e < elements; e++)
20435c0: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20435c4: 0a bf ff fd bcs 20435b8 <rtems_rfs_bitmap_map_set_all+0x3c><== NOT EXECUTED
20435c8: 9b 28 60 02 sll %g1, 2, %o5 <== NOT EXECUTED
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
20435cc: 85 30 a0 05 srl %g2, 5, %g2 <== NOT EXECUTED
20435d0: 82 10 20 00 clr %g1 <== NOT EXECUTED
for (e = 0; e < elements; e++)
20435d4: 10 80 00 05 b 20435e8 <rtems_rfs_bitmap_map_set_all+0x6c> <== NOT EXECUTED
20435d8: 84 00 a0 01 inc %g2 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
20435dc: 87 28 60 02 sll %g1, 2, %g3 <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < elements; e++)
20435e0: 82 00 60 01 inc %g1 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
20435e4: c0 21 00 03 clr [ %g4 + %g3 ] <== NOT EXECUTED
for (e = 0; e < elements; e++)
map[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
elements = rtems_rfs_bitmap_elements (elements);
for (e = 0; e < elements; e++)
20435e8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20435ec: 2a bf ff fc bcs,a 20435dc <rtems_rfs_bitmap_map_set_all+0x60><== NOT EXECUTED
20435f0: c8 04 20 14 ld [ %l0 + 0x14 ], %g4 <== NOT EXECUTED
control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_SET;
rtems_rfs_buffer_mark_dirty (control->buffer);
20435f4: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
20435f8: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
20435fc: 90 10 20 00 clr %o0 <== NOT EXECUTED
2043600: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
return 0;
}
2043604: 81 c7 e0 08 ret <== NOT EXECUTED
2043608: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0204360c <rtems_rfs_bitmap_map_test>:
int
rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control,
rtems_rfs_bitmap_bit bit,
bool* state)
{
204360c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_map map;
int index;
int rc;
rc = rtems_rfs_bitmap_load_map (control, &map);
2043610: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
2043614: 7f ff ff 52 call 204335c <rtems_rfs_bitmap_load_map> <== NOT EXECUTED
2043618: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
204361c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2043620: 14 80 00 11 bg 2043664 <rtems_rfs_bitmap_map_test+0x58> <== NOT EXECUTED
2043624: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (bit >= control->size)
2043628: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
204362c: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2043630: 1a 80 00 0d bcc 2043664 <rtems_rfs_bitmap_map_test+0x58> <== NOT EXECUTED
2043634: 90 10 20 16 mov 0x16, %o0 <== NOT EXECUTED
return EINVAL;
index = rtems_rfs_bitmap_map_index (bit);
*state = rtems_rfs_bitmap_test (map[index], bit);
2043638: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
204363c: 83 3e 60 05 sra %i1, 5, %g1 <== NOT EXECUTED
2043640: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2043644: c2 00 80 01 ld [ %g2 + %g1 ], %g1 <== NOT EXECUTED
2043648: 90 10 20 00 clr %o0 <== NOT EXECUTED
204364c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
2043650: b3 28 80 19 sll %g2, %i1, %i1 <== NOT EXECUTED
2043654: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
2043658: 80 a0 00 19 cmp %g0, %i1 <== NOT EXECUTED
204365c: 82 60 3f ff subx %g0, -1, %g1 <== NOT EXECUTED
2043660: c2 2e 80 00 stb %g1, [ %i2 ] <== NOT EXECUTED
return 0;
}
2043664: 81 c7 e0 08 ret <== NOT EXECUTED
2043668: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0204330c <rtems_rfs_bitmap_mask>:
return 0;
}
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask (unsigned int size)
{
204330c: 82 10 3f ff mov -1, %g1 <== NOT EXECUTED
2043310: 90 20 00 08 neg %o0 <== NOT EXECUTED
rtems_rfs_bitmap_element mask = RTEMS_RFS_BITMAP_ELEMENT_FULL_MASK;
mask >>= (rtems_rfs_bitmap_element_bits () - size);
return mask;
}
2043314: 81 c3 e0 08 retl <== NOT EXECUTED
2043318: 91 30 40 08 srl %g1, %o0, %o0 <== NOT EXECUTED
0204331c <rtems_rfs_bitmap_mask_section>:
rtems_rfs_bitmap_element
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)
{
204331c: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
rtems_rfs_bitmap_element mask = 0;
if (end > start)
2043320: 80 a2 40 08 cmp %o1, %o0 <== NOT EXECUTED
2043324: 08 80 00 06 bleu 204333c <rtems_rfs_bitmap_mask_section+0x20><== NOT EXECUTED
2043328: 90 10 20 00 clr %o0 <== NOT EXECUTED
mask = rtems_rfs_bitmap_mask (end - start) << start;
204332c: 92 20 40 09 sub %g1, %o1, %o1 <== NOT EXECUTED
2043330: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
2043334: 91 32 00 09 srl %o0, %o1, %o0 <== NOT EXECUTED
2043338: 91 2a 00 01 sll %o0, %g1, %o0 <== NOT EXECUTED
return mask;
}
204333c: 81 c3 e0 08 retl <== NOT EXECUTED
02043480 <rtems_rfs_bitmap_open>:
rtems_rfs_bitmap_open (rtems_rfs_bitmap_control* control,
rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* buffer,
size_t size,
rtems_rfs_buffer_block block)
{
2043480: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
control->fs = fs;
control->block = block;
control->size = size;
elements = rtems_rfs_bitmap_elements (elements);
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
2043484: 90 06 ff ff add %i3, -1, %o0 <== NOT EXECUTED
size_t size,
rtems_rfs_buffer_block block)
{
size_t elements = rtems_rfs_bitmap_elements (size);
control->buffer = buffer;
2043488: f4 26 00 00 st %i2, [ %i0 ] <== NOT EXECUTED
control->fs = fs;
control->block = block;
control->size = size;
elements = rtems_rfs_bitmap_elements (elements);
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
204348c: 91 32 20 0a srl %o0, 0xa, %o0 <== NOT EXECUTED
rtems_rfs_buffer_block block)
{
size_t elements = rtems_rfs_bitmap_elements (size);
control->buffer = buffer;
control->fs = fs;
2043490: f2 26 20 04 st %i1, [ %i0 + 4 ] <== NOT EXECUTED
control->block = block;
control->size = size;
elements = rtems_rfs_bitmap_elements (elements);
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
2043494: 90 02 20 01 inc %o0 <== NOT EXECUTED
{
size_t elements = rtems_rfs_bitmap_elements (size);
control->buffer = buffer;
control->fs = fs;
control->block = block;
2043498: f8 26 20 08 st %i4, [ %i0 + 8 ] <== NOT EXECUTED
control->size = size;
elements = rtems_rfs_bitmap_elements (elements);
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
204349c: 91 2a 20 02 sll %o0, 2, %o0 <== NOT EXECUTED
20434a0: 7f ff 15 37 call 200897c <malloc> <== NOT EXECUTED
20434a4: f6 26 20 0c st %i3, [ %i0 + 0xc ] <== NOT EXECUTED
if (!control->search_bits)
20434a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20434ac: 12 80 00 04 bne 20434bc <rtems_rfs_bitmap_open+0x3c> <== NOT EXECUTED
20434b0: d0 26 20 14 st %o0, [ %i0 + 0x14 ] <== NOT EXECUTED
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
}
20434b4: 81 c7 e0 08 ret <== NOT EXECUTED
20434b8: 91 e8 20 0c restore %g0, 0xc, %o0 <== NOT EXECUTED
control->search_bits = malloc (elements * sizeof (rtems_rfs_bitmap_element));
if (!control->search_bits)
return ENOMEM;
return rtems_rfs_bitmap_create_search (control);
20434bc: 7f ff ff bb call 20433a8 <rtems_rfs_bitmap_create_search> <== NOT EXECUTED
20434c0: 81 e8 00 00 restore <== NOT EXECUTED
020392f0 <rtems_rfs_block_find_indirect>:
rtems_rfs_block_find_indirect (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no block,
int offset,
rtems_rfs_block_no* result)
{
20392f0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* If the handle has a buffer and this request is a different block the current
* buffer is released.
*/
rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);
20392f4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
20392f8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20392fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2039300: 40 00 04 5c call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039304: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
2039308: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203930c: 14 80 00 1b bg 2039378 <rtems_rfs_block_find_indirect+0x88><== NOT EXECUTED
2039310: 83 2e e0 02 sll %i3, 2, %g1 <== NOT EXECUTED
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
2039314: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2039318: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
203931c: 82 00 60 02 add %g1, 2, %g1 <== NOT EXECUTED
2039320: c6 08 80 01 ldub [ %g2 + %g1 ], %g3 <== NOT EXECUTED
2039324: b7 2e e0 02 sll %i3, 2, %i3 <== NOT EXECUTED
2039328: c2 08 80 1b ldub [ %g2 + %i3 ], %g1 <== NOT EXECUTED
203932c: 84 00 80 1b add %g2, %i3, %g2 <== NOT EXECUTED
2039330: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
2039334: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
2039338: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
if ((*result + 1) == 0)
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
203933c: c4 06 20 04 ld [ %i0 + 4 ], %g2 <== NOT EXECUTED
*/
rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);
if (rc > 0)
return rc;
*result = rtems_rfs_block_get_number (buffer, offset);
2039340: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2039344: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2039348: 82 13 40 01 or %o5, %g1, %g1 <== NOT EXECUTED
203934c: 82 10 40 04 or %g1, %g4, %g1 <== NOT EXECUTED
2039350: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
if ((*result + 1) == 0)
2039354: 86 38 00 01 xnor %g0, %g1, %g3 <== NOT EXECUTED
2039358: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203935c: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
2039360: 82 08 40 03 and %g1, %g3, %g1 <== NOT EXECUTED
2039364: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
*result = 0;
if (*result >= rtems_rfs_fs_blocks (fs))
2039368: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203936c: 0a 80 00 03 bcs 2039378 <rtems_rfs_block_find_indirect+0x88><== NOT EXECUTED
2039370: 90 10 20 00 clr %o0 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))
printf ("rtems-rfs: block-find: invalid block in table:"
" block=%" PRId32 ", indirect=%" PRId32 "/%d\n", *result, block, offset);
*result = 0;
2039374: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
rc = EIO;
}
return 0;
}
2039378: 81 c7 e0 08 ret <== NOT EXECUTED
203937c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203923c <rtems_rfs_block_get_block_size>:
void
rtems_rfs_block_get_block_size (rtems_rfs_file_system* fs,
rtems_rfs_pos pos,
rtems_rfs_block_size* size)
{
203923c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (pos == 0)
2039240: 80 96 40 1a orcc %i1, %i2, %g0 <== NOT EXECUTED
2039244: 32 80 00 06 bne,a 203925c <rtems_rfs_block_get_block_size+0x20><== NOT EXECUTED
2039248: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)
{
size->count = 0;
size->offset = 0;
203924c: c0 26 e0 04 clr [ %i3 + 4 ] <== NOT EXECUTED
* @param size A pointer to the block size.
*/
static inline void
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)
{
size->count = 0;
2039250: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
2039254: 81 c7 e0 08 ret <== NOT EXECUTED
2039258: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_block_set_size_zero (size);
else
{
size->count = pos / rtems_rfs_fs_block_size (fs) + 1;
203925c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2039260: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2039264: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2039268: 40 00 91 09 call 205d68c <__udivdi3> <== NOT EXECUTED
203926c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2039270: 92 02 60 01 inc %o1 <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
2039274: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
{
if (pos == 0)
rtems_rfs_block_set_size_zero (size);
else
{
size->count = pos / rtems_rfs_fs_block_size (fs) + 1;
2039278: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
size->offset = pos % rtems_rfs_fs_block_size (fs);
203927c: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2039280: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2039284: 40 00 91 d3 call 205d9d0 <__umoddi3> <== NOT EXECUTED
2039288: 94 10 20 00 clr %o2 <== NOT EXECUTED
203928c: d2 26 e0 04 st %o1, [ %i3 + 4 ] <== NOT EXECUTED
2039290: 81 c7 e0 08 ret <== NOT EXECUTED
2039294: 81 e8 00 00 restore <== NOT EXECUTED
020391dc <rtems_rfs_block_get_bpos>:
void
rtems_rfs_block_get_bpos (rtems_rfs_file_system* fs,
rtems_rfs_pos pos,
rtems_rfs_block_pos* bpos)
{
20391dc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
20391e0: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
20391e4: 94 10 20 00 clr %o2 <== NOT EXECUTED
20391e8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
20391ec: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20391f0: 40 00 91 27 call 205d68c <__udivdi3> <== NOT EXECUTED
20391f4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
20391f8: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
void
rtems_rfs_block_get_bpos (rtems_rfs_file_system* fs,
rtems_rfs_pos pos,
rtems_rfs_block_pos* bpos)
{
bpos->bno = pos / rtems_rfs_fs_block_size (fs);
20391fc: d2 26 c0 00 st %o1, [ %i3 ] <== NOT EXECUTED
bpos->boff = pos % rtems_rfs_fs_block_size (fs);
2039200: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2039204: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2039208: 40 00 91 f2 call 205d9d0 <__umoddi3> <== NOT EXECUTED
203920c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2039210: d2 26 e0 04 st %o1, [ %i3 + 4 ] <== NOT EXECUTED
}
2039214: 81 c7 e0 08 ret <== NOT EXECUTED
2039218: 81 e8 00 00 restore <== NOT EXECUTED
0203921c <rtems_rfs_block_get_pos>:
rtems_rfs_pos
rtems_rfs_block_get_pos (rtems_rfs_file_system* fs,
rtems_rfs_block_pos* bpos)
{
203921c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
2039220: d0 06 20 08 ld [ %i0 + 8 ], %o0 <== NOT EXECUTED
2039224: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2039228: 7f ff 25 f4 call 20029f8 <.umul> <== NOT EXECUTED
203922c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2039230: f2 06 60 04 ld [ %i1 + 4 ], %i1 <== NOT EXECUTED
return (bpos->bno * rtems_rfs_fs_block_size (fs)) + bpos->boff;
}
2039234: 81 c7 e0 08 ret <== NOT EXECUTED
2039238: 93 ea 00 19 restore %o0, %i1, %o1 <== NOT EXECUTED
02039298 <rtems_rfs_block_get_size>:
}
rtems_rfs_pos
rtems_rfs_block_get_size (rtems_rfs_file_system* fs,
rtems_rfs_block_size* size)
{
2039298: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint32_t offset;
uint64_t block_size;
if (size->count == 0)
203929c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
20392a0: 84 10 20 00 clr %g2 <== NOT EXECUTED
20392a4: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
20392a8: 02 80 00 0f be 20392e4 <rtems_rfs_block_get_size+0x4c> <== NOT EXECUTED
20392ac: 86 10 20 00 clr %g3 <== NOT EXECUTED
return 0;
if (size->offset == 0)
20392b0: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
20392b4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20392b8: 22 80 00 02 be,a 20392c0 <rtems_rfs_block_get_size+0x28> <== NOT EXECUTED
20392bc: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
offset = rtems_rfs_fs_block_size (fs);
else
offset = size->offset;
block_size = rtems_rfs_fs_block_size (fs);
return (((uint64_t) (size->count - 1)) * block_size) + offset;
20392c0: d6 06 20 08 ld [ %i0 + 8 ], %o3 <== NOT EXECUTED
20392c4: b2 10 00 01 mov %g1, %i1 <== NOT EXECUTED
20392c8: b0 10 20 00 clr %i0 <== NOT EXECUTED
20392cc: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
20392d0: 90 10 20 00 clr %o0 <== NOT EXECUTED
20392d4: 40 00 8e 89 call 205ccf8 <__muldi3> <== NOT EXECUTED
20392d8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20392dc: 86 86 40 09 addcc %i1, %o1, %g3 <== NOT EXECUTED
20392e0: 84 46 00 08 addx %i0, %o0, %g2 <== NOT EXECUTED
}
20392e4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
20392e8: 81 c7 e0 08 ret <== NOT EXECUTED
20392ec: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
02039e3c <rtems_rfs_block_map_close>:
}
int
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
2039e3c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
int brc;
if (map->dirty && map->inode)
2039e40: c2 0e 40 00 ldub [ %i1 ], %g1 <== NOT EXECUTED
2039e44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039e48: 02 80 00 5e be 2039fc0 <rtems_rfs_block_map_close+0x184> <== NOT EXECUTED
2039e4c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2039e50: d2 06 60 04 ld [ %i1 + 4 ], %o1 <== NOT EXECUTED
2039e54: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
2039e58: 22 80 00 5b be,a 2039fc4 <rtems_rfs_block_map_close+0x188><== NOT EXECUTED
2039e5c: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
brc = rtems_rfs_inode_load (fs, map->inode);
2039e60: 40 00 0f 14 call 203dab0 <rtems_rfs_inode_load> <== NOT EXECUTED
2039e64: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (brc > 0)
2039e68: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039e6c: 14 80 00 57 bg 2039fc8 <rtems_rfs_block_map_close+0x18c> <== NOT EXECUTED
2039e70: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
2039e74: 82 10 20 00 clr %g1 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2039e78: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
2039e7c: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
2039e80: 88 06 40 01 add %i1, %g1, %g4 <== NOT EXECUTED
* @param bno The block number.
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
2039e84: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
2039e88: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2039e8c: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039e90: 99 31 20 18 srl %g4, 0x18, %o4 <== NOT EXECUTED
2039e94: d8 2b 60 1c stb %o4, [ %o5 + 0x1c ] <== NOT EXECUTED
2039e98: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
2039e9c: 99 31 20 10 srl %g4, 0x10, %o4 <== NOT EXECUTED
2039ea0: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039ea4: d8 2b 60 1d stb %o4, [ %o5 + 0x1d ] <== NOT EXECUTED
2039ea8: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
2039eac: 99 31 20 08 srl %g4, 8, %o4 <== NOT EXECUTED
2039eb0: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039eb4: d8 2b 60 1e stb %o4, [ %o5 + 0x1e ] <== NOT EXECUTED
2039eb8: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
2039ebc: 9a 03 40 01 add %o5, %g1, %o5 <== NOT EXECUTED
2039ec0: c8 2b 60 1f stb %g4, [ %o5 + 0x1f ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2039ec4: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
if (rc == 0)
{
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
2039ec8: 80 a0 60 14 cmp %g1, 0x14 <== NOT EXECUTED
2039ecc: 12 bf ff ec bne 2039e7c <rtems_rfs_block_map_close+0x40> <== NOT EXECUTED
2039ed0: c4 28 e0 10 stb %g2, [ %g3 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
2039ed4: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
2039ed8: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
* @param block_count The block count.
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
2039edc: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039ee0: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
2039ee4: da 29 20 0c stb %o5, [ %g4 + 0xc ] <== NOT EXECUTED
2039ee8: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039eec: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
2039ef0: da 29 20 0d stb %o5, [ %g4 + 0xd ] <== NOT EXECUTED
2039ef4: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039ef8: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
2039efc: da 29 20 0e stb %o5, [ %g4 + 0xe ] <== NOT EXECUTED
2039f00: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
brc = rtems_rfs_inode_unload (fs, map->inode, true);
2039f04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039f08: c2 29 20 0f stb %g1, [ %g4 + 0xf ] <== NOT EXECUTED
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
2039f0c: c8 06 60 04 ld [ %i1 + 4 ], %g4 <== NOT EXECUTED
2039f10: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
2039f14: da 01 20 0c ld [ %g4 + 0xc ], %o5 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2039f18: c4 28 e0 10 stb %g2, [ %g3 + 0x10 ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
2039f1c: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
2039f20: c6 2b 60 0a stb %g3, [ %o5 + 0xa ] <== NOT EXECUTED
2039f24: c6 01 20 0c ld [ %g4 + 0xc ], %g3 <== NOT EXECUTED
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
brc = rtems_rfs_inode_unload (fs, map->inode, true);
2039f28: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
2039f2c: c2 28 e0 0b stb %g1, [ %g3 + 0xb ] <== NOT EXECUTED
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
2039f30: c6 06 60 04 ld [ %i1 + 4 ], %g3 <== NOT EXECUTED
2039f34: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
* @param block_count The last map block number.
*/
static inline void
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{
rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
2039f38: da 00 e0 0c ld [ %g3 + 0xc ], %o5 <== NOT EXECUTED
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2039f3c: c4 29 20 10 stb %g2, [ %g4 + 0x10 ] <== NOT EXECUTED
* @param block_count The last map block number.
*/
static inline void
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{
rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
2039f40: 89 30 60 18 srl %g1, 0x18, %g4 <== NOT EXECUTED
2039f44: c8 2b 60 30 stb %g4, [ %o5 + 0x30 ] <== NOT EXECUTED
2039f48: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039f4c: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
2039f50: da 29 20 31 stb %o5, [ %g4 + 0x31 ] <== NOT EXECUTED
2039f54: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039f58: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
2039f5c: da 29 20 32 stb %o5, [ %g4 + 0x32 ] <== NOT EXECUTED
2039f60: c8 00 e0 0c ld [ %g3 + 0xc ], %g4 <== NOT EXECUTED
2039f64: c2 29 20 33 stb %g1, [ %g4 + 0x33 ] <== NOT EXECUTED
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
2039f68: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
2039f6c: c8 06 60 20 ld [ %i1 + 0x20 ], %g4 <== NOT EXECUTED
* @param block_count The last data block number.
*/
static inline void
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{
rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
2039f70: da 00 60 0c ld [ %g1 + 0xc ], %o5 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{
rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2039f74: c4 28 e0 10 stb %g2, [ %g3 + 0x10 ] <== NOT EXECUTED
* @param block_count The last data block number.
*/
static inline void
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{
rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
2039f78: 87 31 20 18 srl %g4, 0x18, %g3 <== NOT EXECUTED
2039f7c: c6 2b 60 34 stb %g3, [ %o5 + 0x34 ] <== NOT EXECUTED
2039f80: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2039f84: 9b 31 20 10 srl %g4, 0x10, %o5 <== NOT EXECUTED
2039f88: da 28 e0 35 stb %o5, [ %g3 + 0x35 ] <== NOT EXECUTED
2039f8c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2039f90: 9b 31 20 08 srl %g4, 8, %o5 <== NOT EXECUTED
2039f94: da 28 e0 36 stb %o5, [ %g3 + 0x36 ] <== NOT EXECUTED
2039f98: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
2039f9c: c8 28 e0 37 stb %g4, [ %g3 + 0x37 ] <== NOT EXECUTED
brc = rtems_rfs_inode_unload (fs, map->inode, true);
2039fa0: d2 06 60 04 ld [ %i1 + 4 ], %o1 <== NOT EXECUTED
2039fa4: 40 00 0e 89 call 203d9c8 <rtems_rfs_inode_unload> <== NOT EXECUTED
2039fa8: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
2039fac: c0 2e 40 00 clrb [ %i1 ] <== NOT EXECUTED
rtems_rfs_inode_set_block_count (map->inode, map->size.count);
rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
brc = rtems_rfs_inode_unload (fs, map->inode, true);
2039fb0: 82 38 00 08 xnor %g0, %o0, %g1 <== NOT EXECUTED
2039fb4: 83 38 60 1f sra %g1, 0x1f, %g1 <== NOT EXECUTED
2039fb8: 10 80 00 03 b 2039fc4 <rtems_rfs_block_map_close+0x188> <== NOT EXECUTED
2039fbc: b0 0a 00 01 and %o0, %g1, %i0 <== NOT EXECUTED
if (brc > 0)
rc = brc;
map->dirty = false;
2039fc0: b0 10 20 00 clr %i0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
2039fc4: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
}
}
map->inode = NULL;
2039fc8: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
2039fcc: 40 00 00 df call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039fd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039fd4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
2039fd8: c0 2e 60 38 clrb [ %i1 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
2039fdc: c0 26 60 3c clr [ %i1 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
2039fe0: c0 26 60 40 clr [ %i1 + 0x40 ] <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
2039fe4: 40 00 00 d9 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2039fe8: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
2039fec: c0 26 60 4c clr [ %i1 + 0x4c ] <== NOT EXECUTED
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
handle->dirty = false;
2039ff0: c0 2e 60 44 clrb [ %i1 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
2039ff4: c0 26 60 48 clr [ %i1 + 0x48 ] <== NOT EXECUTED
rc = brc;
brc = rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);
if ((brc > 0) && (rc == 0))
rc = brc;
return rc;
}
2039ff8: 81 c7 e0 08 ret <== NOT EXECUTED
2039ffc: 81 e8 00 00 restore <== NOT EXECUTED
02039380 <rtems_rfs_block_map_find>:
int
rtems_rfs_block_map_find (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_block_pos* bpos,
rtems_rfs_block_no* block)
{
2039380: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc = 0;
*block = 0;
2039384: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
/*
* Range checking here makes the remaining logic simpler.
*/
if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))
2039388: e4 06 80 00 ld [ %i2 ], %l2 <== NOT EXECUTED
203938c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2039390: 02 80 00 06 be 20393a8 <rtems_rfs_block_map_find+0x28> <== NOT EXECUTED
2039394: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2039398: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203939c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20393a0: 22 80 00 50 be,a 20394e0 <rtems_rfs_block_map_find+0x160><== NOT EXECUTED
20393a4: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
20393a8: e8 06 60 08 ld [ %i1 + 8 ], %l4 <== NOT EXECUTED
20393ac: 80 a4 80 14 cmp %l2, %l4 <== NOT EXECUTED
20393b0: 3a 80 00 4c bcc,a 20394e0 <rtems_rfs_block_map_find+0x160><== NOT EXECUTED
20393b4: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
return ENXIO;
/*
* If the block position is the same and we have found the block just return it.
*/
if ((bpos->bno == map->bpos.bno) && (map->bpos.block != 0))
20393b8: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
20393bc: 80 a4 80 01 cmp %l2, %g1 <== NOT EXECUTED
20393c0: 12 80 00 07 bne 20393dc <rtems_rfs_block_map_find+0x5c> <== NOT EXECUTED
20393c4: 80 a5 20 05 cmp %l4, 5 <== NOT EXECUTED
20393c8: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
20393cc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20393d0: 32 80 00 3b bne,a 20394bc <rtems_rfs_block_map_find+0x13c><== NOT EXECUTED
20393d4: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
/*
* Determine the type of access we need to perform. If the number of blocks
* is less than or equal to the number of slots in the inode the blocks are
* directly accessed.
*/
if (map->size.count <= RTEMS_RFS_INODE_BLOCKS)
20393d8: 80 a5 20 05 cmp %l4, 5 <== NOT EXECUTED
20393dc: 38 80 00 08 bgu,a 20393fc <rtems_rfs_block_map_find+0x7c><== NOT EXECUTED
20393e0: e6 04 20 30 ld [ %l0 + 0x30 ], %l3 <== NOT EXECUTED
{
*block = map->blocks[bpos->bno];
20393e4: a4 04 a0 08 add %l2, 8, %l2 <== NOT EXECUTED
20393e8: a5 2c a0 02 sll %l2, 2, %l2 <== NOT EXECUTED
20393ec: a4 06 40 12 add %i1, %l2, %l2 <== NOT EXECUTED
20393f0: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
20393f4: 10 80 00 32 b 20394bc <rtems_rfs_block_map_find+0x13c> <== NOT EXECUTED
20393f8: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
* The map is either singly or doubly indirect.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = bpos->bno % fs->blocks_per_block;
20393fc: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2039400: 40 00 8d 92 call 205ca48 <.urem> <== NOT EXECUTED
2039404: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
2039408: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
* The map is either singly or doubly indirect.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = bpos->bno % fs->blocks_per_block;
203940c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
singly = bpos->bno / fs->blocks_per_block;
2039410: 40 00 8c e2 call 205c798 <.udiv> <== NOT EXECUTED
2039414: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
2039418: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = bpos->bno % fs->blocks_per_block;
singly = bpos->bno / fs->blocks_per_block;
203941c: d0 27 bf fc st %o0, [ %fp + -4 ] <== NOT EXECUTED
if (map->size.count <= fs->block_map_singly_blocks)
2039420: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
2039424: 18 80 00 07 bgu 2039440 <rtems_rfs_block_map_find+0xc0> <== NOT EXECUTED
2039428: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
{
/*
* This is a single indirect table of blocks anchored off a slot in the
* inode.
*/
rc = rtems_rfs_block_find_indirect (fs,
203942c: aa 02 20 08 add %o0, 8, %l5 <== NOT EXECUTED
2039430: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
2039434: aa 06 40 15 add %i1, %l5, %l5 <== NOT EXECUTED
2039438: 10 80 00 19 b 203949c <rtems_rfs_block_map_find+0x11c> <== NOT EXECUTED
203943c: d4 05 60 04 ld [ %l5 + 4 ], %o2 <== NOT EXECUTED
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
if (map->size.count < fs->block_map_doubly_blocks)
2039440: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
2039444: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
2039448: 1a 80 00 26 bcc 20394e0 <rtems_rfs_block_map_find+0x160> <== NOT EXECUTED
203944c: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
2039450: 40 00 8d 7e call 205ca48 <.urem> <== NOT EXECUTED
2039454: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
2039458: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
203945c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
2039460: 40 00 8c ce call 205c798 <.udiv> <== NOT EXECUTED
2039464: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
2039468: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
203946c: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2039470: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2039474: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
2039478: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
* The map is doubly indirect.
*/
rtems_rfs_block_no doubly;
doubly = singly / fs->blocks_per_block;
singly %= fs->blocks_per_block;
203947c: e4 27 bf fc st %l2, [ %fp + -4 ] <== NOT EXECUTED
if (map->size.count < fs->block_map_doubly_blocks)
{
rc = rtems_rfs_block_find_indirect (fs,
2039480: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039484: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
2039488: 7f ff ff 9a call 20392f0 <rtems_rfs_block_find_indirect> <== NOT EXECUTED
203948c: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
singly, &singly);
if (rc == 0)
2039490: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039494: 12 80 00 13 bne 20394e0 <rtems_rfs_block_map_find+0x160> <== NOT EXECUTED
2039498: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
rc = rtems_rfs_block_find_indirect (fs,
203949c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20394a0: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
20394a4: 92 06 60 38 add %i1, 0x38, %o1 <== NOT EXECUTED
20394a8: 7f ff ff 92 call 20392f0 <rtems_rfs_block_find_indirect> <== NOT EXECUTED
20394ac: 98 10 00 1b mov %i3, %o4 <== NOT EXECUTED
}
}
}
}
if (rc == 0)
20394b0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20394b4: 12 80 00 0b bne 20394e0 <rtems_rfs_block_map_find+0x160> <== NOT EXECUTED
20394b8: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_block_copy_bpos (&map->bpos, bpos);
20394bc: c6 06 a0 08 ld [ %i2 + 8 ], %g3 <== NOT EXECUTED
20394c0: c2 06 a0 04 ld [ %i2 + 4 ], %g1 <== NOT EXECUTED
20394c4: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
20394c8: c6 26 60 18 st %g3, [ %i1 + 0x18 ] <== NOT EXECUTED
20394cc: c4 26 60 10 st %g2, [ %i1 + 0x10 ] <== NOT EXECUTED
20394d0: c2 26 60 14 st %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
map->bpos.block = *block;
20394d4: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
20394d8: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED
20394dc: b0 10 20 00 clr %i0 <== NOT EXECUTED
}
return rc;
}
20394e0: 81 c7 e0 08 ret <== NOT EXECUTED
20394e4: 81 e8 00 00 restore <== NOT EXECUTED
02039978 <rtems_rfs_block_map_free_all>:
int
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map)
{
return rtems_rfs_block_map_shrink (fs, map, map->size.count);
2039978: d4 02 60 08 ld [ %o1 + 8 ], %o2 <== NOT EXECUTED
203997c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2039980: 7f ff ff 37 call 203965c <rtems_rfs_block_map_shrink> <== NOT EXECUTED
2039984: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02039aa4 <rtems_rfs_block_map_grow>:
int
rtems_rfs_block_map_grow (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks,
rtems_rfs_block_no* new_block)
{
2039aa4: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
blocks, map->size.count);
if ((map->size.count + blocks) >= rtems_rfs_fs_max_block_map_blocks (fs))
2039aa8: c2 06 20 38 ld [ %i0 + 0x38 ], %g1 <== NOT EXECUTED
2039aac: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
int
rtems_rfs_block_map_grow (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks,
rtems_rfs_block_no* new_block)
{
2039ab0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
blocks, map->size.count);
if ((map->size.count + blocks) >= rtems_rfs_fs_max_block_map_blocks (fs))
2039ab4: 84 06 80 02 add %i2, %g2, %g2 <== NOT EXECUTED
2039ab8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2039abc: 1a 80 00 b6 bcc 2039d94 <rtems_rfs_block_map_grow+0x2f0> <== NOT EXECUTED
2039ac0: b0 10 20 1b mov 0x1b, %i0 <== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
2039ac4: a8 06 60 38 add %i1, 0x38, %l4 <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
2039ac8: ae 06 60 44 add %i1, 0x44, %l7 <== NOT EXECUTED
2039acc: a6 10 20 00 clr %l3 <== NOT EXECUTED
/*
* Allocate the block. If an indirect block is needed and cannot be
* allocated free this block.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_data_block,
2039ad0: b8 07 bf fc add %fp, -4, %i4 <== NOT EXECUTED
return rc;
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
2039ad4: ac 10 20 01 mov 1, %l6 <== NOT EXECUTED
* doubly indirect block as well. Both always occur when direct is 0
* and the doubly indirect block when singly is 0.
*/
if (direct == 0)
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
2039ad8: 10 80 00 d3 b 2039e24 <rtems_rfs_block_map_grow+0x380> <== NOT EXECUTED
2039adc: ba 07 bf f8 add %fp, -8, %i5 <== NOT EXECUTED
/*
* Allocate the block. If an indirect block is needed and cannot be
* allocated free this block.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_data_block,
2039ae0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039ae4: 94 10 20 00 clr %o2 <== NOT EXECUTED
2039ae8: 40 00 0e 50 call 203d428 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
2039aec: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
false, &block);
if (rc > 0)
2039af0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039af4: 14 80 00 d0 bg 2039e34 <rtems_rfs_block_map_grow+0x390> <== NOT EXECUTED
2039af8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (map->size.count < RTEMS_RFS_INODE_BLOCKS)
2039afc: e2 06 60 08 ld [ %i1 + 8 ], %l1 <== NOT EXECUTED
2039b00: 80 a4 60 04 cmp %l1, 4 <== NOT EXECUTED
2039b04: 38 80 00 08 bgu,a 2039b24 <rtems_rfs_block_map_grow+0x80><== NOT EXECUTED
2039b08: f0 04 20 30 ld [ %l0 + 0x30 ], %i0 <== NOT EXECUTED
map->blocks[map->size.count] = block;
2039b0c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2039b10: a2 04 60 08 add %l1, 8, %l1 <== NOT EXECUTED
2039b14: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
2039b18: a2 06 40 11 add %i1, %l1, %l1 <== NOT EXECUTED
2039b1c: 10 80 00 b6 b 2039df4 <rtems_rfs_block_map_grow+0x350> <== NOT EXECUTED
2039b20: c2 24 60 04 st %g1, [ %l1 + 4 ] <== NOT EXECUTED
* Single indirect access is occuring. It could still be doubly indirect.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = map->size.count % fs->blocks_per_block;
2039b24: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2039b28: 40 00 8b c8 call 205ca48 <.urem> <== NOT EXECUTED
2039b2c: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
2039b30: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
* Single indirect access is occuring. It could still be doubly indirect.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = map->size.count % fs->blocks_per_block;
2039b34: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
singly = map->size.count / fs->blocks_per_block;
2039b38: 40 00 8b 18 call 205c798 <.udiv> <== NOT EXECUTED
2039b3c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (map->size.count < fs->block_map_singly_blocks)
2039b40: c4 04 20 34 ld [ %l0 + 0x34 ], %g2 <== NOT EXECUTED
2039b44: 80 a4 40 02 cmp %l1, %g2 <== NOT EXECUTED
2039b48: 1a 80 00 1b bcc 2039bb4 <rtems_rfs_block_map_grow+0x110> <== NOT EXECUTED
2039b4c: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
* Singly indirect tables are being used. Allocate a new block for a
* mapping table if direct is 0 or we are moving up (upping). If upping
* move the direct blocks into the table and if not this is the first
* entry of a new block.
*/
if ((direct == 0) ||
2039b50: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2039b54: 22 80 00 07 be,a 2039b70 <rtems_rfs_block_map_grow+0xcc> <== NOT EXECUTED
2039b58: a2 1c 60 05 xor %l1, 5, %l1 <== NOT EXECUTED
2039b5c: 80 a4 a0 05 cmp %l2, 5 <== NOT EXECUTED
2039b60: 12 80 00 10 bne 2039ba0 <rtems_rfs_block_map_grow+0xfc> <== NOT EXECUTED
2039b64: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039b68: 12 80 00 0e bne 2039ba0 <rtems_rfs_block_map_grow+0xfc> <== NOT EXECUTED
2039b6c: a2 1c 60 05 xor %l1, 5, %l1 <== NOT EXECUTED
/*
* Upping is when we move from direct to singly indirect.
*/
bool upping;
upping = map->size.count == RTEMS_RFS_INODE_BLOCKS;
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
2039b70: 80 a0 00 11 cmp %g0, %l1 <== NOT EXECUTED
2039b74: 96 00 60 08 add %g1, 8, %o3 <== NOT EXECUTED
2039b78: 98 60 3f ff subx %g0, -1, %o4 <== NOT EXECUTED
2039b7c: 97 2a e0 02 sll %o3, 2, %o3 <== NOT EXECUTED
2039b80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039b84: 96 06 40 0b add %i1, %o3, %o3 <== NOT EXECUTED
2039b88: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039b8c: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
2039b90: 7f ff ff 7f call 203998c <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
2039b94: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
singly_block, true);
if (rc > 0)
2039b98: 10 80 00 79 b 2039d7c <rtems_rfs_block_map_grow+0x2d8> <== NOT EXECUTED
2039b9c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
&map->blocks[singly],
upping);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
2039ba0: 82 00 60 08 add %g1, 8, %g1 <== NOT EXECUTED
2039ba4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2039ba8: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2039bac: 10 80 00 6f b 2039d68 <rtems_rfs_block_map_grow+0x2c4> <== NOT EXECUTED
2039bb0: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
* Doubly indirect tables are being used.
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no singly_block;
doubly = singly / fs->blocks_per_block;
2039bb4: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2039bb8: 40 00 8a f8 call 205c798 <.udiv> <== NOT EXECUTED
2039bbc: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
singly %= fs->blocks_per_block;
2039bc0: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
* Doubly indirect tables are being used.
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no singly_block;
doubly = singly / fs->blocks_per_block;
2039bc4: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
singly %= fs->blocks_per_block;
2039bc8: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2039bcc: 40 00 8b 9f call 205ca48 <.urem> <== NOT EXECUTED
2039bd0: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
* Allocate a new block for a singly indirect table if direct is 0 as
* it is the first entry of a new block. We may also need to allocate a
* doubly indirect block as well. Both always occur when direct is 0
* and the doubly indirect block when singly is 0.
*/
if (direct == 0)
2039bd4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2039bd8: 12 80 00 49 bne 2039cfc <rtems_rfs_block_map_grow+0x258> <== NOT EXECUTED
2039bdc: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
2039be0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039be4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039be8: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
2039bec: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2039bf0: 7f ff ff 67 call 203998c <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
2039bf4: 98 10 20 00 clr %o4 <== NOT EXECUTED
&map->singly_buffer,
&singly_block,
false);
if (rc > 0)
2039bf8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039bfc: 14 80 00 62 bg 2039d84 <rtems_rfs_block_map_grow+0x2e0> <== NOT EXECUTED
2039c00: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
/*
* Allocate a new block for a doubly indirect table if singly is 0 as
* it is the first entry of a new singly indirect block.
*/
if ((singly == 0) ||
2039c04: 22 80 00 08 be,a 2039c24 <rtems_rfs_block_map_grow+0x180><== NOT EXECUTED
2039c08: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2039c0c: 80 a4 60 05 cmp %l1, 5 <== NOT EXECUTED
2039c10: 12 80 00 13 bne 2039c5c <rtems_rfs_block_map_grow+0x1b8> <== NOT EXECUTED
2039c14: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
2039c18: 32 80 00 12 bne,a 2039c60 <rtems_rfs_block_map_grow+0x1bc><== NOT EXECUTED
2039c1c: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))
{
bool upping;
upping = map->size.count == fs->block_map_singly_blocks;
rc = rtems_rfs_block_map_indirect_alloc (fs, map,
2039c20: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2039c24: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
2039c28: 96 05 60 08 add %l5, 8, %o3 <== NOT EXECUTED
2039c2c: 82 18 80 01 xor %g2, %g1, %g1 <== NOT EXECUTED
2039c30: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2039c34: 97 2a e0 02 sll %o3, 2, %o3 <== NOT EXECUTED
2039c38: 98 60 3f ff subx %g0, -1, %o4 <== NOT EXECUTED
2039c3c: 96 06 40 0b add %i1, %o3, %o3 <== NOT EXECUTED
2039c40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039c44: 96 02 e0 04 add %o3, 4, %o3 <== NOT EXECUTED
2039c48: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039c4c: 7f ff ff 50 call 203998c <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
2039c50: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
map->blocks[doubly], true);
if (rc > 0)
2039c54: 10 80 00 0b b 2039c80 <rtems_rfs_block_map_grow+0x1dc> <== NOT EXECUTED
2039c58: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
return rc;
}
}
else
{
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
2039c5c: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
2039c60: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
2039c64: aa 06 40 15 add %i1, %l5, %l5 <== NOT EXECUTED
2039c68: d4 05 60 04 ld [ %l5 + 4 ], %o2 <== NOT EXECUTED
2039c6c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039c70: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2039c74: 40 00 01 ff call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039c78: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
2039c7c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039c80: 24 80 00 09 ble,a 2039ca4 <rtems_rfs_block_map_grow+0x200><== NOT EXECUTED
2039c84: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, singly_block);
2039c88: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
2039c8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039c90: 40 00 0d c3 call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2039c94: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_rfs_group_bitmap_free (fs, false, block);
2039c98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039c9c: 10 80 00 3c b 2039d8c <rtems_rfs_block_map_grow+0x2e8> <== NOT EXECUTED
2039ca0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return rc;
}
}
rtems_rfs_block_set_number (&map->doubly_buffer,
2039ca4: c6 0f bf f8 ldub [ %fp + -8 ], %g3 <== NOT EXECUTED
2039ca8: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2039cac: 83 2c 60 02 sll %l1, 2, %g1 <== NOT EXECUTED
2039cb0: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
2039cb4: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
2039cb8: c6 17 bf f8 lduh [ %fp + -8 ], %g3 <== NOT EXECUTED
2039cbc: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039cc0: a2 00 60 02 add %g1, 2, %l1 <== NOT EXECUTED
2039cc4: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2039cc8: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2039ccc: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
2039cd0: c6 07 bf f8 ld [ %fp + -8 ], %g3 <== NOT EXECUTED
2039cd4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039cd8: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
2039cdc: c6 28 80 11 stb %g3, [ %g2 + %l1 ] <== NOT EXECUTED
2039ce0: c4 06 60 4c ld [ %i1 + 0x4c ], %g2 <== NOT EXECUTED
2039ce4: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039ce8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2039cec: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
2039cf0: c4 28 60 03 stb %g2, [ %g1 + 3 ] <== NOT EXECUTED
2039cf4: 10 80 00 2a b 2039d9c <rtems_rfs_block_map_grow+0x2f8> <== NOT EXECUTED
2039cf8: ec 2e 60 44 stb %l6, [ %i1 + 0x44 ] <== NOT EXECUTED
singly,
singly_block);
}
else
{
rc = rtems_rfs_buffer_handle_request (fs,
2039cfc: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
2039d00: ab 2d 60 02 sll %l5, 2, %l5 <== NOT EXECUTED
2039d04: aa 06 40 15 add %i1, %l5, %l5 <== NOT EXECUTED
2039d08: d4 05 60 04 ld [ %l5 + 4 ], %o2 <== NOT EXECUTED
2039d0c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039d10: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2039d14: 40 00 01 d7 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039d18: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
&map->doubly_buffer,
map->blocks[doubly],
true);
if (rc > 0)
2039d1c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039d20: 14 80 00 19 bg 2039d84 <rtems_rfs_block_map_grow+0x2e0> <== NOT EXECUTED
2039d24: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
return rc;
}
singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
2039d28: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
2039d2c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
2039d30: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
2039d34: 84 00 a0 02 add %g2, 2, %g2 <== NOT EXECUTED
2039d38: d4 08 40 11 ldub [ %g1 + %l1 ], %o2 <== NOT EXECUTED
2039d3c: c4 08 40 02 ldub [ %g1 + %g2 ], %g2 <== NOT EXECUTED
2039d40: 82 00 40 11 add %g1, %l1, %g1 <== NOT EXECUTED
2039d44: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2039d48: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
2039d4c: 95 2a a0 18 sll %o2, 0x18, %o2 <== NOT EXECUTED
2039d50: 94 10 40 0a or %g1, %o2, %o2 <== NOT EXECUTED
2039d54: 83 28 e0 10 sll %g3, 0x10, %g1 <== NOT EXECUTED
2039d58: 94 12 80 01 or %o2, %g1, %o2 <== NOT EXECUTED
2039d5c: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2039d60: 94 12 80 01 or %o2, %g1, %o2 <== NOT EXECUTED
2039d64: d4 27 bf f8 st %o2, [ %fp + -8 ] <== NOT EXECUTED
singly);
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
2039d68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039d6c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
2039d70: 40 00 01 c0 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039d74: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
singly_block, true);
if (rc > 0)
2039d78: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
2039d7c: 24 80 00 09 ble,a 2039da0 <rtems_rfs_block_map_grow+0x2fc><== NOT EXECUTED
2039d80: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, block);
2039d84: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
2039d88: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039d8c: 40 00 0d 84 call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2039d90: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
2039d94: 81 c7 e0 08 ret <== NOT EXECUTED
2039d98: 81 e8 00 00 restore <== NOT EXECUTED
}
}
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
2039d9c: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
2039da0: c6 0f bf fc ldub [ %fp + -4 ], %g3 <== NOT EXECUTED
2039da4: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
2039da8: 83 2c a0 02 sll %l2, 2, %g1 <== NOT EXECUTED
2039dac: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
2039db0: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
2039db4: c6 17 bf fc lduh [ %fp + -4 ], %g3 <== NOT EXECUTED
2039db8: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039dbc: a4 00 60 02 add %g1, 2, %l2 <== NOT EXECUTED
2039dc0: 84 00 80 01 add %g2, %g1, %g2 <== NOT EXECUTED
2039dc4: c6 28 a0 01 stb %g3, [ %g2 + 1 ] <== NOT EXECUTED
2039dc8: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
2039dcc: c6 07 bf fc ld [ %fp + -4 ], %g3 <== NOT EXECUTED
2039dd0: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039dd4: 87 30 e0 08 srl %g3, 8, %g3 <== NOT EXECUTED
2039dd8: c6 28 80 12 stb %g3, [ %g2 + %l2 ] <== NOT EXECUTED
2039ddc: c4 06 60 40 ld [ %i1 + 0x40 ], %g2 <== NOT EXECUTED
2039de0: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
2039de4: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2039de8: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
2039dec: c4 28 60 03 stb %g2, [ %g1 + 3 ] <== NOT EXECUTED
2039df0: ec 2e 60 38 stb %l6, [ %i1 + 0x38 ] <== NOT EXECUTED
}
map->size.count++;
2039df4: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
map->size.offset = 0;
2039df8: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
}
rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
}
map->size.count++;
2039dfc: 82 00 60 01 inc %g1 <== NOT EXECUTED
map->size.offset = 0;
if (b == 0)
2039e00: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2039e04: 12 80 00 04 bne 2039e14 <rtems_rfs_block_map_grow+0x370> <== NOT EXECUTED
2039e08: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
*new_block = block;
2039e0c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2039e10: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
map->last_data_block = block;
2039e14: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
map->dirty = true;
2039e18: ec 2e 40 00 stb %l6, [ %i1 ] <== NOT EXECUTED
map->size.count++;
map->size.offset = 0;
if (b == 0)
*new_block = block;
map->last_data_block = block;
2039e1c: c2 26 60 20 st %g1, [ %i1 + 0x20 ] <== NOT EXECUTED
/*
* Allocate a block at a time. The buffer handles hold the blocks so adding
* this way does not thrash the cache with lots of requests.
*/
for (b = 0; b < blocks; b++)
2039e20: a6 04 e0 01 inc %l3 <== NOT EXECUTED
2039e24: 80 a4 c0 1a cmp %l3, %i2 <== NOT EXECUTED
2039e28: 2a bf ff 2e bcs,a 2039ae0 <rtems_rfs_block_map_grow+0x3c><== NOT EXECUTED
2039e2c: d2 06 60 20 ld [ %i1 + 0x20 ], %o1 <== NOT EXECUTED
2039e30: b0 10 20 00 clr %i0 <== NOT EXECUTED
map->last_data_block = block;
map->dirty = true;
}
return 0;
}
2039e34: 81 c7 e0 08 ret <== NOT EXECUTED
2039e38: 81 e8 00 00 restore <== NOT EXECUTED
0203998c <rtems_rfs_block_map_indirect_alloc>:
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no* block,
bool upping)
{
203998c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int rc;
/*
* Save the new block locally because upping can have *block pointing to the
* slots which are cleared when upping.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
2039990: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
2039994: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no* block,
bool upping)
{
2039998: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc;
/*
* Save the new block locally because upping can have *block pointing to the
* slots which are cleared when upping.
*/
rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
203999c: 94 10 20 00 clr %o2 <== NOT EXECUTED
20399a0: 40 00 0e a2 call 203d428 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
20399a4: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc > 0)
20399a8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20399ac: 14 80 00 0c bg 20399dc <rtems_rfs_block_map_indirect_alloc+0x50><== NOT EXECUTED
20399b0: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
20399b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20399b8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20399bc: 40 00 02 ad call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20399c0: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
20399c4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
20399c8: 04 80 00 07 ble 20399e4 <rtems_rfs_block_map_indirect_alloc+0x58><== NOT EXECUTED
20399cc: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
rtems_rfs_group_bitmap_free (fs, false, new_block);
20399d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20399d4: 40 00 0e 72 call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
20399d8: 92 10 20 00 clr %o1 <== NOT EXECUTED
return rc;
20399dc: 81 c7 e0 08 ret <== NOT EXECUTED
20399e0: 81 e8 00 00 restore <== NOT EXECUTED
}
memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
20399e4: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
20399e8: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
20399ec: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
20399f0: 40 00 38 08 call 2047a10 <memset> <== NOT EXECUTED
20399f4: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
if (upping)
20399f8: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
20399fc: 02 80 00 23 be 2039a88 <rtems_rfs_block_map_indirect_alloc+0xfc><== NOT EXECUTED
2039a00: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2039a04: 84 10 00 19 mov %i1, %g2 <== NOT EXECUTED
2039a08: 82 10 20 00 clr %g1 <== NOT EXECUTED
int b;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
map->size.count);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
2039a0c: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
2039a10: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2039a14: da 08 a0 24 ldub [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2039a18: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2039a1c: da 29 00 01 stb %o5, [ %g4 + %g1 ] <== NOT EXECUTED
2039a20: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2039a24: da 10 a0 24 lduh [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2039a28: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2039a2c: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
2039a30: da 29 20 01 stb %o5, [ %g4 + 1 ] <== NOT EXECUTED
2039a34: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2039a38: da 00 a0 24 ld [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2039a3c: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2039a40: 9b 33 60 08 srl %o5, 8, %o5 <== NOT EXECUTED
2039a44: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
2039a48: da 29 20 02 stb %o5, [ %g4 + 2 ] <== NOT EXECUTED
2039a4c: c8 06 a0 08 ld [ %i2 + 8 ], %g4 <== NOT EXECUTED
2039a50: da 00 a0 24 ld [ %g2 + 0x24 ], %o5 <== NOT EXECUTED
2039a54: c8 01 20 24 ld [ %g4 + 0x24 ], %g4 <== NOT EXECUTED
2039a58: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
2039a5c: 88 01 00 01 add %g4, %g1, %g4 <== NOT EXECUTED
2039a60: da 29 20 03 stb %o5, [ %g4 + 3 ] <== NOT EXECUTED
2039a64: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
{
int b;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))
printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
map->size.count);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
2039a68: 80 a0 60 14 cmp %g1, 0x14 <== NOT EXECUTED
2039a6c: 12 bf ff e9 bne 2039a10 <rtems_rfs_block_map_indirect_alloc+0x84><== NOT EXECUTED
2039a70: c6 2e 80 00 stb %g3, [ %i2 ] <== NOT EXECUTED
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
memset (map->blocks, 0, sizeof (map->blocks));
2039a74: 90 06 60 24 add %i1, 0x24, %o0 <== NOT EXECUTED
2039a78: 92 10 20 00 clr %o1 <== NOT EXECUTED
2039a7c: 40 00 37 e5 call 2047a10 <memset> <== NOT EXECUTED
2039a80: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
}
rtems_rfs_buffer_mark_dirty (buffer);
*block = new_block;
2039a84: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
map->size.count);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
memset (map->blocks, 0, sizeof (map->blocks));
}
rtems_rfs_buffer_mark_dirty (buffer);
2039a88: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
*block = new_block;
2039a8c: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
map->size.count);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
rtems_rfs_block_set_number (buffer, b, map->blocks[b]);
memset (map->blocks, 0, sizeof (map->blocks));
}
rtems_rfs_buffer_mark_dirty (buffer);
2039a90: c4 2e 80 00 stb %g2, [ %i2 ] <== NOT EXECUTED
*block = new_block;
map->last_map_block = new_block;
2039a94: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
2039a98: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2039a9c: 81 c7 e0 08 ret <== NOT EXECUTED
2039aa0: 81 e8 00 00 restore <== NOT EXECUTED
02039584 <rtems_rfs_block_map_indirect_shrink>:
rtems_rfs_block_map_indirect_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_buffer_handle* buffer,
rtems_rfs_block_no indirect,
rtems_rfs_block_no index)
{
2039584: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
* block to be freed and the indirect block is now also free, or we have only
* one indirect table and we can fit the remaining blocks into the inode,
* then either move to the next indirect block or move the remaining blocks
* into the inode and free the indirect table's block.
*/
if ((index == 0) ||
2039588: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
203958c: 02 80 00 0a be 20395b4 <rtems_rfs_block_map_indirect_shrink+0x30><== NOT EXECUTED
2039590: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2039594: 80 a7 20 05 cmp %i4, 5 <== NOT EXECUTED
2039598: 32 80 00 2f bne,a 2039654 <rtems_rfs_block_map_indirect_shrink+0xd0><== NOT EXECUTED
203959c: 90 10 20 00 clr %o0 <== NOT EXECUTED
20395a0: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20395a4: 02 80 00 05 be 20395b8 <rtems_rfs_block_map_indirect_shrink+0x34><== NOT EXECUTED
20395a8: 80 a7 20 05 cmp %i4, 5 <== NOT EXECUTED
20395ac: 10 80 00 2a b 2039654 <rtems_rfs_block_map_indirect_shrink+0xd0><== NOT EXECUTED
20395b0: 90 10 20 00 clr %o0 <== NOT EXECUTED
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))
20395b4: 80 a7 20 05 cmp %i4, 5 <== NOT EXECUTED
* into the inode and free the indirect table's block.
*/
if ((index == 0) ||
((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))
{
rtems_rfs_block_no block_to_free = map->blocks[indirect];
20395b8: 82 06 e0 08 add %i3, 8, %g1 <== NOT EXECUTED
20395bc: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20395c0: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))
20395c4: 12 80 00 1a bne 203962c <rtems_rfs_block_map_indirect_shrink+0xa8><== NOT EXECUTED
20395c8: f8 00 60 04 ld [ %g1 + 4 ], %i4 <== NOT EXECUTED
20395cc: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
20395d0: 32 80 00 18 bne,a 2039630 <rtems_rfs_block_map_indirect_shrink+0xac><== NOT EXECUTED
20395d4: b6 06 e0 08 add %i3, 8, %i3 <== NOT EXECUTED
20395d8: c2 06 a0 08 ld [ %i2 + 8 ], %g1 <== NOT EXECUTED
20395dc: 84 10 20 00 clr %g2 <== NOT EXECUTED
20395e0: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
/*
* Move to direct inode access.
*/
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
map->blocks[b] = rtems_rfs_block_get_number (buffer, b);
20395e4: c6 08 60 02 ldub [ %g1 + 2 ], %g3 <== NOT EXECUTED
20395e8: d8 08 40 00 ldub [ %g1 ], %o4 <== NOT EXECUTED
20395ec: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
20395f0: da 08 60 03 ldub [ %g1 + 3 ], %o5 <== NOT EXECUTED
20395f4: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
20395f8: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
20395fc: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2039600: 88 13 00 04 or %o4, %g4, %g4 <== NOT EXECUTED
2039604: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
2039608: 88 11 00 03 or %g4, %g3, %g4 <== NOT EXECUTED
203960c: 86 06 40 02 add %i1, %g2, %g3 <== NOT EXECUTED
2039610: c8 20 e0 24 st %g4, [ %g3 + 0x24 ] <== NOT EXECUTED
2039614: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
{
/*
* Move to direct inode access.
*/
int b;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
2039618: 80 a0 a0 14 cmp %g2, 0x14 <== NOT EXECUTED
203961c: 12 bf ff f2 bne 20395e4 <rtems_rfs_block_map_indirect_shrink+0x60><== NOT EXECUTED
2039620: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
2039624: 10 80 00 07 b 2039640 <rtems_rfs_block_map_indirect_shrink+0xbc><== NOT EXECUTED
2039628: 92 10 20 00 clr %o1 <== NOT EXECUTED
else
{
/*
* One less singly indirect block in the inode.
*/
map->blocks[indirect] = 0;
203962c: b6 06 e0 08 add %i3, 8, %i3 <== NOT EXECUTED
2039630: b7 2e e0 02 sll %i3, 2, %i3 <== NOT EXECUTED
2039634: b6 06 40 1b add %i1, %i3, %i3 <== NOT EXECUTED
2039638: c0 26 e0 04 clr [ %i3 + 4 ] <== NOT EXECUTED
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
203963c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2039640: 40 00 0f 57 call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2039644: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
if (rc > 0)
2039648: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203964c: 24 80 00 02 ble,a 2039654 <rtems_rfs_block_map_indirect_shrink+0xd0><== NOT EXECUTED
2039650: f8 26 60 1c st %i4, [ %i1 + 0x1c ] <== NOT EXECUTED
map->last_map_block = block_to_free;
}
return rc;
}
2039654: 81 c7 e0 08 ret <== NOT EXECUTED
2039658: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
020394e8 <rtems_rfs_block_map_next_block>:
int
rtems_rfs_block_map_next_block (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_block_no* block)
{
20394e8: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
20394ec: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
int
rtems_rfs_block_map_next_block (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_block_no* block)
{
20394f0: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
20394f4: 82 00 60 01 inc %g1 <== NOT EXECUTED
bpos.boff = 0;
20394f8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
rtems_rfs_block_map_next_block (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_block_no* block)
{
rtems_rfs_block_pos bpos;
bpos.bno = map->bpos.bno + 1;
20394fc: c2 27 bf f4 st %g1, [ %fp + -12 ] <== NOT EXECUTED
bpos.boff = 0;
bpos.block = 0;
2039500: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
return rtems_rfs_block_map_find (fs, map, &bpos, block);
2039504: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2039508: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203950c: 7f ff ff 9d call 2039380 <rtems_rfs_block_map_find> <== NOT EXECUTED
2039510: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
}
2039514: 81 c7 e0 08 ret <== NOT EXECUTED
2039518: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203a000 <rtems_rfs_block_map_open>:
int
rtems_rfs_block_map_open (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* inode,
rtems_rfs_block_map* map)
{
203a000: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
* Set the count to 0 so at least find fails, then open the handle and make
* sure the inode has been loaded into memory. If we did not load the inode
* do not unload it. The caller may assume it is still loaded when we return.
*/
map->dirty = false;
203a004: c0 2e 80 00 clrb [ %i2 ] <== NOT EXECUTED
map->inode = NULL;
203a008: c0 26 a0 04 clr [ %i2 + 4 ] <== NOT EXECUTED
* @param size A pointer to the block size.
*/
static inline void
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)
{
size->count = 0;
203a00c: c0 26 a0 08 clr [ %i2 + 8 ] <== NOT EXECUTED
size->offset = 0;
203a010: c0 26 a0 0c clr [ %i2 + 0xc ] <== NOT EXECUTED
* @param bpos A pointer to the block position.
*/
static inline void
rtems_rfs_block_set_bpos_zero (rtems_rfs_block_pos* bpos)
{
bpos->bno = 0;
203a014: c0 26 a0 10 clr [ %i2 + 0x10 ] <== NOT EXECUTED
bpos->boff = 0;
203a018: c0 26 a0 14 clr [ %i2 + 0x14 ] <== NOT EXECUTED
bpos->block = 0;
203a01c: c0 26 a0 18 clr [ %i2 + 0x18 ] <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203a020: c0 2e a0 38 clrb [ %i2 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
203a024: c0 26 a0 3c clr [ %i2 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
203a028: c0 26 a0 40 clr [ %i2 + 0x40 ] <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203a02c: c0 2e a0 44 clrb [ %i2 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203a030: c0 26 a0 48 clr [ %i2 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
203a034: c0 26 a0 4c clr [ %i2 + 0x4c ] <== NOT EXECUTED
return rc;
rc = rtems_rfs_buffer_handle_open (fs, &map->doubly_buffer);
if (rc > 0)
return rc;
rc = rtems_rfs_inode_load (fs, inode);
203a038: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203a03c: 40 00 0e 9d call 203dab0 <rtems_rfs_inode_load> <== NOT EXECUTED
203a040: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
203a044: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203a048: 24 80 00 11 ble,a 203a08c <rtems_rfs_block_map_open+0x8c><== NOT EXECUTED
203a04c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203a050: 92 06 a0 38 add %i2, 0x38, %o1 <== NOT EXECUTED
203a054: 40 00 00 bd call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203a058: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203a05c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
203a060: c0 2e a0 38 clrb [ %i2 + 0x38 ] <== NOT EXECUTED
handle->bnum = 0;
203a064: c0 26 a0 3c clr [ %i2 + 0x3c ] <== NOT EXECUTED
handle->buffer = NULL;
203a068: c0 26 a0 40 clr [ %i2 + 0x40 ] <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203a06c: 92 06 a0 44 add %i2, 0x44, %o1 <== NOT EXECUTED
203a070: 40 00 00 b6 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203a074: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203a078: c0 26 a0 4c clr [ %i2 + 0x4c ] <== NOT EXECUTED
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
handle->dirty = false;
203a07c: c0 2e a0 44 clrb [ %i2 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203a080: c0 26 a0 48 clr [ %i2 + 0x48 ] <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
rc = rtems_rfs_inode_unload (fs, inode, false);
return rc;
}
203a084: 81 c7 e0 08 ret <== NOT EXECUTED
203a088: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
203a08c: f2 26 a0 04 st %i1, [ %i2 + 4 ] <== NOT EXECUTED
block_size = rtems_rfs_fs_block_size (fs);
return (((uint64_t) (size->count - 1)) * block_size) + offset;
}
int
rtems_rfs_block_map_open (rtems_rfs_file_system* fs,
203a090: 86 00 60 30 add %g1, 0x30, %g3 <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
203a094: 84 10 00 1a mov %i2, %g2 <== NOT EXECUTED
203a098: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
203a09c: d6 08 40 00 ldub [ %g1 ], %o3 <== NOT EXECUTED
203a0a0: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
203a0a4: d8 08 60 03 ldub [ %g1 + 3 ], %o4 <== NOT EXECUTED
203a0a8: da 08 60 02 ldub [ %g1 + 2 ], %o5 <== NOT EXECUTED
203a0ac: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203a0b0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203a0b4: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203a0b8: 88 12 c0 04 or %o3, %g4, %g4 <== NOT EXECUTED
203a0bc: 88 11 00 0c or %g4, %o4, %g4 <== NOT EXECUTED
203a0c0: 88 11 00 0d or %g4, %o5, %g4 <== NOT EXECUTED
203a0c4: c8 20 a0 24 st %g4, [ %g2 + 0x24 ] <== NOT EXECUTED
203a0c8: 82 00 60 04 add %g1, 4, %g1 <== NOT EXECUTED
/*
* Extract the block and block count data from the inode into the targets
* byte order.
*/
map->inode = inode;
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
203a0cc: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203a0d0: 12 bf ff f3 bne 203a09c <rtems_rfs_block_map_open+0x9c> <== NOT EXECUTED
203a0d4: 84 00 a0 04 add %g2, 4, %g2 <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
203a0d8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
map->blocks[b] = rtems_rfs_inode_get_block (inode, b);
map->size.count = rtems_rfs_inode_get_block_count (inode);
203a0dc: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
203a0e0: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
203a0e4: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203a0e8: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203a0ec: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203a0f0: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203a0f4: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203a0f8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203a0fc: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203a100: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203a104: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203a108: c4 26 a0 08 st %g2, [ %i2 + 8 ] <== NOT EXECUTED
map->size.offset = rtems_rfs_inode_get_block_offset (inode);
203a10c: c6 08 60 0b ldub [ %g1 + 0xb ], %g3 <== NOT EXECUTED
203a110: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== NOT EXECUTED
203a114: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203a118: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203a11c: c4 26 a0 0c st %g2, [ %i2 + 0xc ] <== NOT EXECUTED
* @return uint32_t The last map block number.
*/
static inline uint32_t
rtems_rfs_inode_get_last_map_block (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->last_map_block);
203a120: 84 00 60 30 add %g1, 0x30, %g2 <== NOT EXECUTED
map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);
203a124: d8 08 60 30 ldub [ %g1 + 0x30 ], %o4 <== NOT EXECUTED
203a128: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203a12c: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203a130: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203a134: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203a138: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203a13c: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203a140: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203a144: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203a148: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203a14c: c4 26 a0 1c st %g2, [ %i2 + 0x1c ] <== NOT EXECUTED
map->last_data_block = rtems_rfs_inode_get_last_data_block (inode);
203a150: da 08 60 34 ldub [ %g1 + 0x34 ], %o5 <== NOT EXECUTED
* @return uint32_t The last data block number.
*/
static inline uint32_t
rtems_rfs_inode_get_last_data_block (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->last_data_block);
203a154: 82 00 60 34 add %g1, 0x34, %g1 <== NOT EXECUTED
203a158: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203a15c: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
203a160: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203a164: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203a168: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
203a16c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203a170: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203a174: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203a178: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203a17c: c2 26 a0 20 st %g1, [ %i2 + 0x20 ] <== NOT EXECUTED
rc = rtems_rfs_inode_unload (fs, inode, false);
203a180: 40 00 0e 12 call 203d9c8 <rtems_rfs_inode_unload> <== NOT EXECUTED
203a184: 95 e8 20 00 restore %g0, 0, %o2 <== NOT EXECUTED
0203951c <rtems_rfs_block_map_seek>:
int
rtems_rfs_block_map_seek (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_pos_rel offset,
rtems_rfs_block_no* block)
{
203951c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
2039520: e0 06 60 14 ld [ %i1 + 0x14 ], %l0 <== NOT EXECUTED
2039524: c2 06 60 18 ld [ %i1 + 0x18 ], %g1 <== NOT EXECUTED
static inline void
rtems_rfs_block_add_pos (rtems_rfs_file_system* fs,
rtems_rfs_pos_rel offset,
rtems_rfs_block_pos* bpos)
{
rtems_rfs_block_get_bpos (fs,
2039528: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
203952c: d0 06 60 10 ld [ %i1 + 0x10 ], %o0 <== NOT EXECUTED
2039530: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
2039534: e0 27 bf f8 st %l0, [ %fp + -8 ] <== NOT EXECUTED
2039538: 7f ff 25 30 call 20029f8 <.umul> <== NOT EXECUTED
203953c: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
2039540: 82 02 00 10 add %o0, %l0, %g1 <== NOT EXECUTED
2039544: b6 86 c0 01 addcc %i3, %g1, %i3 <== NOT EXECUTED
2039548: a0 07 bf f4 add %fp, -12, %l0 <== NOT EXECUTED
203954c: b4 46 a0 00 addx %i2, 0, %i2 <== NOT EXECUTED
2039550: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2039554: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
2039558: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203955c: 7f ff ff 20 call 20391dc <rtems_rfs_block_get_bpos> <== NOT EXECUTED
2039560: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
int
rtems_rfs_block_map_seek (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
rtems_rfs_pos_rel offset,
rtems_rfs_block_no* block)
{
2039564: 96 10 00 1c mov %i4, %o3 <== NOT EXECUTED
rtems_rfs_block_get_pos (fs, bpos) + offset,
bpos);
bpos->block = 0;
2039568: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
rtems_rfs_block_pos bpos;
rtems_rfs_block_copy_bpos (&bpos, &map->bpos);
rtems_rfs_block_add_pos (fs, offset, &bpos);
return rtems_rfs_block_map_find (fs, map, &bpos, block);
203956c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2039570: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039574: 7f ff ff 83 call 2039380 <rtems_rfs_block_map_find> <== NOT EXECUTED
2039578: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
}
203957c: 81 c7 e0 08 ret <== NOT EXECUTED
2039580: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203965c <rtems_rfs_block_map_shrink>:
int
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,
rtems_rfs_block_map* map,
size_t blocks)
{
203965c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))
printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
blocks, map->size.count);
if (map->size.count == 0)
2039660: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2039664: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039668: 02 80 00 c1 be 203996c <rtems_rfs_block_map_shrink+0x310> <== NOT EXECUTED
203966c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
2039670: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
2039674: 38 80 00 02 bgu,a 203967c <rtems_rfs_block_map_shrink+0x20><== NOT EXECUTED
2039678: b4 10 00 01 mov %g1, %i2 <== NOT EXECUTED
{
/*
* Request the indirect block and then obtain the block number from the
* indirect block.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
203967c: a4 06 60 38 add %i1, 0x38, %l2 <== NOT EXECUTED
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
2039680: a6 06 60 44 add %i1, 0x44, %l3 <== NOT EXECUTED
if (rc > 0)
return rc;
map->size.count--;
map->size.offset = 0;
map->last_data_block = block_to_free;
map->dirty = true;
2039684: 10 80 00 95 b 20398d8 <rtems_rfs_block_map_shrink+0x27c> <== NOT EXECUTED
2039688: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
{
rtems_rfs_block_no block;
rtems_rfs_block_no block_to_free;
int rc;
block = map->size.count - 1;
203968c: ae 00 7f ff add %g1, -1, %l7 <== NOT EXECUTED
if (block < RTEMS_RFS_INODE_BLOCKS)
2039690: 80 a5 e0 04 cmp %l7, 4 <== NOT EXECUTED
2039694: 38 80 00 08 bgu,a 20396b4 <rtems_rfs_block_map_shrink+0x58><== NOT EXECUTED
2039698: ea 04 20 30 ld [ %l0 + 0x30 ], %l5 <== NOT EXECUTED
{
/*
* We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
* inode.
*/
block_to_free = map->blocks[block];
203969c: 82 00 60 07 add %g1, 7, %g1 <== NOT EXECUTED
20396a0: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20396a4: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
20396a8: e2 00 60 04 ld [ %g1 + 4 ], %l1 <== NOT EXECUTED
map->blocks[block] = 0;
20396ac: 10 80 00 7e b 20398a4 <rtems_rfs_block_map_shrink+0x248> <== NOT EXECUTED
20396b0: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
* table of block numbers.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = block % fs->blocks_per_block;
20396b4: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
20396b8: 40 00 8c e4 call 205ca48 <.urem> <== NOT EXECUTED
20396bc: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
singly = block / fs->blocks_per_block;
20396c0: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
* table of block numbers.
*/
rtems_rfs_block_no direct;
rtems_rfs_block_no singly;
direct = block % fs->blocks_per_block;
20396c4: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
singly = block / fs->blocks_per_block;
20396c8: 40 00 8c 34 call 205c798 <.udiv> <== NOT EXECUTED
20396cc: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
if (block < fs->block_map_singly_blocks)
20396d0: c2 04 20 34 ld [ %l0 + 0x34 ], %g1 <== NOT EXECUTED
20396d4: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
20396d8: 1a 80 00 27 bcc 2039774 <rtems_rfs_block_map_shrink+0x118><== NOT EXECUTED
20396dc: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
{
/*
* Request the indirect block and then obtain the block number from the
* indirect block.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
20396e0: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
20396e4: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
20396e8: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
20396ec: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
20396f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20396f4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20396f8: 40 00 03 5e call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20396fc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[singly], true);
if (rc > 0)
2039700: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039704: 14 80 00 9b bg 2039970 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2039708: 87 2c 60 02 sll %l1, 2, %g3 <== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
203970c: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
2039710: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
2039714: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
map->blocks[singly], true);
if (rc > 0)
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2039718: 84 00 40 03 add %g1, %g3, %g2 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
203971c: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
map->blocks[singly], true);
if (rc > 0)
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2039720: fa 08 a0 03 ldub [ %g2 + 3 ], %i5 <== NOT EXECUTED
2039724: a2 00 e0 02 add %g3, 2, %l1 <== NOT EXECUTED
2039728: ee 08 40 03 ldub [ %g1 + %g3 ], %l7 <== NOT EXECUTED
203972c: ec 08 a0 01 ldub [ %g2 + 1 ], %l6 <== NOT EXECUTED
2039730: ea 08 40 11 ldub [ %g1 + %l1 ], %l5 <== NOT EXECUTED
direct);
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
2039734: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039738: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203973c: 7f ff ff 92 call 2039584 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
2039740: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
singly, direct);
if (rc)
2039744: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039748: 12 80 00 8a bne 2039970 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
203974c: a2 0f 60 ff and %i5, 0xff, %l1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
map->blocks[singly], true);
if (rc > 0)
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2039750: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
2039754: ac 0d a0 ff and %l6, 0xff, %l6 <== NOT EXECUTED
2039758: a2 14 40 17 or %l1, %l7, %l1 <== NOT EXECUTED
203975c: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
2039760: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
2039764: ab 2d 60 08 sll %l5, 8, %l5 <== NOT EXECUTED
2039768: a2 14 40 16 or %l1, %l6, %l1 <== NOT EXECUTED
203976c: 10 80 00 4e b 20398a4 <rtems_rfs_block_map_shrink+0x248> <== NOT EXECUTED
2039770: a2 14 40 15 or %l1, %l5, %l1 <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
singly, direct);
if (rc)
return rc;
}
else if (block < fs->block_map_doubly_blocks)
2039774: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
2039778: 80 a5 c0 01 cmp %l7, %g1 <== NOT EXECUTED
203977c: 3a 80 00 5a bcc,a 20398e4 <rtems_rfs_block_map_shrink+0x288><== NOT EXECUTED
2039780: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
* value is still valid for doubly indirect tables.
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
2039784: 40 00 8c 05 call 205c798 <.udiv> <== NOT EXECUTED
2039788: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
203978c: 82 02 20 08 add %o0, 8, %g1 <== NOT EXECUTED
2039790: 83 28 60 02 sll %g1, 2, %g1 <== NOT EXECUTED
2039794: 82 06 40 01 add %i1, %g1, %g1 <== NOT EXECUTED
2039798: d4 00 60 04 ld [ %g1 + 4 ], %o2 <== NOT EXECUTED
* value is still valid for doubly indirect tables.
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
203979c: ae 10 00 08 mov %o0, %l7 <== NOT EXECUTED
doubly_singly = singly % fs->blocks_per_block;
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
20397a0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20397a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20397a8: 40 00 03 32 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20397ac: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
map->blocks[doubly], true);
if (rc > 0)
20397b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20397b4: 14 80 00 6f bg 2039970 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
20397b8: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
doubly_singly = singly % fs->blocks_per_block;
20397bc: 40 00 8c a3 call 205ca48 <.urem> <== NOT EXECUTED
20397c0: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
map->blocks[doubly], true);
if (rc > 0)
return rc;
singly = rtems_rfs_block_get_number (&map->doubly_buffer,
20397c4: c2 06 60 4c ld [ %i1 + 0x4c ], %g1 <== NOT EXECUTED
20397c8: 85 2a 20 02 sll %o0, 2, %g2 <== NOT EXECUTED
20397cc: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
20397d0: 86 00 a0 02 add %g2, 2, %g3 <== NOT EXECUTED
20397d4: ec 08 40 02 ldub [ %g1 + %g2 ], %l6 <== NOT EXECUTED
20397d8: c6 08 40 03 ldub [ %g1 + %g3 ], %g3 <== NOT EXECUTED
20397dc: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20397e0: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
20397e4: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
20397e8: ad 2d a0 18 sll %l6, 0x18, %l6 <== NOT EXECUTED
20397ec: ac 10 40 16 or %g1, %l6, %l6 <== NOT EXECUTED
20397f0: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
20397f4: ac 15 80 01 or %l6, %g1, %l6 <== NOT EXECUTED
20397f8: 83 28 e0 08 sll %g3, 8, %g1 <== NOT EXECUTED
*/
rtems_rfs_block_no doubly;
rtems_rfs_block_no doubly_singly;
doubly = singly / fs->blocks_per_block;
doubly_singly = singly % fs->blocks_per_block;
20397fc: aa 10 00 08 mov %o0, %l5 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
map->blocks[doubly], true);
if (rc > 0)
return rc;
singly = rtems_rfs_block_get_number (&map->doubly_buffer,
2039800: ac 15 80 01 or %l6, %g1, %l6 <== NOT EXECUTED
doubly_singly);
/*
* Read the singly indirect table and get the block number.
*/
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
2039804: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039808: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203980c: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
2039810: 40 00 03 18 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
2039814: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
singly, true);
if (rc > 0)
2039818: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203981c: 14 80 00 55 bg 2039970 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
2039820: 85 2c 60 02 sll %l1, 2, %g2 <== NOT EXECUTED
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2039824: c2 06 60 40 ld [ %i1 + 0x40 ], %g1 <== NOT EXECUTED
2039828: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203982c: 86 00 a0 02 add %g2, 2, %g3 <== NOT EXECUTED
2039830: c8 08 40 02 ldub [ %g1 + %g2 ], %g4 <== NOT EXECUTED
2039834: c6 08 40 03 ldub [ %g1 + %g3 ], %g3 <== NOT EXECUTED
2039838: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
203983c: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
2039840: c2 08 60 03 ldub [ %g1 + 3 ], %g1 <== NOT EXECUTED
direct);
if (direct == 0)
2039844: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
singly, true);
if (rc > 0)
return rc;
block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
2039848: a3 29 20 18 sll %g4, 0x18, %l1 <== NOT EXECUTED
203984c: a2 10 40 11 or %g1, %l1, %l1 <== NOT EXECUTED
2039850: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
2039854: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
2039858: 83 28 e0 08 sll %g3, 8, %g1 <== NOT EXECUTED
direct);
if (direct == 0)
203985c: 12 80 00 12 bne 20398a4 <rtems_rfs_block_map_shrink+0x248><== NOT EXECUTED
2039860: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
{
rc = rtems_rfs_group_bitmap_free (fs, false, singly);
2039864: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2039868: 92 10 20 00 clr %o1 <== NOT EXECUTED
203986c: 40 00 0e cc call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
2039870: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
if (rc > 0)
2039874: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2039878: 14 80 00 3e bg 2039970 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
203987c: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
return rc;
map->last_map_block = singly;
2039880: ec 26 60 1c st %l6, [ %i1 + 0x1c ] <== NOT EXECUTED
rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
2039884: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
2039888: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203988c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2039890: 7f ff ff 3d call 2039584 <rtems_rfs_block_map_indirect_shrink><== NOT EXECUTED
2039894: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
doubly, doubly_singly);
if (rc)
2039898: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203989c: 12 80 00 35 bne 2039970 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
20398a0: 01 00 00 00 nop <== NOT EXECUTED
{
rc = EIO;
break;
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
20398a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20398a8: 92 10 20 00 clr %o1 <== NOT EXECUTED
20398ac: 40 00 0e bc call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
20398b0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
20398b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20398b8: 14 80 00 2e bg 2039970 <rtems_rfs_block_map_shrink+0x314> <== NOT EXECUTED
20398bc: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
return rc;
map->size.count--;
20398c0: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
map->size.offset = 0;
map->last_data_block = block_to_free;
20398c4: e2 26 60 20 st %l1, [ %i1 + 0x20 ] <== NOT EXECUTED
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
if (rc > 0)
return rc;
map->size.count--;
20398c8: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
map->size.offset = 0;
20398cc: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
}
}
rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);
if (rc > 0)
return rc;
map->size.count--;
20398d0: c2 26 60 08 st %g1, [ %i1 + 8 ] <== NOT EXECUTED
map->size.offset = 0;
map->last_data_block = block_to_free;
map->dirty = true;
20398d4: e8 2e 40 00 stb %l4, [ %i1 ] <== NOT EXECUTED
return 0;
if (blocks > map->size.count)
blocks = map->size.count;
while (blocks)
20398d8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20398dc: 12 bf ff 6c bne 203968c <rtems_rfs_block_map_shrink+0x30> <== NOT EXECUTED
20398e0: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
map->last_data_block = block_to_free;
map->dirty = true;
blocks--;
}
if (map->size.count == 0)
20398e4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20398e8: 32 80 00 05 bne,a 20398fc <rtems_rfs_block_map_shrink+0x2a0><== NOT EXECUTED
20398ec: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
{
map->last_map_block = 0;
20398f0: c0 26 60 1c clr [ %i1 + 0x1c ] <== NOT EXECUTED
map->last_data_block = 0;
20398f4: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
}
/*
* Keep the position inside the map.
*/
if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))
20398f8: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
20398fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2039900: 02 80 00 06 be 2039918 <rtems_rfs_block_map_shrink+0x2bc> <== NOT EXECUTED
2039904: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2039908: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203990c: 22 80 00 10 be,a 203994c <rtems_rfs_block_map_shrink+0x2f0><== NOT EXECUTED
2039910: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED
2039914: c4 06 60 08 ld [ %i1 + 8 ], %g2 <== NOT EXECUTED
2039918: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203991c: 3a 80 00 0c bcc,a 203994c <rtems_rfs_block_map_shrink+0x2f0><== NOT EXECUTED
2039920: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED
2039924: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
2039928: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203992c: 12 80 00 11 bne 2039970 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
2039930: 90 10 20 00 clr %o0 <== NOT EXECUTED
2039934: c4 06 60 14 ld [ %i1 + 0x14 ], %g2 <== NOT EXECUTED
2039938: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203993c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2039940: 08 80 00 0c bleu 2039970 <rtems_rfs_block_map_shrink+0x314><== NOT EXECUTED
2039944: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);
2039948: c4 06 60 0c ld [ %i1 + 0xc ], %g2 <== NOT EXECUTED
203994c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
2039950: c4 26 60 14 st %g2, [ %i1 + 0x14 ] <== NOT EXECUTED
2039954: c2 26 60 10 st %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
2039958: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203995c: 02 80 00 04 be 203996c <rtems_rfs_block_map_shrink+0x310> <== NOT EXECUTED
2039960: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
2039964: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2039968: c2 26 60 10 st %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
203996c: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
2039970: 81 c7 e0 08 ret <== NOT EXECUTED
2039974: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
02043a70 <rtems_rfs_buffer_bdbuf_release>:
}
int
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,
bool modified)
{
2043a70: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))
printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
((intptr_t) buffer->user),
buffer->block, modified ? "(modified)" : "");
if (modified)
2043a74: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
2043a78: 02 80 00 06 be 2043a90 <rtems_rfs_buffer_bdbuf_release+0x20><== NOT EXECUTED
2043a7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
sc = rtems_bdbuf_release_modified (buffer);
2043a80: 7f ff 03 cd call 20049b4 <rtems_bdbuf_release_modified> <== NOT EXECUTED
2043a84: 01 00 00 00 nop <== NOT EXECUTED
else
sc = rtems_bdbuf_release (buffer);
if (sc != RTEMS_SUCCESSFUL)
2043a88: 10 80 00 05 b 2043a9c <rtems_rfs_buffer_bdbuf_release+0x2c><== NOT EXECUTED
2043a8c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
buffer->block, modified ? "(modified)" : "");
if (modified)
sc = rtems_bdbuf_release_modified (buffer);
else
sc = rtems_bdbuf_release (buffer);
2043a90: 7f ff 03 ef call 2004a4c <rtems_bdbuf_release> <== NOT EXECUTED
2043a94: 01 00 00 00 nop <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2043a98: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2043a9c: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2043aa0: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
2043aa4: 81 c7 e0 08 ret <== NOT EXECUTED
2043aa8: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
02043aac <rtems_rfs_buffer_bdbuf_request>:
int
rtems_rfs_buffer_bdbuf_request (rtems_rfs_file_system* fs,
rtems_rfs_buffer_block block,
bool read,
rtems_rfs_buffer** buffer)
{
2043aac: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
2043ab0: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
int
rtems_rfs_buffer_bdbuf_request (rtems_rfs_file_system* fs,
rtems_rfs_buffer_block block,
bool read,
rtems_rfs_buffer** buffer)
{
2043ab4: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2043ab8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
rtems_status_code sc;
int rc = 0;
if (read)
2043abc: 02 80 00 06 be 2043ad4 <rtems_rfs_buffer_bdbuf_request+0x28><== NOT EXECUTED
2043ac0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
2043ac4: 7f ff 08 7a call 2005cac <rtems_bdbuf_read> <== NOT EXECUTED
2043ac8: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
else
sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);
if (sc != RTEMS_SUCCESSFUL)
2043acc: 10 80 00 05 b 2043ae0 <rtems_rfs_buffer_bdbuf_request+0x34><== NOT EXECUTED
2043ad0: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
int rc = 0;
if (read)
sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);
else
sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);
2043ad4: 7f ff 08 43 call 2005be0 <rtems_bdbuf_get> <== NOT EXECUTED
2043ad8: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
2043adc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2043ae0: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
2043ae4: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
#endif
rc = EIO;
}
return rc;
}
2043ae8: 81 c7 e0 08 ret <== NOT EXECUTED
2043aec: 91 ee 20 05 restore %i0, 5, %o0 <== NOT EXECUTED
0203a2c0 <rtems_rfs_buffer_close>:
return 0;
}
int
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)
{
203a2c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* Change the block size to the media device size. It will release and sync
* all buffers.
*/
rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_media_block_size (fs));
203a2c4: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203a2c8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203a2cc: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203a2d0: 7f ff ff e8 call 203a270 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
203a2d4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203a2d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))
printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
rc, strerror (rc));
#if RTEMS_RFS_USE_LIBBLOCK
rtems_disk_release (fs->disk);
203a2dc: 7f ff 33 06 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
203a2e0: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED
rc, strerror (rc));
}
#endif
return rc;
}
203a2e4: 81 c7 e0 08 ret <== NOT EXECUTED
203a2e8: 81 e8 00 00 restore <== NOT EXECUTED
0203a688 <rtems_rfs_buffer_handle_close>:
* @return int The error number (errno). No error if 0.
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
203a688: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_buffer_handle_release (fs, handle);
203a68c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203a690: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203a694: 7f ff ff 2d call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203a698: b0 10 20 00 clr %i0 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203a69c: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
handle->dirty = false;
203a6a0: c0 2e 40 00 clrb [ %i1 ] <== NOT EXECUTED
handle->bnum = 0;
203a6a4: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
handle->buffer = NULL;
return 0;
}
203a6a8: 81 c7 e0 08 ret <== NOT EXECUTED
203a6ac: 81 e8 00 00 restore <== NOT EXECUTED
0203a348 <rtems_rfs_buffer_handle_release>:
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
203a348: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
203a34c: d0 06 60 08 ld [ %i1 + 8 ], %o0 <== NOT EXECUTED
}
int
rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
203a350: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (handle))
203a354: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a358: 02 80 00 44 be 203a468 <rtems_rfs_buffer_handle_release+0x120><== NOT EXECUTED
203a35c: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_rfs_buffer_bnum (handle),
rtems_rfs_buffer_dirty (handle) ? "(dirty)" : "",
rtems_rfs_buffer_refs (handle),
rtems_rfs_buffer_refs (handle) == 0 ? "BAD REF COUNT" : "");
if (rtems_rfs_buffer_refs (handle) > 0)
203a360: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED
203a364: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a368: 04 80 00 03 ble 203a374 <rtems_rfs_buffer_handle_release+0x2c><== NOT EXECUTED
203a36c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
203a370: c2 22 20 38 st %g1, [ %o0 + 0x38 ] <== NOT EXECUTED
if (rtems_rfs_buffer_refs (handle) == 0)
203a374: c2 02 20 38 ld [ %o0 + 0x38 ], %g1 <== NOT EXECUTED
203a378: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a37c: 12 80 00 3a bne 203a464 <rtems_rfs_buffer_handle_release+0x11c><== NOT EXECUTED
203a380: b0 10 20 00 clr %i0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
203a384: 7f ff 4d 0d call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
203a388: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
203a38c: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
203a390: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_refs_down (handle);
if (rtems_rfs_buffer_refs (handle) == 0)
{
rtems_chain_extract (rtems_rfs_buffer_link (handle));
fs->buffers_count--;
203a394: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
if (rtems_rfs_fs_no_local_cache (fs))
203a398: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203a39c: 02 80 00 08 be 203a3bc <rtems_rfs_buffer_handle_release+0x74><== NOT EXECUTED
203a3a0: c4 24 20 4c st %g2, [ %l0 + 0x4c ] <== NOT EXECUTED
{
handle->buffer->user = (void*) 0;
203a3a4: d0 06 60 08 ld [ %i1 + 8 ], %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (handle->buffer,
203a3a8: d2 0e 40 00 ldub [ %i1 ], %o1 <== NOT EXECUTED
203a3ac: 40 00 25 b1 call 2043a70 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
203a3b0: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
203a3b4: 10 80 00 2c b 203a464 <rtems_rfs_buffer_handle_release+0x11c><== NOT EXECUTED
203a3b8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
* head.
*
* This code stops a large series of transactions causing all the
* buffers in the cache being held in queues of this file system.
*/
if ((fs->release_count +
203a3bc: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
203a3c0: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
203a3c4: c6 04 20 3c ld [ %l0 + 0x3c ], %g3 <== NOT EXECUTED
* head.
*
* This code stops a large series of transactions causing all the
* buffers in the cache being held in queues of this file system.
*/
if ((fs->release_count +
203a3c8: 88 00 40 02 add %g1, %g2, %g4 <== NOT EXECUTED
fs->release_modified_count) >= fs->max_held_buffers)
203a3cc: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
203a3d0: 0a 80 00 16 bcs 203a428 <rtems_rfs_buffer_handle_release+0xe0><== NOT EXECUTED
203a3d4: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
printf ("rtems-rfs: buffer-release: local cache overflow:"
" %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
if (fs->release_count > fs->release_modified_count)
203a3d8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203a3dc: 08 80 00 09 bleu 203a400 <rtems_rfs_buffer_handle_release+0xb8><== NOT EXECUTED
203a3e0: 01 00 00 00 nop <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
203a3e4: 7f ff 4c ff call 200d7e0 <_Chain_Get> <== NOT EXECUTED
203a3e8: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
fs->release_count--;
203a3ec: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
203a3f0: 92 10 20 00 clr %o1 <== NOT EXECUTED
203a3f4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203a3f8: 10 80 00 08 b 203a418 <rtems_rfs_buffer_handle_release+0xd0><== NOT EXECUTED
203a3fc: c2 24 20 5c st %g1, [ %l0 + 0x5c ] <== NOT EXECUTED
203a400: 7f ff 4c f8 call 200d7e0 <_Chain_Get> <== NOT EXECUTED
203a404: 90 04 20 60 add %l0, 0x60, %o0 <== NOT EXECUTED
}
else
{
buffer =
(rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
fs->release_modified_count--;
203a408: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED
203a40c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203a410: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203a414: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED
modified = true;
}
buffer->user = (void*) 0;
203a418: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
203a41c: 40 00 25 95 call 2043a70 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
203a420: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED
203a424: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
if (rtems_rfs_buffer_dirty (handle))
203a428: c2 0e 40 00 ldub [ %i1 ], %g1 <== NOT EXECUTED
203a42c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a430: 02 80 00 08 be 203a450 <rtems_rfs_buffer_handle_release+0x108><== NOT EXECUTED
203a434: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== 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 );
203a438: 7f ff 4c d4 call 200d788 <_Chain_Append> <== NOT EXECUTED
203a43c: 90 04 20 60 add %l0, 0x60, %o0 <== NOT EXECUTED
{
rtems_chain_append (&fs->release_modified,
rtems_rfs_buffer_link (handle));
fs->release_modified_count++;
203a440: c2 04 20 6c ld [ %l0 + 0x6c ], %g1 <== NOT EXECUTED
203a444: 82 00 60 01 inc %g1 <== NOT EXECUTED
203a448: 10 80 00 07 b 203a464 <rtems_rfs_buffer_handle_release+0x11c><== NOT EXECUTED
203a44c: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED
203a450: 7f ff 4c ce call 200d788 <_Chain_Append> <== NOT EXECUTED
203a454: 90 04 20 50 add %l0, 0x50, %o0 <== NOT EXECUTED
}
else
{
rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
fs->release_count++;
203a458: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
203a45c: 82 00 60 01 inc %g1 <== NOT EXECUTED
203a460: c2 24 20 5c st %g1, [ %l0 + 0x5c ] <== NOT EXECUTED
}
}
}
handle->buffer = NULL;
203a464: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
}
return rc;
}
203a468: 81 c7 e0 08 ret <== NOT EXECUTED
203a46c: 81 e8 00 00 restore <== NOT EXECUTED
0203a470 <rtems_rfs_buffer_handle_request>:
int
rtems_rfs_buffer_handle_request (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle,
rtems_rfs_buffer_block block,
bool read)
{
203a470: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* If the handle has a buffer release it. This allows a handle to be reused
* without needing to close then open it again.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
203a474: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203a478: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a47c: 02 80 00 11 be 203a4c0 <rtems_rfs_buffer_handle_request+0x50><== NOT EXECUTED
203a480: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
/*
* Treat block 0 as special to handle the loading of the super block.
*/
if (block && (rtems_rfs_buffer_bnum (handle) == block))
203a484: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203a488: 02 80 00 07 be 203a4a4 <rtems_rfs_buffer_handle_request+0x34><== NOT EXECUTED
203a48c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a490: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
203a494: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203a498: 02 80 00 7a be 203a680 <rtems_rfs_buffer_handle_request+0x210><== NOT EXECUTED
203a49c: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))
printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
rtems_rfs_buffer_bnum (handle));
rc = rtems_rfs_buffer_handle_release (fs, handle);
203a4a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a4a4: 7f ff ff a9 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203a4a8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rc > 0)
203a4ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a4b0: 14 80 00 74 bg 203a680 <rtems_rfs_buffer_handle_request+0x210><== NOT EXECUTED
203a4b4: 01 00 00 00 nop <== NOT EXECUTED
return rc;
handle->dirty = false;
203a4b8: c0 2e 40 00 clrb [ %i1 ] <== NOT EXECUTED
handle->bnum = 0;
203a4bc: c0 26 60 04 clr [ %i1 + 4 ] <== NOT EXECUTED
* currently attached to a handle. If it is share the access. A buffer could
* be shared where different parts of the block have separate functions. An
* example is an inode block and the file system needs to handle 2 inodes in
* the same block at the same time.
*/
if (fs->buffers_count)
203a4c0: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
203a4c4: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a4c8: 22 80 00 16 be,a 203a520 <rtems_rfs_buffer_handle_request+0xb0><== NOT EXECUTED
203a4cc: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
203a4d0: 86 04 20 40 add %l0, 0x40, %g3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
203a4d4: 10 80 00 0d b 203a508 <rtems_rfs_buffer_handle_request+0x98><== NOT EXECUTED
203a4d8: c2 04 20 48 ld [ %l0 + 0x48 ], %g1 <== NOT EXECUTED
buffer = (rtems_rfs_buffer*) node;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
203a4dc: 80 a1 00 1a cmp %g4, %i2 <== NOT EXECUTED
203a4e0: 12 80 00 09 bne 203a504 <rtems_rfs_buffer_handle_request+0x94><== NOT EXECUTED
203a4e4: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
203a4e8: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
203a4ec: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203a4f0: 7f ff 4c b2 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
203a4f4: c4 24 20 4c st %g2, [ %l0 + 0x4c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203a4f8: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
203a4fc: 10 80 00 07 b 203a518 <rtems_rfs_buffer_handle_request+0xa8><== NOT EXECUTED
203a500: c0 24 40 00 clr [ %l1 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
203a504: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
node = rtems_chain_last (chain);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
while (!rtems_chain_is_head (chain, node))
203a508: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203a50c: 32 bf ff f4 bne,a 203a4dc <rtems_rfs_buffer_handle_request+0x6c><== NOT EXECUTED
203a510: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED
203a514: a2 10 20 00 clr %l1 <== NOT EXECUTED
if (fs->buffers_count)
{
/*
* Check the active buffer list for shared buffers.
*/
handle->buffer = rtems_rfs_scan_chain (&fs->buffers,
203a518: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
/*
* If the buffer has not been found check the local cache of released
* buffers. There are release and released modified lists to preserve the
* state.
*/
if (!rtems_rfs_fs_no_local_cache (fs) &&
203a51c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203a520: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203a524: 12 80 00 3c bne 203a614 <rtems_rfs_buffer_handle_request+0x1a4><== NOT EXECUTED
203a528: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
!rtems_rfs_buffer_handle_has_block (handle))
203a52c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a530: 12 80 00 47 bne 203a64c <rtems_rfs_buffer_handle_request+0x1dc><== NOT EXECUTED
203a534: 01 00 00 00 nop <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
203a538: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
203a53c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a540: 02 80 00 17 be 203a59c <rtems_rfs_buffer_handle_request+0x12c><== NOT EXECUTED
203a544: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
handle->buffer = rtems_rfs_scan_chain (&fs->release,
203a548: 86 04 20 50 add %l0, 0x50, %g3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
203a54c: 10 80 00 0d b 203a580 <rtems_rfs_buffer_handle_request+0x110><== NOT EXECUTED
203a550: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED
buffer = (rtems_rfs_buffer*) node;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
203a554: 80 a1 00 1a cmp %g4, %i2 <== NOT EXECUTED
203a558: 12 80 00 09 bne 203a57c <rtems_rfs_buffer_handle_request+0x10c><== NOT EXECUTED
203a55c: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
203a560: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203a564: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203a568: 7f ff 4c 94 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
203a56c: c4 24 20 5c st %g2, [ %l0 + 0x5c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203a570: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
203a574: 10 80 00 07 b 203a590 <rtems_rfs_buffer_handle_request+0x120><== NOT EXECUTED
203a578: c0 24 40 00 clr [ %l1 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
203a57c: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
node = rtems_chain_last (chain);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
while (!rtems_chain_is_head (chain, node))
203a580: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203a584: 32 bf ff f4 bne,a 203a554 <rtems_rfs_buffer_handle_request+0xe4><== NOT EXECUTED
203a588: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED
203a58c: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
/*
* Check the local cache of released buffers.
*/
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
203a590: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
203a594: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203a598: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a59c: 32 80 00 1e bne,a 203a614 <rtems_rfs_buffer_handle_request+0x1a4><== NOT EXECUTED
203a5a0: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
fs->release_modified_count)
203a5a4: c4 04 20 6c ld [ %l0 + 0x6c ], %g2 <== NOT EXECUTED
if (fs->release_count)
handle->buffer = rtems_rfs_scan_chain (&fs->release,
&fs->release_count,
block);
if (!rtems_rfs_buffer_handle_has_block (handle) &&
203a5a8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a5ac: 22 80 00 1a be,a 203a614 <rtems_rfs_buffer_handle_request+0x1a4><== NOT EXECUTED
203a5b0: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
fs->release_modified_count)
{
handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,
203a5b4: 86 04 20 60 add %l0, 0x60, %g3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return the_chain->last;
203a5b8: 10 80 00 0d b 203a5ec <rtems_rfs_buffer_handle_request+0x17c><== NOT EXECUTED
203a5bc: c2 04 20 68 ld [ %l0 + 0x68 ], %g1 <== NOT EXECUTED
buffer = (rtems_rfs_buffer*) node;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
203a5c0: 80 a1 00 1a cmp %g4, %i2 <== NOT EXECUTED
203a5c4: 12 80 00 09 bne 203a5e8 <rtems_rfs_buffer_handle_request+0x178><== NOT EXECUTED
203a5c8: a2 10 00 01 mov %g1, %l1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf (": found block=%" PRIuPTR "\n",
((intptr_t)(buffer->user)));
(*count)--;
203a5cc: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203a5d0: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203a5d4: 7f ff 4c 79 call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
203a5d8: c4 24 20 6c st %g2, [ %l0 + 0x6c ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203a5dc: c0 24 60 04 clr [ %l1 + 4 ] <== NOT EXECUTED
203a5e0: 10 80 00 07 b 203a5fc <rtems_rfs_buffer_handle_request+0x18c><== NOT EXECUTED
203a5e4: c0 24 40 00 clr [ %l1 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Previous(
Chain_Node *the_node
)
{
return the_node->previous;
203a5e8: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
node = rtems_chain_last (chain);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
while (!rtems_chain_is_head (chain, node))
203a5ec: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203a5f0: 32 bf ff f4 bne,a 203a5c0 <rtems_rfs_buffer_handle_request+0x150><== NOT EXECUTED
203a5f4: c8 00 60 3c ld [ %g1 + 0x3c ], %g4 <== NOT EXECUTED
203a5f8: a2 10 20 00 clr %l1 <== NOT EXECUTED
&fs->release_modified_count,
block);
/*
* If we found a buffer retain the dirty buffer state.
*/
if (rtems_rfs_buffer_handle_has_block (handle))
203a5fc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203a600: 02 80 00 04 be 203a610 <rtems_rfs_buffer_handle_request+0x1a0><== NOT EXECUTED
203a604: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (handle);
203a608: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203a60c: c2 2e 40 00 stb %g1, [ %i1 ] <== NOT EXECUTED
}
/*
* If not located we request the buffer from the I/O layer.
*/
if (!rtems_rfs_buffer_handle_has_block (handle))
203a610: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
203a614: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203a618: 32 80 00 0d bne,a 203a64c <rtems_rfs_buffer_handle_request+0x1dc><== NOT EXECUTED
203a61c: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
{
rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
203a620: 94 0e e0 ff and %i3, 0xff, %o2 <== NOT EXECUTED
203a624: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a628: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203a62c: 40 00 25 20 call 2043aac <rtems_rfs_buffer_bdbuf_request> <== NOT EXECUTED
203a630: 96 06 60 08 add %i1, 8, %o3 <== NOT EXECUTED
rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
203a634: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
if (rc > 0)
203a638: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
203a63c: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
203a640: 14 80 00 10 bg 203a680 <rtems_rfs_buffer_handle_request+0x210><== NOT EXECUTED
203a644: c0 20 60 04 clr [ %g1 + 4 ] <== NOT EXECUTED
}
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
203a648: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== 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 );
203a64c: 90 04 20 40 add %l0, 0x40, %o0 <== NOT EXECUTED
203a650: c4 00 60 38 ld [ %g1 + 0x38 ], %g2 <== NOT EXECUTED
203a654: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
203a658: 84 00 a0 01 inc %g2 <== NOT EXECUTED
203a65c: 7f ff 4c 4b call 200d788 <_Chain_Append> <== NOT EXECUTED
203a660: c4 20 60 38 st %g2, [ %g1 + 0x38 ] <== NOT EXECUTED
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
203a664: c4 04 20 4c ld [ %l0 + 0x4c ], %g2 <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
203a668: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
/*
* Increase the reference count of the buffer.
*/
rtems_rfs_buffer_refs_up (handle);
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
203a66c: 84 00 a0 01 inc %g2 <== NOT EXECUTED
203a670: c4 24 20 4c st %g2, [ %l0 + 0x4c ] <== NOT EXECUTED
handle->buffer->user = (void*) ((intptr_t) block);
handle->bnum = block;
203a674: f4 26 60 04 st %i2, [ %i1 + 4 ] <== NOT EXECUTED
*/
rtems_rfs_buffer_refs_up (handle);
rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));
fs->buffers_count++;
handle->buffer->user = (void*) ((intptr_t) block);
203a678: f4 20 60 3c st %i2, [ %g1 + 0x3c ] <== NOT EXECUTED
handle->bnum = block;
203a67c: 90 10 20 00 clr %o0 <== NOT EXECUTED
printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
block, read ? "read" : "get", handle->buffer->block,
handle->buffer->references);
return 0;
}
203a680: 81 c7 e0 08 ret <== NOT EXECUTED
203a684: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203a2ec <rtems_rfs_buffer_open>:
return rc;
}
int
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)
{
203a2ec: 9d e3 bf 58 save %sp, -168, %sp <== NOT EXECUTED
struct stat st;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))
printf ("rtems-rfs: buffer-open: opening: %s\n", name);
if (stat (name, &st) < 0)
203a2f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203a2f4: 92 07 bf b8 add %fp, -72, %o1 <== NOT EXECUTED
203a2f8: 7f ff 3e 1b call 2009b64 <stat> <== NOT EXECUTED
203a2fc: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203a300: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a304: 06 80 00 0f bl 203a340 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
203a308: c4 07 bf c4 ld [ %fp + -60 ], %g2 <== NOT EXECUTED
#if RTEMS_RFS_USE_LIBBLOCK
/*
* Is the device a block device ?
*/
if (!S_ISBLK (st.st_mode))
203a30c: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203a310: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203a314: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
203a318: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203a31c: 12 80 00 09 bne 203a340 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
203a320: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
}
/*
* Check that device is registred as a block device and lock it.
*/
fs->disk = rtems_disk_obtain (st.st_rdev);
203a324: d0 1f bf d0 ldd [ %fp + -48 ], %o0 <== NOT EXECUTED
203a328: 7f ff 33 05 call 2006f3c <rtems_disk_obtain> <== NOT EXECUTED
203a32c: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (!fs->disk)
203a330: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a334: 12 80 00 03 bne 203a340 <rtems_rfs_buffer_open+0x54> <== NOT EXECUTED
203a338: d0 26 60 0c st %o0, [ %i1 + 0xc ] <== NOT EXECUTED
203a33c: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
rtems_rfs_fs_media_blocks (fs),
rtems_rfs_fs_media_block_size (fs));
return 0;
}
203a340: 81 c7 e0 08 ret <== NOT EXECUTED
203a344: 81 e8 00 00 restore <== NOT EXECUTED
0203a270 <rtems_rfs_buffer_setblksize>:
int
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
{
203a270: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203a274: f2 27 a0 48 st %i1, [ %fp + 0x48 ] <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size);
rc = rtems_rfs_buffers_release (fs);
203a278: 7f ff ff df call 203a1f4 <rtems_rfs_buffers_release> <== NOT EXECUTED
203a27c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
rc, strerror (rc));
rc = rtems_rfs_buffer_sync (fs);
203a280: 7f ff ff f0 call 203a240 <rtems_rfs_buffer_sync> <== NOT EXECUTED
203a284: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
printf ("rtems-rfs: buffer-setblksize: device sync failed: %d: %s\n",
rc, strerror (rc));
#if RTEMS_RFS_USE_LIBBLOCK
rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);
203a288: d0 06 20 0c ld [ %i0 + 0xc ], %o0 <== NOT EXECUTED
203a28c: 13 20 01 10 sethi %hi(0x80044000), %o1 <== NOT EXECUTED
203a290: c2 02 20 28 ld [ %o0 + 0x28 ], %g1 <== NOT EXECUTED
203a294: 92 12 62 04 or %o1, 0x204, %o1 <== NOT EXECUTED
203a298: 9f c0 40 00 call %g1 <== NOT EXECUTED
203a29c: 94 07 a0 48 add %fp, 0x48, %o2 <== NOT EXECUTED
if (rc < 0)
203a2a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a2a4: 16 80 00 05 bge 203a2b8 <rtems_rfs_buffer_setblksize+0x48><== NOT EXECUTED
203a2a8: 01 00 00 00 nop <== NOT EXECUTED
rc = errno;
203a2ac: 40 00 27 fa call 2044294 <__errno> <== NOT EXECUTED
203a2b0: 01 00 00 00 nop <== NOT EXECUTED
203a2b4: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
#endif
return rc;
}
203a2b8: 81 c7 e0 08 ret <== NOT EXECUTED
203a2bc: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203a240 <rtems_rfs_buffer_sync>:
return rc;
}
int
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
{
203a240: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* @todo Split in the separate files for each type.
*/
#if RTEMS_RFS_USE_LIBBLOCK
sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));
203a244: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203a248: 7f ff 27 30 call 2003f08 <rtems_bdbuf_syncdev> <== NOT EXECUTED
203a24c: d0 18 40 00 ldd [ %g1 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
203a250: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))
printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",
rtems_status_text (sc));
result = EIO;
}
rtems_disk_release (fs->disk);
203a254: d0 06 20 0c ld [ %i0 + 0xc ], %o0 <== NOT EXECUTED
/*
* @todo Split in the separate files for each type.
*/
#if RTEMS_RFS_USE_LIBBLOCK
sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));
if (sc != RTEMS_SUCCESSFUL)
203a258: b0 40 3f ff addx %g0, -1, %i0 <== NOT EXECUTED
203a25c: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))
printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",
rtems_status_text (sc));
result = EIO;
}
rtems_disk_release (fs->disk);
203a260: 7f ff 33 25 call 2006ef4 <rtems_disk_release> <== NOT EXECUTED
203a264: b0 06 20 05 add %i0, 5, %i0 <== NOT EXECUTED
printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",
result, strerror (result));
}
#endif
return result;
}
203a268: 81 c7 e0 08 ret <== NOT EXECUTED
203a26c: 81 e8 00 00 restore <== NOT EXECUTED
0203a1f4 <rtems_rfs_buffers_release>:
int
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)
{
203a1f4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))
printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "
"release:%" PRIu32 " release-modified:%" PRIu32 "\n",
fs->buffers_count, fs->release_count, fs->release_modified_count);
rc = rtems_rfs_release_chain (&fs->release,
203a1f8: 94 10 20 00 clr %o2 <== NOT EXECUTED
203a1fc: 92 06 20 5c add %i0, 0x5c, %o1 <== NOT EXECUTED
203a200: 7f ff ff e3 call 203a18c <rtems_rfs_release_chain> <== NOT EXECUTED
203a204: 90 06 20 50 add %i0, 0x50, %o0 <== NOT EXECUTED
203a208: 82 38 00 08 xnor %g0, %o0, %g1 <== NOT EXECUTED
203a20c: 83 38 60 1f sra %g1, 0x1f, %g1 <== NOT EXECUTED
&fs->release_count,
false);
if ((rc > 0) && (rrc == 0))
rrc = rc;
rc = rtems_rfs_release_chain (&fs->release_modified,
203a210: 92 06 20 6c add %i0, 0x6c, %o1 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))
printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "
"release:%" PRIu32 " release-modified:%" PRIu32 "\n",
fs->buffers_count, fs->release_count, fs->release_modified_count);
rc = rtems_rfs_release_chain (&fs->release,
203a214: a0 0a 00 01 and %o0, %g1, %l0 <== NOT EXECUTED
&fs->release_count,
false);
if ((rc > 0) && (rrc == 0))
rrc = rc;
rc = rtems_rfs_release_chain (&fs->release_modified,
203a218: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203a21c: 7f ff ff dc call 203a18c <rtems_rfs_release_chain> <== NOT EXECUTED
203a220: 90 06 20 60 add %i0, 0x60, %o0 <== NOT EXECUTED
&fs->release_modified_count,
true);
if ((rc > 0) && (rrc == 0))
203a224: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
203a228: 12 80 00 04 bne 203a238 <rtems_rfs_buffers_release+0x44> <== NOT EXECUTED
203a22c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a230: 34 80 00 02 bg,a 203a238 <rtems_rfs_buffers_release+0x44><== NOT EXECUTED
203a234: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rrc = rc;
return rrc;
}
203a238: 81 c7 e0 08 ret <== NOT EXECUTED
203a23c: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
0203ade8 <rtems_rfs_dir_add_entry>:
rtems_rfs_dir_add_entry (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
const char* name,
size_t length,
rtems_rfs_ino ino)
{
203ade8: 9d e3 bf 28 save %sp, -216, %sp <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (", len=%zd\n", length);
}
rc = rtems_rfs_block_map_open (fs, dir, &map);
203adec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_dir_add_entry (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
const char* name,
size_t length,
rtems_rfs_ino ino)
{
203adf0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (", len=%zd\n", length);
}
rc = rtems_rfs_block_map_open (fs, dir, &map);
203adf4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203adf8: a2 07 bf 94 add %fp, -108, %l1 <== NOT EXECUTED
203adfc: 7f ff fc 81 call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203ae00: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203ae04: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ae08: 14 80 00 76 bg 203afe0 <rtems_rfs_dir_add_entry+0x1f8> <== NOT EXECUTED
203ae0c: 2f 00 00 3f sethi %hi(0xfc00), %l7 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203ae10: c0 2f bf e4 clrb [ %fp + -28 ] <== NOT EXECUTED
handle->bnum = 0;
203ae14: c0 27 bf e8 clr [ %fp + -24 ] <== NOT EXECUTED
handle->buffer = NULL;
203ae18: c0 27 bf ec clr [ %fp + -20 ] <== NOT EXECUTED
* @param bpos A pointer to the block position.
*/
static inline void
rtems_rfs_block_set_bpos_zero (rtems_rfs_block_pos* bpos)
{
bpos->bno = 0;
203ae1c: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
bpos->boff = 0;
203ae20: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
bpos->block = 0;
203ae24: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203ae28: ae 15 e3 ff or %l7, 0x3ff, %l7 <== NOT EXECUTED
/*
* Locate the first block. If an error the block will be 0. If the map is
* empty which happens when creating a directory and adding the first entry
* the seek will return ENXIO. In this case we need to grow the directory.
*/
rc = rtems_rfs_block_map_find (fs, &map, &bpos, &block);
203ae2c: ac 07 bf f0 add %fp, -16, %l6 <== NOT EXECUTED
203ae30: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
read = false;
}
bpos.bno++;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203ae34: aa 07 bf e4 add %fp, -28, %l5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
203ae38: a8 06 e0 0a add %i3, 0xa, %l4 <== NOT EXECUTED
/*
* Locate the first block. If an error the block will be 0. If the map is
* empty which happens when creating a directory and adding the first entry
* the seek will return ENXIO. In this case we need to grow the directory.
*/
rc = rtems_rfs_block_map_find (fs, &map, &bpos, &block);
203ae3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ae40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203ae44: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
203ae48: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203ae4c: 7f ff f9 4d call 2039380 <rtems_rfs_block_map_find> <== NOT EXECUTED
203ae50: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
if (rc > 0)
203ae54: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ae58: 04 80 00 0b ble 203ae84 <rtems_rfs_dir_add_entry+0x9c> <== NOT EXECUTED
203ae5c: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc != ENXIO)
203ae60: 12 80 00 7e bne 203b058 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203ae64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
/*
* We have reached the end of the directory so add a block.
*/
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
203ae68: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203ae6c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203ae70: 7f ff fb 0d call 2039aa4 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203ae74: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
if (rc > 0)
203ae78: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ae7c: 14 80 00 77 bg 203b058 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203ae80: a6 10 20 00 clr %l3 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203ae84: c2 07 bf f0 ld [ %fp + -16 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203ae88: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203ae8c: 82 00 60 01 inc %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203ae90: a6 0c e0 ff and %l3, 0xff, %l3 <== NOT EXECUTED
}
read = false;
}
bpos.bno++;
203ae94: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);
203ae98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ae9c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203aea0: 7f ff fd 74 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203aea4: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
if (rc > 0)
203aea8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203aeac: 14 80 00 6b bg 203b058 <rtems_rfs_dir_add_entry+0x270> <== NOT EXECUTED
203aeb0: c2 07 bf ec ld [ %fp + -20 ], %g1 <== NOT EXECUTED
break;
}
entry = rtems_rfs_buffer_data (&buffer);
if (!read)
203aeb4: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203aeb8: 12 80 00 06 bne 203aed0 <rtems_rfs_dir_add_entry+0xe8> <== NOT EXECUTED
203aebc: e6 00 60 24 ld [ %g1 + 0x24 ], %l3 <== NOT EXECUTED
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
203aec0: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
203aec4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203aec8: 40 00 32 d2 call 2047a10 <memset> <== NOT EXECUTED
203aecc: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203aed0: da 04 20 08 ld [ %l0 + 8 ], %o5 <== NOT EXECUTED
203aed4: 88 10 20 00 clr %g4 <== NOT EXECUTED
203aed8: 10 80 00 5b b 203b044 <rtems_rfs_dir_add_entry+0x25c> <== NOT EXECUTED
203aedc: 94 03 7f f6 add %o5, -10, %o2 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203aee0: c6 0c e0 08 ldub [ %l3 + 8 ], %g3 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203aee4: c4 0c c0 00 ldub [ %l3 ], %g2 <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203aee8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203aeec: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203aef0: c2 0c e0 01 ldub [ %l3 + 1 ], %g1 <== NOT EXECUTED
203aef4: d8 0c e0 02 ldub [ %l3 + 2 ], %o4 <== NOT EXECUTED
203aef8: d6 0c e0 03 ldub [ %l3 + 3 ], %o3 <== NOT EXECUTED
203aefc: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
203af00: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203af04: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203af08: 98 0b 20 ff and %o4, 0xff, %o4 <== NOT EXECUTED
203af0c: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203af10: 80 a0 c0 17 cmp %g3, %l7 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203af14: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
203af18: 99 2b 20 08 sll %o4, 8, %o4 <== NOT EXECUTED
203af1c: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203af20: ba 04 e0 08 add %l3, 8, %i5 <== NOT EXECUTED
203af24: b0 04 e0 09 add %l3, 9, %i0 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203af28: 84 04 e0 01 add %l3, 1, %g2 <== NOT EXECUTED
203af2c: 82 04 e0 02 add %l3, 2, %g1 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203af30: 12 80 00 2e bne 203afe8 <rtems_rfs_dir_add_entry+0x200> <== NOT EXECUTED
203af34: b2 04 e0 03 add %l3, 3, %i1 <== NOT EXECUTED
{
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
203af38: 88 23 40 04 sub %o5, %g4, %g4 <== NOT EXECUTED
203af3c: 80 a5 00 04 cmp %l4, %g4 <== NOT EXECUTED
203af40: 3a bf ff c0 bcc,a 203ae40 <rtems_rfs_dir_add_entry+0x58> <== NOT EXECUTED
203af44: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
(rtems_rfs_fs_block_size (fs) - offset))
{
uint32_t hash;
hash = rtems_rfs_dir_hash (name, length);
203af48: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203af4c: c2 27 bf 8c st %g1, [ %fp + -116 ] <== NOT EXECUTED
203af50: c4 27 bf 88 st %g2, [ %fp + -120 ] <== NOT EXECUTED
203af54: 40 00 22 f3 call 2043b20 <rtems_rfs_dir_hash> <== NOT EXECUTED
203af58: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
203af5c: 87 32 20 18 srl %o0, 0x18, %g3 <== NOT EXECUTED
203af60: c6 2c e0 04 stb %g3, [ %l3 + 4 ] <== NOT EXECUTED
203af64: 87 32 20 10 srl %o0, 0x10, %g3 <== NOT EXECUTED
203af68: d0 2c e0 07 stb %o0, [ %l3 + 7 ] <== NOT EXECUTED
203af6c: c6 2c e0 05 stb %g3, [ %l3 + 5 ] <== NOT EXECUTED
203af70: 91 32 20 08 srl %o0, 8, %o0 <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
203af74: 87 37 20 18 srl %i4, 0x18, %g3 <== NOT EXECUTED
if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <
(rtems_rfs_fs_block_size (fs) - offset))
{
uint32_t hash;
hash = rtems_rfs_dir_hash (name, length);
rtems_rfs_dir_set_entry_hash (entry, hash);
203af78: d0 2c e0 06 stb %o0, [ %l3 + 6 ] <== NOT EXECUTED
rtems_rfs_dir_set_entry_ino (entry, ino);
203af7c: c6 2c c0 00 stb %g3, [ %l3 ] <== NOT EXECUTED
203af80: c4 07 bf 88 ld [ %fp + -120 ], %g2 <== NOT EXECUTED
203af84: 87 37 20 10 srl %i4, 0x10, %g3 <== NOT EXECUTED
203af88: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203af8c: c2 07 bf 8c ld [ %fp + -116 ], %g1 <== NOT EXECUTED
203af90: 85 37 20 08 srl %i4, 8, %g2 <== NOT EXECUTED
203af94: c4 28 40 00 stb %g2, [ %g1 ] <== NOT EXECUTED
203af98: f8 2e 40 00 stb %i4, [ %i1 ] <== NOT EXECUTED
rtems_rfs_dir_set_entry_length (entry,
203af9c: 82 06 e0 0a add %i3, 0xa, %g1 <== NOT EXECUTED
203afa0: 85 30 60 08 srl %g1, 8, %g2 <== NOT EXECUTED
203afa4: c4 2f 40 00 stb %g2, [ %i5 ] <== NOT EXECUTED
203afa8: c2 2e 00 00 stb %g1, [ %i0 ] <== NOT EXECUTED
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
203afac: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203afb0: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203afb4: 40 00 32 04 call 20477c4 <memcpy> <== NOT EXECUTED
203afb8: 90 04 e0 0a add %l3, 0xa, %o0 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&buffer);
203afbc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203afc0: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
rtems_rfs_dir_set_entry_hash (entry, hash);
rtems_rfs_dir_set_entry_ino (entry, ino);
rtems_rfs_dir_set_entry_length (entry,
RTEMS_RFS_DIR_ENTRY_SIZE + length);
memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);
rtems_rfs_buffer_mark_dirty (&buffer);
203afc4: c2 2f bf e4 stb %g1, [ %fp + -28 ] <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203afc8: 7f ff fd b0 call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203afcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203afd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203afd4: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
203afd8: 7f ff fb 99 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203afdc: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
203afe0: 81 c7 e0 08 ret <== NOT EXECUTED
203afe4: 81 e8 00 00 restore <== NOT EXECUTED
}
break;
}
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203afe8: 80 a0 e0 0a cmp %g3, 0xa <== NOT EXECUTED
203afec: 04 80 00 0d ble 203b020 <rtems_rfs_dir_add_entry+0x238> <== NOT EXECUTED
203aff0: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203aff4: 98 92 c0 0c orcc %o3, %o4, %o4 <== NOT EXECUTED
203aff8: 02 80 00 0b be 203b024 <rtems_rfs_dir_add_entry+0x23c> <== NOT EXECUTED
203affc: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
203b000: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
203b004: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
203b008: 1a 80 00 07 bcc 203b024 <rtems_rfs_dir_add_entry+0x23c> <== NOT EXECUTED
203b00c: a6 04 c0 03 add %l3, %g3, %l3 <== NOT EXECUTED
203b010: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
203b014: 80 a3 00 01 cmp %o4, %g1 <== NOT EXECUTED
203b018: 08 80 00 0c bleu 203b048 <rtems_rfs_dir_add_entry+0x260> <== NOT EXECUTED
203b01c: 80 a1 00 0a cmp %g4, %o2 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))
printf ("rtems-rfs: dir-add-entry: "
"bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
rtems_rfs_inode_ino (dir), elength, eino, offset);
rtems_rfs_buffer_handle_close (fs, &buffer);
203b020: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
203b024: 7f ff fd 99 call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b028: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203b02c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b030: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
203b034: 7f ff fb 82 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203b038: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
return EIO;
203b03c: 81 c7 e0 08 ret <== NOT EXECUTED
203b040: 81 e8 00 00 restore <== NOT EXECUTED
if (!read)
memset (entry, 0xff, rtems_rfs_fs_block_size (fs));
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203b044: 80 a1 00 0a cmp %g4, %o2 <== NOT EXECUTED
203b048: 1a bf ff 7e bcc 203ae40 <rtems_rfs_dir_add_entry+0x58> <== NOT EXECUTED
203b04c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203b050: 10 bf ff a4 b 203aee0 <rtems_rfs_dir_add_entry+0xf8> <== NOT EXECUTED
203b054: c2 0c e0 09 ldub [ %l3 + 9 ], %g1 <== NOT EXECUTED
entry += elength;
offset += elength;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203b058: 92 07 bf e4 add %fp, -28, %o1 <== NOT EXECUTED
203b05c: 7f ff fd 8b call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b060: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203b064: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b068: 7f ff fb 75 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203b06c: 92 07 bf 94 add %fp, -108, %o1 <== NOT EXECUTED
return rc;
}
203b070: 81 c7 e0 08 ret <== NOT EXECUTED
203b074: 81 e8 00 00 restore <== NOT EXECUTED
0203ab48 <rtems_rfs_dir_del_entry>:
int
rtems_rfs_dir_del_entry (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
rtems_rfs_ino ino,
uint32_t offset)
{
203ab48: 9d e3 bf 38 save %sp, -200, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
rtems_rfs_inode_ino (dir), ino, offset);
rc = rtems_rfs_block_map_open (fs, dir, &map);
203ab4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
int
rtems_rfs_dir_del_entry (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
rtems_rfs_ino ino,
uint32_t offset)
{
203ab50: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))
printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
rtems_rfs_inode_ino (dir), ino, offset);
rc = rtems_rfs_block_map_open (fs, dir, &map);
203ab54: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203ab58: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203ab5c: 7f ff fd 29 call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203ab60: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203ab64: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ab68: 14 80 00 7f bg 203ad64 <rtems_rfs_dir_del_entry+0x21c> <== NOT EXECUTED
203ab6c: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
203ab70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ab74: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203ab78: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ab7c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203ab80: 7f ff fa 67 call 203951c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203ab84: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203ab88: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ab8c: 04 80 00 06 ble 203aba4 <rtems_rfs_dir_del_entry+0x5c> <== NOT EXECUTED
203ab90: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc == ENXIO)
203ab94: 22 80 00 71 be,a 203ad58 <rtems_rfs_dir_del_entry+0x210> <== NOT EXECUTED
203ab98: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
}
}
rtems_rfs_buffer_mark_dirty (&buffer);
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
203ab9c: 10 80 00 70 b 203ad5c <rtems_rfs_dir_del_entry+0x214> <== NOT EXECUTED
203aba0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
/*
* If we are searching start at the beginning of the block. If not searching
* skip to the offset in the block.
*/
if (search)
203aba4: 80 a0 00 1b cmp %g0, %i3 <== NOT EXECUTED
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203aba8: 27 00 00 3f sethi %hi(0xfc00), %l3 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203abac: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
203abb0: a6 14 e3 ff or %l3, 0x3ff, %l3 <== NOT EXECUTED
handle->bnum = 0;
203abb4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203abb8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
/*
* If we are searching start at the beginning of the block. If not searching
* skip to the offset in the block.
*/
if (search)
203abbc: a8 60 3f ff subx %g0, -1, %l4 <== NOT EXECUTED
}
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
203abc0: b0 10 20 00 clr %i0 <== NOT EXECUTED
while (rc == 0)
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203abc4: ac 07 bf f0 add %fp, -16, %l6 <== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
203abc8: 10 80 00 7d b 203adbc <rtems_rfs_dir_del_entry+0x274> <== NOT EXECUTED
203abcc: aa 10 00 13 mov %l3, %l5 <== NOT EXECUTED
{
uint8_t* entry;
int eoffset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203abd0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203abd4: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203abd8: 7f ff fe 26 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203abdc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203abe0: 84 92 20 00 orcc %o0, 0, %g2 <== NOT EXECUTED
203abe4: 04 80 00 04 ble 203abf4 <rtems_rfs_dir_del_entry+0xac> <== NOT EXECUTED
203abe8: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
203abec: 10 80 00 77 b 203adc8 <rtems_rfs_dir_del_entry+0x280> <== NOT EXECUTED
203abf0: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED
/*
* If we are searching start at the beginning of the block. If not searching
* skip to the offset in the block.
*/
if (search)
203abf4: 12 80 00 08 bne 203ac14 <rtems_rfs_dir_del_entry+0xcc> <== NOT EXECUTED
203abf8: b8 10 20 00 clr %i4 <== NOT EXECUTED
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
203abfc: d2 04 20 08 ld [ %l0 + 8 ], %o1 <== NOT EXECUTED
203ac00: c4 27 bf 9c st %g2, [ %fp + -100 ] <== NOT EXECUTED
203ac04: 40 00 87 91 call 205ca48 <.urem> <== NOT EXECUTED
203ac08: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
203ac0c: c4 07 bf 9c ld [ %fp + -100 ], %g2 <== NOT EXECUTED
203ac10: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
203ac14: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203ac18: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
if (search)
eoffset = 0;
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
203ac1c: ee 00 60 24 ld [ %g1 + 0x24 ], %l7 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203ac20: 98 00 ff f6 add %g3, -10, %o4 <== NOT EXECUTED
203ac24: 10 80 00 55 b 203ad78 <rtems_rfs_dir_del_entry+0x230> <== NOT EXECUTED
203ac28: ae 05 c0 1c add %l7, %i4, %l7 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203ac2c: fa 0d e0 08 ldub [ %l7 + 8 ], %i5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203ac30: d6 0d c0 00 ldub [ %l7 ], %o3 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203ac34: bb 2f 60 08 sll %i5, 8, %i5 <== NOT EXECUTED
203ac38: ba 17 40 01 or %i5, %g1, %i5 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203ac3c: c2 0d e0 01 ldub [ %l7 + 1 ], %g1 <== NOT EXECUTED
203ac40: da 0d e0 02 ldub [ %l7 + 2 ], %o5 <== NOT EXECUTED
203ac44: c8 0d e0 03 ldub [ %l7 + 3 ], %g4 <== NOT EXECUTED
203ac48: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
203ac4c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203ac50: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203ac54: 9a 0b 60 ff and %o5, 0xff, %o5 <== NOT EXECUTED
203ac58: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203ac5c: 80 a7 40 13 cmp %i5, %l3 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203ac60: 88 11 00 0b or %g4, %o3, %g4 <== NOT EXECUTED
203ac64: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
203ac68: 88 11 00 01 or %g4, %g1, %g4 <== NOT EXECUTED
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203ac6c: b2 05 e0 09 add %l7, 9, %i1 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203ac70: 02 80 00 45 be 203ad84 <rtems_rfs_dir_del_entry+0x23c> <== NOT EXECUTED
203ac74: 82 05 e0 08 add %l7, 8, %g1 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203ac78: 80 a7 60 0a cmp %i5, 0xa <== NOT EXECUTED
203ac7c: 04 80 00 4e ble 203adb4 <rtems_rfs_dir_del_entry+0x26c> <== NOT EXECUTED
203ac80: 88 91 00 0d orcc %g4, %o5, %g4 <== NOT EXECUTED
203ac84: 22 80 00 4d be,a 203adb8 <rtems_rfs_dir_del_entry+0x270> <== NOT EXECUTED
203ac88: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203ac8c: da 04 20 18 ld [ %l0 + 0x18 ], %o5 <== NOT EXECUTED
203ac90: 80 a7 40 0d cmp %i5, %o5 <== NOT EXECUTED
203ac94: 3a 80 00 49 bcc,a 203adb8 <rtems_rfs_dir_del_entry+0x270><== NOT EXECUTED
203ac98: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203ac9c: da 04 20 10 ld [ %l0 + 0x10 ], %o5 <== NOT EXECUTED
203aca0: 80 a1 00 0d cmp %g4, %o5 <== NOT EXECUTED
203aca4: 18 80 00 44 bgu 203adb4 <rtems_rfs_dir_del_entry+0x26c> <== NOT EXECUTED
203aca8: 80 a6 80 04 cmp %i2, %g4 <== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
rc = EIO;
break;
}
if (ino == rtems_rfs_dir_entry_ino (entry))
203acac: 12 80 00 30 bne 203ad6c <rtems_rfs_dir_del_entry+0x224> <== NOT EXECUTED
203acb0: 80 a5 20 00 cmp %l4, 0 <== NOT EXECUTED
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
memmove (entry, entry + elength, remaining);
203acb4: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
203acb8: 92 05 c0 1d add %l7, %i5, %o1 <== NOT EXECUTED
}
if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
203acbc: a2 07 00 1d add %i4, %i5, %l1 <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
203acc0: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
}
if (ino == rtems_rfs_dir_entry_ino (entry))
{
uint32_t remaining;
remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
203acc4: a2 20 c0 11 sub %g3, %l1, %l1 <== NOT EXECUTED
memmove (entry, entry + elength, remaining);
203acc8: 40 00 32 fe call 20478c0 <memmove> <== NOT EXECUTED
203accc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
memset (entry + remaining, 0xff, elength);
203acd0: 90 05 c0 11 add %l7, %l1, %o0 <== NOT EXECUTED
203acd4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203acd8: 40 00 33 4e call 2047a10 <memset> <== NOT EXECUTED
203acdc: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
* block and it is the last block in the map shrink the map.
*
* @note We could check again to see if the new end block in the map is
* also empty. This way we could clean up an empty directory.
*/
elength = rtems_rfs_dir_entry_length (entry);
203ace0: c2 07 bf 9c ld [ %fp + -100 ], %g1 <== NOT EXECUTED
203ace4: c4 0e 40 00 ldub [ %i1 ], %g2 <== NOT EXECUTED
203ace8: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
203acec: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203acf0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203acf4: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
203acf8: 12 80 00 13 bne 203ad44 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203acfc: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
203ad00: 12 80 00 11 bne 203ad44 <rtems_rfs_dir_del_entry+0x1fc> <== NOT EXECUTED
203ad04: c2 07 bf b0 ld [ %fp + -80 ], %g1 <== NOT EXECUTED
"last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
" offset=%d last=%s\n",
ino, elength, block, eoffset,
rtems_rfs_block_map_last (&map) ? "yes" : "no");
if ((elength == RTEMS_RFS_DIR_ENTRY_EMPTY) &&
203ad08: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ad0c: 12 80 00 06 bne 203ad24 <rtems_rfs_dir_del_entry+0x1dc> <== NOT EXECUTED
203ad10: c4 07 bf a8 ld [ %fp + -88 ], %g2 <== NOT EXECUTED
203ad14: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203ad18: 02 80 00 08 be 203ad38 <rtems_rfs_dir_del_entry+0x1f0> <== NOT EXECUTED
203ad1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ad20: c4 07 bf a8 ld [ %fp + -88 ], %g2 <== NOT EXECUTED
203ad24: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203ad28: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203ad2c: 12 80 00 07 bne 203ad48 <rtems_rfs_dir_del_entry+0x200> <== NOT EXECUTED
203ad30: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
(eoffset == 0) && rtems_rfs_block_map_last (&map))
{
rc = rtems_rfs_block_map_shrink (fs, &map, 1);
203ad34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ad38: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
203ad3c: 7f ff fa 48 call 203965c <rtems_rfs_block_map_shrink> <== NOT EXECUTED
203ad40: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
"block map shrink failed for ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (dir), rc, strerror (rc));
}
}
rtems_rfs_buffer_mark_dirty (&buffer);
203ad44: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203ad48: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
"block map shrink failed for ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (dir), rc, strerror (rc));
}
}
rtems_rfs_buffer_mark_dirty (&buffer);
203ad4c: c2 2f bf f0 stb %g1, [ %fp + -16 ] <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
203ad50: 7f ff fe 4e call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203ad54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203ad58: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ad5c: 7f ff fc 38 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203ad60: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return 0;
203ad64: 81 c7 e0 08 ret <== NOT EXECUTED
203ad68: 81 e8 00 00 restore <== NOT EXECUTED
}
if (!search)
203ad6c: 02 80 00 12 be 203adb4 <rtems_rfs_dir_del_entry+0x26c> <== NOT EXECUTED
203ad70: b8 07 00 1d add %i4, %i5, %i4 <== NOT EXECUTED
{
rc = EIO;
break;
}
entry += elength;
203ad74: ae 05 c0 1d add %l7, %i5, %l7 <== NOT EXECUTED
else
eoffset = offset % rtems_rfs_fs_block_size (fs);
entry = rtems_rfs_buffer_data (&buffer) + eoffset;
while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203ad78: 80 a7 00 0c cmp %i4, %o4 <== NOT EXECUTED
203ad7c: 2a bf ff ac bcs,a 203ac2c <rtems_rfs_dir_del_entry+0xe4> <== NOT EXECUTED
203ad80: c2 0d e0 09 ldub [ %l7 + 9 ], %g1 <== NOT EXECUTED
entry += elength;
eoffset += elength;
}
if (rc == 0)
203ad84: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203ad88: 12 80 00 0d bne 203adbc <rtems_rfs_dir_del_entry+0x274> <== NOT EXECUTED
203ad8c: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203ad90: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ad94: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203ad98: 7f ff f9 d4 call 20394e8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203ad9c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc == ENXIO)
203ada0: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203ada4: 12 80 00 06 bne 203adbc <rtems_rfs_dir_del_entry+0x274> <== NOT EXECUTED
203ada8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203adac: 10 80 00 07 b 203adc8 <rtems_rfs_dir_del_entry+0x280> <== NOT EXECUTED
203adb0: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203adb4: 84 10 20 05 mov 5, %g2 <== NOT EXECUTED
203adb8: b0 10 00 02 mov %g2, %i0 <== NOT EXECUTED
/*
* Only search if the offset is 0 else we are at that position.
*/
search = offset ? false : true;
while (rc == 0)
203adbc: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203adc0: 02 bf ff 84 be 203abd0 <rtems_rfs_dir_del_entry+0x88> <== NOT EXECUTED
203adc4: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203adc8: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203adcc: 7f ff fe 2f call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203add0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203add4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203add8: 7f ff fc 19 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203addc: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203ade0: 81 c7 e0 08 ret <== NOT EXECUTED
203ade4: 81 e8 00 00 restore <== NOT EXECUTED
0203a6b0 <rtems_rfs_dir_empty>:
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
203a6b0: 9d e3 bf 40 save %sp, -192, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
empty = true;
rc = rtems_rfs_block_map_open (fs, dir, &map);
203a6b4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
int
rtems_rfs_dir_empty (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir)
{
203a6b8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
empty = true;
rc = rtems_rfs_block_map_open (fs, dir, &map);
203a6bc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203a6c0: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203a6c4: 7f ff fe 4f call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203a6c8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203a6cc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a6d0: 14 80 00 0e bg 203a708 <rtems_rfs_dir_empty+0x58> <== NOT EXECUTED
203a6d4: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
203a6d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a6dc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a6e0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203a6e4: 96 10 20 00 clr %o3 <== NOT EXECUTED
203a6e8: 7f ff fb 8d call 203951c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203a6ec: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203a6f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a6f4: 04 80 00 07 ble 203a710 <rtems_rfs_dir_empty+0x60> <== NOT EXECUTED
203a6f8: 29 00 00 3f sethi %hi(0xfc00), %l4 <== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
203a6fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a700: 7f ff fd cf call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203a704: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203a708: 81 c7 e0 08 ret <== NOT EXECUTED
203a70c: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203a710: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203a714: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203a718: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a71c: a8 15 23 ff or %l4, 0x3ff, %l4 <== NOT EXECUTED
while (empty)
{
uint8_t* entry;
int offset;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203a720: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
203a724: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203a728: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a72c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203a730: 7f ff ff 50 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203a734: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203a738: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a73c: 14 80 00 46 bg 203a854 <rtems_rfs_dir_empty+0x1a4> <== NOT EXECUTED
203a740: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a744: d8 04 20 08 ld [ %l0 + 8 ], %o4 <== NOT EXECUTED
203a748: 98 03 3f f6 add %o4, -10, %o4 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
break;
entry = rtems_rfs_buffer_data (&buffer);
203a74c: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a750: 10 80 00 2f b 203a80c <rtems_rfs_dir_empty+0x15c> <== NOT EXECUTED
203a754: 86 10 20 00 clr %g3 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203a758: c4 08 60 08 ldub [ %g1 + 8 ], %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a75c: da 08 40 00 ldub [ %g1 ], %o5 <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203a760: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a764: d6 08 60 01 ldub [ %g1 + 1 ], %o3 <== NOT EXECUTED
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
203a768: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a76c: d4 08 60 03 ldub [ %g1 + 3 ], %o2 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203a770: 80 a0 80 14 cmp %g2, %l4 <== NOT EXECUTED
203a774: 02 80 00 29 be 203a818 <rtems_rfs_dir_empty+0x168> <== NOT EXECUTED
203a778: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203a77c: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
203a780: 04 80 00 26 ble 203a818 <rtems_rfs_dir_empty+0x168> <== NOT EXECUTED
203a784: 94 0a a0 ff and %o2, 0xff, %o2 <== NOT EXECUTED
{
rtems_rfs_ino eino;
int elength;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203a788: 9b 2b 60 18 sll %o5, 0x18, %o5 <== NOT EXECUTED
203a78c: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
203a790: 9a 12 80 0d or %o2, %o5, %o5 <== NOT EXECUTED
203a794: 88 09 20 ff and %g4, 0xff, %g4 <== NOT EXECUTED
203a798: 97 2a e0 10 sll %o3, 0x10, %o3 <== NOT EXECUTED
203a79c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
203a7a0: 9a 13 40 0b or %o5, %o3, %o5 <== NOT EXECUTED
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
break;
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203a7a4: 88 93 40 04 orcc %o5, %g4, %g4 <== NOT EXECUTED
203a7a8: 02 80 00 1d be 203a81c <rtems_rfs_dir_empty+0x16c> <== NOT EXECUTED
203a7ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a7b0: da 04 20 18 ld [ %l0 + 0x18 ], %o5 <== NOT EXECUTED
203a7b4: 80 a0 80 0d cmp %g2, %o5 <== NOT EXECUTED
203a7b8: 1a 80 00 1a bcc 203a820 <rtems_rfs_dir_empty+0x170> <== NOT EXECUTED
203a7bc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a7c0: d6 04 20 10 ld [ %l0 + 0x10 ], %o3 <== NOT EXECUTED
203a7c4: 80 a1 00 0b cmp %g4, %o3 <== NOT EXECUTED
203a7c8: 18 80 00 16 bgu 203a820 <rtems_rfs_dir_empty+0x170> <== NOT EXECUTED
203a7cc: 80 a0 a0 0b cmp %g2, 0xb <== NOT EXECUTED
/*
* Ignore the current (.) and parent (..) entries. Anything else means
* the directory is not empty.
*/
if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||
203a7d0: 12 80 00 04 bne 203a7e0 <rtems_rfs_dir_empty+0x130> <== NOT EXECUTED
203a7d4: 80 a0 a0 0c cmp %g2, 0xc <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
203a7d8: 10 80 00 09 b 203a7fc <rtems_rfs_dir_empty+0x14c> <== NOT EXECUTED
203a7dc: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
/*
* Ignore the current (.) and parent (..) entries. Anything else means
* the directory is not empty.
*/
if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||
203a7e0: 12 80 00 1b bne 203a84c <rtems_rfs_dir_empty+0x19c> <== NOT EXECUTED
203a7e4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&
((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||
(entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.') ||
203a7e8: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
203a7ec: 80 a1 20 2e cmp %g4, 0x2e <== NOT EXECUTED
203a7f0: 12 80 00 17 bne 203a84c <rtems_rfs_dir_empty+0x19c> <== NOT EXECUTED
203a7f4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
(entry[RTEMS_RFS_DIR_ENTRY_SIZE + 1] != '.')))
203a7f8: c8 08 60 0b ldub [ %g1 + 0xb ], %g4 <== NOT EXECUTED
203a7fc: 80 a1 20 2e cmp %g4, 0x2e <== NOT EXECUTED
203a800: 12 80 00 12 bne 203a848 <rtems_rfs_dir_empty+0x198> <== NOT EXECUTED
203a804: 86 00 c0 02 add %g3, %g2, %g3 <== NOT EXECUTED
{
empty = false;
break;
}
entry += elength;
203a808: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
break;
entry = rtems_rfs_buffer_data (&buffer);
offset = 0;
while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203a80c: 80 a0 c0 0c cmp %g3, %o4 <== NOT EXECUTED
203a810: 2a bf ff d2 bcs,a 203a758 <rtems_rfs_dir_empty+0xa8> <== NOT EXECUTED
203a814: c8 08 60 09 ldub [ %g1 + 9 ], %g4 <== NOT EXECUTED
offset += elength;
}
if (empty)
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203a818: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a81c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203a820: 7f ff fb 32 call 20394e8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203a824: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203a828: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a82c: 04 bf ff bf ble 203a728 <rtems_rfs_dir_empty+0x78> <== NOT EXECUTED
203a830: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
{
if (rc == ENXIO)
203a834: 82 1e 20 06 xor %i0, 6, %g1 <== NOT EXECUTED
203a838: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203a83c: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
203a840: 10 80 00 05 b 203a854 <rtems_rfs_dir_empty+0x1a4> <== NOT EXECUTED
203a844: b0 0e 00 01 and %i0, %g1, %i0 <== NOT EXECUTED
break;
}
}
}
if ((rc == 0) && !empty)
203a848: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203a84c: 22 80 00 02 be,a 203a854 <rtems_rfs_dir_empty+0x1a4> <== NOT EXECUTED
203a850: b0 10 20 5a mov 0x5a, %i0 <== NOT EXECUTED
rc = ENOTEMPTY;
rtems_rfs_buffer_handle_close (fs, &buffer);
203a854: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203a858: 7f ff ff 8c call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a85c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a860: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a864: 7f ff fd 76 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203a868: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203a86c: 81 c7 e0 08 ret <== NOT EXECUTED
203a870: 81 e8 00 00 restore <== NOT EXECUTED
02043b20 <rtems_rfs_dir_hash>:
*/
#define initval (20010928)
uint32_t
rtems_rfs_dir_hash (const void *key, size_t length)
{
2043b20: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
break;
case 0 : return c; /* zero length requires no mixing */
}
} else { /* need to read the key one byte at a time */
const uint8_t *k = (const uint8_t *)key;
2043b24: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
{
uint32_t a,b,c; /* internal state */
union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */
/* Set up the internal state */
a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;
2043b28: 31 37 f7 c5 sethi %hi(0xdfdf1400), %i0 <== NOT EXECUTED
2043b2c: b0 16 22 9f or %i0, 0x29f, %i0 ! dfdf169f <RAM_END+0xdd9f169f><== NOT EXECUTED
2043b30: b0 06 40 18 add %i1, %i0, %i0 <== NOT EXECUTED
break;
case 0 : return c; /* zero length requires no mixing */
}
} else { /* need to read the key one byte at a time */
const uint8_t *k = (const uint8_t *)key;
2043b34: 84 10 00 18 mov %i0, %g2 <== NOT EXECUTED
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
2043b38: 10 80 00 48 b 2043c58 <rtems_rfs_dir_hash+0x138> <== NOT EXECUTED
2043b3c: 86 10 00 18 mov %i0, %g3 <== NOT EXECUTED
{
a += k[0];
2043b40: e0 08 60 02 ldub [ %g1 + 2 ], %l0 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
2043b44: e4 08 40 00 ldub [ %g1 ], %l2 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
2043b48: e2 08 60 03 ldub [ %g1 + 3 ], %l1 <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
b += k[4];
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
c += k[8];
2043b4c: d6 08 60 09 ldub [ %g1 + 9 ], %o3 <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
2043b50: da 08 60 0b ldub [ %g1 + 0xb ], %o5 <== NOT EXECUTED
b += k[4];
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
c += k[8];
c += ((uint32_t)k[9])<<8;
2043b54: d8 08 60 08 ldub [ %g1 + 8 ], %o4 <== NOT EXECUTED
{
a += k[0];
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
a += ((uint32_t)k[3])<<24;
b += k[4];
2043b58: de 08 60 05 ldub [ %g1 + 5 ], %o7 <== NOT EXECUTED
2043b5c: d4 08 60 06 ldub [ %g1 + 6 ], %o2 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
2043b60: d0 08 60 04 ldub [ %g1 + 4 ], %o0 <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
2043b64: d2 08 60 07 ldub [ %g1 + 7 ], %o1 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
2043b68: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
2043b6c: 97 2a e0 08 sll %o3, 8, %o3 <== NOT EXECUTED
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
2043b70: 9b 2b 60 18 sll %o5, 0x18, %o5 <== NOT EXECUTED
const uint8_t *k = (const uint8_t *)key;
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
{
a += k[0];
2043b74: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
2043b78: a1 2c 20 10 sll %l0, 0x10, %l0 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
2043b7c: a3 2c 60 18 sll %l1, 0x18, %l1 <== NOT EXECUTED
const uint8_t *k = (const uint8_t *)key;
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
{
a += k[0];
2043b80: a0 04 c0 10 add %l3, %l0, %l0 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
2043b84: a0 04 00 12 add %l0, %l2, %l0 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
2043b88: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
a += ((uint32_t)k[3])<<24;
2043b8c: 86 04 00 03 add %l0, %g3, %g3 <== NOT EXECUTED
b += k[4];
2043b90: 9f 2b e0 08 sll %o7, 8, %o7 <== NOT EXECUTED
2043b94: 95 2a a0 10 sll %o2, 0x10, %o2 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
2043b98: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
{
a += k[0];
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
a += ((uint32_t)k[3])<<24;
b += k[4];
2043b9c: 94 03 c0 0a add %o7, %o2, %o2 <== NOT EXECUTED
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
c += k[8];
2043ba0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
a += k[0];
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
a += ((uint32_t)k[3])<<24;
b += k[4];
b += ((uint32_t)k[5])<<8;
2043ba4: 94 02 80 08 add %o2, %o0, %o2 <== NOT EXECUTED
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
c += k[8];
2043ba8: 88 02 c0 04 add %o3, %g4, %g4 <== NOT EXECUTED
a += ((uint32_t)k[1])<<8;
a += ((uint32_t)k[2])<<16;
a += ((uint32_t)k[3])<<24;
b += k[4];
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
2043bac: 94 02 80 09 add %o2, %o1, %o2 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
c += ((uint32_t)k[9])<<8;
2043bb0: 88 01 00 0c add %g4, %o4, %g4 <== NOT EXECUTED
a += ((uint32_t)k[2])<<16;
a += ((uint32_t)k[3])<<24;
b += k[4];
b += ((uint32_t)k[5])<<8;
b += ((uint32_t)k[6])<<16;
b += ((uint32_t)k[7])<<24;
2043bb4: 84 02 80 02 add %o2, %g2, %g2 <== NOT EXECUTED
c += k[8];
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
2043bb8: 88 01 00 0d add %g4, %o5, %g4 <== NOT EXECUTED
c += ((uint32_t)k[11])<<24;
2043bbc: 88 01 00 18 add %g4, %i0, %g4 <== NOT EXECUTED
mix(a,b,c);
2043bc0: 96 01 00 02 add %g4, %g2, %o3 <== NOT EXECUTED
2043bc4: b0 20 c0 04 sub %g3, %g4, %i0 <== NOT EXECUTED
2043bc8: 87 31 20 1c srl %g4, 0x1c, %g3 <== NOT EXECUTED
2043bcc: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED
2043bd0: 88 10 c0 04 or %g3, %g4, %g4 <== NOT EXECUTED
2043bd4: b0 1e 00 04 xor %i0, %g4, %i0 <== NOT EXECUTED
2043bd8: 98 06 00 0b add %i0, %o3, %o4 <== NOT EXECUTED
2043bdc: 84 20 80 18 sub %g2, %i0, %g2 <== NOT EXECUTED
2043be0: 9b 36 20 1a srl %i0, 0x1a, %o5 <== NOT EXECUTED
2043be4: b1 2e 20 06 sll %i0, 6, %i0 <== NOT EXECUTED
2043be8: 9a 13 40 18 or %o5, %i0, %o5 <== NOT EXECUTED
2043bec: 9a 1b 40 02 xor %o5, %g2, %o5 <== NOT EXECUTED
2043bf0: 88 03 40 0c add %o5, %o4, %g4 <== NOT EXECUTED
2043bf4: 96 22 c0 0d sub %o3, %o5, %o3 <== NOT EXECUTED
2043bf8: 87 33 60 18 srl %o5, 0x18, %g3 <== NOT EXECUTED
2043bfc: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
2043c00: 86 10 c0 0d or %g3, %o5, %g3 <== NOT EXECUTED
2043c04: 86 18 c0 0b xor %g3, %o3, %g3 <== NOT EXECUTED
2043c08: b0 00 c0 04 add %g3, %g4, %i0 <== NOT EXECUTED
2043c0c: 98 23 00 03 sub %o4, %g3, %o4 <== NOT EXECUTED
2043c10: 85 30 e0 10 srl %g3, 0x10, %g2 <== NOT EXECUTED
2043c14: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2043c18: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2043c1c: 84 18 80 0c xor %g2, %o4, %g2 <== NOT EXECUTED
2043c20: 86 00 80 18 add %g2, %i0, %g3 <== NOT EXECUTED
2043c24: 9b 30 a0 0d srl %g2, 0xd, %o5 <== NOT EXECUTED
2043c28: 88 21 00 02 sub %g4, %g2, %g4 <== NOT EXECUTED
2043c2c: 85 28 a0 13 sll %g2, 0x13, %g2 <== NOT EXECUTED
2043c30: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
length -= 12;
2043c34: b2 06 7f f4 add %i1, -12, %i1 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
c += ((uint32_t)k[11])<<24;
mix(a,b,c);
2043c38: 88 18 80 04 xor %g2, %g4, %g4 <== NOT EXECUTED
length -= 12;
k += 12;
2043c3c: 82 00 60 0c add %g1, 0xc, %g1 <== NOT EXECUTED
b += ((uint32_t)k[7])<<24;
c += k[8];
c += ((uint32_t)k[9])<<8;
c += ((uint32_t)k[10])<<16;
c += ((uint32_t)k[11])<<24;
mix(a,b,c);
2043c40: b0 26 00 04 sub %i0, %g4, %i0 <== NOT EXECUTED
2043c44: 9b 31 20 1c srl %g4, 0x1c, %o5 <== NOT EXECUTED
2043c48: 84 01 00 03 add %g4, %g3, %g2 <== NOT EXECUTED
2043c4c: 89 29 20 04 sll %g4, 4, %g4 <== NOT EXECUTED
2043c50: 88 13 40 04 or %o5, %g4, %g4 <== NOT EXECUTED
2043c54: b0 19 00 18 xor %g4, %i0, %i0 <== NOT EXECUTED
} else { /* need to read the key one byte at a time */
const uint8_t *k = (const uint8_t *)key;
/*--------------- all but the last block: affect some 32 bits of (a,b,c) */
while (length > 12)
2043c58: 80 a6 60 0c cmp %i1, 0xc <== NOT EXECUTED
2043c5c: 38 bf ff b9 bgu,a 2043b40 <rtems_rfs_dir_hash+0x20> <== NOT EXECUTED
2043c60: e6 08 60 01 ldub [ %g1 + 1 ], %l3 <== NOT EXECUTED
length -= 12;
k += 12;
}
/*-------------------------------- last block: affect all 32 bits of (c) */
switch(length) /* all the case statements fall through */
2043c64: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED
2043c68: 80 a6 60 0b cmp %i1, 0xb <== NOT EXECUTED
2043c6c: 18 80 00 4b bgu 2043d98 <rtems_rfs_dir_hash+0x278> <== NOT EXECUTED
2043c70: b3 2e 60 02 sll %i1, 2, %i1 <== NOT EXECUTED
2043c74: 09 00 81 0e sethi %hi(0x2043800), %g4 <== NOT EXECUTED
2043c78: 88 11 22 f0 or %g4, 0x2f0, %g4 ! 2043af0 <rtems_rfs_buffer_bdbuf_request+0x44><== NOT EXECUTED
2043c7c: c8 01 00 19 ld [ %g4 + %i1 ], %g4 <== NOT EXECUTED
2043c80: 81 c1 00 00 jmp %g4 <== NOT EXECUTED
2043c84: 01 00 00 00 nop <== NOT EXECUTED
{
case 12: c+=((uint32_t)k[11])<<24;
2043c88: c8 08 60 0b ldub [ %g1 + 0xb ], %g4 <== NOT EXECUTED
2043c8c: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2043c90: b0 01 00 18 add %g4, %i0, %i0 <== NOT EXECUTED
case 11: c+=((uint32_t)k[10])<<16;
2043c94: c8 08 60 0a ldub [ %g1 + 0xa ], %g4 <== NOT EXECUTED
2043c98: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2043c9c: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
case 10: c+=((uint32_t)k[9])<<8;
2043ca0: c8 08 60 09 ldub [ %g1 + 9 ], %g4 <== NOT EXECUTED
2043ca4: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2043ca8: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
case 9 : c+=k[8];
2043cac: c8 08 60 08 ldub [ %g1 + 8 ], %g4 <== NOT EXECUTED
2043cb0: b0 06 00 04 add %i0, %g4, %i0 <== NOT EXECUTED
case 8 : b+=((uint32_t)k[7])<<24;
2043cb4: c8 08 60 07 ldub [ %g1 + 7 ], %g4 <== NOT EXECUTED
2043cb8: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2043cbc: 84 01 00 02 add %g4, %g2, %g2 <== NOT EXECUTED
case 7 : b+=((uint32_t)k[6])<<16;
2043cc0: c8 08 60 06 ldub [ %g1 + 6 ], %g4 <== NOT EXECUTED
2043cc4: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2043cc8: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
2043ccc: c8 08 60 05 ldub [ %g1 + 5 ], %g4 <== NOT EXECUTED
2043cd0: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2043cd4: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
case 5 : b+=k[4];
2043cd8: c8 08 60 04 ldub [ %g1 + 4 ], %g4 <== NOT EXECUTED
2043cdc: 84 00 80 04 add %g2, %g4, %g2 <== NOT EXECUTED
case 4 : a+=((uint32_t)k[3])<<24;
2043ce0: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
2043ce4: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2043ce8: 86 01 00 03 add %g4, %g3, %g3 <== NOT EXECUTED
case 3 : a+=((uint32_t)k[2])<<16;
2043cec: c8 08 60 02 ldub [ %g1 + 2 ], %g4 <== NOT EXECUTED
2043cf0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
2043cf4: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
case 2 : a+=((uint32_t)k[1])<<8;
2043cf8: c8 08 60 01 ldub [ %g1 + 1 ], %g4 <== NOT EXECUTED
2043cfc: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2043d00: 86 00 c0 04 add %g3, %g4, %g3 <== NOT EXECUTED
case 1 : a+=k[0];
2043d04: c2 08 40 00 ldub [ %g1 ], %g1 <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
2043d08: 89 30 a0 12 srl %g2, 0x12, %g4 <== NOT EXECUTED
case 6 : b+=((uint32_t)k[5])<<8;
case 5 : b+=k[4];
case 4 : a+=((uint32_t)k[3])<<24;
case 3 : a+=((uint32_t)k[2])<<16;
case 2 : a+=((uint32_t)k[1])<<8;
case 1 : a+=k[0];
2043d0c: 86 00 c0 01 add %g3, %g1, %g3 <== NOT EXECUTED
break;
case 0 : return c;
}
}
final(a,b,c);
2043d10: 83 28 a0 0e sll %g2, 0xe, %g1 <== NOT EXECUTED
2043d14: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2043d18: b0 1e 00 02 xor %i0, %g2, %i0 <== NOT EXECUTED
2043d1c: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
2043d20: 89 36 20 15 srl %i0, 0x15, %g4 <== NOT EXECUTED
2043d24: 83 2e 20 0b sll %i0, 0xb, %g1 <== NOT EXECUTED
2043d28: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2043d2c: 86 1e 00 03 xor %i0, %g3, %g3 <== NOT EXECUTED
2043d30: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED
2043d34: 89 30 e0 07 srl %g3, 7, %g4 <== NOT EXECUTED
2043d38: 83 28 e0 19 sll %g3, 0x19, %g1 <== NOT EXECUTED
2043d3c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2043d40: 84 18 c0 02 xor %g3, %g2, %g2 <== NOT EXECUTED
2043d44: 84 20 80 01 sub %g2, %g1, %g2 <== NOT EXECUTED
2043d48: 89 30 a0 10 srl %g2, 0x10, %g4 <== NOT EXECUTED
2043d4c: 83 28 a0 10 sll %g2, 0x10, %g1 <== NOT EXECUTED
2043d50: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2043d54: b0 18 80 18 xor %g2, %i0, %i0 <== NOT EXECUTED
2043d58: b0 26 00 01 sub %i0, %g1, %i0 <== NOT EXECUTED
2043d5c: 89 36 20 1c srl %i0, 0x1c, %g4 <== NOT EXECUTED
2043d60: 83 2e 20 04 sll %i0, 4, %g1 <== NOT EXECUTED
2043d64: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2043d68: 86 1e 00 03 xor %i0, %g3, %g3 <== NOT EXECUTED
2043d6c: 86 20 c0 01 sub %g3, %g1, %g3 <== NOT EXECUTED
2043d70: 83 28 e0 0e sll %g3, 0xe, %g1 <== NOT EXECUTED
2043d74: 84 18 c0 02 xor %g3, %g2, %g2 <== NOT EXECUTED
2043d78: 87 30 e0 12 srl %g3, 0x12, %g3 <== NOT EXECUTED
2043d7c: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
2043d80: 84 20 80 03 sub %g2, %g3, %g2 <== NOT EXECUTED
2043d84: b0 18 80 18 xor %g2, %i0, %i0 <== NOT EXECUTED
2043d88: 83 28 a0 18 sll %g2, 0x18, %g1 <== NOT EXECUTED
2043d8c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
2043d90: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
2043d94: b0 26 00 02 sub %i0, %g2, %i0 <== NOT EXECUTED
return c;
}
2043d98: 81 c7 e0 08 ret <== NOT EXECUTED
2043d9c: 81 e8 00 00 restore <== NOT EXECUTED
0203b078 <rtems_rfs_dir_lookup_ino>:
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
203b078: 9d e3 bf 40 save %sp, -192, %sp <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf (", len=%d\n", length);
}
*ino = RTEMS_RFS_EMPTY_INO;
203b07c: c0 27 00 00 clr [ %i4 ] <== NOT EXECUTED
*offset = 0;
rc = rtems_rfs_block_map_open (fs, inode, &map);
203b080: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_inode_handle* inode,
const char* name,
int length,
rtems_rfs_ino* ino,
uint32_t* offset)
{
203b084: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
}
*ino = RTEMS_RFS_EMPTY_INO;
*offset = 0;
rc = rtems_rfs_block_map_open (fs, inode, &map);
203b088: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
printf ("%c", name[c]);
printf (", len=%d\n", length);
}
*ino = RTEMS_RFS_EMPTY_INO;
*offset = 0;
203b08c: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, inode, &map);
203b090: a2 07 bf a0 add %fp, -96, %l1 <== NOT EXECUTED
203b094: 7f ff fb db call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203b098: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc > 0)
203b09c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b0a0: 14 80 00 5e bg 203b218 <rtems_rfs_dir_lookup_ino+0x1a0> <== NOT EXECUTED
203b0a4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203b0a8: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203b0ac: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203b0b0: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
uint32_t hash;
/*
* Calculate the hash of the look up string.
*/
hash = rtems_rfs_dir_hash (name, length);
203b0b4: 40 00 22 9b call 2043b20 <rtems_rfs_dir_hash> <== NOT EXECUTED
203b0b8: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
/*
* Locate the first block. The map points to the start after open so just
* seek 0. If an error the block will be 0.
*/
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
203b0bc: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
uint32_t hash;
/*
* Calculate the hash of the look up string.
*/
hash = rtems_rfs_dir_hash (name, length);
203b0c0: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
/*
* Locate the first block. The map points to the start after open so just
* seek 0. If an error the block will be 0.
*/
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
203b0c4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203b0c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b0cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b0d0: 96 10 20 00 clr %o3 <== NOT EXECUTED
203b0d4: 7f ff f9 12 call 203951c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203b0d8: 98 10 00 12 mov %l2, %o4 <== NOT EXECUTED
if (rc > 0)
203b0dc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203b0e0: 04 80 00 68 ble 203b280 <rtems_rfs_dir_lookup_ino+0x208> <== NOT EXECUTED
203b0e4: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: block map find failed: %d: %s\n",
rc, strerror (rc));
if (rc == ENXIO)
203b0e8: 22 80 00 02 be,a 203b0f0 <rtems_rfs_dir_lookup_ino+0x78> <== NOT EXECUTED
203b0ec: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
rc = ENOENT;
rtems_rfs_buffer_handle_close (fs, &entries);
203b0f0: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203b0f4: 10 80 00 44 b 203b204 <rtems_rfs_dir_lookup_ino+0x18c> <== NOT EXECUTED
203b0f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
rtems_rfs_inode_ino (inode), map.bpos.bno);
rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
203b0fc: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203b100: 7f ff fc dc call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203b104: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203b108: ae 92 20 00 orcc %o0, 0, %l7 <== NOT EXECUTED
203b10c: 14 80 00 68 bg 203b2ac <rtems_rfs_dir_lookup_ino+0x234> <== NOT EXECUTED
203b110: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
* means the entry is empty.
*/
entry = rtems_rfs_buffer_data (&entries);
map.bpos.boff = 0;
203b114: c0 27 bf b4 clr [ %fp + -76 ] <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203b118: 10 80 00 45 b 203b22c <rtems_rfs_dir_lookup_ino+0x1b4> <== NOT EXECUTED
203b11c: ec 00 60 24 ld [ %g1 + 0x24 ], %l6 <== NOT EXECUTED
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203b120: c4 0d a0 02 ldub [ %l6 + 2 ], %g2 <== NOT EXECUTED
203b124: c8 0d a0 03 ldub [ %l6 + 3 ], %g4 <== NOT EXECUTED
203b128: c2 0d 80 00 ldub [ %l6 ], %g1 <== NOT EXECUTED
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
elength = rtems_rfs_dir_entry_length (entry);
203b12c: f2 0d a0 08 ldub [ %l6 + 8 ], %i1 <== NOT EXECUTED
203b130: d8 0d a0 09 ldub [ %l6 + 9 ], %o4 <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
203b134: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203b138: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b13c: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
203b140: da 0d a0 05 ldub [ %l6 + 5 ], %o5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203b144: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
203b148: c8 0d a0 04 ldub [ %l6 + 4 ], %g4 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203b14c: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
203b150: c6 0d a0 07 ldub [ %l6 + 7 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
203b154: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
{
uint32_t ehash;
int elength;
ehash = rtems_rfs_dir_entry_hash (entry);
203b158: c4 0d a0 06 ldub [ %l6 + 6 ], %g2 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
203b15c: b3 2e 60 08 sll %i1, 8, %i1 <== NOT EXECUTED
203b160: b2 16 40 0c or %i1, %o4, %i1 <== NOT EXECUTED
*ino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203b164: 80 a6 40 15 cmp %i1, %l5 <== NOT EXECUTED
203b168: 02 80 00 37 be 203b244 <rtems_rfs_dir_lookup_ino+0x1cc> <== NOT EXECUTED
203b16c: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
break;
if (rtems_rfs_dir_entry_valid (fs, elength, *ino))
203b170: 80 a6 60 0a cmp %i1, 0xa <== NOT EXECUTED
203b174: 24 80 00 41 ble,a 203b278 <rtems_rfs_dir_lookup_ino+0x200><== NOT EXECUTED
203b178: ae 10 20 05 mov 5, %l7 <== NOT EXECUTED
203b17c: d8 04 20 18 ld [ %l0 + 0x18 ], %o4 <== NOT EXECUTED
203b180: 80 a6 40 0c cmp %i1, %o4 <== NOT EXECUTED
203b184: 1a 80 00 3c bcc 203b274 <rtems_rfs_dir_lookup_ino+0x1fc> <== NOT EXECUTED
203b188: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203b18c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b190: 22 80 00 3a be,a 203b278 <rtems_rfs_dir_lookup_ino+0x200><== NOT EXECUTED
203b194: ae 10 20 05 mov 5, %l7 <== NOT EXECUTED
203b198: d8 04 20 10 ld [ %l0 + 0x10 ], %o4 <== NOT EXECUTED
203b19c: 80 a0 40 0c cmp %g1, %o4 <== NOT EXECUTED
203b1a0: 18 80 00 35 bgu 203b274 <rtems_rfs_dir_lookup_ino+0x1fc> <== NOT EXECUTED
203b1a4: 9a 0b 60 ff and %o5, 0xff, %o5 <== NOT EXECUTED
rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
rc = EIO;
break;
}
if (ehash == hash)
203b1a8: 83 2b 60 10 sll %o5, 0x10, %g1 <== NOT EXECUTED
203b1ac: 86 08 e0 ff and %g3, 0xff, %g3 <== NOT EXECUTED
203b1b0: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203b1b4: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
203b1b8: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203b1bc: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203b1c0: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203b1c4: 80 a0 40 13 cmp %g1, %l3 <== NOT EXECUTED
203b1c8: 12 80 00 16 bne 203b220 <rtems_rfs_dir_lookup_ino+0x1a8> <== NOT EXECUTED
203b1cc: c2 07 bf b4 ld [ %fp + -76 ], %g1 <== NOT EXECUTED
"checking entry for ino %" PRId32 ": bno=%04" PRIx32 "/off=%04" PRIx32
" length:%d ino:%" PRId32 "\n",
rtems_rfs_inode_ino (inode), map.bpos.bno, map.bpos.boff,
elength, rtems_rfs_dir_entry_ino (entry));
if (memcmp (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length) == 0)
203b1d0: 90 05 a0 0a add %l6, 0xa, %o0 <== NOT EXECUTED
203b1d4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203b1d8: 40 00 31 4a call 2047700 <memcmp> <== NOT EXECUTED
203b1dc: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203b1e0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b1e4: 12 80 00 0f bne 203b220 <rtems_rfs_dir_lookup_ino+0x1a8> <== NOT EXECUTED
203b1e8: c2 07 bf b4 ld [ %fp + -76 ], %g1 <== NOT EXECUTED
{
*offset = rtems_rfs_block_map_pos (fs, &map);
203b1ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b1f0: 7f ff f8 0b call 203921c <rtems_rfs_block_get_pos> <== NOT EXECUTED
203b1f4: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
printf ("rtems-rfs: dir-lookup-ino: "
"entry found in ino %" PRIu32 ", ino=%" PRIu32 " offset=%" PRIu32 "\n",
rtems_rfs_inode_ino (inode), *ino, *offset);
rtems_rfs_buffer_handle_close (fs, &entries);
203b1f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_ino (inode), map.bpos.bno, map.bpos.boff,
elength, rtems_rfs_dir_entry_ino (entry));
if (memcmp (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length) == 0)
{
*offset = rtems_rfs_block_map_pos (fs, &map);
203b1fc: d2 27 40 00 st %o1, [ %i5 ] <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
printf ("rtems-rfs: dir-lookup-ino: "
"entry found in ino %" PRIu32 ", ino=%" PRIu32 " offset=%" PRIu32 "\n",
rtems_rfs_inode_ino (inode), *ino, *offset);
rtems_rfs_buffer_handle_close (fs, &entries);
203b200: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203b204: 7f ff fd 21 call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b208: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203b20c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b210: 7f ff fb 0b call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203b214: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return 0;
203b218: 81 c7 e0 08 ret <== NOT EXECUTED
203b21c: 81 e8 00 00 restore <== NOT EXECUTED
}
}
map.bpos.boff += elength;
entry += elength;
203b220: ac 05 80 19 add %l6, %i1, %l6 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return 0;
}
}
map.bpos.boff += elength;
203b224: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203b228: f2 27 bf b4 st %i1, [ %fp + -76 ] <== NOT EXECUTED
entry = rtems_rfs_buffer_data (&entries);
map.bpos.boff = 0;
while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
203b22c: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
203b230: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
203b234: 82 00 7f f6 add %g1, -10, %g1 <== NOT EXECUTED
203b238: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203b23c: 2a bf ff b9 bcs,a 203b120 <rtems_rfs_dir_lookup_ino+0xa8><== NOT EXECUTED
203b240: c6 0d a0 01 ldub [ %l6 + 1 ], %g3 <== NOT EXECUTED
map.bpos.boff += elength;
entry += elength;
}
if (rc == 0)
203b244: 80 a5 e0 00 cmp %l7, 0 <== NOT EXECUTED
203b248: 12 80 00 11 bne 203b28c <rtems_rfs_dir_lookup_ino+0x214> <== NOT EXECUTED
203b24c: b0 10 00 17 mov %l7, %i0 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203b250: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b254: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203b258: 7f ff f8 a4 call 20394e8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203b25c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: "
"block map next block failed in ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
if (rc == ENXIO)
203b260: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203b264: 12 80 00 0a bne 203b28c <rtems_rfs_dir_lookup_ino+0x214> <== NOT EXECUTED
203b268: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203b26c: 10 80 00 11 b 203b2b0 <rtems_rfs_dir_lookup_ino+0x238> <== NOT EXECUTED
203b270: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
203b274: ae 10 20 05 mov 5, %l7 <== NOT EXECUTED
203b278: 10 80 00 05 b 203b28c <rtems_rfs_dir_lookup_ino+0x214> <== NOT EXECUTED
203b27c: b0 10 00 17 mov %l7, %i0 <== NOT EXECUTED
ehash = rtems_rfs_dir_entry_hash (entry);
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203b280: 2b 00 00 3f sethi %hi(0xfc00), %l5 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))
printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
rtems_rfs_inode_ino (inode), map.bpos.bno);
rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
203b284: a8 07 bf f0 add %fp, -16, %l4 <== NOT EXECUTED
ehash = rtems_rfs_dir_entry_hash (entry);
elength = rtems_rfs_dir_entry_length (entry);
*ino = rtems_rfs_dir_entry_ino (entry);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
203b288: aa 15 63 ff or %l5, 0x3ff, %l5 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
203b28c: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203b290: 12 80 00 08 bne 203b2b0 <rtems_rfs_dir_lookup_ino+0x238> <== NOT EXECUTED
203b294: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203b298: 80 a2 a0 00 cmp %o2, 0 <== NOT EXECUTED
203b29c: 12 bf ff 98 bne 203b0fc <rtems_rfs_dir_lookup_ino+0x84> <== NOT EXECUTED
203b2a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc == ENXIO)
rc = ENOENT;
}
}
if ((rc == 0) && (block == 0))
203b2a4: 10 80 00 0b b 203b2d0 <rtems_rfs_dir_lookup_ino+0x258> <== NOT EXECUTED
203b2a8: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &entries);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
while ((rc == 0) && block)
203b2ac: b0 10 00 17 mov %l7, %i0 <== NOT EXECUTED
printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
}
rtems_rfs_buffer_handle_close (fs, &entries);
203b2b0: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203b2b4: 7f ff fc f5 call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203b2b8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203b2bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b2c0: 7f ff fa df call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203b2c4: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203b2c8: 81 c7 e0 08 ret <== NOT EXECUTED
203b2cc: 81 e8 00 00 restore <== NOT EXECUTED
printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
rtems_rfs_inode_ino (inode), rc, strerror (rc));
}
}
rtems_rfs_buffer_handle_close (fs, &entries);
203b2d0: 10 bf ff f9 b 203b2b4 <rtems_rfs_dir_lookup_ino+0x23c> <== NOT EXECUTED
203b2d4: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
0203a874 <rtems_rfs_dir_read>:
rtems_rfs_dir_read (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
rtems_rfs_pos_rel offset,
struct dirent* dirent,
size_t* length)
{
203a874: 9d e3 bf 38 save %sp, -200, %sp <== NOT EXECUTED
printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
rtems_rfs_inode_ino (dir), offset);
*length = 0;
rc = rtems_rfs_block_map_open (fs, dir, &map);
203a878: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_dir_read (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* dir,
rtems_rfs_pos_rel offset,
struct dirent* dirent,
size_t* length)
{
203a87c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
rtems_rfs_inode_ino (dir), offset);
*length = 0;
rc = rtems_rfs_block_map_open (fs, dir, &map);
203a880: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
rtems_rfs_inode_ino (dir), offset);
*length = 0;
203a884: c0 27 40 00 clr [ %i5 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
203a888: 7f ff fd de call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203a88c: 94 07 bf a0 add %fp, -96, %o2 <== NOT EXECUTED
if (rc > 0)
203a890: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a894: 14 80 00 45 bg 203a9a8 <rtems_rfs_dir_read+0x134> <== NOT EXECUTED
203a898: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
return rc;
if (((rtems_rfs_fs_block_size (fs) -
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
203a89c: e4 04 20 08 ld [ %l0 + 8 ], %l2 <== NOT EXECUTED
203a8a0: a6 10 00 12 mov %l2, %l3 <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
if (((rtems_rfs_fs_block_size (fs) -
203a8a4: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
203a8a8: a4 10 20 00 clr %l2 <== NOT EXECUTED
rc = rtems_rfs_block_map_open (fs, dir, &map);
if (rc > 0)
return rc;
if (((rtems_rfs_fs_block_size (fs) -
203a8ac: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203a8b0: 40 00 8a 7f call 205d2ac <__moddi3> <== NOT EXECUTED
203a8b4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203a8b8: 86 a4 c0 09 subcc %l3, %o1, %g3 <== NOT EXECUTED
203a8bc: 84 64 80 08 subx %l2, %o0, %g2 <== NOT EXECUTED
203a8c0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a8c4: 34 80 00 15 bg,a 203a918 <rtems_rfs_dir_read+0xa4> <== NOT EXECUTED
203a8c8: a4 07 bf a0 add %fp, -96, %l2 <== NOT EXECUTED
203a8cc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203a8d0: 32 80 00 06 bne,a 203a8e8 <rtems_rfs_dir_read+0x74> <== NOT EXECUTED
203a8d4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203a8d8: 80 a0 e0 0a cmp %g3, 0xa <== NOT EXECUTED
203a8dc: 38 80 00 0f bgu,a 203a918 <rtems_rfs_dir_read+0xa4> <== NOT EXECUTED
203a8e0: a4 07 bf a0 add %fp, -96, %l2 <== NOT EXECUTED
(offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *
203a8e4: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203a8e8: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203a8ec: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203a8f0: 40 00 89 88 call 205cf10 <__divdi3> <== NOT EXECUTED
203a8f4: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203a8f8: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203a8fc: 92 82 60 01 inccc %o1 <== NOT EXECUTED
203a900: 96 10 00 13 mov %l3, %o3 <== NOT EXECUTED
203a904: 40 00 88 fd call 205ccf8 <__muldi3> <== NOT EXECUTED
203a908: 90 42 20 00 addx %o0, 0, %o0 <== NOT EXECUTED
203a90c: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
203a910: b6 10 00 09 mov %o1, %i3 <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);
203a914: a4 07 bf a0 add %fp, -96, %l2 <== NOT EXECUTED
203a918: a2 07 bf fc add %fp, -4, %l1 <== NOT EXECUTED
203a91c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a920: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203a924: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203a928: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203a92c: 7f ff fa fc call 203951c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203a930: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
if (rc > 0)
203a934: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203a938: 04 80 00 06 ble 203a950 <rtems_rfs_dir_read+0xdc> <== NOT EXECUTED
203a93c: 80 a6 20 06 cmp %i0, 6 <== NOT EXECUTED
{
if (rc == ENXIO)
203a940: 22 80 00 17 be,a 203a99c <rtems_rfs_dir_read+0x128> <== NOT EXECUTED
203a944: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
203a948: 10 80 00 16 b 203a9a0 <rtems_rfs_dir_read+0x12c> <== NOT EXECUTED
203a94c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
203a950: 29 00 00 3f sethi %hi(0xfc00), %l4 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203a954: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203a958: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203a95c: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203a960: a8 15 23 ff or %l4, 0x3ff, %l4 <== NOT EXECUTED
uint8_t* entry;
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203a964: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
203a968: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203a96c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203a970: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203a974: 7f ff fe bf call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203a978: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
offset, *length);
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203a97c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
uint8_t* entry;
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
203a980: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
offset, *length);
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203a984: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int remaining;
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
203a988: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203a98c: 04 80 00 09 ble 203a9b0 <rtems_rfs_dir_read+0x13c> <== NOT EXECUTED
203a990: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
203a994: 7f ff ff 3d call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203a998: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203a99c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203a9a0: 7f ff fd 27 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203a9a4: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
203a9a8: 81 c7 e0 08 ret <== NOT EXECUTED
203a9ac: 81 e8 00 00 restore <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
203a9b0: c4 07 bf f8 ld [ %fp + -8 ], %g2 <== NOT EXECUTED
entry += map.bpos.boff;
203a9b4: c2 07 bf b4 ld [ %fp + -76 ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
203a9b8: ea 00 a0 24 ld [ %g2 + 0x24 ], %l5 <== NOT EXECUTED
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203a9bc: c4 0d 40 01 ldub [ %l5 + %g1 ], %g2 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
return rc;
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
203a9c0: aa 05 40 01 add %l5, %g1, %l5 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (entry);
eino = rtems_rfs_dir_entry_ino (entry);
203a9c4: c6 0d 60 02 ldub [ %l5 + 2 ], %g3 <== NOT EXECUTED
203a9c8: da 0d 60 03 ldub [ %l5 + 3 ], %o5 <== NOT EXECUTED
203a9cc: c8 0d 60 01 ldub [ %l5 + 1 ], %g4 <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
203a9d0: ec 0d 60 08 ldub [ %l5 + 8 ], %l6 <== NOT EXECUTED
203a9d4: d8 0d 60 09 ldub [ %l5 + 9 ], %o4 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a9d8: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203a9dc: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
203a9e0: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203a9e4: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203a9e8: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203a9ec: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203a9f0: 86 05 60 01 add %l5, 1, %g3 <== NOT EXECUTED
203a9f4: c6 27 bf 9c st %g3, [ %fp + -100 ] <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
203a9f8: ad 2d a0 08 sll %l6, 8, %l6 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
203a9fc: ae 05 60 02 add %l5, 2, %l7 <== NOT EXECUTED
}
entry = rtems_rfs_buffer_data (&buffer);
entry += map.bpos.boff;
elength = rtems_rfs_dir_entry_length (entry);
203aa00: ac 15 80 0c or %l6, %o4, %l6 <== NOT EXECUTED
eino = rtems_rfs_dir_entry_ino (entry);
if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)
203aa04: 80 a5 80 14 cmp %l6, %l4 <== NOT EXECUTED
203aa08: 02 80 00 38 be 203aae8 <rtems_rfs_dir_read+0x274> <== NOT EXECUTED
203aa0c: b2 05 60 03 add %l5, 3, %i1 <== NOT EXECUTED
{
if (rtems_rfs_dir_entry_valid (fs, elength, eino))
203aa10: 80 a5 a0 0a cmp %l6, 0xa <== NOT EXECUTED
203aa14: 24 80 00 45 ble,a 203ab28 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
203aa18: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203aa1c: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
203aa20: 80 a5 80 01 cmp %l6, %g1 <== NOT EXECUTED
203aa24: 3a 80 00 41 bcc,a 203ab28 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
203aa28: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203aa2c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203aa30: 22 80 00 3e be,a 203ab28 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
203aa34: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
203aa38: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
203aa3c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203aa40: 38 80 00 3a bgu,a 203ab28 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
203aa44: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
}
memset (dirent, 0, sizeof (struct dirent));
203aa48: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
203aa4c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203aa50: 40 00 33 f0 call 2047a10 <memset> <== NOT EXECUTED
203aa54: 94 10 21 18 mov 0x118, %o2 <== NOT EXECUTED
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
203aa58: c2 07 40 00 ld [ %i5 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
rc = EIO;
break;
}
memset (dirent, 0, sizeof (struct dirent));
203aa5c: 84 10 21 18 mov 0x118, %g2 <== NOT EXECUTED
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
*length += elength;
203aa60: 82 05 80 01 add %l6, %g1, %g1 <== NOT EXECUTED
break;
}
memset (dirent, 0, sizeof (struct dirent));
dirent->d_off = offset;
dirent->d_reclen = sizeof (struct dirent);
203aa64: c4 37 20 10 sth %g2, [ %i4 + 0x10 ] <== NOT EXECUTED
*length += elength;
203aa68: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
203aa6c: c4 07 bf b4 ld [ %fp + -76 ], %g2 <== NOT EXECUTED
203aa70: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
203aa74: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
203aa78: 84 20 80 16 sub %g2, %l6, %g2 <== NOT EXECUTED
if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)
203aa7c: 80 a0 a0 0a cmp %g2, 0xa <== NOT EXECUTED
203aa80: 14 80 00 04 bg 203aa90 <rtems_rfs_dir_read+0x21c> <== NOT EXECUTED
203aa84: f4 3f 20 08 std %i2, [ %i4 + 8 ] <== NOT EXECUTED
*length += remaining;
203aa88: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203aa8c: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
elength -= RTEMS_RFS_DIR_ENTRY_SIZE;
203aa90: ac 05 bf f6 add %l6, -10, %l6 <== NOT EXECUTED
203aa94: 80 a5 a0 ff cmp %l6, 0xff <== NOT EXECUTED
203aa98: 34 80 00 02 bg,a 203aaa0 <rtems_rfs_dir_read+0x22c> <== NOT EXECUTED
203aa9c: ac 10 20 ff mov 0xff, %l6 <== NOT EXECUTED
if (elength > NAME_MAX)
elength = NAME_MAX;
memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
203aaa0: 90 07 20 14 add %i4, 0x14, %o0 <== NOT EXECUTED
203aaa4: 92 05 60 0a add %l5, 0xa, %o1 <== NOT EXECUTED
203aaa8: 40 00 33 47 call 20477c4 <memcpy> <== NOT EXECUTED
203aaac: 94 10 00 16 mov %l6, %o2 <== NOT EXECUTED
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
203aab0: c4 07 bf 9c ld [ %fp + -100 ], %g2 <== NOT EXECUTED
203aab4: c8 0d 40 00 ldub [ %l5 ], %g4 <== NOT EXECUTED
203aab8: c2 08 80 00 ldub [ %g2 ], %g1 <== NOT EXECUTED
203aabc: c6 0e 40 00 ldub [ %i1 ], %g3 <== NOT EXECUTED
203aac0: c4 0d c0 00 ldub [ %l7 ], %g2 <== NOT EXECUTED
203aac4: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203aac8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203aacc: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203aad0: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
dirent->d_namlen = elength;
203aad4: ec 37 20 12 sth %l6, [ %i4 + 0x12 ] <== NOT EXECUTED
if (elength > NAME_MAX)
elength = NAME_MAX;
memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
dirent->d_ino = rtems_rfs_dir_entry_ino (entry);
203aad8: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203aadc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
dirent->d_namlen = elength;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: found off:%" PRIdoff_t " ino:%ld name=%s\n",
dirent->d_off, dirent->d_ino, dirent->d_name);
break;
203aae0: 10 80 00 12 b 203ab28 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
203aae4: c2 27 00 00 st %g1, [ %i4 ] <== NOT EXECUTED
}
*length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;
203aae8: c6 04 20 08 ld [ %l0 + 8 ], %g3 <== NOT EXECUTED
203aaec: c4 07 40 00 ld [ %i5 ], %g2 <== NOT EXECUTED
203aaf0: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
203aaf4: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))
printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
offset, *length);
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
203aaf8: 7f ff fa 7c call 20394e8 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
203aafc: c2 27 40 00 st %g1, [ %i5 ] <== NOT EXECUTED
if (rc == ENXIO)
203ab00: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203ab04: 12 80 00 04 bne 203ab14 <rtems_rfs_dir_read+0x2a0> <== NOT EXECUTED
203ab08: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203ab0c: 10 80 00 07 b 203ab28 <rtems_rfs_dir_read+0x2b4> <== NOT EXECUTED
203ab10: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
/*
* Look for an empty entry and if this is the last block that is the end of
* the directory.
*/
while (rc == 0)
203ab14: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ab18: 02 bf ff 95 be 203a96c <rtems_rfs_dir_read+0xf8> <== NOT EXECUTED
203ab1c: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
rc = rtems_rfs_block_map_next_block (fs, &map, &block);
if (rc == ENXIO)
rc = ENOENT;
}
rtems_rfs_buffer_handle_close (fs, &buffer);
203ab20: 10 80 00 03 b 203ab2c <rtems_rfs_dir_read+0x2b8> <== NOT EXECUTED
203ab24: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203ab28: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
203ab2c: 7f ff fe d7 call 203a688 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203ab30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
203ab34: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ab38: 7f ff fc c1 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203ab3c: 92 07 bf a0 add %fp, -96, %o1 <== NOT EXECUTED
return rc;
}
203ab40: 81 c7 e0 08 ret <== NOT EXECUTED
203ab44: 81 e8 00 00 restore <== NOT EXECUTED
0203ba38 <rtems_rfs_file_close>:
}
int
rtems_rfs_file_close (rtems_rfs_file_system* fs,
rtems_rfs_file_handle* handle)
{
203ba38: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",
handle->shared->inode.ino);
if (handle->shared->references > 0)
203ba3c: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
203ba40: c4 00 60 08 ld [ %g1 + 8 ], %g2 <== NOT EXECUTED
203ba44: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203ba48: 04 80 00 03 ble 203ba54 <rtems_rfs_file_close+0x1c> <== NOT EXECUTED
203ba4c: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
handle->shared->references--;
203ba50: c4 20 60 08 st %g2, [ %g1 + 8 ] <== NOT EXECUTED
if (handle->shared->references == 0)
203ba54: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203ba58: c2 02 60 08 ld [ %o1 + 8 ], %g1 <== NOT EXECUTED
203ba5c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ba60: 12 80 00 5e bne 203bbd8 <rtems_rfs_file_close+0x1a0> <== NOT EXECUTED
203ba64: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))
203ba68: c2 02 60 18 ld [ %o1 + 0x18 ], %g1 <== NOT EXECUTED
203ba6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203ba70: 32 80 00 09 bne,a 203ba94 <rtems_rfs_file_close+0x5c> <== NOT EXECUTED
203ba74: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);
203ba78: 92 02 60 0c add %o1, 0xc, %o1 <== NOT EXECUTED
203ba7c: 40 00 08 0d call 203dab0 <rtems_rfs_inode_load> <== NOT EXECUTED
203ba80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rrc == 0)
203ba84: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203ba88: 32 80 00 3f bne,a 203bb84 <rtems_rfs_file_close+0x14c> <== NOT EXECUTED
203ba8c: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
{
/*
* @todo This could be clever and only update if different.
*/
rtems_rfs_inode_set_atime (&handle->shared->inode,
203ba90: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203ba94: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
203ba98: c2 00 a0 8c ld [ %g2 + 0x8c ], %g1 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
203ba9c: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203baa0: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
203baa4: da 29 20 10 stb %o5, [ %g4 + 0x10 ] <== NOT EXECUTED
203baa8: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203baac: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
203bab0: da 29 20 11 stb %o5, [ %g4 + 0x11 ] <== NOT EXECUTED
203bab4: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203bab8: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
203babc: da 29 20 12 stb %o5, [ %g4 + 0x12 ] <== NOT EXECUTED
203bac0: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203bac4: c2 29 20 13 stb %g1, [ %g4 + 0x13 ] <== NOT EXECUTED
handle->shared->atime);
rtems_rfs_inode_set_mtime (&handle->shared->inode,
203bac8: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203bacc: c6 28 a0 1c stb %g3, [ %g2 + 0x1c ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
203bad0: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203bad4: c4 00 60 90 ld [ %g1 + 0x90 ], %g2 <== NOT EXECUTED
203bad8: 9b 30 a0 18 srl %g2, 0x18, %o5 <== NOT EXECUTED
203badc: da 29 20 14 stb %o5, [ %g4 + 0x14 ] <== NOT EXECUTED
203bae0: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203bae4: 9b 30 a0 10 srl %g2, 0x10, %o5 <== NOT EXECUTED
203bae8: da 29 20 15 stb %o5, [ %g4 + 0x15 ] <== NOT EXECUTED
203baec: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203baf0: 9b 30 a0 08 srl %g2, 8, %o5 <== NOT EXECUTED
203baf4: da 29 20 16 stb %o5, [ %g4 + 0x16 ] <== NOT EXECUTED
203baf8: c8 00 60 18 ld [ %g1 + 0x18 ], %g4 <== NOT EXECUTED
203bafc: c4 29 20 17 stb %g2, [ %g4 + 0x17 ] <== NOT EXECUTED
handle->shared->mtime);
rtems_rfs_inode_set_ctime (&handle->shared->inode,
203bb00: c4 06 60 1c ld [ %i1 + 0x1c ], %g2 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203bb04: c6 28 60 1c stb %g3, [ %g1 + 0x1c ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,
rtems_rfs_time ctime)
{
rtems_rfs_write_u32 (&handle->node->ctime, ctime);
203bb08: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203bb0c: c2 00 a0 94 ld [ %g2 + 0x94 ], %g1 <== NOT EXECUTED
203bb10: 9b 30 60 18 srl %g1, 0x18, %o5 <== NOT EXECUTED
203bb14: da 29 20 18 stb %o5, [ %g4 + 0x18 ] <== NOT EXECUTED
203bb18: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203bb1c: 9b 30 60 10 srl %g1, 0x10, %o5 <== NOT EXECUTED
203bb20: da 29 20 19 stb %o5, [ %g4 + 0x19 ] <== NOT EXECUTED
203bb24: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203bb28: 9b 30 60 08 srl %g1, 8, %o5 <== NOT EXECUTED
203bb2c: da 29 20 1a stb %o5, [ %g4 + 0x1a ] <== NOT EXECUTED
203bb30: c8 00 a0 18 ld [ %g2 + 0x18 ], %g4 <== NOT EXECUTED
203bb34: c2 29 20 1b stb %g1, [ %g4 + 0x1b ] <== NOT EXECUTED
handle->shared->ctime);
if (!rtems_rfs_block_size_equal (&handle->shared->size,
203bb38: c2 06 60 1c ld [ %i1 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203bb3c: c6 28 a0 1c stb %g3, [ %g2 + 0x1c ] <== NOT EXECUTED
203bb40: c4 00 60 84 ld [ %g1 + 0x84 ], %g2 <== NOT EXECUTED
203bb44: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
203bb48: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
203bb4c: 32 80 00 08 bne,a 203bb6c <rtems_rfs_file_close+0x134> <== NOT EXECUTED
203bb50: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 <== NOT EXECUTED
203bb54: c8 00 60 88 ld [ %g1 + 0x88 ], %g4 <== NOT EXECUTED
203bb58: c6 00 60 40 ld [ %g1 + 0x40 ], %g3 <== NOT EXECUTED
203bb5c: 80 a1 00 03 cmp %g4, %g3 <== NOT EXECUTED
203bb60: 02 80 00 08 be 203bb80 <rtems_rfs_file_close+0x148> <== NOT EXECUTED
203bb64: a0 10 20 00 clr %l0 <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size (rtems_rfs_block_map* map,
rtems_rfs_block_size* size)
{
rtems_rfs_block_copy_size (&map->size, size);
203bb68: c6 00 60 88 ld [ %g1 + 0x88 ], %g3 <== NOT EXECUTED
203bb6c: c4 20 60 3c st %g2, [ %g1 + 0x3c ] <== NOT EXECUTED
203bb70: c6 20 60 40 st %g3, [ %g1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203bb74: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203bb78: a0 10 20 00 clr %l0 <== NOT EXECUTED
203bb7c: c4 28 60 34 stb %g2, [ %g1 + 0x34 ] <== NOT EXECUTED
&handle->shared->map.size))
rtems_rfs_block_map_set_size (&handle->shared->map,
&handle->shared->size);
}
rc = rtems_rfs_block_map_close (fs, &handle->shared->map);
203bb80: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203bb84: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203bb88: 7f ff f8 ad call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203bb8c: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
if (rc > 0)
203bb90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bb94: 04 80 00 04 ble 203bba4 <rtems_rfs_file_close+0x16c> <== NOT EXECUTED
203bb98: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
handle->shared->inode.ino, rc, strerror (rc));
if (rrc == 0)
203bb9c: 22 80 00 02 be,a 203bba4 <rtems_rfs_file_close+0x16c> <== NOT EXECUTED
203bba0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rrc = rc;
}
rc = rtems_rfs_inode_close (fs, &handle->shared->inode);
203bba4: d2 06 60 1c ld [ %i1 + 0x1c ], %o1 <== NOT EXECUTED
203bba8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203bbac: 40 00 07 b2 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203bbb0: 92 02 60 0c add %o1, 0xc, %o1 <== NOT EXECUTED
if (rc > 0)
203bbb4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bbb8: 04 80 00 04 ble 203bbc8 <rtems_rfs_file_close+0x190> <== NOT EXECUTED
203bbbc: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
handle->shared->inode.ino, rc, strerror (rc));
if (rrc == 0)
203bbc0: 22 80 00 02 be,a 203bbc8 <rtems_rfs_file_close+0x190> <== NOT EXECUTED
203bbc4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
203bbc8: 7f ff 46 fc call 200d7b8 <_Chain_Extract> <== NOT EXECUTED
203bbcc: d0 06 60 1c ld [ %i1 + 0x1c ], %o0 <== NOT EXECUTED
rrc = rc;
}
rtems_chain_extract (&handle->shared->link);
free (handle->shared);
203bbd0: 7f ff 31 a4 call 2008260 <free> <== NOT EXECUTED
203bbd4: d0 06 60 1c ld [ %i1 + 0x1c ], %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203bbd8: 92 06 60 04 add %i1, 4, %o1 <== NOT EXECUTED
203bbdc: 7f ff f9 db call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203bbe0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
printf ("rtems-rfs: file-close: result: %d: %s\n", rrc, strerror (rrc));
}
free (handle);
203bbe4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
handle->dirty = false;
203bbe8: c0 2e 60 04 clrb [ %i1 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203bbec: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
203bbf0: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
203bbf4: 7f ff 31 9b call 2008260 <free> <== NOT EXECUTED
203bbf8: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
return rrc;
}
203bbfc: 81 c7 e0 08 ret <== NOT EXECUTED
203bc00: 81 e8 00 00 restore <== NOT EXECUTED
0203b2d8 <rtems_rfs_file_get_shared>:
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
203b2d8: 84 02 20 74 add %o0, 0x74, %g2 <== NOT EXECUTED
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
203b2dc: 10 80 00 06 b 203b2f4 <rtems_rfs_file_get_shared+0x1c> <== NOT EXECUTED
203b2e0: c2 02 20 70 ld [ %o0 + 0x70 ], %g1 <== NOT EXECUTED
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
if (shared->inode.ino == ino)
203b2e4: 80 a0 c0 09 cmp %g3, %o1 <== NOT EXECUTED
203b2e8: 02 80 00 07 be 203b304 <rtems_rfs_file_get_shared+0x2c> <== NOT EXECUTED
203b2ec: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
203b2f0: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
203b2f4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b2f8: 32 bf ff fb bne,a 203b2e4 <rtems_rfs_file_get_shared+0xc><== NOT EXECUTED
203b2fc: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
203b300: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (shared->inode.ino == ino)
return shared;
node = rtems_chain_next (node);
}
return NULL;
}
203b304: 81 c3 e0 08 retl <== NOT EXECUTED
0203b854 <rtems_rfs_file_io_end>:
int
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,
size_t size,
bool read)
{
203b854: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: end: %s size=%zu\n",
read ? "read" : "write", size);
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
203b858: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203b85c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b860: 02 80 00 1d be 203b8d4 <rtems_rfs_file_io_end+0x80> <== NOT EXECUTED
203b864: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
{
if (!read)
203b868: 32 80 00 05 bne,a 203b87c <rtems_rfs_file_io_end+0x28> <== NOT EXECUTED
203b86c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
203b870: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203b874: c2 2e 20 04 stb %g1, [ %i0 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203b878: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203b87c: 92 06 20 04 add %i0, 4, %o1 <== NOT EXECUTED
203b880: 7f ff fa b2 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b884: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
203b888: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203b88c: 04 80 00 13 ble 203b8d8 <rtems_rfs_file_io_end+0x84> <== NOT EXECUTED
203b890: 23 00 81 a0 sethi %hi(0x2068000), %l1 <== NOT EXECUTED
{
printf (
203b894: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203b898: 12 80 00 04 bne 203b8a8 <rtems_rfs_file_io_end+0x54> <== NOT EXECUTED
203b89c: a2 14 63 08 or %l1, 0x308, %l1 <== NOT EXECUTED
203b8a0: 23 00 81 a0 sethi %hi(0x2068000), %l1 <== NOT EXECUTED
203b8a4: a2 14 63 00 or %l1, 0x300, %l1 ! 2068300 <__FUNCTION__.7699+0x28><== NOT EXECUTED
203b8a8: 40 00 3d 2b call 204ad54 <strerror> <== NOT EXECUTED
203b8ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203b8b0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203b8b4: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
203b8b8: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
203b8bc: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
203b8c0: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203b8c4: 40 00 34 6f call 2048a80 <printf> <== NOT EXECUTED
203b8c8: 90 12 23 10 or %o0, 0x310, %o0 <== NOT EXECUTED
"rtems-rfs: file-io: end: error on release: %s size=%zu: %d: %s\n",
read ? "read" : "write", size, rc, strerror (rc));
return rc;
203b8cc: 81 c7 e0 08 ret <== NOT EXECUTED
203b8d0: 91 e8 00 10 restore %g0, %l0, %o0 <== NOT EXECUTED
203b8d4: a0 10 20 00 clr %l0 <== NOT EXECUTED
* the size with the new length. The map holds the block count.
*/
handle->bpos.boff += size;
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
203b8d8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
* increase the block number and adjust the offset.
*
* If we are the last block and the position is past the current size update
* the size with the new length. The map holds the block count.
*/
handle->bpos.boff += size;
203b8dc: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
203b8e0: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
* increase the block number and adjust the offset.
*
* If we are the last block and the position is past the current size update
* the size with the new length. The map holds the block count.
*/
handle->bpos.boff += size;
203b8e4: b2 06 40 02 add %i1, %g2, %i1 <== NOT EXECUTED
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
203b8e8: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
203b8ec: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203b8f0: 0a 80 00 07 bcs 203b90c <rtems_rfs_file_io_end+0xb8> <== NOT EXECUTED
203b8f4: f2 26 20 14 st %i1, [ %i0 + 0x14 ] <== NOT EXECUTED
{
handle->bpos.bno++;
203b8f8: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203b8fc: b2 26 40 01 sub %i1, %g1, %i1 <== NOT EXECUTED
handle->bpos.boff += size;
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
{
handle->bpos.bno++;
203b900: 82 00 a0 01 add %g2, 1, %g1 <== NOT EXECUTED
handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203b904: f2 26 20 14 st %i1, [ %i0 + 0x14 ] <== NOT EXECUTED
handle->bpos.boff += size;
if (handle->bpos.boff >=
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))
{
handle->bpos.bno++;
203b908: c2 26 20 10 st %g1, [ %i0 + 0x10 ] <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
203b90c: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203b910: 12 80 00 20 bne 203b990 <rtems_rfs_file_io_end+0x13c> <== NOT EXECUTED
203b914: 82 10 20 00 clr %g1 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
203b918: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
203b91c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b920: 02 80 00 07 be 203b93c <rtems_rfs_file_io_end+0xe8> <== NOT EXECUTED
203b924: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
203b928: c4 00 a0 3c ld [ %g2 + 0x3c ], %g2 <== NOT EXECUTED
203b92c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203b930: 22 80 00 11 be,a 203b974 <rtems_rfs_file_io_end+0x120> <== NOT EXECUTED
203b934: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203b938: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
203b93c: c6 00 a0 3c ld [ %g2 + 0x3c ], %g3 <== NOT EXECUTED
}
length = false;
mtime = false;
if (!read &&
203b940: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203b944: 3a 80 00 0c bcc,a 203b974 <rtems_rfs_file_io_end+0x120> <== NOT EXECUTED
203b948: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203b94c: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203b950: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
203b954: 12 80 00 0f bne 203b990 <rtems_rfs_file_io_end+0x13c> <== NOT EXECUTED
203b958: 82 10 20 00 clr %g1 <== NOT EXECUTED
rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),
203b95c: c2 00 a0 40 ld [ %g2 + 0x40 ], %g1 <== NOT EXECUTED
203b960: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
203b964: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203b968: 28 80 00 0a bleu,a 203b990 <rtems_rfs_file_io_end+0x13c> <== NOT EXECUTED
203b96c: 82 10 20 00 clr %g1 <== NOT EXECUTED
rtems_rfs_file_bpos (handle)))
{
rtems_rfs_block_map_set_size_offset (rtems_rfs_file_map (handle),
203b970: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
203b974: c4 06 20 14 ld [ %i0 + 0x14 ], %g2 <== NOT EXECUTED
map->dirty = true;
203b978: 86 10 20 01 mov 1, %g3 <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
203b97c: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203b980: c6 28 60 34 stb %g3, [ %g1 + 0x34 ] <== NOT EXECUTED
203b984: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203b988: 10 80 00 03 b 203b994 <rtems_rfs_file_io_end+0x140> <== NOT EXECUTED
203b98c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203b990: 84 10 20 00 clr %g2 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
203b994: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
203b998: 86 0c 60 02 and %l1, 2, %g3 <== NOT EXECUTED
203b99c: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
203b9a0: 86 0c 60 04 and %l1, 4, %g3 <== NOT EXECUTED
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
203b9a4: b2 60 3f ff subx %g0, -1, %i1 <== NOT EXECUTED
length = rtems_rfs_file_update_length (handle) && length;
203b9a8: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
203b9ac: a2 1c 60 01 xor %l1, 1, %l1 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
length = rtems_rfs_file_update_length (handle) && length;
203b9b0: a4 60 3f ff subx %g0, -1, %l2 <== NOT EXECUTED
handle->bpos.boff);
length = true;
mtime = true;
}
atime = rtems_rfs_file_update_atime (handle);
203b9b4: a2 0c 60 01 and %l1, 1, %l1 <== NOT EXECUTED
mtime = rtems_rfs_file_update_mtime (handle) && mtime;
203b9b8: b2 0e 40 02 and %i1, %g2, %i1 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
handle->bpos.bno, handle->bpos.boff,
atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
if (atime || mtime)
203b9bc: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203b9c0: 12 80 00 05 bne 203b9d4 <rtems_rfs_file_io_end+0x180> <== NOT EXECUTED
203b9c4: a4 0c 80 01 and %l2, %g1, %l2 <== NOT EXECUTED
203b9c8: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203b9cc: 02 80 00 11 be 203ba10 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203b9d0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
{
time_t now = time (NULL);
203b9d4: 40 00 52 e6 call 205056c <time> <== NOT EXECUTED
203b9d8: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (read && atime)
203b9dc: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203b9e0: 02 80 00 08 be 203ba00 <rtems_rfs_file_io_end+0x1ac> <== NOT EXECUTED
203b9e4: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203b9e8: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203b9ec: 02 80 00 09 be 203ba10 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203b9f0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
handle->shared->atime = now;
203b9f4: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203b9f8: 10 80 00 06 b 203ba10 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203b9fc: d0 20 60 8c st %o0, [ %g1 + 0x8c ] <== NOT EXECUTED
if (!read && mtime)
203ba00: 02 80 00 04 be 203ba10 <rtems_rfs_file_io_end+0x1bc> <== NOT EXECUTED
203ba04: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
handle->shared->mtime = now;
203ba08: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203ba0c: d0 20 60 90 st %o0, [ %g1 + 0x90 ] <== NOT EXECUTED
}
if (length)
203ba10: 22 80 00 08 be,a 203ba30 <rtems_rfs_file_io_end+0x1dc> <== NOT EXECUTED
203ba14: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
{
handle->shared->size.count =
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
203ba18: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
203ba1c: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
203ba20: c4 00 60 40 ld [ %g1 + 0x40 ], %g2 <== NOT EXECUTED
if (!read && mtime)
handle->shared->mtime = now;
}
if (length)
{
handle->shared->size.count =
203ba24: c6 20 60 84 st %g3, [ %g1 + 0x84 ] <== NOT EXECUTED
rtems_rfs_block_map_count (rtems_rfs_file_map (handle));
handle->shared->size.offset =
203ba28: c4 20 60 88 st %g2, [ %g1 + 0x88 ] <== NOT EXECUTED
rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
}
return rc;
}
203ba2c: b0 10 00 10 mov %l0, %i0 <== NOT EXECUTED
203ba30: 81 c7 e0 08 ret <== NOT EXECUTED
203ba34: 81 e8 00 00 restore <== NOT EXECUTED
0203b46c <rtems_rfs_file_io_release>:
int
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)
{
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
203b46c: c2 02 20 0c ld [ %o0 + 0xc ], %g1 <== NOT EXECUTED
203b470: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b474: 32 80 00 04 bne,a 203b484 <rtems_rfs_file_io_release+0x18><== NOT EXECUTED
203b478: c2 02 20 1c ld [ %o0 + 0x1c ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
rtems_rfs_file_buffer (handle));
return rc;
}
203b47c: 81 c3 e0 08 retl <== NOT EXECUTED
203b480: 90 10 20 00 clr %o0 <== NOT EXECUTED
int
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)
{
int rc = 0;
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203b484: 92 02 20 04 add %o0, 4, %o1 <== NOT EXECUTED
203b488: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b48c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203b490: 7f ff fb ae call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b494: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203b30c <rtems_rfs_file_io_start>:
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
203b30c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
read ? "read" : "write", handle->bpos.bno, handle->bpos.boff);
if (!rtems_rfs_buffer_handle_has_block (&handle->buffer))
203b310: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
int
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,
size_t* available,
bool read)
{
203b314: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
read ? "read" : "write", handle->bpos.bno, handle->bpos.boff);
if (!rtems_rfs_buffer_handle_has_block (&handle->buffer))
203b318: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b31c: 12 80 00 38 bne 203b3fc <rtems_rfs_file_io_start+0xf0> <== NOT EXECUTED
203b320: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
bool request_read;
int rc;
request_read = read;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
203b324: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
203b328: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203b32c: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203b330: 94 06 20 10 add %i0, 0x10, %o2 <== NOT EXECUTED
203b334: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
203b338: 7f ff f8 12 call 2039380 <rtems_rfs_block_map_find> <== NOT EXECUTED
203b33c: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
203b340: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b344: 04 80 00 16 ble 203b39c <rtems_rfs_file_io_start+0x90> <== NOT EXECUTED
203b348: 82 0e a0 ff and %i2, 0xff, %g1 <== NOT EXECUTED
{
/*
* Has the read reached the EOF ?
*/
if (read && (rc == ENXIO))
203b34c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b350: 02 80 00 07 be 203b36c <rtems_rfs_file_io_start+0x60> <== NOT EXECUTED
203b354: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
203b358: 12 80 00 43 bne 203b464 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203b35c: 01 00 00 00 nop <== NOT EXECUTED
{
*available = 0;
203b360: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
return 0;
203b364: 10 80 00 40 b 203b464 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203b368: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
if (rc != ENXIO)
203b36c: 12 80 00 3e bne 203b464 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203b370: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
return rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: grow\n");
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
203b374: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
203b378: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203b37c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203b380: 7f ff f9 c9 call 2039aa4 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203b384: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
1, &block);
if (rc > 0)
203b388: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b38c: 14 80 00 36 bg 203b464 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203b390: b4 10 20 00 clr %i2 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
block, request_read ? "yes" : "no");
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
203b394: 10 80 00 12 b 203b3dc <rtems_rfs_file_io_start+0xd0> <== NOT EXECUTED
203b398: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
/*
* If this is a write check if the write starts within a block or the
* amount of data is less than a block size. If it is read the block
* rather than getting a block to fill.
*/
if (!read &&
203b39c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b3a0: 32 80 00 0f bne,a 203b3dc <rtems_rfs_file_io_start+0xd0> <== NOT EXECUTED
203b3a4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
(rtems_rfs_file_block_offset (handle) ||
203b3a8: c2 06 20 14 ld [ %i0 + 0x14 ], %g1 <== NOT EXECUTED
203b3ac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b3b0: 12 80 00 0a bne 203b3d8 <rtems_rfs_file_io_start+0xcc> <== NOT EXECUTED
203b3b4: b4 10 20 01 mov 1, %i2 <== NOT EXECUTED
(*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
203b3b8: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203b3bc: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
203b3c0: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203b3c4: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
203b3c8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203b3cc: 2a 80 00 04 bcs,a 203b3dc <rtems_rfs_file_io_start+0xd0> <== NOT EXECUTED
203b3d0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b3d4: b4 10 20 00 clr %i2 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
block, request_read ? "yes" : "no");
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
203b3d8: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b3dc: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203b3e0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b3e4: 96 0e a0 ff and %i2, 0xff, %o3 <== NOT EXECUTED
203b3e8: 7f ff fc 22 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203b3ec: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, request_read);
if (rc > 0)
203b3f0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b3f4: 14 80 00 1c bg 203b464 <rtems_rfs_file_io_start+0x158> <== NOT EXECUTED
203b3f8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
if (read
203b3fc: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
203b400: 02 80 00 13 be 203b44c <rtems_rfs_file_io_start+0x140> <== NOT EXECUTED
203b404: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
203b408: c4 00 60 44 ld [ %g1 + 0x44 ], %g2 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203b40c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203b410: 12 80 00 06 bne 203b428 <rtems_rfs_file_io_start+0x11c> <== NOT EXECUTED
203b414: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
203b418: 80 a0 e0 00 cmp %g3, 0 <== NOT EXECUTED
203b41c: 22 80 00 08 be,a 203b43c <rtems_rfs_file_io_start+0x130> <== NOT EXECUTED
203b420: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203b424: c6 00 60 3c ld [ %g1 + 0x3c ], %g3 <== NOT EXECUTED
203b428: 86 00 ff ff add %g3, -1, %g3 <== NOT EXECUTED
203b42c: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
203b430: 32 80 00 07 bne,a 203b44c <rtems_rfs_file_io_start+0x140><== NOT EXECUTED
203b434: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
203b438: c2 00 60 40 ld [ %g1 + 0x40 ], %g1 <== NOT EXECUTED
block, request_read);
if (rc > 0)
return rc;
}
if (read
203b43c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b440: 32 80 00 06 bne,a 203b458 <rtems_rfs_file_io_start+0x14c><== NOT EXECUTED
203b444: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
&& rtems_rfs_block_map_last (rtems_rfs_file_map (handle))
&& rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
size = rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
else
size = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203b448: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b44c: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203b450: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
*available = size - rtems_rfs_file_block_offset (handle);
203b454: c4 04 20 14 ld [ %l0 + 0x14 ], %g2 <== NOT EXECUTED
203b458: 90 10 20 00 clr %o0 <== NOT EXECUTED
203b45c: 82 20 40 02 sub %g1, %g2, %g1 <== NOT EXECUTED
203b460: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",
*available, size);
return 0;
}
203b464: 81 c7 e0 08 ret <== NOT EXECUTED
203b468: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203bc04 <rtems_rfs_file_open>:
int
rtems_rfs_file_open (rtems_rfs_file_system* fs,
rtems_rfs_ino ino,
uint32_t flags,
rtems_rfs_file_handle** file)
{
203bc04: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* Allocate a new handle and initialise it. Do this before we deal with the
* shared node data so we do not have to be concerned with reference
* counting.
*/
handle = malloc (sizeof (rtems_rfs_file_handle));
203bc08: 90 10 20 20 mov 0x20, %o0 <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);
*file = NULL;
203bc0c: c0 26 c0 00 clr [ %i3 ] <== NOT EXECUTED
/*
* Allocate a new handle and initialise it. Do this before we deal with the
* shared node data so we do not have to be concerned with reference
* counting.
*/
handle = malloc (sizeof (rtems_rfs_file_handle));
203bc10: 7f ff 33 5b call 200897c <malloc> <== NOT EXECUTED
203bc14: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
if (!handle)
203bc18: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
203bc1c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bc20: 02 80 00 25 be 203bcb4 <rtems_rfs_file_open+0xb0> <== NOT EXECUTED
203bc24: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
return ENOMEM;
memset (handle, 0, sizeof (rtems_rfs_file_handle));
203bc28: 92 10 20 00 clr %o1 <== NOT EXECUTED
203bc2c: 40 00 2f 79 call 2047a10 <memset> <== NOT EXECUTED
203bc30: 94 10 20 20 mov 0x20, %o2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return the_chain->first;
203bc34: c2 04 60 70 ld [ %l1 + 0x70 ], %g1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203bc38: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203bc3c: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
203bc40: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
203bc44: 10 80 00 06 b 203bc5c <rtems_rfs_file_open+0x58> <== NOT EXECUTED
203bc48: 84 04 60 74 add %l1, 0x74, %g2 <== NOT EXECUTED
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
{
rtems_rfs_file_shared* shared;
shared = (rtems_rfs_file_shared*) node;
if (shared->inode.ino == ino)
203bc4c: 80 a0 c0 19 cmp %g3, %i1 <== NOT EXECUTED
203bc50: 02 80 00 07 be 203bc6c <rtems_rfs_file_open+0x68> <== NOT EXECUTED
203bc54: a4 10 00 01 mov %g1, %l2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
203bc58: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
rtems_chain_node* node;
node = rtems_chain_first (&fs->file_shares);
while (!rtems_chain_is_tail (&fs->file_shares, node))
203bc5c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203bc60: 32 bf ff fb bne,a 203bc4c <rtems_rfs_file_open+0x48> <== NOT EXECUTED
203bc64: c6 00 60 14 ld [ %g1 + 0x14 ], %g3 <== NOT EXECUTED
203bc68: 30 80 00 05 b,a 203bc7c <rtems_rfs_file_open+0x78> <== NOT EXECUTED
* the reference count and return the pointer to the data.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
shared->references++;
203bc6c: c2 00 60 08 ld [ %g1 + 8 ], %g1 <== NOT EXECUTED
203bc70: 82 00 60 01 inc %g1 <== NOT EXECUTED
203bc74: 10 80 00 71 b 203be38 <rtems_rfs_file_open+0x234> <== NOT EXECUTED
203bc78: c2 24 a0 08 st %g1, [ %l2 + 8 ] <== NOT EXECUTED
{
/*
* None exists so create. Copy in the shared parts of the inode we hold in
* memory.
*/
shared = malloc (sizeof (rtems_rfs_file_shared));
203bc7c: 7f ff 33 40 call 200897c <malloc> <== NOT EXECUTED
203bc80: 90 10 20 9c mov 0x9c, %o0 <== NOT EXECUTED
if (!shared)
203bc84: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203bc88: 12 80 00 0d bne 203bcbc <rtems_rfs_file_open+0xb8> <== NOT EXECUTED
203bc8c: 92 10 20 00 clr %o1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203bc90: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
203bc94: 7f ff f9 ad call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203bc98: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
203bc9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203bca0: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203bca4: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
handle->buffer = NULL;
203bca8: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
203bcac: 7f ff 31 6d call 2008260 <free> <== NOT EXECUTED
203bcb0: b0 10 20 0c mov 0xc, %i0 <== NOT EXECUTED
return ENOMEM;
203bcb4: 81 c7 e0 08 ret <== NOT EXECUTED
203bcb8: 81 e8 00 00 restore <== NOT EXECUTED
}
memset (shared, 0, sizeof (rtems_rfs_file_shared));
203bcbc: 40 00 2f 55 call 2047a10 <memset> <== NOT EXECUTED
203bcc0: 94 10 20 9c mov 0x9c, %o2 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);
203bcc4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203bcc8: a6 04 a0 0c add %l2, 0xc, %l3 <== NOT EXECUTED
203bccc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203bcd0: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203bcd4: 40 00 07 91 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203bcd8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203bcdc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bce0: 14 80 00 0a bg 203bd08 <rtems_rfs_file_open+0x104> <== NOT EXECUTED
203bce4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
return rc;
}
rc = rtems_rfs_block_map_open (fs, &shared->inode, &shared->map);
203bce8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203bcec: 7f ff f8 c5 call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203bcf0: 94 04 a0 34 add %l2, 0x34, %o2 <== NOT EXECUTED
if (rc > 0)
203bcf4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203bcf8: 04 80 00 10 ble 203bd38 <rtems_rfs_file_open+0x134> <== NOT EXECUTED
203bcfc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: block map open failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &shared->inode);
203bd00: 40 00 07 5d call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203bd04: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free (shared);
203bd08: 7f ff 31 56 call 2008260 <free> <== NOT EXECUTED
203bd0c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203bd10: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203bd14: 7f ff f9 8d call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203bd18: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle->buffer);
free (handle);
203bd1c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
handle->dirty = false;
203bd20: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
handle->bnum = 0;
203bd24: c0 24 20 08 clr [ %l0 + 8 ] <== NOT EXECUTED
203bd28: 7f ff 31 4e call 2008260 <free> <== NOT EXECUTED
203bd2c: c0 24 20 0c clr [ %l0 + 0xc ] <== NOT EXECUTED
return rc;
203bd30: 81 c7 e0 08 ret <== NOT EXECUTED
203bd34: 81 e8 00 00 restore <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
203bd38: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1 <== NOT EXECUTED
}
shared->references = 1;
203bd3c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203bd40: c4 24 a0 08 st %g2, [ %l2 + 8 ] <== NOT EXECUTED
203bd44: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
203bd48: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
203bd4c: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203bd50: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203bd54: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203bd58: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203bd5c: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203bd60: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203bd64: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203bd68: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203bd6c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203bd70: c4 24 a0 84 st %g2, [ %l2 + 0x84 ] <== NOT EXECUTED
shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
203bd74: c6 08 60 0b ldub [ %g1 + 0xb ], %g3 <== NOT EXECUTED
203bd78: c4 08 60 0a ldub [ %g1 + 0xa ], %g2 <== 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 );
203bd7c: 90 04 60 70 add %l1, 0x70, %o0 <== NOT EXECUTED
203bd80: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203bd84: 84 10 c0 02 or %g3, %g2, %g2 <== NOT EXECUTED
203bd88: c4 24 a0 88 st %g2, [ %l2 + 0x88 ] <== NOT EXECUTED
* @return rtems_rfs_time The atime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->atime);
203bd8c: 84 00 60 10 add %g1, 0x10, %g2 <== NOT EXECUTED
shared->atime = rtems_rfs_inode_get_atime (&shared->inode);
203bd90: d8 08 60 10 ldub [ %g1 + 0x10 ], %o4 <== NOT EXECUTED
203bd94: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203bd98: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203bd9c: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203bda0: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203bda4: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203bda8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203bdac: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203bdb0: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203bdb4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203bdb8: c4 24 a0 8c st %g2, [ %l2 + 0x8c ] <== NOT EXECUTED
* @return rtems_rfs_time The mtime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->mtime);
203bdbc: 84 00 60 14 add %g1, 0x14, %g2 <== NOT EXECUTED
shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);
203bdc0: d8 08 60 14 ldub [ %g1 + 0x14 ], %o4 <== NOT EXECUTED
203bdc4: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203bdc8: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203bdcc: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203bdd0: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203bdd4: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203bdd8: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203bddc: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203bde0: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203bde4: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203bde8: c4 24 a0 90 st %g2, [ %l2 + 0x90 ] <== NOT EXECUTED
shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);
203bdec: da 08 60 18 ldub [ %g1 + 0x18 ], %o5 <== NOT EXECUTED
* @return rtems_rfs_time The ctime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->ctime);
203bdf0: 82 00 60 18 add %g1, 0x18, %g1 <== NOT EXECUTED
203bdf4: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203bdf8: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
203bdfc: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203be00: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203be04: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
203be08: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203be0c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203be10: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203be14: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203be18: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203be1c: c2 24 a0 94 st %g1, [ %l2 + 0x94 ] <== NOT EXECUTED
203be20: 7f ff 46 5a call 200d788 <_Chain_Append> <== NOT EXECUTED
203be24: e2 24 a0 98 st %l1, [ %l2 + 0x98 ] <== NOT EXECUTED
shared->fs = fs;
rtems_chain_append (&fs->file_shares, &shared->link);
rtems_rfs_inode_unload (fs, &shared->inode, false);
203be28: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203be2c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203be30: 40 00 06 e6 call 203d9c8 <rtems_rfs_inode_unload> <== NOT EXECUTED
203be34: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
handle->flags = flags;
handle->shared = shared;
*file = handle;
203be38: e0 26 c0 00 st %l0, [ %i3 ] <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
}
handle->flags = flags;
203be3c: f4 24 00 00 st %i2, [ %l0 ] <== NOT EXECUTED
handle->shared = shared;
203be40: e4 24 20 1c st %l2, [ %l0 + 0x1c ] <== NOT EXECUTED
*file = handle;
203be44: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203be48: 81 c7 e0 08 ret <== NOT EXECUTED
203be4c: 81 e8 00 00 restore <== NOT EXECUTED
0203b784 <rtems_rfs_file_seek>:
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
203b784: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
* file, this function does not itself extend the size of the file."
*
* This means the file needs to set the file size to the pos only when a
* write occurs.
*/
if (pos < rtems_rfs_file_shared_get_size (rtems_rfs_file_fs (handle),
203b788: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
int
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,
rtems_rfs_pos pos,
rtems_rfs_pos* new_pos)
{
203b78c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203b790: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203b794: 7f ff f6 c1 call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203b798: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
* file, this function does not itself extend the size of the file."
*
* This means the file needs to set the file size to the pos only when a
* write occurs.
*/
if (pos < rtems_rfs_file_shared_get_size (rtems_rfs_file_fs (handle),
203b79c: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
203b7a0: 38 80 00 08 bgu,a 203b7c0 <rtems_rfs_file_seek+0x3c> <== NOT EXECUTED
203b7a4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b7a8: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
203b7ac: 12 80 00 20 bne 203b82c <rtems_rfs_file_seek+0xa8> <== NOT EXECUTED
203b7b0: 80 a2 40 1a cmp %o1, %i2 <== NOT EXECUTED
203b7b4: 08 80 00 1e bleu 203b82c <rtems_rfs_file_seek+0xa8> <== NOT EXECUTED
203b7b8: 01 00 00 00 nop <== NOT EXECUTED
handle->shared))
{
rtems_rfs_file_set_bpos (handle, pos);
203b7bc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b7c0: a2 04 20 10 add %l0, 0x10, %l1 <== NOT EXECUTED
203b7c4: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b7c8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203b7cc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203b7d0: 7f ff f6 83 call 20391dc <rtems_rfs_block_get_bpos> <== NOT EXECUTED
203b7d4: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
/*
* If the file has a block check if it maps to the current position and it
* does not release it. That will force us to get the block at the new
* position when the I/O starts.
*/
if (rtems_rfs_buffer_handle_has_block (&handle->buffer))
203b7d8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203b7dc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b7e0: 02 80 00 18 be 203b840 <rtems_rfs_file_seek+0xbc> <== NOT EXECUTED
203b7e4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
{
rtems_rfs_buffer_block block;
int rc;
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
203b7e8: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203b7ec: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203b7f0: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
203b7f4: 7f ff f6 e3 call 2039380 <rtems_rfs_block_map_find> <== NOT EXECUTED
203b7f8: 92 02 60 34 add %o1, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
rtems_rfs_file_bpos (handle),
&block);
if (rc > 0)
203b7fc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b800: 14 80 00 13 bg 203b84c <rtems_rfs_file_seek+0xc8> <== NOT EXECUTED
203b804: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
return rc;
if (rtems_rfs_buffer_bnum (&handle->buffer) != block)
203b808: c4 04 20 08 ld [ %l0 + 8 ], %g2 <== NOT EXECUTED
203b80c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203b810: 02 80 00 0c be 203b840 <rtems_rfs_file_seek+0xbc> <== NOT EXECUTED
203b814: 92 04 20 04 add %l0, 4, %o1 <== NOT EXECUTED
{
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203b818: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b81c: 7f ff fa cb call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b820: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
/*
* The seek is outside the current file so release any buffer. A write will
* extend the file.
*/
int rc = rtems_rfs_file_io_release (handle);
if (rc > 0)
203b824: 10 80 00 05 b 203b838 <rtems_rfs_file_seek+0xb4> <== NOT EXECUTED
203b828: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
{
/*
* The seek is outside the current file so release any buffer. A write will
* extend the file.
*/
int rc = rtems_rfs_file_io_release (handle);
203b82c: 7f ff ff 10 call 203b46c <rtems_rfs_file_io_release> <== NOT EXECUTED
203b830: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203b834: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b838: 14 80 00 05 bg 203b84c <rtems_rfs_file_seek+0xc8> <== NOT EXECUTED
203b83c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
*new_pos = pos;
203b840: f4 26 e0 04 st %i2, [ %i3 + 4 ] <== NOT EXECUTED
203b844: f2 26 c0 00 st %i1, [ %i3 ] <== NOT EXECUTED
203b848: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
}
203b84c: 81 c7 e0 08 ret <== NOT EXECUTED
203b850: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203b49c <rtems_rfs_file_set_size>:
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
203b49c: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
203b4a0: e2 06 20 1c ld [ %i0 + 0x1c ], %l1 <== NOT EXECUTED
}
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
203b4a4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203b4a8: d0 04 60 98 ld [ %l1 + 0x98 ], %o0 <== NOT EXECUTED
203b4ac: 92 04 60 84 add %l1, 0x84, %o1 <== NOT EXECUTED
203b4b0: 7f ff f7 7a call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203b4b4: a4 10 00 19 mov %i1, %l2 <== NOT EXECUTED
/*
* If the file is same size do nothing else grow or shrink it ?
*
* If the file does not change size do not update the times.
*/
if (size != new_size)
203b4b8: 80 a2 00 19 cmp %o0, %i1 <== NOT EXECUTED
203b4bc: 12 80 00 05 bne 203b4d0 <rtems_rfs_file_set_size+0x34> <== NOT EXECUTED
203b4c0: a6 10 00 1a mov %i2, %l3 <== NOT EXECUTED
203b4c4: 80 a2 40 1a cmp %o1, %i2 <== NOT EXECUTED
203b4c8: 22 80 00 ad be,a 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b4cc: 90 10 20 00 clr %o0 <== NOT EXECUTED
{
/*
* Short cut for the common truncate on open call.
*/
if (new_size == 0)
203b4d0: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
203b4d4: 12 80 00 0b bne 203b500 <rtems_rfs_file_set_size+0x64> <== NOT EXECUTED
203b4d8: ac 04 60 34 add %l1, 0x34, %l6 <== NOT EXECUTED
{
rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
203b4dc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b4e0: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203b4e4: 7f ff f9 25 call 2039978 <rtems_rfs_block_map_free_all> <== NOT EXECUTED
203b4e8: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
if (rc > 0)
203b4ec: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b4f0: 14 80 00 a3 bg 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b4f4: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
203b4f8: 10 80 00 95 b 203b74c <rtems_rfs_file_set_size+0x2b0> <== NOT EXECUTED
203b4fc: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
if (rc > 0)
return rc;
}
else
{
if (size < new_size)
203b500: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
203b504: 38 80 00 09 bgu,a 203b528 <rtems_rfs_file_set_size+0x8c> <== NOT EXECUTED
203b508: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b50c: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
203b510: 32 80 00 58 bne,a 203b670 <rtems_rfs_file_set_size+0x1d4><== NOT EXECUTED
203b514: ea 04 20 1c ld [ %l0 + 0x1c ], %l5 <== NOT EXECUTED
203b518: 80 a4 c0 09 cmp %l3, %o1 <== NOT EXECUTED
203b51c: 28 80 00 55 bleu,a 203b670 <rtems_rfs_file_set_size+0x1d4><== NOT EXECUTED
203b520: ea 04 20 1c ld [ %l0 + 0x1c ], %l5 <== NOT EXECUTED
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203b524: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
203b528: a6 a4 c0 09 subcc %l3, %o1, %l3 <== NOT EXECUTED
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203b52c: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
*/
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
203b530: a4 64 80 08 subx %l2, %o0, %l2 <== NOT EXECUTED
}
/*
* Only read the block if the length is not the block size.
*/
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
203b534: b8 04 20 04 add %l0, 4, %i4 <== NOT EXECUTED
rtems_rfs_pos count;
uint32_t length;
bool read_block;
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
203b538: e8 00 60 08 ld [ %g1 + 8 ], %l4 <== NOT EXECUTED
}
/*
* Only read the block if the length is not the block size.
*/
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
203b53c: ba 10 20 00 clr %i5 <== NOT EXECUTED
* Get the block position for the current end of the file as seen by
* the map. If not found and the EOF grow the map then fill the block
* with 0.
*/
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map), &bpos);
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
203b540: b6 07 bf f0 add %fp, -16, %i3 <== NOT EXECUTED
203b544: ae 07 bf fc add %fp, -4, %l7 <== NOT EXECUTED
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
read_block = false;
while (count)
203b548: 10 80 00 45 b 203b65c <rtems_rfs_file_set_size+0x1c0> <== NOT EXECUTED
203b54c: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
/*
* Get the block position for the current end of the file as seen by
* the map. If not found and the EOF grow the map then fill the block
* with 0.
*/
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map), &bpos);
203b550: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
203b554: c4 04 60 40 ld [ %l1 + 0x40 ], %g2 <== NOT EXECUTED
203b558: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203b55c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203b560: 02 80 00 04 be 203b570 <rtems_rfs_file_set_size+0xd4> <== NOT EXECUTED
203b564: c4 27 bf f4 st %g2, [ %fp + -12 ] <== NOT EXECUTED
203b568: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203b56c: c2 27 bf f0 st %g1, [ %fp + -16 ] <== NOT EXECUTED
rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),
203b570: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b574: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
203b578: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b57c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203b580: 7f ff f7 80 call 2039380 <rtems_rfs_block_map_find> <== NOT EXECUTED
203b584: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
map, &bpos, &block);
if (rc > 0)
203b588: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b58c: 04 80 00 0c ble 203b5bc <rtems_rfs_file_set_size+0x120> <== NOT EXECUTED
203b590: 80 a2 20 06 cmp %o0, 6 <== NOT EXECUTED
{
/*
* Have we reached the EOF ?
*/
if (rc != ENXIO)
203b594: 12 80 00 7a bne 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b598: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
return rc;
rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
203b59c: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b5a0: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b5a4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203b5a8: 7f ff f9 3f call 2039aa4 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203b5ac: 96 10 00 17 mov %l7, %o3 <== NOT EXECUTED
map, 1, &block);
if (rc > 0)
203b5b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b5b4: 14 80 00 72 bg 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b5b8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
}
if (count < (length - bpos.boff))
203b5bc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203b5c0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203b5c4: 12 80 00 0a bne 203b5ec <rtems_rfs_file_set_size+0x150> <== NOT EXECUTED
203b5c8: 84 25 00 01 sub %l4, %g1, %g2 <== NOT EXECUTED
203b5cc: 80 a0 80 13 cmp %g2, %l3 <== NOT EXECUTED
203b5d0: 28 80 00 08 bleu,a 203b5f0 <rtems_rfs_file_set_size+0x154><== NOT EXECUTED
203b5d4: c0 24 60 40 clr [ %l1 + 0x40 ] <== NOT EXECUTED
{
length = count + bpos.boff;
203b5d8: a8 00 40 13 add %g1, %l3, %l4 <== NOT EXECUTED
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
map->dirty = true;
203b5dc: ea 2c 60 34 stb %l5, [ %l1 + 0x34 ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
203b5e0: e8 24 60 40 st %l4, [ %l1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203b5e4: 10 80 00 04 b 203b5f4 <rtems_rfs_file_set_size+0x158> <== NOT EXECUTED
203b5e8: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
203b5ec: c0 24 60 40 clr [ %l1 + 0x40 ] <== NOT EXECUTED
map->dirty = true;
203b5f0: ea 2c 60 34 stb %l5, [ %l1 + 0x34 ] <== NOT EXECUTED
}
/*
* Only read the block if the length is not the block size.
*/
rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
203b5f4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203b5f8: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203b5fc: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b600: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
203b604: 7f ff fb 9b call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203b608: 96 0f 60 01 and %i5, 1, %o3 <== NOT EXECUTED
rtems_rfs_file_buffer (handle),
block, read_block);
if (rc > 0)
203b60c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b610: 14 80 00 5b bg 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b614: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return rc;
dst = rtems_rfs_buffer_data (&handle->buffer);
memset (dst + bpos.boff, 0, length - bpos.boff);
203b618: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203b61c: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
203b620: 94 25 00 01 sub %l4, %g1, %o2 <== NOT EXECUTED
203b624: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
203b628: 40 00 30 fa call 2047a10 <memset> <== NOT EXECUTED
203b62c: 92 10 20 00 clr %o1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203b630: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
return rc;
dst = rtems_rfs_buffer_data (&handle->buffer);
memset (dst + bpos.boff, 0, length - bpos.boff);
rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
203b634: ea 2c 20 04 stb %l5, [ %l0 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
203b638: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203b63c: 7f ff fb 43 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203b640: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
rtems_rfs_file_buffer (handle));
if (rc > 0)
203b644: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b648: 14 80 00 4d bg 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b64c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
return rc;
count -= length - bpos.boff;
203b650: 82 25 00 01 sub %l4, %g1, %g1 <== NOT EXECUTED
203b654: a6 a4 c0 01 subcc %l3, %g1, %l3 <== NOT EXECUTED
203b658: a4 64 a0 00 subx %l2, 0, %l2 <== NOT EXECUTED
count = new_size - size;
length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
read_block = false;
while (count)
203b65c: 80 94 80 13 orcc %l2, %l3, %g0 <== NOT EXECUTED
203b660: 32 bf ff bc bne,a 203b550 <rtems_rfs_file_set_size+0xb4> <== NOT EXECUTED
203b664: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
203b668: 10 80 00 39 b 203b74c <rtems_rfs_file_set_size+0x2b0> <== NOT EXECUTED
203b66c: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
203b670: 92 84 ff ff addcc %l3, -1, %o1 <== NOT EXECUTED
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
203b674: ec 05 60 98 ld [ %l5 + 0x98 ], %l6 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
203b678: 90 44 bf ff addx %l2, -1, %o0 <== NOT EXECUTED
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
203b67c: e8 05 a0 08 ld [ %l6 + 8 ], %l4 <== NOT EXECUTED
* Shrink
*/
rtems_rfs_block_no blocks;
uint32_t offset;
blocks =
203b680: 94 10 20 00 clr %o2 <== NOT EXECUTED
203b684: 40 00 88 02 call 205d68c <__udivdi3> <== NOT EXECUTED
203b688: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
203b68c: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203b690: 94 38 00 09 xnor %g0, %o1, %o2 <== NOT EXECUTED
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
offset =
new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
if (blocks)
203b694: 94 82 80 01 addcc %o2, %g1, %o2 <== NOT EXECUTED
203b698: 02 80 00 09 be 203b6bc <rtems_rfs_file_set_size+0x220> <== NOT EXECUTED
203b69c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
{
int rc;
rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
203b6a0: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
203b6a4: 7f ff f7 ee call 203965c <rtems_rfs_block_map_shrink> <== NOT EXECUTED
203b6a8: 92 05 60 34 add %l5, 0x34, %o1 <== NOT EXECUTED
rtems_rfs_file_map (handle),
blocks);
if (rc > 0)
203b6ac: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203b6b0: 14 80 00 33 bg 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b6b4: 01 00 00 00 nop <== NOT EXECUTED
blocks =
rtems_rfs_block_map_count (map) -
(((new_size - 1) /
rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
offset =
203b6b8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203b6bc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203b6c0: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
203b6c4: 40 00 88 c3 call 205d9d0 <__umoddi3> <== NOT EXECUTED
203b6c8: 94 10 20 00 clr %o2 <== NOT EXECUTED
*/
static inline void
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,
rtems_rfs_block_off offset)
{
map->size.offset = offset;
203b6cc: d2 24 60 40 st %o1, [ %l1 + 0x40 ] <== NOT EXECUTED
return rc;
}
rtems_rfs_block_map_set_size_offset (map, offset);
if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
203b6d0: c2 04 20 10 ld [ %l0 + 0x10 ], %g1 <== NOT EXECUTED
map->dirty = true;
203b6d4: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203b6d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203b6dc: 02 80 00 06 be 203b6f4 <rtems_rfs_file_set_size+0x258> <== NOT EXECUTED
203b6e0: c4 2c 60 34 stb %g2, [ %l1 + 0x34 ] <== NOT EXECUTED
int
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,
rtems_rfs_pos new_size)
{
rtems_rfs_block_map* map = rtems_rfs_file_map (handle);
203b6e4: c4 04 60 3c ld [ %l1 + 0x3c ], %g2 <== NOT EXECUTED
203b6e8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203b6ec: 22 80 00 0f be,a 203b728 <rtems_rfs_file_set_size+0x28c> <== NOT EXECUTED
203b6f0: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
return rc;
}
rtems_rfs_block_map_set_size_offset (map, offset);
if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
203b6f4: c4 04 60 3c ld [ %l1 + 0x3c ], %g2 <== NOT EXECUTED
203b6f8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b6fc: 3a 80 00 0b bcc,a 203b728 <rtems_rfs_file_set_size+0x28c><== NOT EXECUTED
203b700: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203b704: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
203b708: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203b70c: 32 80 00 10 bne,a 203b74c <rtems_rfs_file_set_size+0x2b0><== NOT EXECUTED
203b710: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
203b714: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203b718: 80 a0 40 09 cmp %g1, %o1 <== NOT EXECUTED
203b71c: 28 80 00 0c bleu,a 203b74c <rtems_rfs_file_set_size+0x2b0><== NOT EXECUTED
203b720: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
rtems_rfs_block_map_size (map)))
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
203b724: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
203b728: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
203b72c: c4 04 60 40 ld [ %l1 + 0x40 ], %g2 <== NOT EXECUTED
203b730: c0 24 20 18 clr [ %l0 + 0x18 ] <== NOT EXECUTED
203b734: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203b738: 02 80 00 04 be 203b748 <rtems_rfs_file_set_size+0x2ac> <== NOT EXECUTED
203b73c: c4 24 20 14 st %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
203b740: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
203b744: c2 24 20 10 st %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
203b748: e4 04 20 1c ld [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
203b74c: c2 04 60 3c ld [ %l1 + 0x3c ], %g1 <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
203b750: c4 04 60 40 ld [ %l1 + 0x40 ], %g2 <== NOT EXECUTED
rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
rtems_rfs_file_bpos (handle));
}
}
handle->shared->size.count = rtems_rfs_block_map_count (map);
203b754: c2 24 a0 84 st %g1, [ %l2 + 0x84 ] <== NOT EXECUTED
handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
203b758: c4 24 a0 88 st %g2, [ %l2 + 0x88 ] <== NOT EXECUTED
if (rtems_rfs_file_update_mtime (handle))
203b75c: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203b760: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
203b764: 12 80 00 06 bne 203b77c <rtems_rfs_file_set_size+0x2e0> <== NOT EXECUTED
203b768: 90 10 20 00 clr %o0 <== NOT EXECUTED
handle->shared->mtime = time (NULL);
203b76c: 40 00 53 80 call 205056c <time> <== NOT EXECUTED
203b770: 90 10 20 00 clr %o0 <== NOT EXECUTED
203b774: d0 24 a0 90 st %o0, [ %l2 + 0x90 ] <== NOT EXECUTED
203b778: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
return 0;
}
203b77c: 81 c7 e0 08 ret <== NOT EXECUTED
203b780: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203c53c <rtems_rfs_format>:
return rc;
}
int
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{
203c53c: 9d e3 be c0 save %sp, -320, %sp <== NOT EXECUTED
rtems_rfs_file_system fs;
int group;
int rc;
if (config->verbose)
203c540: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
203c544: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c548: 02 80 00 07 be 203c564 <rtems_rfs_format+0x28> <== NOT EXECUTED
203c54c: a0 07 bf 2c add %fp, -212, %l0 <== NOT EXECUTED
printf ("rtems-rfs: format: %s\n", name);
203c550: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
203c554: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
203c558: 40 00 31 4a call 2048a80 <printf> <== NOT EXECUTED
203c55c: 90 12 23 58 or %o0, 0x358, %o0 <== NOT EXECUTED
memset (&fs, 0, sizeof (rtems_rfs_file_system));
203c560: a0 07 bf 2c add %fp, -212, %l0 <== NOT EXECUTED
203c564: 92 10 20 00 clr %o1 <== NOT EXECUTED
203c568: 94 10 20 80 mov 0x80, %o2 <== NOT EXECUTED
203c56c: 40 00 2d 29 call 2047a10 <memset> <== NOT EXECUTED
203c570: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203c574: 82 07 bf 70 add %fp, -144, %g1 <== NOT EXECUTED
203c578: c2 27 bf 6c st %g1, [ %fp + -148 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203c57c: 82 07 bf 6c add %fp, -148, %g1 <== NOT EXECUTED
203c580: c2 27 bf 74 st %g1, [ %fp + -140 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203c584: 82 07 bf 80 add %fp, -128, %g1 <== NOT EXECUTED
203c588: c2 27 bf 7c st %g1, [ %fp + -132 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203c58c: 82 07 bf 7c add %fp, -132, %g1 <== NOT EXECUTED
203c590: c2 27 bf 84 st %g1, [ %fp + -124 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203c594: 82 07 bf 90 add %fp, -112, %g1 <== NOT EXECUTED
203c598: c2 27 bf 8c st %g1, [ %fp + -116 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203c59c: 82 07 bf 8c add %fp, -116, %g1 <== NOT EXECUTED
203c5a0: c2 27 bf 94 st %g1, [ %fp + -108 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203c5a4: 82 07 bf a0 add %fp, -96, %g1 <== NOT EXECUTED
203c5a8: c2 27 bf 9c st %g1, [ %fp + -100 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203c5ac: 82 07 bf 9c add %fp, -100, %g1 <== NOT EXECUTED
203c5b0: c2 27 bf a4 st %g1, [ %fp + -92 ] <== NOT EXECUTED
rtems_chain_initialize_empty (&fs.buffers);
rtems_chain_initialize_empty (&fs.release);
rtems_chain_initialize_empty (&fs.release_modified);
rtems_chain_initialize_empty (&fs.file_shares);
fs.max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;
203c5b4: 82 10 20 05 mov 5, %g1 <== NOT EXECUTED
203c5b8: c2 27 bf 68 st %g1, [ %fp + -152 ] <== NOT EXECUTED
fs.release_count = 0;
fs.release_modified_count = 0;
fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;
203c5bc: 82 10 20 02 mov 2, %g1 <== NOT EXECUTED
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
203c5c0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
fs.max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;
fs.release_count = 0;
fs.release_modified_count = 0;
fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;
203c5c4: c2 27 bf 2c st %g1, [ %fp + -212 ] <== NOT EXECUTED
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, &fs);
203c5c8: 7f ff f7 49 call 203a2ec <rtems_rfs_buffer_open> <== NOT EXECUTED
203c5cc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (rc > 0)
203c5d0: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203c5d4: 04 80 00 09 ble 203c5f8 <rtems_rfs_format+0xbc> <== NOT EXECUTED
203c5d8: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer open failed: %d: %s\n",
203c5dc: 40 00 39 de call 204ad54 <strerror> <== NOT EXECUTED
203c5e0: 01 00 00 00 nop <== NOT EXECUTED
203c5e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c5e8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c5ec: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
203c5f0: 10 80 02 7d b 203cfe4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203c5f4: 90 12 23 70 or %o0, 0x370, %o0 ! 2068370 <__FUNCTION__.7699+0x98><== NOT EXECUTED
}
/*
* Check the media.
*/
if (rtems_rfs_fs_media_block_size (&fs) == 0)
203c5f8: c2 00 60 24 ld [ %g1 + 0x24 ], %g1 <== NOT EXECUTED
203c5fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c600: 32 80 00 06 bne,a 203c618 <rtems_rfs_format+0xdc> <== NOT EXECUTED
203c604: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
{
printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
203c608: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
203c60c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203c610: 10 80 01 7f b 203cc0c <rtems_rfs_format+0x6d0> <== NOT EXECUTED
203c614: 90 12 23 a0 or %o0, 0x3a0, %o0 <== NOT EXECUTED
static bool
rtems_rfs_check_config (rtems_rfs_file_system* fs,
const rtems_rfs_format_config* config)
{
fs->block_size = config->block_size;
if (!fs->block_size)
203c618: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c61c: 12 80 00 2a bne 203c6c4 <rtems_rfs_format+0x188> <== NOT EXECUTED
203c620: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
203c624: 7f ff fe 14 call 203be74 <rtems_rfs_fs_media_size> <== NOT EXECUTED
203c628: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (total_size >= GIGS (1))
203c62c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c630: 12 80 00 08 bne 203c650 <rtems_rfs_format+0x114> <== NOT EXECUTED
203c634: 84 10 20 00 clr %g2 <== NOT EXECUTED
203c638: 03 00 03 ff sethi %hi(0xffc00), %g1 <== NOT EXECUTED
203c63c: 82 10 63 ff or %g1, 0x3ff, %g1 ! fffff <PROM_START+0xfffff><== NOT EXECUTED
203c640: 80 a2 40 01 cmp %o1, %g1 <== NOT EXECUTED
203c644: 08 80 00 16 bleu 203c69c <rtems_rfs_format+0x160> <== NOT EXECUTED
203c648: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
203c64c: 84 10 20 00 clr %g2 <== NOT EXECUTED
203c650: 07 00 04 00 sethi %hi(0x100000), %g3 <== NOT EXECUTED
203c654: 92 82 40 03 addcc %o1, %g3, %o1 <== NOT EXECUTED
203c658: 83 32 60 14 srl %o1, 0x14, %g1 <== NOT EXECUTED
203c65c: 90 42 00 02 addx %o0, %g2, %o0 <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
203c660: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
{
uint64_t total_size = rtems_rfs_fs_media_size (fs);
if (total_size >= GIGS (1))
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
203c664: 91 2a 20 0c sll %o0, 0xc, %o0 <== NOT EXECUTED
203c668: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
203c66c: 82 10 20 1f mov 0x1f, %g1 <== NOT EXECUTED
int b;
for (b = 31; b > 0; b--)
if ((gigs & (1 << b)) != 0)
203c670: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
203c674: 80 88 c0 08 btst %g3, %o0 <== NOT EXECUTED
203c678: 32 80 00 06 bne,a 203c690 <rtems_rfs_format+0x154> <== NOT EXECUTED
203c67c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
if (total_size >= GIGS (1))
{
uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);
int b;
for (b = 31; b > 0; b--)
203c680: 82 80 7f ff addcc %g1, -1, %g1 <== NOT EXECUTED
203c684: 12 bf ff fc bne 203c674 <rtems_rfs_format+0x138> <== NOT EXECUTED
203c688: 87 28 80 01 sll %g2, %g1, %g3 <== NOT EXECUTED
if ((gigs & (1 << b)) != 0)
break;
fs->block_size = 1 << b;
203c68c: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
203c690: 83 28 80 01 sll %g2, %g1, %g1 <== NOT EXECUTED
203c694: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
}
if (fs->block_size < 512)
203c698: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
203c69c: 80 a0 61 ff cmp %g1, 0x1ff <== NOT EXECUTED
203c6a0: 18 80 00 05 bgu 203c6b4 <rtems_rfs_format+0x178> <== NOT EXECUTED
203c6a4: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
fs->block_size = 512;
203c6a8: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
203c6ac: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
if (fs->block_size > (4 * 1024))
203c6b0: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
203c6b4: 03 00 00 04 sethi %hi(0x1000), %g1 <== NOT EXECUTED
203c6b8: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203c6bc: 38 80 00 02 bgu,a 203c6c4 <rtems_rfs_format+0x188> <== NOT EXECUTED
203c6c0: c2 27 bf 34 st %g1, [ %fp + -204 ] <== NOT EXECUTED
fs->block_size = (4 * 1024);
}
if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
203c6c4: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
203c6c8: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
203c6cc: e2 00 60 24 ld [ %g1 + 0x24 ], %l1 <== NOT EXECUTED
203c6d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c6d4: 40 00 80 dd call 205ca48 <.urem> <== NOT EXECUTED
203c6d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203c6dc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c6e0: 22 80 00 07 be,a 203c6fc <rtems_rfs_format+0x1c0> <== NOT EXECUTED
203c6e4: c2 06 60 04 ld [ %i1 + 4 ], %g1 <== NOT EXECUTED
{
printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
203c6e8: 11 00 81 a0 sethi %hi(0x2068000), %o0 <== NOT EXECUTED
203c6ec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c6f0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203c6f4: 10 80 02 3c b 203cfe4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203c6f8: 90 12 23 c8 or %o0, 0x3c8, %o0 <== NOT EXECUTED
fs->block_size, rtems_rfs_fs_media_block_size (fs));
return false;
}
fs->group_blocks = config->group_blocks;
if (!fs->group_blocks)
203c6fc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c700: 12 80 00 04 bne 203c710 <rtems_rfs_format+0x1d4> <== NOT EXECUTED
203c704: c2 27 bf 50 st %g1, [ %fp + -176 ] <== NOT EXECUTED
{
/*
* The number of blocks per group is defined by the number of bits in a
* block.
*/
fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);
203c708: a1 2c 20 03 sll %l0, 3, %l0 <== NOT EXECUTED
203c70c: e0 27 bf 50 st %l0, [ %fp + -176 ] <== NOT EXECUTED
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
203c710: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
203c714: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
203c718: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
203c71c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
* block.
*/
fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);
}
if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
203c720: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203c724: 18 80 01 2a bgu 203cbcc <rtems_rfs_format+0x690> <== NOT EXECUTED
203c728: 90 12 20 08 or %o0, 8, %o0 <== NOT EXECUTED
{
printf ("group block count is higher than bits in block\n");
return false;
}
fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;
203c72c: 7f ff fd d2 call 203be74 <rtems_rfs_fs_media_size> <== NOT EXECUTED
203c730: 90 07 bf 2c add %fp, -212, %o0 <== NOT EXECUTED
203c734: e0 07 bf 34 ld [ %fp + -204 ], %l0 <== NOT EXECUTED
203c738: 94 10 20 00 clr %o2 <== NOT EXECUTED
203c73c: 40 00 83 d4 call 205d68c <__udivdi3> <== NOT EXECUTED
203c740: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
203c744: d2 27 bf 30 st %o1, [ %fp + -208 ] <== NOT EXECUTED
203c748: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
203c74c: 80 a2 60 00 cmp %o1, 0 <== NOT EXECUTED
203c750: 02 80 00 06 be 203c768 <rtems_rfs_format+0x22c> <== NOT EXECUTED
203c754: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203c758: 93 2c 20 03 sll %l0, 3, %o1 <== NOT EXECUTED
203c75c: 40 00 80 0f call 205c798 <.udiv> <== NOT EXECUTED
203c760: 90 04 7f ff add %l1, -1, %o0 <== NOT EXECUTED
203c764: a4 02 20 01 add %o0, 1, %l2 <== NOT EXECUTED
* per block.
*/
fs->group_count = rtems_rfs_rup_quotient (rtems_rfs_fs_blocks (fs),
rtems_rfs_bits_per_block (fs));
fs->group_inodes = config->group_inodes;
203c768: c2 06 60 08 ld [ %i1 + 8 ], %g1 <== NOT EXECUTED
/*
* The bits per block sets the upper limit for the number of blocks in a
* group. The disk will be divided into groups which are the number of bits
* per block.
*/
fs->group_count = rtems_rfs_rup_quotient (rtems_rfs_fs_blocks (fs),
203c76c: e4 27 bf 4c st %l2, [ %fp + -180 ] <== NOT EXECUTED
rtems_rfs_bits_per_block (fs));
fs->group_inodes = config->group_inodes;
if (!fs->group_inodes)
203c770: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c774: 12 80 00 19 bne 203c7d8 <rtems_rfs_format+0x29c> <== NOT EXECUTED
203c778: c2 27 bf 54 st %g1, [ %fp + -172 ] <== NOT EXECUTED
int inode_overhead = RTEMS_RFS_INODE_OVERHEAD_PERCENTAGE;
/*
* The number of inodes per group is set as a percentage.
*/
if (config->inode_overhead)
203c77c: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED
203c780: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c784: 22 80 00 02 be,a 203c78c <rtems_rfs_format+0x250> <== NOT EXECUTED
203c788: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
static int
rtems_rfs_inodes_from_percent (rtems_rfs_file_system* fs,
int percentage)
{
int blocks;
blocks = ((rtems_rfs_fs_blocks (fs) -
203c78c: 7f ff 18 9b call 20029f8 <.umul> <== NOT EXECUTED
203c790: 92 04 7f ff add %l1, -1, %o1 <== NOT EXECUTED
203c794: 92 10 20 64 mov 0x64, %o1 <== NOT EXECUTED
203c798: 40 00 80 00 call 205c798 <.udiv> <== NOT EXECUTED
203c79c: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
203c7a0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c7a4: 22 80 00 07 be,a 203c7c0 <rtems_rfs_format+0x284> <== NOT EXECUTED
203c7a8: d0 07 bf 34 ld [ %fp + -204 ], %o0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203c7ac: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
203c7b0: 40 00 7f fa call 205c798 <.udiv> <== NOT EXECUTED
203c7b4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c7b8: a0 02 20 01 add %o0, 1, %l0 <== NOT EXECUTED
* The number of inodes per group is set as a percentage.
*/
if (config->inode_overhead)
inode_overhead = config->inode_overhead;
fs->group_inodes = rtems_rfs_inodes_from_percent (fs, inode_overhead);
203c7bc: d0 07 bf 34 ld [ %fp + -204 ], %o0 <== NOT EXECUTED
203c7c0: 40 00 7f f6 call 205c798 <.udiv> <== NOT EXECUTED
203c7c4: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
203c7c8: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203c7cc: 7f ff 18 8b call 20029f8 <.umul> <== NOT EXECUTED
203c7d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c7d4: d0 27 bf 54 st %o0, [ %fp + -172 ] <== NOT EXECUTED
}
/*
* Round up to fill a block because the minimum allocation unit is a block.
*/
fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
203c7d8: d0 07 bf 34 ld [ %fp + -204 ], %o0 <== NOT EXECUTED
203c7dc: 40 00 7f ef call 205c798 <.udiv> <== NOT EXECUTED
203c7e0: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
203c7e4: c2 07 bf 54 ld [ %fp + -172 ], %g1 <== NOT EXECUTED
}
/*
* Round up to fill a block because the minimum allocation unit is a block.
*/
fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
203c7e8: d0 27 bf 58 st %o0, [ %fp + -168 ] <== NOT EXECUTED
203c7ec: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
203c7f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c7f4: 02 80 00 06 be 203c80c <rtems_rfs_format+0x2d0> <== NOT EXECUTED
203c7f8: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203c7fc: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
203c800: 40 00 7f e6 call 205c798 <.udiv> <== NOT EXECUTED
203c804: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c808: 90 02 20 01 inc %o0 <== NOT EXECUTED
/*
* Round up to fill a block because the minimum allocation unit is a block.
*/
fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
fs->group_inodes =
rtems_rfs_rup_quotient (fs->group_inodes,
203c80c: 7f ff 18 7b call 20029f8 <.umul> <== NOT EXECUTED
203c810: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
fs->inodes_per_block) * fs->inodes_per_block;
if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
203c814: c2 07 bf 34 ld [ %fp + -204 ], %g1 <== NOT EXECUTED
203c818: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
203c81c: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
203c820: 08 80 00 03 bleu 203c82c <rtems_rfs_format+0x2f0> <== NOT EXECUTED
203c824: d0 27 bf 54 st %o0, [ %fp + -172 ] <== NOT EXECUTED
fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);
203c828: c2 27 bf 54 st %g1, [ %fp + -172 ] <== NOT EXECUTED
fs->max_name_length = config->max_name_length;
203c82c: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
if (!fs->max_name_length)
203c830: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203c834: 12 80 02 7e bne 203d22c <rtems_rfs_format+0xcf0> <== NOT EXECUTED
203c838: c2 27 bf 44 st %g1, [ %fp + -188 ] <== NOT EXECUTED
{
fs->max_name_length = 512;
203c83c: 82 10 22 00 mov 0x200, %g1 <== NOT EXECUTED
203c840: 10 80 02 7b b 203d22c <rtems_rfs_format+0xcf0> <== NOT EXECUTED
203c844: c2 27 bf 44 st %g1, [ %fp + -188 ] <== NOT EXECUTED
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
{
printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
203c848: 7f ff fd 8b call 203be74 <rtems_rfs_fs_media_size> <== NOT EXECUTED
203c84c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c850: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
203c854: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203c858: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c85c: 40 00 30 89 call 2048a80 <printf> <== NOT EXECUTED
203c860: 90 12 20 38 or %o0, 0x38, %o0 ! 2068438 <__FUNCTION__.7699+0x160><== NOT EXECUTED
rtems_rfs_fs_media_size (&fs));
printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
203c864: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
203c868: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c86c: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
203c870: 40 00 30 84 call 2048a80 <printf> <== NOT EXECUTED
203c874: 90 12 20 60 or %o0, 0x60, %o0 <== NOT EXECUTED
rtems_rfs_fs_media_blocks (&fs));
printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
203c878: c2 07 bf 38 ld [ %fp + -200 ], %g1 <== NOT EXECUTED
203c87c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c880: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203c884: 40 00 30 7f call 2048a80 <printf> <== NOT EXECUTED
203c888: 90 12 20 88 or %o0, 0x88, %o0 <== NOT EXECUTED
rtems_rfs_fs_media_block_size (&fs));
printf ("rtems-rfs: format: size = %" PRIu64 "\n",
203c88c: 7f ff fd 71 call 203be50 <rtems_rfs_fs_size> <== NOT EXECUTED
203c890: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c894: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
203c898: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203c89c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c8a0: 40 00 30 78 call 2048a80 <printf> <== NOT EXECUTED
203c8a4: 90 12 20 b8 or %o0, 0xb8, %o0 ! 20684b8 <__FUNCTION__.7699+0x1e0><== NOT EXECUTED
rtems_rfs_fs_size (&fs));
printf ("rtems-rfs: format: blocks = %zu\n",
203c8a8: d2 07 bf 30 ld [ %fp + -208 ], %o1 <== NOT EXECUTED
203c8ac: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c8b0: 40 00 30 74 call 2048a80 <printf> <== NOT EXECUTED
203c8b4: 90 12 20 d8 or %o0, 0xd8, %o0 ! 20684d8 <__FUNCTION__.7699+0x200><== NOT EXECUTED
rtems_rfs_fs_blocks (&fs));
printf ("rtems-rfs: format: block size = %zu\n",
203c8b8: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
203c8bc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c8c0: 40 00 30 70 call 2048a80 <printf> <== NOT EXECUTED
203c8c4: 90 12 21 00 or %o0, 0x100, %o0 ! 2068500 <__FUNCTION__.7699+0x228><== NOT EXECUTED
rtems_rfs_fs_block_size (&fs));
printf ("rtems-rfs: format: bits per block = %u\n",
203c8c8: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
203c8cc: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c8d0: 93 2a 60 03 sll %o1, 3, %o1 <== NOT EXECUTED
203c8d4: 40 00 30 6b call 2048a80 <printf> <== NOT EXECUTED
203c8d8: 90 12 21 28 or %o0, 0x128, %o0 <== NOT EXECUTED
rtems_rfs_bits_per_block (&fs));
printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
203c8dc: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
203c8e0: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c8e4: 40 00 30 67 call 2048a80 <printf> <== NOT EXECUTED
203c8e8: 90 12 21 50 or %o0, 0x150, %o0 ! 2068550 <__FUNCTION__.7699+0x278><== NOT EXECUTED
printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",
203c8ec: 7f ff fe ef call 203c4a8 <rtems_rfs_inode_overhead> <== NOT EXECUTED
203c8f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c8f4: d2 07 bf 54 ld [ %fp + -172 ], %o1 <== NOT EXECUTED
203c8f8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
203c8fc: 7f ff 18 3f call 20029f8 <.umul> <== NOT EXECUTED
203c900: d0 07 bf 4c ld [ %fp + -180 ], %o0 <== NOT EXECUTED
203c904: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
203c908: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
203c90c: 40 00 7f a5 call 205c7a0 <.div> <== NOT EXECUTED
203c910: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c914: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
203c918: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
203c91c: 40 00 80 4d call 205ca50 <.rem> <== NOT EXECUTED
203c920: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c924: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203c928: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203c92c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c930: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c934: 40 00 30 53 call 2048a80 <printf> <== NOT EXECUTED
203c938: 90 12 21 78 or %o0, 0x178, %o0 ! 2068578 <__FUNCTION__.7699+0x2a0><== NOT EXECUTED
fs.group_inodes * fs.group_count,
rtems_rfs_inode_overhead (&fs) / 10,
rtems_rfs_inode_overhead (&fs) % 10);
printf ("rtems-rfs: format: groups = %u\n", fs.group_count);
203c93c: d2 07 bf 4c ld [ %fp + -180 ], %o1 <== NOT EXECUTED
203c940: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c944: 40 00 30 4f call 2048a80 <printf> <== NOT EXECUTED
203c948: 90 12 21 a8 or %o0, 0x1a8, %o0 ! 20685a8 <__FUNCTION__.7699+0x2d0><== NOT EXECUTED
printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
203c94c: d2 07 bf 50 ld [ %fp + -176 ], %o1 <== NOT EXECUTED
203c950: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c954: 40 00 30 4b call 2048a80 <printf> <== NOT EXECUTED
203c958: 90 12 21 c8 or %o0, 0x1c8, %o0 ! 20685c8 <__FUNCTION__.7699+0x2f0><== NOT EXECUTED
printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
203c95c: d2 07 bf 54 ld [ %fp + -172 ], %o1 <== NOT EXECUTED
203c960: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c964: 40 00 30 47 call 2048a80 <printf> <== NOT EXECUTED
203c968: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 20685f0 <__FUNCTION__.7699+0x318><== NOT EXECUTED
}
rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
203c96c: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
203c970: a6 07 bf 2c add %fp, -212, %l3 <== NOT EXECUTED
203c974: 7f ff f6 3f call 203a270 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
203c978: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
203c97c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c980: 24 80 00 09 ble,a 203c9a4 <rtems_rfs_format+0x468> <== NOT EXECUTED
203c984: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
{
printf ("rtems-rfs: format: setting block size failed: %d: %s\n",
203c988: 40 00 38 f3 call 204ad54 <strerror> <== NOT EXECUTED
203c98c: 01 00 00 00 nop <== NOT EXECUTED
203c990: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c994: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c998: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c99c: 10 80 01 92 b 203cfe4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203c9a0: 90 12 22 18 or %o0, 0x218, %o0 ! 2068618 <__FUNCTION__.7699+0x340><== NOT EXECUTED
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
handle->bnum = 0;
203c9a4: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
203c9a8: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: handle open failed: %d: %s\n",
rc, strerror (rc));
return false;
}
rc = rtems_rfs_buffer_handle_request (fs, &handle, 0, false);
203c9ac: a4 07 bf ec add %fp, -20, %l2 <== NOT EXECUTED
203c9b0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203c9b4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c9b8: 94 10 20 00 clr %o2 <== NOT EXECUTED
203c9bc: 7f ff f6 ad call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203c9c0: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203c9c4: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c9c8: 04 80 00 0b ble 203c9f4 <rtems_rfs_format+0x4b8> <== NOT EXECUTED
203c9cc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c9d0: 7f ff fe d1 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c9d4: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
203c9d8: 40 00 38 df call 204ad54 <strerror> <== NOT EXECUTED
203c9dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203c9e0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c9e4: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203c9e8: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203c9ec: 10 80 00 74 b 203cbbc <rtems_rfs_format+0x680> <== NOT EXECUTED
203c9f0: 90 12 22 50 or %o0, 0x250, %o0 ! 2068650 <__FUNCTION__.7699+0x378><== NOT EXECUTED
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
203c9f4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)
memset (sb, 0xff, rtems_rfs_fs_block_size (fs));
203c9f8: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",
rc, strerror (rc));
return false;
}
sb = rtems_rfs_buffer_data (&handle);
203c9fc: e0 00 60 24 ld [ %g1 + 0x24 ], %l0 <== NOT EXECUTED
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)
memset (sb, 0xff, rtems_rfs_fs_block_size (fs));
203ca00: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
203ca04: 40 00 2c 03 call 2047a10 <memset> <== NOT EXECUTED
203ca08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
203ca0c: 84 10 20 28 mov 0x28, %g2 <== NOT EXECUTED
203ca10: c4 2c 00 00 stb %g2, [ %l0 ] <== NOT EXECUTED
203ca14: 84 10 20 09 mov 9, %g2 <== NOT EXECUTED
203ca18: c4 2c 20 01 stb %g2, [ %l0 + 1 ] <== NOT EXECUTED
203ca1c: 84 10 20 20 mov 0x20, %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
203ca20: c0 2c 20 04 clrb [ %l0 + 4 ] <== NOT EXECUTED
203ca24: c0 2c 20 05 clrb [ %l0 + 5 ] <== NOT EXECUTED
203ca28: c0 2c 20 06 clrb [ %l0 + 6 ] <== NOT EXECUTED
203ca2c: c0 2c 20 07 clrb [ %l0 + 7 ] <== NOT EXECUTED
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)
memset (sb, 0xff, rtems_rfs_fs_block_size (fs));
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
203ca30: c4 2c 20 02 stb %g2, [ %l0 + 2 ] <== NOT EXECUTED
203ca34: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203ca38: c2 2c 20 03 stb %g1, [ %l0 + 3 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));
203ca3c: c4 0f bf 30 ldub [ %fp + -208 ], %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
rtems_rfs_buffer_mark_dirty (&handle);
rc = rtems_rfs_buffer_handle_release (fs, &handle);
203ca40: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
memset (sb, 0xff, rtems_rfs_fs_block_size (fs));
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));
203ca44: c4 2c 20 0c stb %g2, [ %l0 + 0xc ] <== NOT EXECUTED
203ca48: c4 17 bf 30 lduh [ %fp + -208 ], %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
rtems_rfs_buffer_mark_dirty (&handle);
rc = rtems_rfs_buffer_handle_release (fs, &handle);
203ca4c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
memset (sb, 0xff, rtems_rfs_fs_block_size (fs));
write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);
write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);
write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));
203ca50: c4 2c 20 0d stb %g2, [ %l0 + 0xd ] <== NOT EXECUTED
203ca54: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED
203ca58: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203ca5c: c4 2c 20 0e stb %g2, [ %l0 + 0xe ] <== NOT EXECUTED
203ca60: c4 07 bf 30 ld [ %fp + -208 ], %g2 <== NOT EXECUTED
203ca64: c4 2c 20 0f stb %g2, [ %l0 + 0xf ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
203ca68: c4 0f bf 34 ldub [ %fp + -204 ], %g2 <== NOT EXECUTED
203ca6c: c4 2c 20 08 stb %g2, [ %l0 + 8 ] <== NOT EXECUTED
203ca70: c4 17 bf 34 lduh [ %fp + -204 ], %g2 <== NOT EXECUTED
203ca74: c4 2c 20 09 stb %g2, [ %l0 + 9 ] <== NOT EXECUTED
203ca78: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
203ca7c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203ca80: c4 2c 20 0a stb %g2, [ %l0 + 0xa ] <== NOT EXECUTED
203ca84: c4 07 bf 34 ld [ %fp + -204 ], %g2 <== NOT EXECUTED
203ca88: c4 2c 20 0b stb %g2, [ %l0 + 0xb ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
203ca8c: c4 0f bf 40 ldub [ %fp + -192 ], %g2 <== NOT EXECUTED
203ca90: c4 2c 20 10 stb %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
203ca94: c4 17 bf 40 lduh [ %fp + -192 ], %g2 <== NOT EXECUTED
203ca98: c4 2c 20 11 stb %g2, [ %l0 + 0x11 ] <== NOT EXECUTED
203ca9c: c4 07 bf 40 ld [ %fp + -192 ], %g2 <== NOT EXECUTED
203caa0: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203caa4: c4 2c 20 12 stb %g2, [ %l0 + 0x12 ] <== NOT EXECUTED
203caa8: c4 07 bf 40 ld [ %fp + -192 ], %g2 <== NOT EXECUTED
203caac: c4 2c 20 13 stb %g2, [ %l0 + 0x13 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
203cab0: c4 0f bf 44 ldub [ %fp + -188 ], %g2 <== NOT EXECUTED
203cab4: c4 2c 20 14 stb %g2, [ %l0 + 0x14 ] <== NOT EXECUTED
203cab8: c4 17 bf 44 lduh [ %fp + -188 ], %g2 <== NOT EXECUTED
203cabc: c4 2c 20 15 stb %g2, [ %l0 + 0x15 ] <== NOT EXECUTED
203cac0: c4 07 bf 44 ld [ %fp + -188 ], %g2 <== NOT EXECUTED
203cac4: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203cac8: c4 2c 20 16 stb %g2, [ %l0 + 0x16 ] <== NOT EXECUTED
203cacc: c4 07 bf 44 ld [ %fp + -188 ], %g2 <== NOT EXECUTED
203cad0: c4 2c 20 17 stb %g2, [ %l0 + 0x17 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
203cad4: c4 0f bf 4c ldub [ %fp + -180 ], %g2 <== NOT EXECUTED
203cad8: c4 2c 20 18 stb %g2, [ %l0 + 0x18 ] <== NOT EXECUTED
203cadc: c4 17 bf 4c lduh [ %fp + -180 ], %g2 <== NOT EXECUTED
203cae0: c4 2c 20 19 stb %g2, [ %l0 + 0x19 ] <== NOT EXECUTED
203cae4: c4 07 bf 4c ld [ %fp + -180 ], %g2 <== NOT EXECUTED
203cae8: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203caec: c4 2c 20 1a stb %g2, [ %l0 + 0x1a ] <== NOT EXECUTED
203caf0: c4 07 bf 4c ld [ %fp + -180 ], %g2 <== NOT EXECUTED
203caf4: c4 2c 20 1b stb %g2, [ %l0 + 0x1b ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
203caf8: c4 0f bf 50 ldub [ %fp + -176 ], %g2 <== NOT EXECUTED
203cafc: c4 2c 20 1c stb %g2, [ %l0 + 0x1c ] <== NOT EXECUTED
203cb00: c4 17 bf 50 lduh [ %fp + -176 ], %g2 <== NOT EXECUTED
203cb04: c4 2c 20 1d stb %g2, [ %l0 + 0x1d ] <== NOT EXECUTED
203cb08: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
203cb0c: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203cb10: c4 2c 20 1e stb %g2, [ %l0 + 0x1e ] <== NOT EXECUTED
203cb14: c4 07 bf 50 ld [ %fp + -176 ], %g2 <== NOT EXECUTED
203cb18: c4 2c 20 1f stb %g2, [ %l0 + 0x1f ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
203cb1c: c4 0f bf 54 ldub [ %fp + -172 ], %g2 <== NOT EXECUTED
203cb20: c4 2c 20 20 stb %g2, [ %l0 + 0x20 ] <== NOT EXECUTED
203cb24: c4 17 bf 54 lduh [ %fp + -172 ], %g2 <== NOT EXECUTED
203cb28: c4 2c 20 21 stb %g2, [ %l0 + 0x21 ] <== NOT EXECUTED
203cb2c: c4 07 bf 54 ld [ %fp + -172 ], %g2 <== NOT EXECUTED
203cb30: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203cb34: c4 2c 20 22 stb %g2, [ %l0 + 0x22 ] <== NOT EXECUTED
203cb38: c4 07 bf 54 ld [ %fp + -172 ], %g2 <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
203cb3c: c0 2c 20 24 clrb [ %l0 + 0x24 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);
write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);
write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);
203cb40: c4 2c 20 23 stb %g2, [ %l0 + 0x23 ] <== NOT EXECUTED
write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);
203cb44: c0 2c 20 25 clrb [ %l0 + 0x25 ] <== NOT EXECUTED
203cb48: c0 2c 20 26 clrb [ %l0 + 0x26 ] <== NOT EXECUTED
203cb4c: 84 10 20 38 mov 0x38, %g2 <== NOT EXECUTED
203cb50: c4 2c 20 27 stb %g2, [ %l0 + 0x27 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
rc = rtems_rfs_buffer_handle_release (fs, &handle);
203cb54: 7f ff f5 fd call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203cb58: c2 2f bf ec stb %g1, [ %fp + -20 ] <== NOT EXECUTED
if (rc > 0)
203cb5c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203cb60: 04 80 00 0b ble 203cb8c <rtems_rfs_format+0x650> <== NOT EXECUTED
203cb64: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203cb68: 7f ff fe 6b call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203cb6c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
203cb70: 40 00 38 79 call 204ad54 <strerror> <== NOT EXECUTED
203cb74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cb78: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cb7c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203cb80: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203cb84: 10 80 00 0e b 203cbbc <rtems_rfs_format+0x680> <== NOT EXECUTED
203cb88: 90 12 22 88 or %o0, 0x288, %o0 ! 2068688 <__FUNCTION__.7699+0x3b0><== NOT EXECUTED
rc, strerror (rc));
return false;
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
203cb8c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203cb90: 7f ff fe 61 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203cb94: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
203cb98: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203cb9c: 04 80 00 fa ble 203cf84 <rtems_rfs_format+0xa48> <== NOT EXECUTED
203cba0: 35 00 81 a1 sethi %hi(0x2068400), %i2 <== NOT EXECUTED
{
printf ("rtems-rfs: write-superblock: buffer handle close failed: %d: %s\n",
203cba4: 40 00 38 6c call 204ad54 <strerror> <== NOT EXECUTED
203cba8: 01 00 00 00 nop <== NOT EXECUTED
203cbac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cbb0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203cbb4: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203cbb8: 90 12 22 c8 or %o0, 0x2c8, %o0 ! 20686c8 <__FUNCTION__.7699+0x3f0><== NOT EXECUTED
203cbbc: 40 00 2f b1 call 2048a80 <printf> <== NOT EXECUTED
203cbc0: 01 00 00 00 nop <== NOT EXECUTED
return -1;
}
if (!rtems_rfs_write_superblock (&fs))
{
printf ("rtems-rfs: format: superblock write failed\n");
203cbc4: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203cbc8: 90 12 23 10 or %o0, 0x310, %o0 ! 2068710 <__FUNCTION__.7699+0x438><== NOT EXECUTED
203cbcc: 40 00 30 59 call 2048d30 <puts> <== NOT EXECUTED
203cbd0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203cbd4: 30 80 01 94 b,a 203d224 <rtems_rfs_format+0xce8> <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
203cbd8: ea 07 bf 50 ld [ %fp + -176 ], %l5 <== NOT EXECUTED
203cbdc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203cbe0: 7f ff 17 86 call 20029f8 <.umul> <== NOT EXECUTED
203cbe4: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
203cbe8: c2 07 bf 30 ld [ %fp + -208 ], %g1 <== NOT EXECUTED
size_t group_size;
int blocks;
int b;
int rc;
group_base = rtems_rfs_fs_block (fs, group, 0);
203cbec: a8 02 20 01 add %o0, 1, %l4 <== NOT EXECUTED
203cbf0: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
if (group_base > rtems_rfs_fs_blocks (fs))
203cbf4: 80 a5 00 01 cmp %l4, %g1 <== NOT EXECUTED
203cbf8: 08 80 00 08 bleu 203cc18 <rtems_rfs_format+0x6dc> <== NOT EXECUTED
203cbfc: f6 0e 60 14 ldub [ %i1 + 0x14 ], %i3 <== NOT EXECUTED
{
printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
203cc00: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203cc04: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cc08: 90 12 23 40 or %o0, 0x340, %o0 <== NOT EXECUTED
203cc0c: 40 00 2f 9d call 2048a80 <printf> <== NOT EXECUTED
203cc10: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203cc14: 30 80 01 84 b,a 203d224 <rtems_rfs_format+0xce8> <== NOT EXECUTED
/*
* Be nice to strange sizes of disks. These are embedded systems after all
* and nice numbers do not always work out. Let the last block pick up the
* remainder of the blocks.
*/
if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))
203cc18: 84 05 00 15 add %l4, %l5, %g2 <== NOT EXECUTED
203cc1c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203cc20: 38 80 00 02 bgu,a 203cc28 <rtems_rfs_format+0x6ec> <== NOT EXECUTED
203cc24: aa 20 40 14 sub %g1, %l4, %l5 <== NOT EXECUTED
group_size = rtems_rfs_fs_blocks (fs) - group_base;
if (verbose)
203cc28: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
203cc2c: 22 80 00 08 be,a 203cc4c <rtems_rfs_format+0x710> <== NOT EXECUTED
203cc30: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
203cc34: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203cc38: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cc3c: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203cc40: 40 00 2f 90 call 2048a80 <printf> <== NOT EXECUTED
203cc44: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203cc48: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
203cc4c: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: handle open failed: %d: %s\n",
rc, strerror (rc));
return false;
}
if (verbose)
203cc50: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
203cc54: 02 80 00 05 be 203cc68 <rtems_rfs_format+0x72c> <== NOT EXECUTED
203cc58: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
printf (", blocks");
203cc5c: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203cc60: 40 00 2f 88 call 2048a80 <printf> <== NOT EXECUTED
203cc64: 90 12 23 b8 or %o0, 0x3b8, %o0 ! 20687b8 <__FUNCTION__.7699+0x4e0><== NOT EXECUTED
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
203cc68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203cc6c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203cc70: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203cc74: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203cc78: 40 00 1a 02 call 2043480 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203cc7c: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
203cc80: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203cc84: 04 80 00 0c ble 203ccb4 <rtems_rfs_format+0x778> <== NOT EXECUTED
203cc88: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203cc8c: 7f ff fe 22 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203cc90: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
203cc94: 40 00 38 30 call 204ad54 <strerror> <== NOT EXECUTED
203cc98: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
203cc9c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cca0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203cca4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203cca8: 11 00 81 a1 sethi %hi(0x2068400), %o0 <== NOT EXECUTED
203ccac: 10 80 00 80 b 203ceac <rtems_rfs_format+0x970> <== NOT EXECUTED
203ccb0: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 20687c8 <__FUNCTION__.7699+0x4f0><== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
203ccb4: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203ccb8: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
203ccbc: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
203ccc0: 40 00 2b 54 call 2047a10 <memset> <== NOT EXECUTED
203ccc4: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
/*
* Clear the bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
203ccc8: 40 00 1a 00 call 20434c8 <rtems_rfs_bitmap_map_clear_all> <== NOT EXECUTED
203cccc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203ccd0: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
203ccd4: 24 80 00 0f ble,a 203cd10 <rtems_rfs_format+0x7d4> <== NOT EXECUTED
203ccd8: 92 10 20 00 clr %o1 <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
203ccdc: 40 00 19 9a call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203cce0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
203cce4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203cce8: 7f ff fe 0b call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203ccec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
203ccf0: 40 00 38 19 call 204ad54 <strerror> <== NOT EXECUTED
203ccf4: 90 10 00 1d mov %i5, %o0 <== NOT EXECUTED
203ccf8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203ccfc: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203cd00: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
203cd04: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cd08: 10 80 00 69 b 203ceac <rtems_rfs_format+0x970> <== NOT EXECUTED
203cd0c: 90 12 20 10 or %o0, 0x10, %o0 ! 2068810 <__FUNCTION__.7699+0x538><== NOT EXECUTED
}
/*
* Forced allocation of the block bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
203cd10: 40 00 1a 79 call 20436f4 <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
203cd14: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* Forced allocation of the inode bitmap.
*/
rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
203cd18: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203cd1c: 40 00 1a 76 call 20436f4 <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
203cd20: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
/*
* Determine the number of inodes blocks in the group.
*/
blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
203cd24: d0 07 bf 54 ld [ %fp + -172 ], %o0 <== NOT EXECUTED
203cd28: d2 07 bf 58 ld [ %fp + -168 ], %o1 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
203cd2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203cd30: 02 80 00 05 be 203cd44 <rtems_rfs_format+0x808> <== NOT EXECUTED
203cd34: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203cd38: 40 00 7e 98 call 205c798 <.udiv> <== NOT EXECUTED
203cd3c: 90 02 3f ff add %o0, -1, %o0 <== NOT EXECUTED
203cd40: ba 02 20 01 add %o0, 1, %i5 <== NOT EXECUTED
203cd44: 10 80 00 07 b 203cd60 <rtems_rfs_format+0x824> <== NOT EXECUTED
203cd48: 82 10 20 00 clr %g1 <== NOT EXECUTED
blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
/*
* Forced allocation of the inode blocks which follow the block bitmap.
*/
for (b = 0; b < blocks; b++)
203cd4c: 82 00 60 01 inc %g1 <== NOT EXECUTED
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
203cd50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203cd54: 40 00 1a 68 call 20436f4 <rtems_rfs_bitmap_map_set> <== NOT EXECUTED
203cd58: c2 27 bf 24 st %g1, [ %fp + -220 ] <== NOT EXECUTED
203cd5c: c2 07 bf 24 ld [ %fp + -220 ], %g1 <== NOT EXECUTED
blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
/*
* Forced allocation of the inode blocks which follow the block bitmap.
*/
for (b = 0; b < blocks; b++)
203cd60: 80 a0 40 1d cmp %g1, %i5 <== NOT EXECUTED
203cd64: 06 bf ff fa bl 203cd4c <rtems_rfs_format+0x810> <== NOT EXECUTED
203cd68: 92 00 60 02 add %g1, 2, %o1 <== NOT EXECUTED
rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
/*
* Close the block bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
203cd6c: 40 00 19 76 call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203cd70: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203cd74: 94 92 20 00 orcc %o0, 0, %o2 <== NOT EXECUTED
203cd78: 04 80 00 0f ble 203cdb4 <rtems_rfs_format+0x878> <== NOT EXECUTED
203cd7c: 80 8d a0 ff btst 0xff, %l6 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203cd80: 92 07 bf ec add %fp, -20, %o1 <== NOT EXECUTED
203cd84: d4 27 bf 24 st %o2, [ %fp + -220 ] <== NOT EXECUTED
203cd88: 7f ff fd e3 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203cd8c: 90 07 bf 2c add %fp, -212, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
203cd90: d4 07 bf 24 ld [ %fp + -220 ], %o2 <== NOT EXECUTED
203cd94: 40 00 37 f0 call 204ad54 <strerror> <== NOT EXECUTED
203cd98: 90 10 00 0a mov %o2, %o0 <== NOT EXECUTED
203cd9c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cda0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203cda4: d4 07 bf 24 ld [ %fp + -220 ], %o2 <== NOT EXECUTED
203cda8: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cdac: 10 80 00 40 b 203ceac <rtems_rfs_format+0x970> <== NOT EXECUTED
203cdb0: 90 12 20 60 or %o0, 0x60, %o0 ! 2068860 <__FUNCTION__.7699+0x588><== NOT EXECUTED
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
if (verbose)
203cdb4: 02 80 00 05 be 203cdc8 <rtems_rfs_format+0x88c> <== NOT EXECUTED
203cdb8: ee 2f bf ec stb %l7, [ %fp + -20 ] <== NOT EXECUTED
printf (", inodes");
203cdbc: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cdc0: 40 00 2f 30 call 2048a80 <printf> <== NOT EXECUTED
203cdc4: 90 12 20 a8 or %o0, 0xa8, %o0 ! 20688a8 <__FUNCTION__.7699+0x5d0><== NOT EXECUTED
/*
* Open the inode bitmap using the old buffer. Should release any changes.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
203cdc8: 98 05 20 01 add %l4, 1, %o4 <== NOT EXECUTED
203cdcc: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203cdd0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203cdd4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203cdd8: 40 00 19 aa call 2043480 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203cddc: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
203cde0: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203cde4: 04 80 00 0c ble 203ce14 <rtems_rfs_format+0x8d8> <== NOT EXECUTED
203cde8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203cdec: 7f ff fd ca call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203cdf0: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
203cdf4: 40 00 37 d8 call 204ad54 <strerror> <== NOT EXECUTED
203cdf8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203cdfc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203ce00: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203ce04: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203ce08: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203ce0c: 10 80 00 28 b 203ceac <rtems_rfs_format+0x970> <== NOT EXECUTED
203ce10: 90 12 20 b8 or %o0, 0xb8, %o0 ! 20688b8 <__FUNCTION__.7699+0x5e0><== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0x00, rtems_rfs_fs_block_size (fs));
203ce14: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
203ce18: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
203ce1c: d0 00 60 24 ld [ %g1 + 0x24 ], %o0 <== NOT EXECUTED
203ce20: 40 00 2a fc call 2047a10 <memset> <== NOT EXECUTED
203ce24: 92 10 20 00 clr %o1 <== NOT EXECUTED
/*
* Clear the inode bitmap.
*/
rc = rtems_rfs_bitmap_map_clear_all (&bitmap);
203ce28: 40 00 19 a8 call 20434c8 <rtems_rfs_bitmap_map_clear_all> <== NOT EXECUTED
203ce2c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203ce30: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203ce34: 04 80 00 0f ble 203ce70 <rtems_rfs_format+0x934> <== NOT EXECUTED
203ce38: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_bitmap_close (&bitmap);
203ce3c: 40 00 19 42 call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203ce40: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
203ce44: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ce48: 7f ff fd b3 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203ce4c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \
203ce50: 40 00 37 c1 call 204ad54 <strerror> <== NOT EXECUTED
203ce54: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203ce58: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203ce5c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203ce60: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203ce64: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203ce68: 10 80 00 11 b 203ceac <rtems_rfs_format+0x970> <== NOT EXECUTED
203ce6c: 90 12 21 00 or %o0, 0x100, %o0 ! 2068900 <__FUNCTION__.7699+0x628><== NOT EXECUTED
}
/*
* Close the inode bitmap.
*/
rc = rtems_rfs_bitmap_close (&bitmap);
203ce70: 40 00 19 35 call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203ce74: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if (rc > 0)
203ce78: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203ce7c: 24 80 00 0f ble,a 203ceb8 <rtems_rfs_format+0x97c> <== NOT EXECUTED
203ce80: ee 2f bf ec stb %l7, [ %fp + -20 ] <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203ce84: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ce88: 7f ff fd a3 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203ce8c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close inode" \
203ce90: 40 00 37 b1 call 204ad54 <strerror> <== NOT EXECUTED
203ce94: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203ce98: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203ce9c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203cea0: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
203cea4: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cea8: 90 12 21 50 or %o0, 0x150, %o0 ! 2068950 <__FUNCTION__.7699+0x678><== NOT EXECUTED
203ceac: 40 00 2e f5 call 2048a80 <printf> <== NOT EXECUTED
203ceb0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ceb4: 30 80 00 dc b,a 203d224 <rtems_rfs_format+0xce8> <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
203ceb8: 80 a6 e0 00 cmp %i3, 0 <== NOT EXECUTED
203cebc: b8 07 20 03 add %i4, 3, %i4 <== NOT EXECUTED
203cec0: 12 80 00 1e bne 203cf38 <rtems_rfs_format+0x9fc> <== NOT EXECUTED
203cec4: a8 10 20 00 clr %l4 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
203cec8: 10 80 00 23 b 203cf54 <rtems_rfs_format+0xa18> <== NOT EXECUTED
203cecc: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
*/
if (initialise_inodes)
{
for (b = 0; b < blocks; b++)
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
203ced0: 7f ff f5 68 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203ced4: a8 05 20 01 inc %l4 <== NOT EXECUTED
group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
false);
if (rc > 0)
203ced8: aa 92 20 00 orcc %o0, 0, %l5 <== NOT EXECUTED
203cedc: 04 80 00 10 ble 203cf1c <rtems_rfs_format+0x9e0> <== NOT EXECUTED
203cee0: 82 07 20 01 add %i4, 1, %g1 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203cee4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203cee8: 7f ff fd 8b call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203ceec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
203cef0: 40 00 37 99 call 204ad54 <strerror> <== NOT EXECUTED
203cef4: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203cef8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cefc: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
203cf00: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203cf04: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
203cf08: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cf0c: 40 00 2e dd call 2048a80 <printf> <== NOT EXECUTED
203cf10: 90 12 21 98 or %o0, 0x198, %o0 ! 2068998 <__FUNCTION__.7699+0x6c0><== NOT EXECUTED
printf ("\n");
rc = rtems_rfs_buffer_close (&fs);
if (rc > 0)
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
203cf14: 81 c7 e0 08 ret <== NOT EXECUTED
203cf18: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
203cf1c: c4 07 bf f4 ld [ %fp + -12 ], %g2 <== NOT EXECUTED
203cf20: d4 07 bf 34 ld [ %fp + -204 ], %o2 <== NOT EXECUTED
203cf24: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
{
for (b = 0; b < blocks; b++)
203cf28: b8 10 00 01 mov %g1, %i4 <== NOT EXECUTED
/*
* Force the whole buffer to a known state. The bit map may not occupy the
* whole block.
*/
memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
203cf2c: 40 00 2a b9 call 2047a10 <memset> <== NOT EXECUTED
203cf30: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
203cf34: ee 2f bf ec stb %l7, [ %fp + -20 ] <== NOT EXECUTED
*/
if (initialise_inodes)
{
for (b = 0; b < blocks; b++)
{
rc = rtems_rfs_buffer_handle_request (fs, &handle,
203cf38: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203cf3c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203cf40: 96 10 20 00 clr %o3 <== NOT EXECUTED
/*
* Initialise the inode tables if required to do so.
*/
if (initialise_inodes)
{
for (b = 0; b < blocks; b++)
203cf44: 80 a5 00 1d cmp %l4, %i5 <== NOT EXECUTED
203cf48: 06 bf ff e2 bl 203ced0 <rtems_rfs_format+0x994> <== NOT EXECUTED
203cf4c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle);
}
}
rc = rtems_rfs_buffer_handle_close (fs, &handle);
203cf50: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
203cf54: 7f ff fd 70 call 203c514 <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203cf58: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
if (rc > 0)
203cf5c: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203cf60: 24 80 00 0d ble,a 203cf94 <rtems_rfs_format+0xa58> <== NOT EXECUTED
203cf64: a0 04 20 01 inc %l0 <== NOT EXECUTED
{
printf ("\nrtems-rfs: write-group: buffer handle close failed: %d: %s\n",
203cf68: 40 00 37 7b call 204ad54 <strerror> <== NOT EXECUTED
203cf6c: 01 00 00 00 nop <== NOT EXECUTED
203cf70: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
203cf74: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203cf78: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cf7c: 10 80 00 1a b 203cfe4 <rtems_rfs_format+0xaa8> <== NOT EXECUTED
203cf80: 90 12 21 e0 or %o0, 0x1e0, %o0 ! 20689e0 <__FUNCTION__.7699+0x708><== NOT EXECUTED
203cf84: a0 10 20 00 clr %l0 <== NOT EXECUTED
*/
if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))
group_size = rtems_rfs_fs_blocks (fs) - group_base;
if (verbose)
printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
203cf88: b4 16 a3 80 or %i2, 0x380, %i2 <== NOT EXECUTED
printf (", blocks");
/*
* Open the block bitmap using the new buffer.
*/
rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,
203cf8c: a2 07 bf d4 add %fp, -44, %l1 <== NOT EXECUTED
printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
group, rc, strerror (rc));
return false;
}
rtems_rfs_buffer_mark_dirty (&handle);
203cf90: ae 10 20 01 mov 1, %l7 <== NOT EXECUTED
{
printf ("rtems-rfs: format: superblock write failed\n");
return -1;
}
for (group = 0; group < fs.group_count; group++)
203cf94: c2 07 bf 4c ld [ %fp + -180 ], %g1 <== NOT EXECUTED
203cf98: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
203cf9c: 06 bf ff 0f bl 203cbd8 <rtems_rfs_format+0x69c> <== NOT EXECUTED
203cfa0: ec 0e 60 15 ldub [ %i1 + 0x15 ], %l6 <== NOT EXECUTED
if (!rtems_rfs_write_group (&fs, group,
config->initialise_inodes, config->verbose))
return -1;
if (config->verbose)
203cfa4: 80 a5 a0 00 cmp %l6, 0 <== NOT EXECUTED
203cfa8: 02 80 00 04 be 203cfb8 <rtems_rfs_format+0xa7c> <== NOT EXECUTED
203cfac: 01 00 00 00 nop <== NOT EXECUTED
printf ("\n");
203cfb0: 40 00 2f 2c call 2048c60 <putchar> <== NOT EXECUTED
203cfb4: 90 10 20 0a mov 0xa, %o0 ! a <PROM_START+0xa> <== NOT EXECUTED
rc = rtems_rfs_buffer_close (&fs);
203cfb8: 7f ff f4 c2 call 203a2c0 <rtems_rfs_buffer_close> <== NOT EXECUTED
203cfbc: 90 07 bf 2c add %fp, -212, %o0 <== NOT EXECUTED
if (rc > 0)
203cfc0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203cfc4: 24 80 00 0c ble,a 203cff4 <rtems_rfs_format+0xab8> <== NOT EXECUTED
203cfc8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: buffer close failed: %d: %s\n",
203cfcc: 40 00 37 62 call 204ad54 <strerror> <== NOT EXECUTED
203cfd0: 01 00 00 00 nop <== NOT EXECUTED
203cfd4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203cfd8: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203cfdc: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203cfe0: 90 12 22 20 or %o0, 0x220, %o0 ! 2068a20 <__FUNCTION__.7699+0x748><== NOT EXECUTED
203cfe4: 40 00 2e a7 call 2048a80 <printf> <== NOT EXECUTED
203cfe8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rc, strerror (rc));
return -1;
203cfec: 81 c7 e0 08 ret <== NOT EXECUTED
203cff0: 81 e8 00 00 restore <== NOT EXECUTED
int rc;
/*
* External API so returns -1.
*/
rc = rtems_rfs_fs_open (name, NULL,
203cff4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203cff8: 94 10 20 06 mov 6, %o2 <== NOT EXECUTED
203cffc: 96 10 20 00 clr %o3 <== NOT EXECUTED
203d000: 7f ff fb c5 call 203bf14 <rtems_rfs_fs_open> <== NOT EXECUTED
203d004: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
0, &fs);
if (rc < 0)
203d008: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d00c: 36 80 00 0d bge,a 203d040 <rtems_rfs_format+0xb04> <== NOT EXECUTED
203d010: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: file system open failed: %d: %s\n",
203d014: 40 00 1c a0 call 2044294 <__errno> <== NOT EXECUTED
203d018: 01 00 00 00 nop <== NOT EXECUTED
203d01c: 40 00 1c 9e call 2044294 <__errno> <== NOT EXECUTED
203d020: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
203d024: 40 00 37 4c call 204ad54 <strerror> <== NOT EXECUTED
203d028: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
203d02c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d030: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d034: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d038: 10 80 00 6d b 203d1ec <rtems_rfs_format+0xcb0> <== NOT EXECUTED
203d03c: 90 12 22 50 or %o0, 0x250, %o0 ! 2068a50 <__FUNCTION__.7699+0x778><== NOT EXECUTED
errno, strerror (errno));
return -1;
}
rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);
203d040: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203d044: 40 00 03 0c call 203dc74 <rtems_rfs_inode_alloc> <== NOT EXECUTED
203d048: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
if (rc > 0)
203d04c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203d050: 04 80 00 0a ble 203d078 <rtems_rfs_format+0xb3c> <== NOT EXECUTED
203d054: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",
203d058: 40 00 37 3f call 204ad54 <strerror> <== NOT EXECUTED
203d05c: 01 00 00 00 nop <== NOT EXECUTED
203d060: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d064: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d068: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d06c: 40 00 2e 85 call 2048a80 <printf> <== NOT EXECUTED
203d070: 90 12 22 88 or %o0, 0x288, %o0 ! 2068a88 <__FUNCTION__.7699+0x7b0><== NOT EXECUTED
203d074: 30 80 00 1e b,a 203d0ec <rtems_rfs_format+0xbb0> <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_fs_close (fs);
return rc;
}
if (ino != RTEMS_RFS_ROOT_INO)
203d078: 80 a2 60 01 cmp %o1, 1 <== NOT EXECUTED
203d07c: 02 80 00 08 be 203d09c <rtems_rfs_format+0xb60> <== NOT EXECUTED
203d080: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
203d084: 40 00 2e 7f call 2048a80 <printf> <== NOT EXECUTED
203d088: 90 12 22 c0 or %o0, 0x2c0, %o0 ! 2068ac0 <__FUNCTION__.7699+0x7e8><== NOT EXECUTED
rtems_rfs_fs_close (fs);
203d08c: 7f ff fb 84 call 203be9c <rtems_rfs_fs_close> <== NOT EXECUTED
203d090: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
if (rc < 0)
printf ("rtems-rfs: format: file system close failed: %d: %s\n",
203d094: 81 c7 e0 08 ret <== NOT EXECUTED
203d098: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
rtems_rfs_fs_close (fs);
return rc;
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
203d09c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203d0a0: a0 07 bf ac add %fp, -84, %l0 <== NOT EXECUTED
203d0a4: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203d0a8: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
203d0ac: 40 00 02 9b call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203d0b0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203d0b4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203d0b8: 24 80 00 10 ble,a 203d0f8 <rtems_rfs_format+0xbbc> <== NOT EXECUTED
203d0bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: inode open failed: %d: %s\n",
203d0c0: 40 00 37 25 call 204ad54 <strerror> <== NOT EXECUTED
203d0c4: 01 00 00 00 nop <== NOT EXECUTED
203d0c8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d0cc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d0d0: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d0d4: 40 00 2e 6b call 2048a80 <printf> <== NOT EXECUTED
203d0d8: 90 12 22 f8 or %o0, 0x2f8, %o0 ! 2068af8 <__FUNCTION__.7699+0x820><== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_group_bitmap_free (fs, true, ino);
203d0dc: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203d0e0: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
203d0e4: 40 00 00 ae call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203d0e8: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
rtems_rfs_fs_close (fs);
203d0ec: 7f ff fb 6c call 203be9c <rtems_rfs_fs_close> <== NOT EXECUTED
203d0f0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203d0f4: 30 80 00 44 b,a 203d204 <rtems_rfs_format+0xcc8> <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, 0,
203d0f8: 92 10 20 00 clr %o1 <== NOT EXECUTED
203d0fc: 15 00 00 10 sethi %hi(0x4000), %o2 <== NOT EXECUTED
203d100: 96 10 20 00 clr %o3 <== NOT EXECUTED
203d104: 94 12 a1 c9 or %o2, 0x1c9, %o2 <== NOT EXECUTED
203d108: 40 00 01 da call 203d870 <rtems_rfs_inode_initialise> <== NOT EXECUTED
203d10c: 98 10 20 00 clr %o4 <== NOT EXECUTED
(RTEMS_RFS_S_IFDIR | RTEMS_RFS_S_IRWXU |
RTEMS_RFS_S_IXGRP | RTEMS_RFS_S_IXOTH),
0, 0);
if (rc > 0)
203d110: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203d114: 24 80 00 0a ble,a 203d13c <rtems_rfs_format+0xc00> <== NOT EXECUTED
203d118: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",
203d11c: 40 00 37 0e call 204ad54 <strerror> <== NOT EXECUTED
203d120: 01 00 00 00 nop <== NOT EXECUTED
203d124: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d128: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d12c: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d130: 40 00 2e 54 call 2048a80 <printf> <== NOT EXECUTED
203d134: 90 12 23 28 or %o0, 0x328, %o0 ! 2068b28 <__FUNCTION__.7699+0x850><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);
203d138: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203d13c: d8 07 bf f8 ld [ %fp + -8 ], %o4 <== NOT EXECUTED
203d140: 92 07 bf ac add %fp, -84, %o1 <== NOT EXECUTED
203d144: 15 00 81 a2 sethi %hi(0x2068800), %o2 <== NOT EXECUTED
203d148: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203d14c: 7f ff f7 27 call 203ade8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203d150: 94 12 a3 60 or %o2, 0x360, %o2 <== NOT EXECUTED
if (rc > 0)
203d154: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203d158: 24 80 00 0a ble,a 203d180 <rtems_rfs_format+0xc44> <== NOT EXECUTED
203d15c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
printf ("rtems-rfs: format: directory add failed: %d: %s\n",
203d160: 40 00 36 fd call 204ad54 <strerror> <== NOT EXECUTED
203d164: 01 00 00 00 nop <== NOT EXECUTED
203d168: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d16c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d170: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d174: 40 00 2e 43 call 2048a80 <printf> <== NOT EXECUTED
203d178: 90 12 23 68 or %o0, 0x368, %o0 ! 2068b68 <__FUNCTION__.7699+0x890><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_inode_close (fs, &inode);
203d17c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
203d180: 40 00 02 3d call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203d184: 92 07 bf ac add %fp, -84, %o1 <== NOT EXECUTED
if (rc > 0)
203d188: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203d18c: 04 80 00 09 ble 203d1b0 <rtems_rfs_format+0xc74> <== NOT EXECUTED
203d190: 01 00 00 00 nop <== NOT EXECUTED
printf ("rtems-rfs: format: inode close failed: %d: %s\n",
203d194: 40 00 36 f0 call 204ad54 <strerror> <== NOT EXECUTED
203d198: 01 00 00 00 nop <== NOT EXECUTED
203d19c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d1a0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d1a4: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d1a8: 40 00 2e 36 call 2048a80 <printf> <== NOT EXECUTED
203d1ac: 90 12 23 a0 or %o0, 0x3a0, %o0 ! 2068ba0 <__FUNCTION__.7699+0x8c8><== NOT EXECUTED
rc, strerror (rc));
rc = rtems_rfs_fs_close (fs);
203d1b0: 7f ff fb 3b call 203be9c <rtems_rfs_fs_close> <== NOT EXECUTED
203d1b4: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
if (rc < 0)
203d1b8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203d1bc: 16 80 00 10 bge 203d1fc <rtems_rfs_format+0xcc0> <== NOT EXECUTED
203d1c0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
printf ("rtems-rfs: format: file system close failed: %d: %s\n",
203d1c4: 40 00 1c 34 call 2044294 <__errno> <== NOT EXECUTED
203d1c8: 01 00 00 00 nop <== NOT EXECUTED
203d1cc: 40 00 1c 32 call 2044294 <__errno> <== NOT EXECUTED
203d1d0: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
203d1d4: 40 00 36 e0 call 204ad54 <strerror> <== NOT EXECUTED
203d1d8: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
203d1dc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d1e0: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d1e4: 11 00 81 a2 sethi %hi(0x2068800), %o0 <== NOT EXECUTED
203d1e8: 90 12 23 d0 or %o0, 0x3d0, %o0 ! 2068bd0 <__FUNCTION__.7699+0x8f8><== NOT EXECUTED
203d1ec: 40 00 2e 25 call 2048a80 <printf> <== NOT EXECUTED
203d1f0: 01 00 00 00 nop <== NOT EXECUTED
203d1f4: 81 c7 e0 08 ret <== NOT EXECUTED
203d1f8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
rc, strerror (rc));
return -1;
}
rc = rtems_rfs_write_root_dir (name);
if (rc > 0)
203d1fc: 04 bf ff 7c ble 203cfec <rtems_rfs_format+0xab0> <== NOT EXECUTED
203d200: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",
203d204: 40 00 36 d4 call 204ad54 <strerror> <== NOT EXECUTED
203d208: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203d20c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d210: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
203d214: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203d218: 11 00 81 a3 sethi %hi(0x2068c00), %o0 <== NOT EXECUTED
203d21c: 40 00 2e 19 call 2048a80 <printf> <== NOT EXECUTED
203d220: 90 12 20 08 or %o0, 8, %o0 ! 2068c08 <__FUNCTION__.7699+0x930><== NOT EXECUTED
rc, strerror (rc));
return -1;
}
return 0;
}
203d224: 81 c7 e0 08 ret <== NOT EXECUTED
203d228: 81 e8 00 00 restore <== NOT EXECUTED
* Check the configuration data.
*/
if (!rtems_rfs_check_config (&fs, config))
return -1;
if (config->verbose)
203d22c: c2 0e 60 15 ldub [ %i1 + 0x15 ], %g1 <== NOT EXECUTED
203d230: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d234: 02 bf fd cf be 203c970 <rtems_rfs_format+0x434> <== NOT EXECUTED
203d238: d2 07 bf 34 ld [ %fp + -204 ], %o1 <== NOT EXECUTED
{
printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
203d23c: 10 bf fd 83 b 203c848 <rtems_rfs_format+0x30c> <== NOT EXECUTED
203d240: a0 07 bf 2c add %fp, -212, %l0 <== NOT EXECUTED
0203be9c <rtems_rfs_fs_close>:
return 0;
}
int
rtems_rfs_fs_close (rtems_rfs_file_system* fs)
{
203be9c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203bea0: a4 10 20 00 clr %l2 <== NOT EXECUTED
203bea4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int group;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))
printf ("rtems-rfs: close\n");
for (group = 0; group < fs->group_count; group++)
203bea8: 10 80 00 07 b 203bec4 <rtems_rfs_fs_close+0x28> <== NOT EXECUTED
203beac: a2 10 20 00 clr %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
203beb0: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
int group;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))
printf ("rtems-rfs: close\n");
for (group = 0; group < fs->group_count; group++)
203beb4: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
203beb8: 92 02 40 12 add %o1, %l2, %o1 <== NOT EXECUTED
203bebc: 40 00 05 cb call 203d5e8 <rtems_rfs_group_close> <== NOT EXECUTED
203bec0: a4 04 a0 50 add %l2, 0x50, %l2 <== NOT EXECUTED
int group;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))
printf ("rtems-rfs: close\n");
for (group = 0; group < fs->group_count; group++)
203bec4: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
203bec8: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203becc: 06 bf ff f9 bl 203beb0 <rtems_rfs_fs_close+0x14> <== NOT EXECUTED
203bed0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[group]);
rtems_rfs_buffer_close (fs);
203bed4: 7f ff f8 fb call 203a2c0 <rtems_rfs_buffer_close> <== NOT EXECUTED
203bed8: b0 10 20 00 clr %i0 <== NOT EXECUTED
free (fs);
203bedc: 7f ff 30 e1 call 2008260 <free> <== NOT EXECUTED
203bee0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return 0;
}
203bee4: 81 c7 e0 08 ret <== NOT EXECUTED
203bee8: 81 e8 00 00 restore <== NOT EXECUTED
0203be74 <rtems_rfs_fs_media_size>:
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
203be74: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
203be78: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
203be7c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203be80: d6 00 60 1c ld [ %g1 + 0x1c ], %o3 <== NOT EXECUTED
203be84: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203be88: 40 00 83 9c call 205ccf8 <__muldi3> <== NOT EXECUTED
203be8c: 90 10 20 00 clr %o0 <== NOT EXECUTED
uint64_t media_block_size = (uint64_t) rtems_rfs_fs_media_block_size (fs);
return media_blocks * media_block_size;
}
203be90: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203be94: 81 c7 e0 08 ret <== NOT EXECUTED
203be98: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
0203bf14 <rtems_rfs_fs_open>:
rtems_rfs_fs_open (const char* name,
void* user,
uint32_t flags,
uint32_t max_held_buffers,
rtems_rfs_file_system** fs)
{
203bf14: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: %s\n", name);
*fs = malloc (sizeof (rtems_rfs_file_system));
203bf18: 7f ff 32 99 call 200897c <malloc> <== NOT EXECUTED
203bf1c: 90 10 20 80 mov 0x80, %o0 <== NOT EXECUTED
if (!*fs)
203bf20: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203bf24: 12 80 00 06 bne 203bf3c <rtems_rfs_fs_open+0x28> <== NOT EXECUTED
203bf28: d0 27 00 00 st %o0, [ %i4 ] <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: no memory for file system data\n");
errno = ENOMEM;
203bf2c: 40 00 20 da call 2044294 <__errno> <== NOT EXECUTED
203bf30: 01 00 00 00 nop <== NOT EXECUTED
203bf34: 10 80 01 34 b 203c404 <rtems_rfs_fs_open+0x4f0> <== NOT EXECUTED
203bf38: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
203bf3c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203bf40: 40 00 2e b4 call 2047a10 <memset> <== NOT EXECUTED
203bf44: 94 10 20 80 mov 0x80, %o2 <== NOT EXECUTED
(*fs)->user = user;
203bf48: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
203bf4c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203bf50: 84 00 60 44 add %g1, 0x44, %g2 <== NOT EXECUTED
203bf54: c4 20 60 40 st %g2, [ %g1 + 0x40 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203bf58: 84 00 60 40 add %g1, 0x40, %g2 <== NOT EXECUTED
203bf5c: c4 20 60 48 st %g2, [ %g1 + 0x48 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203bf60: 84 00 60 54 add %g1, 0x54, %g2 <== NOT EXECUTED
203bf64: c4 20 60 50 st %g2, [ %g1 + 0x50 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203bf68: 84 00 60 50 add %g1, 0x50, %g2 <== NOT EXECUTED
203bf6c: c4 20 60 58 st %g2, [ %g1 + 0x58 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203bf70: 84 00 60 64 add %g1, 0x64, %g2 <== NOT EXECUTED
203bf74: c4 20 60 60 st %g2, [ %g1 + 0x60 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203bf78: 84 00 60 60 add %g1, 0x60, %g2 <== NOT EXECUTED
203bf7c: c4 20 60 68 st %g2, [ %g1 + 0x68 ] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
203bf80: 84 00 60 74 add %g1, 0x74, %g2 <== NOT EXECUTED
203bf84: c4 20 60 70 st %g2, [ %g1 + 0x70 ] <== NOT EXECUTED
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
203bf88: 84 00 60 70 add %g1, 0x70, %g2 <== NOT EXECUTED
return -1;
}
memset (*fs, 0, sizeof (rtems_rfs_file_system));
(*fs)->user = user;
203bf8c: f2 20 60 7c st %i1, [ %g1 + 0x7c ] <== NOT EXECUTED
rtems_chain_initialize_empty (&(*fs)->buffers);
rtems_chain_initialize_empty (&(*fs)->release);
rtems_chain_initialize_empty (&(*fs)->release_modified);
rtems_chain_initialize_empty (&(*fs)->file_shares);
(*fs)->max_held_buffers = max_held_buffers;
203bf90: f6 20 60 3c st %i3, [ %g1 + 0x3c ] <== NOT EXECUTED
(*fs)->buffers_count = 0;
(*fs)->release_count = 0;
(*fs)->release_modified_count = 0;
(*fs)->flags = flags;
203bf94: f4 20 40 00 st %i2, [ %g1 ] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
203bf98: c0 20 60 44 clr [ %g1 + 0x44 ] <== NOT EXECUTED
203bf9c: c0 20 60 54 clr [ %g1 + 0x54 ] <== NOT EXECUTED
203bfa0: c0 20 60 64 clr [ %g1 + 0x64 ] <== NOT EXECUTED
203bfa4: c0 20 60 74 clr [ %g1 + 0x74 ] <== NOT EXECUTED
rtems_chain_initialize_empty (&(*fs)->release);
rtems_chain_initialize_empty (&(*fs)->release_modified);
rtems_chain_initialize_empty (&(*fs)->file_shares);
(*fs)->max_held_buffers = max_held_buffers;
(*fs)->buffers_count = 0;
203bfa8: c0 20 60 4c clr [ %g1 + 0x4c ] <== NOT EXECUTED
(*fs)->release_count = 0;
203bfac: c0 20 60 5c clr [ %g1 + 0x5c ] <== NOT EXECUTED
(*fs)->release_modified_count = 0;
203bfb0: c0 20 60 6c clr [ %g1 + 0x6c ] <== NOT EXECUTED
group_base = 0;
/*
* Open the buffer interface.
*/
rc = rtems_rfs_buffer_open (name, *fs);
203bfb4: 92 10 00 01 mov %g1, %o1 <== NOT EXECUTED
203bfb8: 7f ff f8 cd call 203a2ec <rtems_rfs_buffer_open> <== NOT EXECUTED
203bfbc: c4 20 60 78 st %g2, [ %g1 + 0x78 ] <== NOT EXECUTED
if (rc > 0)
203bfc0: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203bfc4: 04 80 00 04 ble 203bfd4 <rtems_rfs_fs_open+0xc0> <== NOT EXECUTED
203bfc8: f0 07 00 00 ld [ %i4 ], %i0 <== NOT EXECUTED
{
free (*fs);
203bfcc: 10 80 01 18 b 203c42c <rtems_rfs_fs_open+0x518> <== NOT EXECUTED
203bfd0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203bfd4: c0 2f bf f4 clrb [ %fp + -12 ] <== NOT EXECUTED
handle->bnum = 0;
203bfd8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
handle->buffer = NULL;
203bfdc: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: handle open failed: %d: %s\n",
rc, strerror (rc));
return rc;
}
rc = rtems_rfs_buffer_handle_request (fs, &handle, 0, true);
203bfe0: a2 07 bf f4 add %fp, -12, %l1 <== NOT EXECUTED
203bfe4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203bfe8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203bfec: 94 10 20 00 clr %o2 <== NOT EXECUTED
203bff0: 7f ff f9 20 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203bff4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203bff8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203bffc: 14 80 00 dc bg 203c36c <rtems_rfs_fs_open+0x458> <== NOT EXECUTED
203c000: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
rtems_rfs_buffer_handle_close (fs, &handle);
203c004: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: request failed%d: %s\n",
rc, strerror (rc));
return rc;
}
sb = rtems_rfs_buffer_data (&handle);
203c008: e0 00 60 24 ld [ %g1 + 0x24 ], %l0 <== NOT EXECUTED
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))
if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)
203c00c: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
203c010: c8 0c 20 03 ldub [ %l0 + 3 ], %g4 <== NOT EXECUTED
203c014: c4 0c 00 00 ldub [ %l0 ], %g2 <== NOT EXECUTED
203c018: c6 0c 20 01 ldub [ %l0 + 1 ], %g3 <== NOT EXECUTED
203c01c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203c020: 85 28 a0 18 sll %g2, 0x18, %g2 <== NOT EXECUTED
203c024: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203c028: 84 11 00 02 or %g4, %g2, %g2 <== NOT EXECUTED
203c02c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203c030: 84 10 80 01 or %g2, %g1, %g2 <== NOT EXECUTED
203c034: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
203c038: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
203c03c: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203c040: 12 80 00 2e bne 203c0f8 <rtems_rfs_fs_open+0x1e4> <== NOT EXECUTED
203c044: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
203c048: c6 0c 20 0d ldub [ %l0 + 0xd ], %g3 <== NOT EXECUTED
203c04c: c2 0c 20 0e ldub [ %l0 + 0xe ], %g1 <== NOT EXECUTED
203c050: c4 0c 20 0f ldub [ %l0 + 0xf ], %g2 <== NOT EXECUTED
203c054: d6 0c 20 0c ldub [ %l0 + 0xc ], %o3 <== NOT EXECUTED
203c058: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203c05c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203c060: 97 2a e0 18 sll %o3, 0x18, %o3 <== NOT EXECUTED
203c064: 96 12 c0 03 or %o3, %g3, %o3 <== NOT EXECUTED
203c068: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
203c06c: 96 12 c0 01 or %o3, %g1, %o3 <== NOT EXECUTED
203c070: d6 26 20 04 st %o3, [ %i0 + 4 ] <== NOT EXECUTED
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
203c074: c6 0c 20 09 ldub [ %l0 + 9 ], %g3 <== NOT EXECUTED
203c078: c2 0c 20 0a ldub [ %l0 + 0xa ], %g1 <== NOT EXECUTED
203c07c: c4 0c 20 0b ldub [ %l0 + 0xb ], %g2 <== NOT EXECUTED
203c080: e2 0c 20 08 ldub [ %l0 + 8 ], %l1 <== NOT EXECUTED
203c084: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203c088: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
}
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
203c08c: e4 06 20 0c ld [ %i0 + 0xc ], %l2 <== NOT EXECUTED
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203c090: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
203c094: a3 2c 60 18 sll %l1, 0x18, %l1 <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203c098: 90 10 20 00 clr %o0 <== NOT EXECUTED
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
203c09c: a2 14 40 03 or %l1, %g3, %l1 <== NOT EXECUTED
203c0a0: a2 14 40 02 or %l1, %g2, %l1 <== NOT EXECUTED
203c0a4: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
203c0a8: e2 26 20 08 st %l1, [ %i0 + 8 ] <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203c0ac: 40 00 83 13 call 205ccf8 <__muldi3> <== NOT EXECUTED
203c0b0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
}
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
203c0b4: d6 04 a0 1c ld [ %l2 + 0x1c ], %o3 <== NOT EXECUTED
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203c0b8: a6 10 00 09 mov %o1, %l3 <== NOT EXECUTED
}
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
203c0bc: d2 04 a0 24 ld [ %l2 + 0x24 ], %o1 <== NOT EXECUTED
}
fs->blocks = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);
fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
203c0c0: b2 10 00 08 mov %o0, %i1 <== NOT EXECUTED
}
uint64_t
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)
{
uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);
203c0c4: 94 10 20 00 clr %o2 <== NOT EXECUTED
203c0c8: 40 00 83 0c call 205ccf8 <__muldi3> <== NOT EXECUTED
203c0cc: 90 10 20 00 clr %o0 <== NOT EXECUTED
203c0d0: 80 a6 40 08 cmp %i1, %o0 <== NOT EXECUTED
203c0d4: 38 80 00 08 bgu,a 203c0f4 <rtems_rfs_fs_open+0x1e0> <== NOT EXECUTED
203c0d8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c0dc: 32 80 00 0a bne,a 203c104 <rtems_rfs_fs_open+0x1f0> <== NOT EXECUTED
203c0e0: c8 0c 20 24 ldub [ %l0 + 0x24 ], %g4 <== NOT EXECUTED
203c0e4: 80 a4 c0 09 cmp %l3, %o1 <== NOT EXECUTED
203c0e8: 28 80 00 07 bleu,a 203c104 <rtems_rfs_fs_open+0x1f0> <== NOT EXECUTED
203c0ec: c8 0c 20 24 ldub [ %l0 + 0x24 ], %g4 <== NOT EXECUTED
if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: read-superblock: invalid superblock block/size count\n");
rtems_rfs_buffer_handle_close (fs, &handle);
203c0f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c0f4: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED
203c0f8: 7f ff ff 7d call 203beec <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c0fc: a4 10 20 05 mov 5, %l2 <== NOT EXECUTED
203c100: 30 80 00 9b b,a 203c36c <rtems_rfs_fs_open+0x458> <== NOT EXECUTED
read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
if (read_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE) != RTEMS_RFS_INODE_SIZE)
203c104: c2 0c 20 25 ldub [ %l0 + 0x25 ], %g1 <== NOT EXECUTED
203c108: c6 0c 20 27 ldub [ %l0 + 0x27 ], %g3 <== NOT EXECUTED
203c10c: c4 0c 20 26 ldub [ %l0 + 0x26 ], %g2 <== NOT EXECUTED
203c110: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203c114: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203c118: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203c11c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203c120: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203c124: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203c128: 80 a0 60 38 cmp %g1, 0x38 <== NOT EXECUTED
203c12c: 32 bf ff f2 bne,a 203c0f4 <rtems_rfs_fs_open+0x1e0> <== NOT EXECUTED
203c130: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
rtems_rfs_buffer_handle_close (fs, &handle);
return EIO;
}
fs->bad_blocks = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);
203c134: c6 0c 20 13 ldub [ %l0 + 0x13 ], %g3 <== NOT EXECUTED
203c138: c8 0c 20 10 ldub [ %l0 + 0x10 ], %g4 <== NOT EXECUTED
203c13c: c2 0c 20 11 ldub [ %l0 + 0x11 ], %g1 <== NOT EXECUTED
203c140: c4 0c 20 12 ldub [ %l0 + 0x12 ], %g2 <== NOT EXECUTED
203c144: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203c148: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203c14c: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203c150: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203c154: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203c158: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203c15c: c2 26 20 14 st %g1, [ %i0 + 0x14 ] <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
203c160: c6 0c 20 17 ldub [ %l0 + 0x17 ], %g3 <== NOT EXECUTED
203c164: c8 0c 20 14 ldub [ %l0 + 0x14 ], %g4 <== NOT EXECUTED
203c168: c2 0c 20 15 ldub [ %l0 + 0x15 ], %g1 <== NOT EXECUTED
203c16c: c4 0c 20 16 ldub [ %l0 + 0x16 ], %g2 <== NOT EXECUTED
203c170: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
203c174: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203c178: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203c17c: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
203c180: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203c184: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
203c188: c2 26 20 18 st %g1, [ %i0 + 0x18 ] <== NOT EXECUTED
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
203c18c: c2 0c 20 1a ldub [ %l0 + 0x1a ], %g1 <== NOT EXECUTED
203c190: c4 0c 20 1b ldub [ %l0 + 0x1b ], %g2 <== NOT EXECUTED
203c194: e6 0c 20 18 ldub [ %l0 + 0x18 ], %l3 <== NOT EXECUTED
203c198: c6 0c 20 19 ldub [ %l0 + 0x19 ], %g3 <== NOT EXECUTED
203c19c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203c1a0: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203c1a4: a7 2c e0 18 sll %l3, 0x18, %l3 <== NOT EXECUTED
203c1a8: a6 14 c0 03 or %l3, %g3, %l3 <== NOT EXECUTED
203c1ac: a6 14 c0 02 or %l3, %g2, %l3 <== NOT EXECUTED
203c1b0: a6 14 c0 01 or %l3, %g1, %l3 <== NOT EXECUTED
203c1b4: e6 26 20 20 st %l3, [ %i0 + 0x20 ] <== NOT EXECUTED
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
203c1b8: c2 0c 20 1e ldub [ %l0 + 0x1e ], %g1 <== NOT EXECUTED
203c1bc: c4 0c 20 1f ldub [ %l0 + 0x1f ], %g2 <== NOT EXECUTED
203c1c0: e4 0c 20 1c ldub [ %l0 + 0x1c ], %l2 <== NOT EXECUTED
203c1c4: c6 0c 20 1d ldub [ %l0 + 0x1d ], %g3 <== NOT EXECUTED
203c1c8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203c1cc: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203c1d0: a5 2c a0 18 sll %l2, 0x18, %l2 <== NOT EXECUTED
203c1d4: a4 14 80 03 or %l2, %g3, %l2 <== NOT EXECUTED
203c1d8: a4 14 80 02 or %l2, %g2, %l2 <== NOT EXECUTED
203c1dc: a4 14 80 01 or %l2, %g1, %l2 <== NOT EXECUTED
203c1e0: e4 26 20 24 st %l2, [ %i0 + 0x24 ] <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
203c1e4: c2 0c 20 22 ldub [ %l0 + 0x22 ], %g1 <== NOT EXECUTED
203c1e8: c8 0c 20 20 ldub [ %l0 + 0x20 ], %g4 <== NOT EXECUTED
203c1ec: c4 0c 20 23 ldub [ %l0 + 0x23 ], %g2 <== NOT EXECUTED
203c1f0: c6 0c 20 21 ldub [ %l0 + 0x21 ], %g3 <== NOT EXECUTED
203c1f4: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203c1f8: a1 29 20 18 sll %g4, 0x18, %l0 <== NOT EXECUTED
203c1fc: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
203c200: a0 14 00 03 or %l0, %g3, %l0 <== NOT EXECUTED
203c204: a0 14 00 02 or %l0, %g2, %l0 <== NOT EXECUTED
203c208: a0 14 00 01 or %l0, %g1, %l0 <== NOT EXECUTED
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
203c20c: 83 34 60 02 srl %l1, 2, %g1 <== NOT EXECUTED
fs->block_map_singly_blocks =
203c210: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203c214: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
fs->group_count = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);
fs->group_blocks = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
fs->blocks_per_block =
203c218: c2 26 20 30 st %g1, [ %i0 + 0x30 ] <== NOT EXECUTED
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
fs->block_map_singly_blocks =
203c21c: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203c220: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
fs->group_inodes = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
fs->block_map_singly_blocks =
203c224: c2 26 20 34 st %g1, [ %i0 + 0x34 ] <== NOT EXECUTED
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203c228: 7f ff 19 f4 call 20029f8 <.umul> <== NOT EXECUTED
203c22c: e0 26 20 28 st %l0, [ %i0 + 0x28 ] <== NOT EXECUTED
203c230: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED
203c234: 82 00 40 08 add %g1, %o0, %g1 <== NOT EXECUTED
fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->inodes = fs->group_count * fs->group_inodes;
203c238: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
fs->blocks_per_block =
rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);
fs->block_map_singly_blocks =
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
203c23c: c2 26 20 38 st %g1, [ %i0 + 0x38 ] <== NOT EXECUTED
fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->inodes = fs->group_count * fs->group_inodes;
203c240: 7f ff 19 ee call 20029f8 <.umul> <== NOT EXECUTED
203c244: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
203c248: 92 10 20 38 mov 0x38, %o1 <== NOT EXECUTED
fs->block_map_singly_blocks =
fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->block_map_doubly_blocks =
fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
fs->inodes = fs->group_count * fs->group_inodes;
203c24c: d0 26 20 10 st %o0, [ %i0 + 0x10 ] <== NOT EXECUTED
fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;
203c250: 40 00 81 52 call 205c798 <.udiv> <== NOT EXECUTED
203c254: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203c258: d0 26 20 2c st %o0, [ %i0 + 0x2c ] <== NOT EXECUTED
if (fs->group_blocks >
203c25c: a3 2c 60 03 sll %l1, 3, %l1 <== NOT EXECUTED
203c260: 80 a4 80 11 cmp %l2, %l1 <== NOT EXECUTED
203c264: 08 80 00 05 bleu 203c278 <rtems_rfs_fs_open+0x364> <== NOT EXECUTED
203c268: a6 07 bf f4 add %fp, -12, %l3 <== NOT EXECUTED
rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c26c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c270: 10 bf ff a2 b 203c0f8 <rtems_rfs_fs_open+0x1e4> <== NOT EXECUTED
203c274: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
return EIO;
}
rtems_rfs_buffer_handle_close (fs, &handle);
203c278: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203c27c: 7f ff ff 1c call 203beec <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c280: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
/*
* Change the block size to the value in the superblock.
*/
rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_block_size (fs));
203c284: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
203c288: 7f ff f7 fa call 203a270 <rtems_rfs_buffer_setblksize> <== NOT EXECUTED
203c28c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
203c290: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203c294: 04 80 00 04 ble 203c2a4 <rtems_rfs_fs_open+0x390> <== NOT EXECUTED
203c298: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c29c: 10 80 00 2a b 203c344 <rtems_rfs_fs_open+0x430> <== NOT EXECUTED
203c2a0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
rc, strerror (rc));
return rc;
}
fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));
203c2a4: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 <== NOT EXECUTED
203c2a8: 7f ff 2e 5f call 2007c24 <calloc> <== NOT EXECUTED
203c2ac: 92 10 20 50 mov 0x50, %o1 <== NOT EXECUTED
203c2b0: d0 26 20 1c st %o0, [ %i0 + 0x1c ] <== NOT EXECUTED
if (!fs->groups)
203c2b4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c2b8: a2 10 20 00 clr %l1 <== NOT EXECUTED
203c2bc: 12 80 00 26 bne 203c354 <rtems_rfs_fs_open+0x440> <== NOT EXECUTED
203c2c0: a0 10 20 00 clr %l0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &handle);
203c2c4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c2c8: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203c2cc: 7f ff ff 08 call 203beec <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c2d0: a4 10 20 0c mov 0xc, %l2 <== NOT EXECUTED
203c2d4: 30 80 00 26 b,a 203c36c <rtems_rfs_fs_open+0x458> <== NOT EXECUTED
* close everything.
*/
for (group = 0; group < fs->group_count; group++)
{
rc = rtems_rfs_group_open (fs,
rtems_rfs_fs_block (fs, group, 0),
203c2d8: e4 06 20 24 ld [ %i0 + 0x24 ], %l2 <== NOT EXECUTED
* know how far the initialisation has gone if an error occurs and we need to
* close everything.
*/
for (group = 0; group < fs->group_count; group++)
{
rc = rtems_rfs_group_open (fs,
203c2dc: 7f ff 19 c7 call 20029f8 <.umul> <== NOT EXECUTED
203c2e0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203c2e4: d8 06 20 1c ld [ %i0 + 0x1c ], %o4 <== NOT EXECUTED
203c2e8: d6 06 20 28 ld [ %i0 + 0x28 ], %o3 <== NOT EXECUTED
203c2ec: 92 02 20 01 add %o0, 1, %o1 <== NOT EXECUTED
203c2f0: 98 03 00 11 add %o4, %l1, %o4 <== NOT EXECUTED
203c2f4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
203c2f8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c2fc: 40 00 04 d5 call 203d650 <rtems_rfs_group_open> <== NOT EXECUTED
203c300: a2 04 60 50 add %l1, 0x50, %l1 <== NOT EXECUTED
rtems_rfs_fs_block (fs, group, 0),
fs->group_blocks,
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
203c304: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203c308: 04 80 00 12 ble 203c350 <rtems_rfs_fs_open+0x43c> <== NOT EXECUTED
203c30c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
203c310: a6 10 20 00 clr %l3 <== NOT EXECUTED
203c314: 10 80 00 07 b 203c330 <rtems_rfs_fs_open+0x41c> <== NOT EXECUTED
203c318: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
int g;
for (g = 0; g < group; g++)
203c31c: a2 04 60 01 inc %l1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
203c320: 92 02 40 13 add %o1, %l3, %o1 <== NOT EXECUTED
203c324: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c328: 40 00 04 b0 call 203d5e8 <rtems_rfs_group_close> <== NOT EXECUTED
203c32c: a6 04 e0 50 add %l3, 0x50, %l3 <== NOT EXECUTED
fs->group_inodes,
&fs->groups[group]);
if (rc > 0)
{
int g;
for (g = 0; g < group; g++)
203c330: 80 a4 40 10 cmp %l1, %l0 <== NOT EXECUTED
203c334: 26 bf ff fa bl,a 203c31c <rtems_rfs_fs_open+0x408> <== NOT EXECUTED
203c338: d2 06 20 1c ld [ %i0 + 0x1c ], %o1 <== NOT EXECUTED
rtems_rfs_group_close (fs, &fs->groups[g]);
rtems_rfs_buffer_handle_close (fs, &handle);
203c33c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203c340: 92 07 bf f4 add %fp, -12, %o1 <== NOT EXECUTED
203c344: 7f ff fe ea call 203beec <rtems_rfs_buffer_handle_close> <== NOT EXECUTED
203c348: 01 00 00 00 nop <== NOT EXECUTED
203c34c: 30 80 00 08 b,a 203c36c <rtems_rfs_fs_open+0x458> <== NOT EXECUTED
/*
* Perform each phase of group initialisation at the same time. This way we
* know how far the initialisation has gone if an error occurs and we need to
* close everything.
*/
for (group = 0; group < fs->group_count; group++)
203c350: a0 04 20 01 inc %l0 <== NOT EXECUTED
203c354: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
203c358: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
203c35c: 06 bf ff df bl 203c2d8 <rtems_rfs_fs_open+0x3c4> <== NOT EXECUTED
203c360: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
203c364: 10 80 00 3e b 203c45c <rtems_rfs_fs_open+0x548> <== NOT EXECUTED
203c368: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
}
rc = rtems_rfs_fs_read_superblock (*fs);
if (rc > 0)
{
rtems_rfs_buffer_close (*fs);
203c36c: 7f ff f7 d5 call 203a2c0 <rtems_rfs_buffer_close> <== NOT EXECUTED
203c370: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
203c374: 7f ff 2f bb call 2008260 <free> <== NOT EXECUTED
203c378: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: reading superblock: %d: %s\n",
rc, strerror (rc));
errno = rc;
203c37c: 40 00 1f c6 call 2044294 <__errno> <== NOT EXECUTED
203c380: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203c384: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
203c388: 81 c7 e0 08 ret <== NOT EXECUTED
203c38c: 81 e8 00 00 restore <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)
203c390: c2 02 00 00 ld [ %o0 ], %g1 <== NOT EXECUTED
203c394: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
203c398: 12 80 00 1d bne 203c40c <rtems_rfs_fs_open+0x4f8> <== NOT EXECUTED
203c39c: c4 07 bf d8 ld [ %fp + -40 ], %g2 <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
203c3a0: c6 08 a0 03 ldub [ %g2 + 3 ], %g3 <== NOT EXECUTED
203c3a4: c2 08 a0 02 ldub [ %g2 + 2 ], %g1 <== NOT EXECUTED
{
mode = rtems_rfs_inode_get_mode (&inode);
if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))
203c3a8: 05 00 00 3f sethi %hi(0xfc00), %g2 <== NOT EXECUTED
203c3ac: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203c3b0: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203c3b4: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
203c3b8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
203c3bc: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
203c3c0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203c3c4: 02 80 00 07 be 203c3e0 <rtems_rfs_fs_open+0x4cc> <== NOT EXECUTED
203c3c8: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
203c3cc: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203c3d0: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
203c3d4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203c3d8: 02 80 00 0d be 203c40c <rtems_rfs_fs_open+0x4f8> <== NOT EXECUTED
203c3dc: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_inode_close (*fs, &inode);
203c3e0: 40 00 05 a5 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203c3e4: 92 07 bf cc add %fp, -52, %o1 <== NOT EXECUTED
rtems_rfs_buffer_close (*fs);
203c3e8: 7f ff f7 b6 call 203a2c0 <rtems_rfs_buffer_close> <== NOT EXECUTED
203c3ec: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
203c3f0: 7f ff 2f 9c call 2008260 <free> <== NOT EXECUTED
203c3f4: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: invalid root inode mode\n");
errno = EIO;
203c3f8: 40 00 1f a7 call 2044294 <__errno> <== NOT EXECUTED
203c3fc: 01 00 00 00 nop <== NOT EXECUTED
203c400: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
203c404: 10 80 00 0f b 203c440 <rtems_rfs_fs_open+0x52c> <== NOT EXECUTED
203c408: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return -1;
}
}
rc = rtems_rfs_inode_close (*fs, &inode);
203c40c: 40 00 05 9a call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203c410: 92 07 bf cc add %fp, -52, %o1 <== NOT EXECUTED
if (rc > 0)
203c414: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c418: 04 80 00 0c ble 203c448 <rtems_rfs_fs_open+0x534> <== NOT EXECUTED
203c41c: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_buffer_close (*fs);
203c420: 7f ff f7 a8 call 203a2c0 <rtems_rfs_buffer_close> <== NOT EXECUTED
203c424: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
free (*fs);
203c428: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
203c42c: 7f ff 2f 8d call 2008260 <free> <== NOT EXECUTED
203c430: 01 00 00 00 nop <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))
printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
errno = rc;
203c434: 40 00 1f 98 call 2044294 <__errno> <== NOT EXECUTED
203c438: 01 00 00 00 nop <== NOT EXECUTED
203c43c: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return -1;
203c440: 81 c7 e0 08 ret <== NOT EXECUTED
203c444: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
errno = 0;
203c448: 40 00 1f 93 call 2044294 <__errno> <== NOT EXECUTED
203c44c: b0 10 20 00 clr %i0 <== NOT EXECUTED
203c450: c0 22 00 00 clr [ %o0 ] <== NOT EXECUTED
return 0;
}
203c454: 81 c7 e0 08 ret <== NOT EXECUTED
203c458: 81 e8 00 00 restore <== NOT EXECUTED
rc, strerror (rc));
errno = rc;
return -1;
}
rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);
203c45c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203c460: 94 07 bf cc add %fp, -52, %o2 <== NOT EXECUTED
203c464: 40 00 05 ad call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203c468: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203c46c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
203c470: 24 bf ff c8 ble,a 203c390 <rtems_rfs_fs_open+0x47c> <== NOT EXECUTED
203c474: d0 07 00 00 ld [ %i4 ], %o0 <== NOT EXECUTED
203c478: 30 bf ff ea b,a 203c420 <rtems_rfs_fs_open+0x50c> <== NOT EXECUTED
0203be50 <rtems_rfs_fs_size>:
#include <rtems/rfs/rtems-rfs-inode.h>
#include <rtems/rfs/rtems-rfs-trace.h>
uint64_t
rtems_rfs_fs_size (rtems_rfs_file_system* fs)
{
203be50: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203be54: d6 06 20 04 ld [ %i0 + 4 ], %o3 <== NOT EXECUTED
203be58: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
203be5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203be60: 40 00 83 a6 call 205ccf8 <__muldi3> <== NOT EXECUTED
203be64: 90 10 20 00 clr %o0 <== NOT EXECUTED
uint64_t blocks = rtems_rfs_fs_blocks (fs);
uint64_t block_size = rtems_rfs_fs_block_size (fs);
return blocks * block_size;
}
203be68: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203be6c: 81 c7 e0 08 ret <== NOT EXECUTED
203be70: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
0203d428 <rtems_rfs_group_bitmap_alloc>:
int
rtems_rfs_group_bitmap_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
bool inode,
rtems_rfs_bitmap_bit* result)
{
203d428: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
203d42c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int offset;
bool updown;
int direction;
if (inode)
203d430: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203d434: 02 80 00 05 be 203d448 <rtems_rfs_group_bitmap_alloc+0x20><== NOT EXECUTED
203d438: a2 10 00 19 mov %i1, %l1 <== NOT EXECUTED
{
size = fs->group_inodes;
goal -= RTEMS_RFS_ROOT_INO;
203d43c: a2 06 7f ff add %i1, -1, %l1 <== NOT EXECUTED
bool updown;
int direction;
if (inode)
{
size = fs->group_inodes;
203d440: 10 80 00 03 b 203d44c <rtems_rfs_group_bitmap_alloc+0x24> <== NOT EXECUTED
203d444: e6 06 20 28 ld [ %i0 + 0x28 ], %l3 <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
203d448: e6 06 20 24 ld [ %i0 + 0x24 ], %l3 <== NOT EXECUTED
group_start = goal / size;
203d44c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d450: 40 00 7c d2 call 205c798 <.udiv> <== NOT EXECUTED
203d454: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
203d458: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
* We can start at any location and we move out from that point in each
* direction. The offset grows until we find a free bit or we hit an end.
*/
group = group_start + (direction * offset);
if (offset)
bit = direction > 0 ? 0 : size - 1;
203d45c: b2 04 ff ff add %l3, -1, %i1 <== NOT EXECUTED
goal -= RTEMS_RFS_ROOT_INO;
}
else
size = fs->group_blocks;
group_start = goal / size;
203d460: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (goal % size);
203d464: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
203d468: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203d46c: 40 00 7d 77 call 205ca48 <.urem> <== NOT EXECUTED
203d470: a8 10 20 01 mov 1, %l4 <== NOT EXECUTED
203d474: a6 10 20 00 clr %l3 <== NOT EXECUTED
203d478: d0 27 bf f8 st %o0, [ %fp + -8 ] <== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
updown = false;
continue;
}
if (inode)
203d47c: ba 0e a0 ff and %i2, 0xff, %i5 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
203d480: ae 07 bf ff add %fp, -1, %l7 <== NOT EXECUTED
203d484: 10 80 00 03 b 203d490 <rtems_rfs_group_bitmap_alloc+0x68> <== NOT EXECUTED
203d488: ac 07 bf f8 add %fp, -8, %l6 <== NOT EXECUTED
}
else
size = fs->group_blocks;
group_start = goal / size;
bit = (rtems_rfs_bitmap_bit) (goal % size);
203d48c: a8 10 20 00 clr %l4 <== NOT EXECUTED
*/
while (true)
{
rtems_rfs_bitmap_control* bitmap;
int group;
bool allocated = false;
203d490: c0 2f bf ff clrb [ %fp + -1 ] <== NOT EXECUTED
/*
* We can start at any location and we move out from that point in each
* direction. The offset grows until we find a free bit or we hit an end.
*/
group = group_start + (direction * offset);
203d494: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203d498: 7f ff 15 58 call 20029f8 <.umul> <== NOT EXECUTED
203d49c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (offset)
203d4a0: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
203d4a4: 02 80 00 07 be 203d4c0 <rtems_rfs_group_bitmap_alloc+0x98><== NOT EXECUTED
203d4a8: a2 02 00 1c add %o0, %i4, %l1 <== NOT EXECUTED
bit = direction > 0 ? 0 : size - 1;
203d4ac: 82 1c a0 01 xor %l2, 1, %g1 <== NOT EXECUTED
203d4b0: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203d4b4: 82 60 20 00 subx %g0, 0, %g1 <== NOT EXECUTED
203d4b8: 82 0e 40 01 and %i1, %g1, %g1 <== NOT EXECUTED
203d4bc: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
/*
* If we are still looking up and down and if the group is out of range we
* have reached one end. Stopping looking up and down and just move in the
* one direction one group at a time.
*/
if ((group < 0) || (group >= fs->group_count))
203d4c0: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203d4c4: 06 80 00 06 bl 203d4dc <rtems_rfs_group_bitmap_alloc+0xb4><== NOT EXECUTED
203d4c8: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
203d4cc: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
203d4d0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203d4d4: 06 80 00 08 bl 203d4f4 <rtems_rfs_group_bitmap_alloc+0xcc><== NOT EXECUTED
203d4d8: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
{
if (!updown)
203d4dc: 02 80 00 40 be 203d5dc <rtems_rfs_group_bitmap_alloc+0x1b4><== NOT EXECUTED
203d4e0: 80 a4 a0 01 cmp %l2, 1 <== NOT EXECUTED
break;
direction = direction > 0 ? -1 : 1;
203d4e4: 22 bf ff ea be,a 203d48c <rtems_rfs_group_bitmap_alloc+0x64><== NOT EXECUTED
203d4e8: a4 10 3f ff mov -1, %l2 <== NOT EXECUTED
203d4ec: 10 bf ff e8 b 203d48c <rtems_rfs_group_bitmap_alloc+0x64> <== NOT EXECUTED
203d4f0: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
updown = false;
continue;
}
if (inode)
203d4f4: 80 a7 60 00 cmp %i5, 0 <== NOT EXECUTED
203d4f8: ab 2c 60 04 sll %l1, 4, %l5 <== NOT EXECUTED
203d4fc: 85 2c 60 06 sll %l1, 6, %g2 <== NOT EXECUTED
203d500: 02 80 00 06 be 203d518 <rtems_rfs_group_bitmap_alloc+0xf0><== NOT EXECUTED
203d504: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
203d508: aa 05 40 02 add %l5, %g2, %l5 <== NOT EXECUTED
203d50c: aa 00 40 15 add %g1, %l5, %l5 <== NOT EXECUTED
203d510: 10 80 00 05 b 203d524 <rtems_rfs_group_bitmap_alloc+0xfc> <== NOT EXECUTED
203d514: aa 05 60 2c add %l5, 0x2c, %l5 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
203d518: aa 05 40 02 add %l5, %g2, %l5 <== NOT EXECUTED
203d51c: aa 00 40 15 add %g1, %l5, %l5 <== NOT EXECUTED
203d520: aa 05 60 08 add %l5, 8, %l5 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);
203d524: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
203d528: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203d52c: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
203d530: 40 00 19 18 call 2043990 <rtems_rfs_bitmap_map_alloc> <== NOT EXECUTED
203d534: 96 10 00 16 mov %l6, %o3 <== NOT EXECUTED
if (rc > 0)
203d538: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203d53c: 14 80 00 29 bg 203d5e0 <rtems_rfs_group_bitmap_alloc+0x1b8><== NOT EXECUTED
203d540: 01 00 00 00 nop <== NOT EXECUTED
return rc;
if (rtems_rfs_fs_release_bitmaps (fs))
203d544: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203d548: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
203d54c: 12 80 00 06 bne 203d564 <rtems_rfs_group_bitmap_alloc+0x13c><== NOT EXECUTED
203d550: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203d554: d2 05 40 00 ld [ %l5 ], %o1 <== NOT EXECUTED
203d558: 7f ff f3 7c call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d55c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (allocated)
203d560: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
203d564: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d568: 02 80 00 16 be 203d5c0 <rtems_rfs_group_bitmap_alloc+0x198><== NOT EXECUTED
203d56c: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
{
if (inode)
203d570: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203d574: 02 80 00 0a be 203d59c <rtems_rfs_group_bitmap_alloc+0x174><== NOT EXECUTED
203d578: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
*result = rtems_rfs_group_inode (fs, group, bit);
203d57c: d2 04 20 28 ld [ %l0 + 0x28 ], %o1 <== NOT EXECUTED
203d580: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203d584: 7f ff 15 1d call 20029f8 <.umul> <== NOT EXECUTED
203d588: a0 00 60 01 add %g1, 1, %l0 <== NOT EXECUTED
203d58c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
203d590: d0 26 c0 00 st %o0, [ %i3 ] <== NOT EXECUTED
203d594: 10 80 00 13 b 203d5e0 <rtems_rfs_group_bitmap_alloc+0x1b8><== NOT EXECUTED
203d598: 90 10 20 00 clr %o0 <== NOT EXECUTED
else
*result = rtems_rfs_group_block (&fs->groups[group], bit);
203d59c: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
203d5a0: 87 2c 60 06 sll %l1, 6, %g3 <== NOT EXECUTED
203d5a4: a3 2c 60 04 sll %l1, 4, %l1 <== NOT EXECUTED
203d5a8: a2 04 40 03 add %l1, %g3, %l1 <== NOT EXECUTED
203d5ac: e0 00 80 11 ld [ %g2 + %l1 ], %l0 <== NOT EXECUTED
203d5b0: 90 10 20 00 clr %o0 <== NOT EXECUTED
203d5b4: 82 00 40 10 add %g1, %l0, %g1 <== NOT EXECUTED
203d5b8: 10 80 00 0a b 203d5e0 <rtems_rfs_group_bitmap_alloc+0x1b8><== NOT EXECUTED
203d5bc: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
inode ? "inode" : "block", *result);
return 0;
}
if (updown)
203d5c0: 02 bf ff b4 be 203d490 <rtems_rfs_group_bitmap_alloc+0x68><== NOT EXECUTED
203d5c4: a6 04 e0 01 inc %l3 <== NOT EXECUTED
direction = direction > 0 ? -1 : 1;
203d5c8: a4 1c a0 01 xor %l2, 1, %l2 <== NOT EXECUTED
203d5cc: 80 a0 00 12 cmp %g0, %l2 <== NOT EXECUTED
203d5d0: a4 40 3f ff addx %g0, -1, %l2 <== NOT EXECUTED
203d5d4: 10 bf ff af b 203d490 <rtems_rfs_group_bitmap_alloc+0x68> <== NOT EXECUTED
203d5d8: a4 14 a0 01 or %l2, 1, %l2 <== NOT EXECUTED
offset++;
203d5dc: 90 10 20 1c mov 0x1c, %o0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
printf ("rtems-rfs: group-bitmap-alloc: no blocks available\n");
return ENOSPC;
}
203d5e0: 81 c7 e0 08 ret <== NOT EXECUTED
203d5e4: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203d39c <rtems_rfs_group_bitmap_free>:
int
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no)
{
203d39c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203d3a0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",
inode ? "inode" : "block", no);
if (inode)
203d3a4: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203d3a8: 02 80 00 04 be 203d3b8 <rtems_rfs_group_bitmap_free+0x1c> <== NOT EXECUTED
203d3ac: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
{
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
203d3b0: 10 80 00 03 b 203d3bc <rtems_rfs_group_bitmap_free+0x20> <== NOT EXECUTED
203d3b4: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
}
else
{
no -= RTEMS_RFS_SUPERBLOCK_SIZE;
size = fs->group_blocks;
203d3b8: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
}
group = no / size;
203d3bc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203d3c0: 40 00 7c f6 call 205c798 <.udiv> <== NOT EXECUTED
203d3c4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
203d3c8: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203d3cc: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
203d3d0: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203d3d4: 02 80 00 06 be 203d3ec <rtems_rfs_group_bitmap_free+0x50> <== NOT EXECUTED
203d3d8: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
203d3dc: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203d3e0: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203d3e4: 10 80 00 05 b 203d3f8 <rtems_rfs_group_bitmap_free+0x5c> <== NOT EXECUTED
203d3e8: b2 06 60 2c add %i1, 0x2c, %i1 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
203d3ec: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203d3f0: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203d3f4: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
203d3f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d3fc: 40 00 7d 93 call 205ca48 <.urem> <== NOT EXECUTED
203d400: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203d404: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203d408: 40 00 18 99 call 204366c <rtems_rfs_bitmap_map_clear> <== NOT EXECUTED
203d40c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203d410: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_clear (bitmap, bit);
203d414: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203d418: 7f ff f3 cc call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d41c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
203d420: 81 c7 e0 08 ret <== NOT EXECUTED
203d424: 81 e8 00 00 restore <== NOT EXECUTED
0203d2dc <rtems_rfs_group_bitmap_test>:
int
rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs,
bool inode,
rtems_rfs_bitmap_bit no,
bool* state)
{
203d2dc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))
printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",
inode ? "inode" : "block", no);
if (inode)
203d2e0: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203d2e4: 02 80 00 0b be 203d310 <rtems_rfs_group_bitmap_test+0x34> <== NOT EXECUTED
203d2e8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs)))
203d2ec: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203d2f0: 04 80 00 29 ble 203d394 <rtems_rfs_group_bitmap_test+0xb8><== NOT EXECUTED
203d2f4: 01 00 00 00 nop <== NOT EXECUTED
203d2f8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
203d2fc: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
203d300: 18 80 00 25 bgu 203d394 <rtems_rfs_group_bitmap_test+0xb8><== NOT EXECUTED
203d304: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
return EINVAL;
no -= RTEMS_RFS_ROOT_INO;
size = fs->group_inodes;
203d308: 10 80 00 07 b 203d324 <rtems_rfs_group_bitmap_test+0x48> <== NOT EXECUTED
203d30c: e2 06 20 28 ld [ %i0 + 0x28 ], %l1 <== NOT EXECUTED
}
else
{
if (no >= rtems_rfs_fs_blocks (fs))
203d310: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
203d314: 80 a6 80 01 cmp %i2, %g1 <== NOT EXECUTED
203d318: 1a 80 00 1f bcc 203d394 <rtems_rfs_group_bitmap_test+0xb8><== NOT EXECUTED
203d31c: 01 00 00 00 nop <== NOT EXECUTED
return EINVAL;
size = fs->group_blocks;
203d320: e2 06 20 24 ld [ %i0 + 0x24 ], %l1 <== NOT EXECUTED
}
group = no / size;
203d324: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203d328: 40 00 7d 1c call 205c798 <.udiv> <== NOT EXECUTED
203d32c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
bit = (rtems_rfs_bitmap_bit) (no % size);
if (inode)
203d330: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203d334: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
203d338: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203d33c: 02 80 00 06 be 203d354 <rtems_rfs_group_bitmap_test+0x78> <== NOT EXECUTED
203d340: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
bitmap = &fs->groups[group].inode_bitmap;
203d344: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203d348: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203d34c: 10 80 00 05 b 203d360 <rtems_rfs_group_bitmap_test+0x84> <== NOT EXECUTED
203d350: b2 06 60 2c add %i1, 0x2c, %i1 <== NOT EXECUTED
else
bitmap = &fs->groups[group].block_bitmap;
203d354: b2 02 00 02 add %o0, %g2, %i1 <== NOT EXECUTED
203d358: b2 00 40 19 add %g1, %i1, %i1 <== NOT EXECUTED
203d35c: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
203d360: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203d364: 40 00 7d b9 call 205ca48 <.urem> <== NOT EXECUTED
203d368: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203d36c: 94 10 00 1b mov %i3, %o2 <== NOT EXECUTED
203d370: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
203d374: 40 00 18 a6 call 204360c <rtems_rfs_bitmap_map_test> <== NOT EXECUTED
203d378: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203d37c: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
if (inode)
bitmap = &fs->groups[group].inode_bitmap;
else
bitmap = &fs->groups[group].block_bitmap;
rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);
203d380: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, bitmap);
203d384: 7f ff f3 f1 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d388: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
203d38c: 81 c7 e0 08 ret <== NOT EXECUTED
203d390: 81 e8 00 00 restore <== NOT EXECUTED
}
203d394: 81 c7 e0 08 ret <== NOT EXECUTED
203d398: 91 e8 20 16 restore %g0, 0x16, %o0 <== NOT EXECUTED
0203d5e8 <rtems_rfs_group_close>:
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
203d5e8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* We need to close as much as possible and also return any error if one
* occurs but this may result in one even more important error being lost but
* we cannot OR the errors together so this is a reasonable compromise.
*/
rc = rtems_rfs_bitmap_close (&group->inode_bitmap);
203d5ec: 40 00 17 56 call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203d5f0: 90 06 60 2c add %i1, 0x2c, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203d5f4: 92 06 60 44 add %i1, 0x44, %o1 <== NOT EXECUTED
203d5f8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
203d5fc: 7f ff f3 53 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d600: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
return 0;
}
int
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{
203d604: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
handle->dirty = false;
203d608: c0 2e 60 44 clrb [ %i1 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203d60c: c0 26 60 48 clr [ %i1 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
203d610: c0 26 60 4c clr [ %i1 + 0x4c ] <== NOT EXECUTED
if (rc > 0)
result = rc;
rc = rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
if (rc > 0)
result = rc;
rc = rtems_rfs_bitmap_close (&group->block_bitmap);
203d614: 40 00 17 4c call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203d618: 90 06 60 08 add %i1, 8, %o0 <== NOT EXECUTED
if (rc > 0)
203d61c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d620: 14 80 00 05 bg 203d634 <rtems_rfs_group_close+0x4c> <== NOT EXECUTED
203d624: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d628: b0 38 00 11 xnor %g0, %l1, %i0 <== NOT EXECUTED
203d62c: b1 3e 20 1f sra %i0, 0x1f, %i0 <== NOT EXECUTED
203d630: b0 0c 40 18 and %l1, %i0, %i0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203d634: 7f ff f3 45 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d638: 92 06 60 20 add %i1, 0x20, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203d63c: c0 26 60 28 clr [ %i1 + 0x28 ] <== NOT EXECUTED
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
handle->dirty = false;
203d640: c0 2e 60 20 clrb [ %i1 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
203d644: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);
if (rc > 0)
result = rc;
return result;
}
203d648: 81 c7 e0 08 ret <== NOT EXECUTED
203d64c: 81 e8 00 00 restore <== NOT EXECUTED
0203d650 <rtems_rfs_group_open>:
rtems_rfs_group_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_block base,
size_t size,
size_t inodes,
rtems_rfs_group* group)
{
203d650: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
203d654: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
rtems_rfs_group_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_block base,
size_t size,
size_t inodes,
rtems_rfs_group* group)
{
203d658: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203d65c: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
int rc;
if (base >= rtems_rfs_fs_blocks (fs))
203d660: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
203d664: 1a 80 00 34 bcc 203d734 <rtems_rfs_group_open+0xe4> <== NOT EXECUTED
203d668: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
EIO, strerror (EIO));
return EIO;
}
if ((base + size) >= rtems_rfs_fs_blocks (fs))
203d66c: 84 06 80 19 add %i2, %i1, %g2 <== NOT EXECUTED
203d670: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203d674: 3a 80 00 02 bcc,a 203d67c <rtems_rfs_group_open+0x2c> <== NOT EXECUTED
203d678: b4 20 40 19 sub %g1, %i1, %i2 <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))
printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
base, size, inodes);
group->base = base;
203d67c: d8 27 00 00 st %o4, [ %i4 ] <== NOT EXECUTED
group->size = size;
203d680: f4 27 20 04 st %i2, [ %i4 + 4 ] <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203d684: c0 2f 20 20 clrb [ %i4 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
203d688: c0 27 20 24 clr [ %i4 + 0x24 ] <== NOT EXECUTED
handle->buffer = NULL;
203d68c: c0 27 20 28 clr [ %i4 + 0x28 ] <== NOT EXECUTED
printf ("rtems-rfs: group-open: could not open block bitmap handle: %d: %s\n",
rc, strerror (rc));
return rc;
}
rc = rtems_rfs_bitmap_open (&group->block_bitmap, fs,
203d690: a4 07 20 08 add %i4, 8, %l2 <== NOT EXECUTED
203d694: a2 07 20 20 add %i4, 0x20, %l1 <== NOT EXECUTED
203d698: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
203d69c: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d6a0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203d6a4: 40 00 17 77 call 2043480 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203d6a8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
&group->block_bitmap_buffer, size,
group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
if (rc > 0)
203d6ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d6b0: 14 80 00 1c bg 203d720 <rtems_rfs_group_open+0xd0> <== NOT EXECUTED
203d6b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203d6b8: c0 2f 20 44 clrb [ %i4 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203d6bc: c0 27 20 48 clr [ %i4 + 0x48 ] <== NOT EXECUTED
handle->buffer = NULL;
203d6c0: c0 27 20 4c clr [ %i4 + 0x4c ] <== NOT EXECUTED
printf ("rtems-rfs: group-open: could not open inode bitmap handle: %d: %s\n",
rc, strerror (rc));
return rc;
}
rc = rtems_rfs_bitmap_open (&group->inode_bitmap, fs,
203d6c4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203d6c8: 80 a6 80 1b cmp %i2, %i3 <== NOT EXECUTED
203d6cc: a6 07 20 44 add %i4, 0x44, %l3 <== NOT EXECUTED
203d6d0: 08 80 00 03 bleu 203d6dc <rtems_rfs_group_open+0x8c> <== NOT EXECUTED
203d6d4: 90 07 20 2c add %i4, 0x2c, %o0 <== NOT EXECUTED
203d6d8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203d6dc: d8 07 00 00 ld [ %i4 ], %o4 <== NOT EXECUTED
203d6e0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203d6e4: 98 03 20 01 inc %o4 <== NOT EXECUTED
203d6e8: 40 00 17 66 call 2043480 <rtems_rfs_bitmap_open> <== NOT EXECUTED
203d6ec: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
&group->inode_bitmap_buffer, inodes,
group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
if (rc > 0)
203d6f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203d6f4: 24 80 00 12 ble,a 203d73c <rtems_rfs_group_open+0xec> <== NOT EXECUTED
203d6f8: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203d6fc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203d700: 7f ff f3 12 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d704: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
rtems_rfs_bitmap_close (&group->block_bitmap);
203d708: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
handle->dirty = false;
203d70c: c0 2f 20 44 clrb [ %i4 + 0x44 ] <== NOT EXECUTED
handle->bnum = 0;
203d710: c0 27 20 48 clr [ %i4 + 0x48 ] <== NOT EXECUTED
203d714: 40 00 17 0c call 2043344 <rtems_rfs_bitmap_close> <== NOT EXECUTED
203d718: c0 27 20 4c clr [ %i4 + 0x4c ] <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203d71c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203d720: 7f ff f3 0a call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d724: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
handle->dirty = false;
handle->bnum = 0;
handle->buffer = NULL;
203d728: c0 27 20 28 clr [ %i4 + 0x28 ] <== NOT EXECUTED
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
handle->dirty = false;
203d72c: c0 2f 20 20 clrb [ %i4 + 0x20 ] <== NOT EXECUTED
handle->bnum = 0;
203d730: c0 27 20 24 clr [ %i4 + 0x24 ] <== NOT EXECUTED
203d734: 81 c7 e0 08 ret <== NOT EXECUTED
203d738: 81 e8 00 00 restore <== NOT EXECUTED
printf ("rtems-rfs: group-open: could not open inode bitmap: %d: %s\n",
rc, strerror (rc));
return rc;
}
if (rtems_rfs_fs_release_bitmaps (fs))
203d73c: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
203d740: 12 bf ff fd bne 203d734 <rtems_rfs_group_open+0xe4> <== NOT EXECUTED
203d744: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);
203d748: d2 07 20 08 ld [ %i4 + 8 ], %o1 <== NOT EXECUTED
203d74c: 7f ff f2 ff call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d750: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);
203d754: d2 07 20 2c ld [ %i4 + 0x2c ], %o1 <== NOT EXECUTED
203d758: 7f ff f2 fc call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203d75c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
return 0;
}
203d760: 81 c7 e0 08 ret <== NOT EXECUTED
203d764: 81 e8 00 00 restore <== NOT EXECUTED
0203d244 <rtems_rfs_group_usage>:
int
rtems_rfs_group_usage (rtems_rfs_file_system* fs,
size_t* blocks,
size_t* inodes)
{
203d244: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int g;
*blocks = 0;
203d248: c0 26 40 00 clr [ %i1 ] <== NOT EXECUTED
*inodes = 0;
203d24c: c0 26 80 00 clr [ %i2 ] <== NOT EXECUTED
203d250: 88 10 20 00 clr %g4 <== NOT EXECUTED
for (g = 0; g < fs->group_count; g++)
203d254: 10 80 00 11 b 203d298 <rtems_rfs_group_usage+0x54> <== NOT EXECUTED
203d258: 86 10 20 00 clr %g3 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
203d25c: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
203d260: 86 00 e0 01 inc %g3 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
203d264: 82 00 40 04 add %g1, %g4, %g1 <== NOT EXECUTED
*blocks +=
203d268: d8 00 60 14 ld [ %g1 + 0x14 ], %o4 <== NOT EXECUTED
203d26c: da 00 60 18 ld [ %g1 + 0x18 ], %o5 <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
203d270: 88 01 20 50 add %g4, 0x50, %g4 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
*blocks +=
203d274: 9a 23 00 0d sub %o4, %o5, %o5 <== NOT EXECUTED
203d278: 84 00 80 0d add %g2, %o5, %g2 <== NOT EXECUTED
203d27c: c4 26 40 00 st %g2, [ %i1 ] <== NOT EXECUTED
rtems_rfs_bitmap_map_size(&group->block_bitmap) -
rtems_rfs_bitmap_map_free (&group->block_bitmap);
*inodes +=
203d280: da 00 60 3c ld [ %g1 + 0x3c ], %o5 <== NOT EXECUTED
203d284: c4 06 80 00 ld [ %i2 ], %g2 <== NOT EXECUTED
203d288: c2 00 60 38 ld [ %g1 + 0x38 ], %g1 <== NOT EXECUTED
203d28c: 82 20 40 0d sub %g1, %o5, %g1 <== NOT EXECUTED
203d290: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203d294: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
int g;
*blocks = 0;
*inodes = 0;
for (g = 0; g < fs->group_count; g++)
203d298: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
203d29c: 80 a0 c0 01 cmp %g3, %g1 <== NOT EXECUTED
203d2a0: 06 bf ff ef bl 203d25c <rtems_rfs_group_usage+0x18> <== NOT EXECUTED
203d2a4: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
*inodes +=
rtems_rfs_bitmap_map_size (&group->inode_bitmap) -
rtems_rfs_bitmap_map_free (&group->inode_bitmap);
}
if (*blocks > rtems_rfs_fs_blocks (fs))
203d2a8: c2 06 20 04 ld [ %i0 + 4 ], %g1 <== NOT EXECUTED
203d2ac: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203d2b0: 28 80 00 02 bleu,a 203d2b8 <rtems_rfs_group_usage+0x74> <== NOT EXECUTED
203d2b4: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
203d2b8: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
*blocks = rtems_rfs_fs_blocks (fs);
if (*inodes > rtems_rfs_fs_inodes (fs))
203d2bc: c4 06 20 10 ld [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
203d2c0: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
203d2c4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
203d2c8: 38 80 00 02 bgu,a 203d2d0 <rtems_rfs_group_usage+0x8c> <== NOT EXECUTED
203d2cc: 82 10 00 02 mov %g2, %g1 <== NOT EXECUTED
203d2d0: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
*inodes = rtems_rfs_fs_inodes (fs);
return 0;
}
203d2d4: 81 c7 e0 08 ret <== NOT EXECUTED
203d2d8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
0203dc74 <rtems_rfs_inode_alloc>:
int
rtems_rfs_inode_alloc (rtems_rfs_file_system* fs,
rtems_rfs_bitmap_bit goal,
rtems_rfs_ino* ino)
{
203dc74: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
int rc;
rc = rtems_rfs_group_bitmap_alloc (fs, goal, true, &bit);
203dc78: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203dc7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203dc80: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203dc84: 7f ff fd e9 call 203d428 <rtems_rfs_group_bitmap_alloc> <== NOT EXECUTED
203dc88: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
*ino = bit;
203dc8c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203dc90: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
return rc;
}
203dc94: 81 c7 e0 08 ret <== NOT EXECUTED
203dc98: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203da74 <rtems_rfs_inode_close>:
}
int
rtems_rfs_inode_close (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203da74: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))
printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino);
rc = rtems_rfs_inode_unload (fs, handle, true);
203da78: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203da7c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203da80: 7f ff ff d2 call 203d9c8 <rtems_rfs_inode_unload> <== NOT EXECUTED
203da84: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if ((rc == 0) && (handle->loads > 0))
203da88: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203da8c: 32 80 00 07 bne,a 203daa8 <rtems_rfs_inode_close+0x34> <== NOT EXECUTED
203da90: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
203da94: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203da98: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203da9c: 34 80 00 02 bg,a 203daa4 <rtems_rfs_inode_close+0x30> <== NOT EXECUTED
203daa0: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED
printf ("rtems-rfs: inode-close: bad loads number: %d\n",
handle->loads);
rc = EIO;
}
handle->ino = 0;
203daa4: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
return rc;
}
203daa8: 81 c7 e0 08 ret <== NOT EXECUTED
203daac: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203dc9c <rtems_rfs_inode_create>:
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
203dc9c: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
203dca0: 23 00 00 3c sethi %hi(0xf000), %l1 <== NOT EXECUTED
203dca4: b9 2f 20 10 sll %i4, 0x10, %i4 <== NOT EXECUTED
203dca8: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
203dcac: b9 37 20 10 srl %i4, 0x10, %i4 <== NOT EXECUTED
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
203dcb0: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
203dcb4: a2 0f 00 11 and %i4, %l1, %l1 <== NOT EXECUTED
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
203dcb8: ea 07 a0 5c ld [ %fp + 0x5c ], %l5 <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
203dcbc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
uint16_t mode,
uint16_t links,
uid_t uid,
gid_t gid,
rtems_rfs_ino* ino)
{
203dcc0: e8 07 a0 60 ld [ %fp + 0x60 ], %l4 <== NOT EXECUTED
}
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & RTEMS_RFS_S_IFMT)
203dcc4: 02 80 00 11 be 203dd08 <rtems_rfs_inode_create+0x6c> <== NOT EXECUTED
203dcc8: e4 07 a0 64 ld [ %fp + 0x64 ], %l2 <== NOT EXECUTED
203dccc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203dcd0: 14 80 00 08 bg 203dcf0 <rtems_rfs_inode_create+0x54> <== NOT EXECUTED
203dcd4: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
203dcd8: 03 00 00 08 sethi %hi(0x2000), %g1 <== NOT EXECUTED
203dcdc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203dce0: 02 80 00 0a be 203dd08 <rtems_rfs_inode_create+0x6c> <== NOT EXECUTED
203dce4: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
203dce8: 10 80 00 06 b 203dd00 <rtems_rfs_inode_create+0x64> <== NOT EXECUTED
203dcec: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203dcf0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203dcf4: 02 80 00 05 be 203dd08 <rtems_rfs_inode_create+0x6c> <== NOT EXECUTED
203dcf8: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
203dcfc: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203dd00: 12 80 00 26 bne 203dd98 <rtems_rfs_inode_create+0xfc> <== NOT EXECUTED
203dd04: b0 10 20 16 mov 0x16, %i0 <== NOT EXECUTED
break;
default:
return EINVAL;
}
rc = rtems_rfs_inode_alloc (fs, parent, ino);
203dd08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dd0c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203dd10: 7f ff ff d9 call 203dc74 <rtems_rfs_inode_alloc> <== NOT EXECUTED
203dd14: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203dd18: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203dd1c: 14 80 00 1f bg 203dd98 <rtems_rfs_inode_create+0xfc> <== NOT EXECUTED
203dd20: a6 07 bf b0 add %fp, -80, %l3 <== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, *ino, &inode, true);
203dd24: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
203dd28: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dd2c: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203dd30: 7f ff ff 7a call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203dd34: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203dd38: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203dd3c: 04 80 00 04 ble 203dd4c <rtems_rfs_inode_create+0xb0> <== NOT EXECUTED
203dd40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
203dd44: 10 80 00 13 b 203dd90 <rtems_rfs_inode_create+0xf4> <== NOT EXECUTED
203dd48: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);
203dd4c: 93 2f 60 10 sll %i5, 0x10, %o1 <== NOT EXECUTED
203dd50: 97 2d 60 10 sll %l5, 0x10, %o3 <== NOT EXECUTED
203dd54: 99 2d 20 10 sll %l4, 0x10, %o4 <== NOT EXECUTED
203dd58: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
203dd5c: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203dd60: 97 32 e0 10 srl %o3, 0x10, %o3 <== NOT EXECUTED
203dd64: 99 33 20 10 srl %o4, 0x10, %o4 <== NOT EXECUTED
203dd68: 7f ff fe c2 call 203d870 <rtems_rfs_inode_initialise> <== NOT EXECUTED
203dd6c: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
if (rc > 0)
203dd70: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203dd74: 04 80 00 0b ble 203dda0 <rtems_rfs_inode_create+0x104> <== NOT EXECUTED
203dd78: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203dd7c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203dd80: 7f ff ff 3d call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203dd84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_free (fs, *ino);
203dd88: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
203dd8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dd90: 7f ff ff 8f call 203dbcc <rtems_rfs_inode_free> <== NOT EXECUTED
203dd94: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203dd98: 81 c7 e0 08 ret <== NOT EXECUTED
203dd9c: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Only handle the specifics of a directory. Let caller handle the others.
*
* The inode delete will free the inode.
*/
if (RTEMS_RFS_S_ISDIR (mode))
203dda0: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203dda4: 12 80 00 17 bne 203de00 <rtems_rfs_inode_create+0x164> <== NOT EXECUTED
203dda8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
{
rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);
203ddac: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED
203ddb0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ddb4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ddb8: 15 00 81 a3 sethi %hi(0x2068c00), %o2 <== NOT EXECUTED
203ddbc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203ddc0: 7f ff f4 0a call 203ade8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203ddc4: 94 12 a0 40 or %o2, 0x40, %o2 <== NOT EXECUTED
if (rc == 0)
203ddc8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ddcc: 12 80 00 0b bne 203ddf8 <rtems_rfs_inode_create+0x15c> <== NOT EXECUTED
203ddd0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);
203ddd4: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ddd8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dddc: 15 00 81 a3 sethi %hi(0x2068c00), %o2 <== NOT EXECUTED
203dde0: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
203dde4: 94 12 a0 48 or %o2, 0x48, %o2 <== NOT EXECUTED
203dde8: 7f ff f4 00 call 203ade8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203ddec: 98 10 00 19 mov %i1, %o4 <== NOT EXECUTED
203ddf0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if (rc > 0)
203ddf4: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203ddf8: 14 80 00 0a bg 203de20 <rtems_rfs_inode_create+0x184> <== NOT EXECUTED
203ddfc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
203de00: a6 07 bf d8 add %fp, -40, %l3 <== NOT EXECUTED
203de04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203de08: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203de0c: 7f ff ff 43 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203de10: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203de14: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203de18: 24 80 00 04 ble,a 203de28 <rtems_rfs_inode_create+0x18c> <== NOT EXECUTED
203de1c: d8 04 80 00 ld [ %l2 ], %o4 <== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
203de20: 10 80 00 30 b 203dee0 <rtems_rfs_inode_create+0x244> <== NOT EXECUTED
203de24: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
203de28: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
203de2c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203de30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203de34: 7f ff f3 ed call 203ade8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203de38: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if (rc > 0)
203de3c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203de40: 04 80 00 0c ble 203de70 <rtems_rfs_inode_create+0x1d4> <== NOT EXECUTED
203de44: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
203de48: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203de4c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203de50: 7f ff ff 65 call 203dbe4 <rtems_rfs_inode_delete> <== NOT EXECUTED
203de54: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
203de58: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203de5c: 7f ff ff 06 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203de60: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
203de64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203de68: 10 80 00 23 b 203def4 <rtems_rfs_inode_create+0x258> <== NOT EXECUTED
203de6c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
/*
* If the node is a directory update the parent link count as the
* new directory has the '..' link that points to the parent.
*/
if (RTEMS_RFS_S_ISDIR (mode))
203de70: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203de74: 12 80 00 15 bne 203dec8 <rtems_rfs_inode_create+0x22c> <== NOT EXECUTED
203de78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
203de7c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
if (links == 0xffff)
203de80: 09 3f ff c0 sethi %hi(0xffff0000), %g4 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
203de84: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203de88: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
203de8c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203de90: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
203de94: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
203de98: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
203de9c: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
203dea0: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203dea4: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
203dea8: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
rtems_rfs_inode_set_links (&parent_inode,
203deac: 84 00 a0 01 inc %g2 <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
203deb0: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203deb4: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
203deb8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
203debc: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203dec0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203dec4: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
rtems_rfs_inode_get_links (&parent_inode) + 1);
rc = rtems_rfs_inode_close (fs, &parent_inode);
203dec8: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
203decc: 7f ff fe ea call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203ded0: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
if (rc > 0)
203ded4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ded8: 04 80 00 0b ble 203df04 <rtems_rfs_inode_create+0x268> <== NOT EXECUTED
203dedc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_delete (fs, &inode);
203dee0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203dee4: 7f ff ff 40 call 203dbe4 <rtems_rfs_inode_delete> <== NOT EXECUTED
203dee8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
203deec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203def0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203def4: 7f ff fe e0 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203def8: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203defc: 81 c7 e0 08 ret <== NOT EXECUTED
203df00: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
203df04: 7f ff fe dc call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203df08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203df0c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203df10: 34 80 00 04 bg,a 203df20 <rtems_rfs_inode_create+0x284> <== NOT EXECUTED
203df14: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
203df18: 81 c7 e0 08 ret <== NOT EXECUTED
203df1c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_free (fs, *ino);
203df20: 7f ff ff 2b call 203dbcc <rtems_rfs_inode_free> <== NOT EXECUTED
203df24: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
return 0;
}
203df28: 81 c7 e0 08 ret <== NOT EXECUTED
203df2c: 81 e8 00 00 restore <== NOT EXECUTED
0203dbe4 <rtems_rfs_inode_delete>:
}
int
rtems_rfs_inode_delete (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203dbe4: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))
printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",
rtems_rfs_inode_ino (handle),
rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");
if (rtems_rfs_inode_is_loaded (handle))
203dbe8: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203dbec: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203dbf0: 02 80 00 1f be 203dc6c <rtems_rfs_inode_delete+0x88> <== NOT EXECUTED
203dbf4: 90 10 20 00 clr %o0 <== NOT EXECUTED
rtems_rfs_block_map map;
/*
* Free the ino number.
*/
rc = rtems_rfs_inode_free (fs, handle->ino);
203dbf8: d2 06 60 08 ld [ %i1 + 8 ], %o1 <== NOT EXECUTED
203dbfc: 7f ff ff f4 call 203dbcc <rtems_rfs_inode_free> <== NOT EXECUTED
203dc00: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
203dc04: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dc08: 14 80 00 19 bg 203dc6c <rtems_rfs_inode_delete+0x88> <== NOT EXECUTED
203dc0c: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
return rc;
/*
* Free the blocks the inode may have attached.
*/
rc = rtems_rfs_block_map_open (fs, handle, &map);
203dc10: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203dc14: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203dc18: 7f ff f0 fa call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203dc1c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc == 0)
203dc20: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dc24: 12 80 00 12 bne 203dc6c <rtems_rfs_inode_delete+0x88> <== NOT EXECUTED
203dc28: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
int rrc;
rrc = rtems_rfs_block_map_free_all (fs, &map);
203dc2c: 7f ff ef 53 call 2039978 <rtems_rfs_block_map_free_all> <== NOT EXECUTED
203dc30: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rc = rtems_rfs_block_map_close (fs, &map);
203dc34: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203dc38: 7f ff f0 81 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203dc3c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
203dc40: d0 06 60 0c ld [ %i1 + 0xc ], %o0 <== NOT EXECUTED
203dc44: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
203dc48: 40 00 27 72 call 2047a10 <memset> <== NOT EXECUTED
203dc4c: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203dc50: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
/*
* Do the release here to avoid the ctime field being set on a
* close. Also if there loads is greater then one then other loads
* active. Forcing the loads count to 0.
*/
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
203dc54: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rrc = rtems_rfs_block_map_free_all (fs, &map);
rc = rtems_rfs_block_map_close (fs, &map);
if (rc > 0)
rrc = rc;
memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203dc58: c2 2e 60 10 stb %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
/*
* Do the release here to avoid the ctime field being set on a
* close. Also if there loads is greater then one then other loads
* active. Forcing the loads count to 0.
*/
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
203dc5c: 7f ff f1 bb call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203dc60: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
handle->loads = 0;
handle->node = NULL;
203dc64: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
* Do the release here to avoid the ctime field being set on a
* close. Also if there loads is greater then one then other loads
* active. Forcing the loads count to 0.
*/
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
handle->loads = 0;
203dc68: c0 26 60 24 clr [ %i1 + 0x24 ] <== NOT EXECUTED
handle->node = NULL;
}
}
return rc;
}
203dc6c: 81 c7 e0 08 ret <== NOT EXECUTED
203dc70: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203dbcc <rtems_rfs_inode_free>:
}
int
rtems_rfs_inode_free (rtems_rfs_file_system* fs,
rtems_rfs_ino ino)
{
203dbcc: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
rtems_rfs_bitmap_bit bit;
bit = ino;
return rtems_rfs_group_bitmap_free (fs, true, bit);
203dbd0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203dbd4: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203dbd8: 7f ff fd f1 call 203d39c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
203dbdc: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203d768 <rtems_rfs_inode_get_size>:
}
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203d768: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
203d76c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
rtems_rfs_block_size size;
size.count = rtems_rfs_inode_get_block_count (handle);
size.offset = rtems_rfs_inode_get_block_offset (handle);
return rtems_rfs_block_get_size (fs, &size);
203d770: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_pos
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
rtems_rfs_block_size size;
size.count = rtems_rfs_inode_get_block_count (handle);
203d774: d8 08 60 0c ldub [ %g1 + 0xc ], %o4 <== NOT EXECUTED
203d778: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
203d77c: da 08 a0 03 ldub [ %g2 + 3 ], %o5 <== NOT EXECUTED
203d780: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
203d784: c8 08 a0 01 ldub [ %g2 + 1 ], %g4 <== NOT EXECUTED
203d788: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203d78c: 85 2b 20 18 sll %o4, 0x18, %g2 <== NOT EXECUTED
203d790: 89 29 20 10 sll %g4, 0x10, %g4 <== NOT EXECUTED
203d794: 84 13 40 02 or %o5, %g2, %g2 <== NOT EXECUTED
203d798: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
203d79c: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
203d7a0: c4 27 bf f8 st %g2, [ %fp + -8 ] <== NOT EXECUTED
size.offset = rtems_rfs_inode_get_block_offset (handle);
203d7a4: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
203d7a8: c2 08 60 0a ldub [ %g1 + 0xa ], %g1 <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
203d7ac: 92 07 bf f8 add %fp, -8, %o1 <== NOT EXECUTED
rtems_rfs_inode_get_size (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
rtems_rfs_block_size size;
size.count = rtems_rfs_inode_get_block_count (handle);
size.offset = rtems_rfs_inode_get_block_offset (handle);
203d7b0: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203d7b4: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
return rtems_rfs_block_get_size (fs, &size);
203d7b8: 7f ff ee b8 call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203d7bc: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
}
203d7c0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203d7c4: 81 c7 e0 08 ret <== NOT EXECUTED
203d7c8: 93 e8 00 09 restore %g0, %o1, %o1 <== NOT EXECUTED
0203d870 <rtems_rfs_inode_initialise>:
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
203d870: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
203d874: 87 32 60 08 srl %o1, 8, %g3 <== NOT EXECUTED
203d878: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203d87c: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
203d880: 99 2b 20 10 sll %o4, 0x10, %o4 <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
203d884: d2 28 a0 01 stb %o1, [ %g2 + 1 ] <== NOT EXECUTED
* @prarm flags The flags.
*/
static inline void
rtems_rfs_inode_set_flags (rtems_rfs_inode_handle* handle, uint16_t flags)
{
rtems_rfs_write_u16 (&handle->node->flags, flags);
203d888: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
* @prarm mode The mode.
*/
static inline void
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{
rtems_rfs_write_u16 (&handle->node->mode, mode);
203d88c: 85 32 a0 08 srl %o2, 8, %g2 <== NOT EXECUTED
* @prarm flags The flags.
*/
static inline void
rtems_rfs_inode_set_flags (rtems_rfs_inode_handle* handle, uint16_t flags)
{
rtems_rfs_write_u16 (&handle->node->flags, flags);
203d890: c0 28 e0 08 clrb [ %g3 + 8 ] <== NOT EXECUTED
203d894: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
rtems_rfs_inode_initialise (rtems_rfs_inode_handle* handle,
uint16_t links,
uint16_t mode,
uid_t uid,
gid_t gid)
{
203d898: 82 10 00 08 mov %o0, %g1 <== NOT EXECUTED
203d89c: c0 28 e0 09 clrb [ %g3 + 9 ] <== NOT EXECUTED
* @prarm mode The mode.
*/
static inline void
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{
rtems_rfs_write_u16 (&handle->node->mode, mode);
203d8a0: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203d8a4: c4 28 e0 02 stb %g2, [ %g3 + 2 ] <== NOT EXECUTED
203d8a8: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
203d8ac: 85 2a e0 10 sll %o3, 0x10, %g2 <== NOT EXECUTED
* @prarm mode The mode.
*/
static inline void
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{
rtems_rfs_write_u16 (&handle->node->mode, mode);
203d8b0: d4 28 e0 03 stb %o2, [ %g3 + 3 ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
203d8b4: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203d8b8: 85 30 a0 10 srl %g2, 0x10, %g2 <== NOT EXECUTED
203d8bc: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
203d8c0: 89 30 a0 18 srl %g2, 0x18, %g4 <== NOT EXECUTED
203d8c4: c8 28 e0 04 stb %g4, [ %g3 + 4 ] <== NOT EXECUTED
203d8c8: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203d8cc: 89 30 a0 10 srl %g2, 0x10, %g4 <== NOT EXECUTED
203d8d0: c8 28 e0 05 stb %g4, [ %g3 + 5 ] <== NOT EXECUTED
203d8d4: c6 02 20 0c ld [ %o0 + 0xc ], %g3 <== NOT EXECUTED
203d8d8: 85 30 a0 08 srl %g2, 8, %g2 <== NOT EXECUTED
203d8dc: c4 28 e0 06 stb %g2, [ %g3 + 6 ] <== NOT EXECUTED
203d8e0: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d8e4: 86 10 20 00 clr %g3 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
203d8e8: d6 28 a0 07 stb %o3, [ %g2 + 7 ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
203d8ec: c4 02 20 0c ld [ %o0 + 0xc ], %g2 <== NOT EXECUTED
203d8f0: c0 28 a0 0a clrb [ %g2 + 0xa ] <== NOT EXECUTED
203d8f4: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d8f8: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
203d8fc: c0 29 20 0b clrb [ %g4 + 0xb ] <== NOT EXECUTED
* @param block_count The block count.
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
203d900: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203d904: c0 29 20 0c clrb [ %g4 + 0xc ] <== NOT EXECUTED
203d908: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203d90c: c0 29 20 0d clrb [ %g4 + 0xd ] <== NOT EXECUTED
203d910: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203d914: c0 29 20 0e clrb [ %g4 + 0xe ] <== NOT EXECUTED
203d918: c8 02 20 0c ld [ %o0 + 0xc ], %g4 <== NOT EXECUTED
203d91c: c0 29 20 0f clrb [ %g4 + 0xf ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d920: 88 10 20 01 mov 1, %g4 <== NOT EXECUTED
203d924: c8 2a 20 10 stb %g4, [ %o0 + 0x10 ] <== NOT EXECUTED
* @param bno The block number.
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
203d928: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203d92c: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203d930: c0 29 20 1c clrb [ %g4 + 0x1c ] <== NOT EXECUTED
203d934: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203d938: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203d93c: c0 29 20 1d clrb [ %g4 + 0x1d ] <== NOT EXECUTED
203d940: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203d944: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203d948: c0 29 20 1e clrb [ %g4 + 0x1e ] <== NOT EXECUTED
203d94c: c8 00 60 0c ld [ %g1 + 0xc ], %g4 <== NOT EXECUTED
203d950: 88 01 00 03 add %g4, %g3, %g4 <== NOT EXECUTED
203d954: c0 29 20 1f clrb [ %g4 + 0x1f ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d958: 86 00 e0 04 add %g3, 4, %g3 <== NOT EXECUTED
rtems_rfs_inode_set_flags (handle, 0);
rtems_rfs_inode_set_mode (handle, mode);
rtems_rfs_inode_set_uid_gid (handle, uid, gid);
rtems_rfs_inode_set_block_offset (handle, 0);
rtems_rfs_inode_set_block_count (handle, 0);
for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)
203d95c: 80 a0 e0 14 cmp %g3, 0x14 <== NOT EXECUTED
203d960: 12 bf ff f2 bne 203d928 <rtems_rfs_inode_initialise+0xb8> <== NOT EXECUTED
203d964: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
* @param block_count The last map block number.
*/
static inline void
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{
rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
203d968: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
rtems_rfs_inode_set_block (handle, b, 0);
rtems_rfs_inode_set_last_map_block (handle, 0);
rtems_rfs_inode_set_last_data_block (handle, 0);
return rtems_rfs_inode_time_stamp_now (handle, true, true);
203d96c: 90 10 00 01 mov %g1, %o0 <== NOT EXECUTED
203d970: c0 28 e0 30 clrb [ %g3 + 0x30 ] <== NOT EXECUTED
203d974: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d978: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203d97c: c0 28 e0 31 clrb [ %g3 + 0x31 ] <== NOT EXECUTED
203d980: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d984: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203d988: c0 28 e0 32 clrb [ %g3 + 0x32 ] <== NOT EXECUTED
203d98c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d990: c0 28 e0 33 clrb [ %g3 + 0x33 ] <== NOT EXECUTED
* @param block_count The last data block number.
*/
static inline void
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{
rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
203d994: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d998: c0 28 e0 34 clrb [ %g3 + 0x34 ] <== NOT EXECUTED
203d99c: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d9a0: c0 28 e0 35 clrb [ %g3 + 0x35 ] <== NOT EXECUTED
203d9a4: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d9a8: c0 28 e0 36 clrb [ %g3 + 0x36 ] <== NOT EXECUTED
203d9ac: c6 00 60 0c ld [ %g1 + 0xc ], %g3 <== NOT EXECUTED
203d9b0: c0 28 e0 37 clrb [ %g3 + 0x37 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d9b4: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
203d9b8: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
203d9bc: 7f ff ff 84 call 203d7cc <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
203d9c0: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
0203dab0 <rtems_rfs_inode_load>:
int
rtems_rfs_inode_load (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle)
{
203dab0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
/*
* An inode does not move so once loaded no need to do again.
*/
if (!rtems_rfs_inode_is_loaded (handle))
203dab4: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203dab8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203dabc: 12 80 00 11 bne 203db00 <rtems_rfs_inode_load+0x50> <== NOT EXECUTED
203dac0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
int rc;
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
203dac4: d4 06 60 1c ld [ %i1 + 0x1c ], %o2 <== NOT EXECUTED
203dac8: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
203dacc: 7f ff f2 69 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203dad0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
handle->block, true);
if (rc > 0)
203dad4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203dad8: 14 80 00 0e bg 203db10 <rtems_rfs_inode_load+0x60> <== NOT EXECUTED
203dadc: 01 00 00 00 nop <== NOT EXECUTED
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
203dae0: c4 06 60 18 ld [ %i1 + 0x18 ], %g2 <== NOT EXECUTED
handle->node += handle->offset;
203dae4: c2 06 60 20 ld [ %i1 + 0x20 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,
handle->block, true);
if (rc > 0)
return rc;
handle->node = rtems_rfs_buffer_data (&handle->buffer);
203dae8: c4 00 a0 24 ld [ %g2 + 0x24 ], %g2 <== NOT EXECUTED
handle->node += handle->offset;
203daec: 87 28 60 06 sll %g1, 6, %g3 <== NOT EXECUTED
203daf0: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
203daf4: 82 20 c0 01 sub %g3, %g1, %g1 <== NOT EXECUTED
203daf8: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
203dafc: c2 26 60 0c st %g1, [ %i1 + 0xc ] <== NOT EXECUTED
}
handle->loads++;
203db00: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203db04: 90 10 20 00 clr %o0 <== NOT EXECUTED
203db08: 82 00 60 01 inc %g1 <== NOT EXECUTED
203db0c: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
return 0;
}
203db10: 81 c7 e0 08 ret <== NOT EXECUTED
203db14: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203db18 <rtems_rfs_inode_open>:
int
rtems_rfs_inode_open (rtems_rfs_file_system* fs,
rtems_rfs_ino ino,
rtems_rfs_inode_handle* handle,
bool load)
{
203db18: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))
printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);
if (ino == RTEMS_RFS_EMPTY_INO)
203db1c: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
203db20: 02 80 00 28 be 203dbc0 <rtems_rfs_inode_open+0xa8> <== NOT EXECUTED
203db24: a2 06 7f ff add %i1, -1, %l1 <== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
203db28: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
203db2c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
203db30: 38 80 00 25 bgu,a 203dbc4 <rtems_rfs_inode_open+0xac> <== NOT EXECUTED
203db34: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
return EINVAL;
handle->ino = ino;
handle->node = NULL;
handle->loads = 0;
203db38: c0 26 a0 24 clr [ %i2 + 0x24 ] <== NOT EXECUTED
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
203db3c: e6 06 20 28 ld [ %i0 + 0x28 ], %l3 <== NOT EXECUTED
return EINVAL;
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
return EINVAL;
handle->ino = ino;
203db40: f2 26 a0 08 st %i1, [ %i2 + 8 ] <== NOT EXECUTED
handle->node = NULL;
handle->loads = 0;
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
gino = gino % fs->group_inodes;
203db44: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))
return EINVAL;
handle->ino = ino;
handle->node = NULL;
203db48: c0 26 a0 0c clr [ %i2 + 0xc ] <== NOT EXECUTED
handle->loads = 0;
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
gino = gino % fs->group_inodes;
203db4c: 40 00 7b bf call 205ca48 <.urem> <== NOT EXECUTED
203db50: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
203db54: e4 06 20 2c ld [ %i0 + 0x2c ], %l2 <== NOT EXECUTED
handle->node = NULL;
handle->loads = 0;
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
gino = gino % fs->group_inodes;
203db58: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
handle->offset = gino % fs->inodes_per_block;
203db5c: 40 00 7b bb call 205ca48 <.urem> <== NOT EXECUTED
203db60: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
203db64: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
gino = ino - RTEMS_RFS_ROOT_INO;
group = gino / fs->group_inodes;
gino = gino % fs->group_inodes;
index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
handle->offset = gino % fs->inodes_per_block;
203db68: d0 26 a0 20 st %o0, [ %i2 + 0x20 ] <== NOT EXECUTED
handle->block = rtems_rfs_group_block (&fs->groups[group], index);
203db6c: 40 00 7b 0b call 205c798 <.udiv> <== NOT EXECUTED
203db70: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203db74: c2 06 20 1c ld [ %i0 + 0x1c ], %g1 <== NOT EXECUTED
203db78: 85 2a 20 06 sll %o0, 6, %g2 <== NOT EXECUTED
203db7c: 91 2a 20 04 sll %o0, 4, %o0 <== NOT EXECUTED
203db80: 90 02 00 02 add %o0, %g2, %o0 <== NOT EXECUTED
203db84: e0 00 40 08 ld [ %g1 + %o0 ], %l0 <== NOT EXECUTED
203db88: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203db8c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
203db90: 40 00 7b 02 call 205c798 <.udiv> <== NOT EXECUTED
203db94: a0 04 20 02 add %l0, 2, %l0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203db98: c0 2e a0 10 clrb [ %i2 + 0x10 ] <== NOT EXECUTED
203db9c: 90 04 00 08 add %l0, %o0, %o0 <== NOT EXECUTED
handle->bnum = 0;
203dba0: c0 26 a0 14 clr [ %i2 + 0x14 ] <== NOT EXECUTED
203dba4: d0 26 a0 1c st %o0, [ %i2 + 0x1c ] <== NOT EXECUTED
handle->buffer = NULL;
203dba8: c0 26 a0 18 clr [ %i2 + 0x18 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);
if ((rc == 0) && load)
203dbac: 80 8e e0 ff btst 0xff, %i3 <== NOT EXECUTED
203dbb0: 02 80 00 05 be 203dbc4 <rtems_rfs_inode_open+0xac> <== NOT EXECUTED
203dbb4: 82 10 20 00 clr %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_load (fs, handle);
203dbb8: 7f ff ff be call 203dab0 <rtems_rfs_inode_load> <== NOT EXECUTED
203dbbc: 93 e8 00 1a restore %g0, %i2, %o1 <== NOT EXECUTED
203dbc0: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
return rc;
}
203dbc4: 81 c7 e0 08 ret <== NOT EXECUTED
203dbc8: 91 e8 00 01 restore %g0, %g1, %o0 <== NOT EXECUTED
0203c4a8 <rtems_rfs_inode_overhead>:
/**
* Return the inode overhead given a number of inodes.
*/
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
203c4a8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int blocks;
int bits_per_block;
blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
203c4ac: c2 06 20 28 ld [ %i0 + 0x28 ], %g1 <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
203c4b0: e0 06 20 08 ld [ %i0 + 8 ], %l0 <== NOT EXECUTED
static int
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)
{
int blocks;
int bits_per_block;
blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
203c4b4: 91 28 60 06 sll %g1, 6, %o0 <== NOT EXECUTED
203c4b8: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
if (dividend == 0)
203c4bc: 82 a2 00 01 subcc %o0, %g1, %g1 <== NOT EXECUTED
203c4c0: 02 80 00 06 be 203c4d8 <rtems_rfs_inode_overhead+0x30> <== NOT EXECUTED
203c4c4: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203c4c8: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
203c4cc: 40 00 80 b3 call 205c798 <.udiv> <== NOT EXECUTED
203c4d0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
203c4d4: 90 02 20 01 inc %o0 <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
bits_per_block = rtems_rfs_bits_per_block (fs);
/*
* There could be more bits than blocks, eg 512K disk with 512 blocks.
*/
if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
203c4d8: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
* Return the number of bits that fit in the block size.
*/
static int
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)
{
return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));
203c4dc: a1 2c 20 03 sll %l0, 3, %l0 <== NOT EXECUTED
rtems_rfs_fs_block_size (fs));
bits_per_block = rtems_rfs_bits_per_block (fs);
/*
* There could be more bits than blocks, eg 512K disk with 512 blocks.
*/
if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
203c4e0: 92 02 7f ff add %o1, -1, %o1 <== NOT EXECUTED
203c4e4: 80 a4 00 09 cmp %l0, %o1 <== NOT EXECUTED
203c4e8: 28 80 00 02 bleu,a 203c4f0 <rtems_rfs_inode_overhead+0x48><== NOT EXECUTED
203c4ec: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
203c4f0: 90 02 20 01 inc %o0 <== NOT EXECUTED
203c4f4: 85 2a 20 07 sll %o0, 7, %g2 <== NOT EXECUTED
203c4f8: 83 2a 20 02 sll %o0, 2, %g1 <== NOT EXECUTED
203c4fc: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
203c500: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
203c504: 40 00 80 a7 call 205c7a0 <.div> <== NOT EXECUTED
203c508: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
return ((blocks + 1) * 100 * 10) / bits_per_block;
}
203c50c: 81 c7 e0 08 ret <== NOT EXECUTED
203c510: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203d7cc <rtems_rfs_inode_time_stamp_now>:
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
203d7cc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
203d7d0: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
int
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,
bool atime,
bool mtime)
{
203d7d4: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
time_t now;
if (!rtems_rfs_inode_is_loaded (handle))
203d7d8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d7dc: 02 80 00 23 be 203d868 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
203d7e0: b0 10 20 06 mov 6, %i0 <== NOT EXECUTED
return ENXIO;
now = time (NULL);
203d7e4: 40 00 4b 62 call 205056c <time> <== NOT EXECUTED
203d7e8: 90 10 20 00 clr %o0 <== NOT EXECUTED
if (atime)
203d7ec: 80 8e 60 ff btst 0xff, %i1 <== NOT EXECUTED
203d7f0: 02 80 00 0f be 203d82c <rtems_rfs_inode_time_stamp_now+0x60><== NOT EXECUTED
203d7f4: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
203d7f8: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d7fc: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
203d800: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
203d804: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d808: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
203d80c: c4 28 60 11 stb %g2, [ %g1 + 0x11 ] <== NOT EXECUTED
203d810: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d814: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
203d818: c4 28 60 12 stb %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
203d81c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d820: d0 28 60 13 stb %o0, [ %g1 + 0x13 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d824: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d828: c2 2c 20 10 stb %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_atime (handle, now);
if (mtime)
203d82c: 02 80 00 0f be 203d868 <rtems_rfs_inode_time_stamp_now+0x9c><== NOT EXECUTED
203d830: b0 10 20 00 clr %i0 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
203d834: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d838: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
203d83c: c4 28 60 14 stb %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
203d840: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d844: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
203d848: c4 28 60 15 stb %g2, [ %g1 + 0x15 ] <== NOT EXECUTED
203d84c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d850: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
203d854: c4 28 60 16 stb %g2, [ %g1 + 0x16 ] <== NOT EXECUTED
203d858: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
203d85c: d0 28 60 17 stb %o0, [ %g1 + 0x17 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203d860: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203d864: c2 2c 20 10 stb %g1, [ %l0 + 0x10 ] <== NOT EXECUTED
rtems_rfs_inode_set_mtime (handle, now);
return 0;
}
203d868: 81 c7 e0 08 ret <== NOT EXECUTED
203d86c: 81 e8 00 00 restore <== NOT EXECUTED
0203d9c8 <rtems_rfs_inode_unload>:
int
rtems_rfs_inode_unload (rtems_rfs_file_system* fs,
rtems_rfs_inode_handle* handle,
bool update_ctime)
{
203d9c8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))
printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
handle->ino, handle->loads,
rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");
if (rtems_rfs_inode_is_loaded (handle))
203d9cc: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203d9d0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d9d4: 02 80 00 25 be 203da68 <rtems_rfs_inode_unload+0xa0> <== NOT EXECUTED
203d9d8: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if (handle->loads == 0)
203d9dc: c2 06 60 24 ld [ %i1 + 0x24 ], %g1 <== NOT EXECUTED
203d9e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d9e4: 02 80 00 22 be 203da6c <rtems_rfs_inode_unload+0xa4> <== NOT EXECUTED
203d9e8: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED
return EIO;
handle->loads--;
203d9ec: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
if (handle->loads == 0)
203d9f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203d9f4: 12 80 00 1d bne 203da68 <rtems_rfs_inode_unload+0xa0> <== NOT EXECUTED
203d9f8: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
{
/*
* If the buffer is dirty it will be release. Also set the ctime.
*/
if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)
203d9fc: c2 0e 60 10 ldub [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
203da00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203da04: 02 80 00 15 be 203da58 <rtems_rfs_inode_unload+0x90> <== NOT EXECUTED
203da08: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203da0c: 80 8e a0 ff btst 0xff, %i2 <== NOT EXECUTED
203da10: 02 80 00 12 be 203da58 <rtems_rfs_inode_unload+0x90> <== NOT EXECUTED
203da14: 01 00 00 00 nop <== NOT EXECUTED
rtems_rfs_inode_set_ctime (handle, time (NULL));
203da18: 40 00 4a d5 call 205056c <time> <== NOT EXECUTED
203da1c: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,
rtems_rfs_time ctime)
{
rtems_rfs_write_u32 (&handle->node->ctime, ctime);
203da20: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203da24: 85 32 20 18 srl %o0, 0x18, %g2 <== NOT EXECUTED
203da28: c4 28 60 18 stb %g2, [ %g1 + 0x18 ] <== NOT EXECUTED
203da2c: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203da30: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
203da34: c4 28 60 19 stb %g2, [ %g1 + 0x19 ] <== NOT EXECUTED
203da38: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203da3c: 85 32 20 08 srl %o0, 8, %g2 <== NOT EXECUTED
203da40: c4 28 60 1a stb %g2, [ %g1 + 0x1a ] <== NOT EXECUTED
203da44: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
203da48: d0 28 60 1b stb %o0, [ %g1 + 0x1b ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203da4c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203da50: c2 2e 60 10 stb %g1, [ %i1 + 0x10 ] <== NOT EXECUTED
rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);
203da54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203da58: 7f ff f2 3c call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203da5c: 92 06 60 10 add %i1, 0x10, %o1 <== NOT EXECUTED
handle->node = NULL;
203da60: 10 80 00 03 b 203da6c <rtems_rfs_inode_unload+0xa4> <== NOT EXECUTED
203da64: c0 26 60 0c clr [ %i1 + 0xc ] <== NOT EXECUTED
203da68: 90 10 20 00 clr %o0 <== NOT EXECUTED
}
}
return rc;
}
203da6c: 81 c7 e0 08 ret <== NOT EXECUTED
203da70: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
0203e530 <rtems_rfs_link>:
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
203e530: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", name[c]);
printf ("(%" PRIu32 ")\n", target);
}
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
203e534: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203e538: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
203e53c: 92 10 00 1c mov %i4, %o1 <== NOT EXECUTED
203e540: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203e544: 7f ff fd 75 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203e548: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
const char* name,
int length,
rtems_rfs_ino parent,
rtems_rfs_ino target,
bool link_dir)
{
203e54c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203e550: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
printf ("%c", name[c]);
printf ("(%" PRIu32 ")\n", target);
}
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
if (rc)
203e554: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e558: 12 80 00 11 bne 203e59c <rtems_rfs_link+0x6c> <== NOT EXECUTED
203e55c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
/*
* If the target inode is a directory and we cannot link directories
* return a not supported error code.
*/
if (!link_dir && S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)))
203e560: 80 8f 60 ff btst 0xff, %i5 <== NOT EXECUTED
203e564: 12 80 00 10 bne 203e5a4 <rtems_rfs_link+0x74> <== NOT EXECUTED
203e568: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
203e56c: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203e570: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203e574: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e578: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203e57c: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
203e580: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203e584: 32 80 00 09 bne,a 203e5a8 <rtems_rfs_link+0x78> <== NOT EXECUTED
203e588: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
203e58c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e590: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e594: 7f ff fd 38 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e598: b0 10 20 86 mov 0x86, %i0 <== NOT EXECUTED
return ENOTSUP;
203e59c: 81 c7 e0 08 ret <== NOT EXECUTED
203e5a0: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
203e5a4: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
203e5a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e5ac: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203e5b0: 7f ff fd 5a call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203e5b4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
203e5b8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e5bc: 12 80 00 26 bne 203e654 <rtems_rfs_link+0x124> <== NOT EXECUTED
203e5c0: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
203e5c4: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
203e5c8: 98 10 00 1c mov %i4, %o4 <== NOT EXECUTED
203e5cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e5d0: 7f ff f2 06 call 203ade8 <rtems_rfs_dir_add_entry> <== NOT EXECUTED
203e5d4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203e5d8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e5dc: 14 80 00 1b bg 203e648 <rtems_rfs_link+0x118> <== NOT EXECUTED
203e5e0: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
if (links == 0xffff)
203e5e4: 09 3f ff c0 sethi %hi(0xffff0000), %g4 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
203e5e8: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203e5ec: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
}
links = rtems_rfs_inode_get_links (&target_inode) + 1;
rtems_rfs_inode_set_links (&target_inode, links);
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
203e5f0: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203e5f4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e5f8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
203e5fc: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
203e600: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
203e604: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
203e608: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
203e60c: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
203e610: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &parent_inode);
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
links = rtems_rfs_inode_get_links (&target_inode) + 1;
203e614: 84 00 a0 01 inc %g2 <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
203e618: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203e61c: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
203e620: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_set_links (&target_inode, links);
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
203e624: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203e628: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203e62c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203e630: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203e634: 7f ff fc 66 call 203d7cc <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
203e638: c2 2f bf c0 stb %g1, [ %fp + -64 ] <== NOT EXECUTED
if (rc > 0)
203e63c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e640: 24 80 00 08 ble,a 203e660 <rtems_rfs_link+0x130> <== NOT EXECUTED
203e644: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &parent_inode);
203e648: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e64c: 7f ff fd 0a call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e650: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
203e654: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e658: 10 80 00 08 b 203e678 <rtems_rfs_link+0x148> <== NOT EXECUTED
203e65c: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
203e660: 7f ff fd 05 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e664: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203e668: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e66c: 04 80 00 07 ble 203e688 <rtems_rfs_link+0x158> <== NOT EXECUTED
203e670: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &target_inode);
203e674: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e678: 7f ff fc ff call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e67c: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203e680: 81 c7 e0 08 ret <== NOT EXECUTED
203e684: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
203e688: 7f ff fc fb call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e68c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e690: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
203e694: 81 c7 e0 08 ret <== NOT EXECUTED
203e698: 81 e8 00 00 restore <== NOT EXECUTED
0203e6bc <rtems_rfs_mutex_create>:
RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)
#endif
int
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)
{
203e6bc: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'),
203e6c0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203e6c4: 98 10 00 18 mov %i0, %o4 <== NOT EXECUTED
203e6c8: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED
203e6cc: 96 10 20 00 clr %o3 <== NOT EXECUTED
203e6d0: 11 14 91 94 sethi %hi(0x52465000), %o0 <== NOT EXECUTED
203e6d4: 7f ff 38 4c call 200c804 <rtems_semaphore_create> <== NOT EXECUTED
203e6d8: 90 12 23 6d or %o0, 0x36d, %o0 ! 5246536d <RAM_END+0x5006536d><== NOT EXECUTED
1, RTEMS_RFS_MUTEX_ATTRIBS, 0,
mutex);
if (sc != RTEMS_SUCCESSFUL)
203e6dc: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
203e6e0: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
203e6e4: b0 0e 20 05 and %i0, 5, %i0 <== NOT EXECUTED
203e6e8: 81 c7 e0 08 ret <== NOT EXECUTED
203e6ec: 81 e8 00 00 restore <== NOT EXECUTED
0203e69c <rtems_rfs_mutex_destroy>:
return 0;
}
int
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)
{
203e69c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
#if __rtems__
rtems_status_code sc;
sc = rtems_semaphore_delete (*mutex);
203e6a0: 7f ff 38 cd call 200c9d4 <rtems_semaphore_delete> <== NOT EXECUTED
203e6a4: d0 06 00 00 ld [ %i0 ], %o0 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
203e6a8: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
203e6ac: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_status_text (sc));
return EIO;
}
#endif
return 0;
}
203e6b0: b0 0e 20 05 and %i0, 5, %i0 <== NOT EXECUTED
203e6b4: 81 c7 e0 08 ret <== NOT EXECUTED
203e6b8: 81 e8 00 00 restore <== NOT EXECUTED
0203a18c <rtems_rfs_release_chain>:
static int
rtems_rfs_release_chain (rtems_chain_control* chain,
uint32_t* count,
bool modified)
{
203a18c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203a190: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
203a194: a2 06 20 04 add %i0, 4, %l1 <== NOT EXECUTED
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
203a198: b4 0e a0 ff and %i2, 0xff, %i2 <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count);
while (!rtems_chain_is_empty (chain))
203a19c: 10 80 00 10 b 203a1dc <rtems_rfs_release_chain+0x50> <== NOT EXECUTED
203a1a0: b0 10 20 00 clr %i0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
203a1a4: 7f ff 4d 8f call 200d7e0 <_Chain_Get> <== NOT EXECUTED
203a1a8: 01 00 00 00 nop <== NOT EXECUTED
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
203a1ac: c2 06 40 00 ld [ %i1 ], %g1 <== NOT EXECUTED
buffer->user = (void*) 0;
203a1b0: c0 22 20 3c clr [ %o0 + 0x3c ] <== NOT EXECUTED
printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count);
while (!rtems_chain_is_empty (chain))
{
buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);
(*count)--;
203a1b4: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
buffer->user = (void*) 0;
rc = rtems_rfs_buffer_io_release (buffer, modified);
203a1b8: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203a1bc: 40 00 26 2d call 2043a70 <rtems_rfs_buffer_bdbuf_release> <== NOT EXECUTED
203a1c0: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
if ((rc > 0) && (rrc == 0))
203a1c4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203a1c8: 24 80 00 06 ble,a 203a1e0 <rtems_rfs_release_chain+0x54> <== NOT EXECUTED
203a1cc: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203a1d0: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
203a1d4: 22 80 00 02 be,a 203a1dc <rtems_rfs_release_chain+0x50> <== NOT EXECUTED
203a1d8: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count);
while (!rtems_chain_is_empty (chain))
203a1dc: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
203a1e0: 80 a0 40 11 cmp %g1, %l1 <== NOT EXECUTED
203a1e4: 12 bf ff f0 bne 203a1a4 <rtems_rfs_release_chain+0x18> <== NOT EXECUTED
203a1e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_buffer_io_release (buffer, modified);
if ((rc > 0) && (rrc == 0))
rrc = rc;
}
return rrc;
}
203a1ec: 81 c7 e0 08 ret <== NOT EXECUTED
203a1f0: 81 e8 00 00 restore <== NOT EXECUTED
020210cc <rtems_rfs_rtems_chown>:
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
20210cc: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20210d0: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20210d4: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED
static int
rtems_rfs_rtems_chown (rtems_filesystem_location_info_t *pathloc,
uid_t owner,
gid_t group)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
20210d8: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
ino, owner, group);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20210dc: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_CHOWN))
printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
ino, owner, group);
rtems_rfs_rtems_lock (fs);
20210e0: 7f ff ff eb call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20210e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20210e8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20210ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20210f0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20210f4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
20210f8: 40 00 72 88 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
20210fc: b0 10 00 19 mov %i1, %i0 <== NOT EXECUTED
if (rc > 0)
2021100: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021104: 04 80 00 09 ble 2021128 <rtems_rfs_rtems_chown+0x5c> <== NOT EXECUTED
2021108: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202110c: 7f ff ff e8 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021110: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: opening inode", rc);
2021114: 40 00 8c 60 call 2044294 <__errno> <== NOT EXECUTED
2021118: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202111c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2021120: 81 c7 e0 08 ret <== NOT EXECUTED
2021124: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Verify I am the owner of the node or the super user.
*/
#if defined (RTEMS_POSIX_API)
uid = geteuid();
2021128: 40 00 1f c2 call 2029030 <geteuid> <== NOT EXECUTED
202112c: 01 00 00 00 nop <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
2021130: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))
2021134: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2021138: 84 00 60 04 add %g1, 4, %g2 <== NOT EXECUTED
202113c: c8 08 a0 03 ldub [ %g2 + 3 ], %g4 <== NOT EXECUTED
2021140: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
2021144: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2021148: 86 10 c0 04 or %g3, %g4, %g3 <== NOT EXECUTED
202114c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2021150: 80 a0 c0 08 cmp %g3, %o0 <== NOT EXECUTED
2021154: 02 80 00 10 be 2021194 <rtems_rfs_rtems_chown+0xc8> <== NOT EXECUTED
2021158: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
202115c: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2021160: 22 80 00 0e be,a 2021198 <rtems_rfs_rtems_chown+0xcc> <== NOT EXECUTED
2021164: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2021168: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202116c: 40 00 72 42 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2021170: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2021174: 7f ff ff ce call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021178: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: not able", EPERM);
202117c: 40 00 8c 46 call 2044294 <__errno> <== NOT EXECUTED
2021180: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021184: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2021188: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202118c: 81 c7 e0 08 ret <== NOT EXECUTED
2021190: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,
uint16_t uid, uint16_t gid)
{
rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
2021194: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2021198: b3 2e 60 10 sll %i1, 0x10, %i1 <== NOT EXECUTED
202119c: b3 36 60 10 srl %i1, 0x10, %i1 <== NOT EXECUTED
20211a0: b4 16 80 19 or %i2, %i1, %i2 <== NOT EXECUTED
20211a4: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
20211a8: c4 28 60 04 stb %g2, [ %g1 + 4 ] <== NOT EXECUTED
20211ac: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20211b0: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
20211b4: c4 28 60 05 stb %g2, [ %g1 + 5 ] <== NOT EXECUTED
20211b8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20211bc: b5 36 a0 08 srl %i2, 8, %i2 <== NOT EXECUTED
20211c0: f4 28 60 06 stb %i2, [ %g1 + 6 ] <== NOT EXECUTED
20211c4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
}
#endif
rtems_rfs_inode_set_uid_gid (&inode, owner, group);
rc = rtems_rfs_inode_close (fs, &inode);
20211c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20211cc: f0 28 60 07 stb %i0, [ %g1 + 7 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
20211d0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20211d4: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
20211d8: 40 00 72 27 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20211dc: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc)
20211e0: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20211e4: 02 80 00 09 be 2021208 <rtems_rfs_rtems_chown+0x13c> <== NOT EXECUTED
20211e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20211ec: 7f ff ff b0 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20211f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("chown: closing inode", rc);
20211f4: 40 00 8c 28 call 2044294 <__errno> <== NOT EXECUTED
20211f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20211fc: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021200: 81 c7 e0 08 ret <== NOT EXECUTED
2021204: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021208: 7f ff ff a9 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202120c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021210: 81 c7 e0 08 ret <== NOT EXECUTED
2021214: 81 e8 00 00 restore <== NOT EXECUTED
0203e800 <rtems_rfs_rtems_device_close>:
* @return int
*/
static int
rtems_rfs_rtems_device_close (rtems_libio_t* iop)
{
203e800: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
203e804: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
203e808: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
203e80c: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
args.flags = 0;
203e810: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
args.mode = 0;
203e814: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_close (major, minor, (void *) &args);
203e818: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
203e81c: 40 00 0a da call 2041384 <rtems_io_close> <== NOT EXECUTED
203e820: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (status)
203e824: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e828: 02 80 00 05 be 203e83c <rtems_rfs_rtems_device_close+0x3c><== NOT EXECUTED
203e82c: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno (status);
203e830: 40 00 02 79 call 203f214 <rtems_deviceio_errno> <== NOT EXECUTED
203e834: 01 00 00 00 nop <== NOT EXECUTED
203e838: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
203e83c: 81 c7 e0 08 ret <== NOT EXECUTED
203e840: 81 e8 00 00 restore <== NOT EXECUTED
0203e6fc <rtems_rfs_rtems_device_ftruncate>:
static int
rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, rtems_off64_t length)
{
return 0;
}
203e6fc: 81 c3 e0 08 retl <== NOT EXECUTED
203e700: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203e704 <rtems_rfs_rtems_device_ioctl>:
static int
rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop,
uint32_t command,
void* buffer)
{
203e704: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
203e708: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
rtems_libio_ioctl_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
203e70c: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.command = command;
args.buffer = buffer;
203e710: f4 27 bf f8 st %i2, [ %fp + -8 ] <== NOT EXECUTED
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
args.command = command;
203e714: f0 3f bf f0 std %i0, [ %fp + -16 ] <== NOT EXECUTED
args.buffer = buffer;
status = rtems_io_control (major, minor, (void *) &args);
203e718: 40 00 0b 31 call 20413dc <rtems_io_control> <== NOT EXECUTED
203e71c: 94 07 bf f0 add %fp, -16, %o2 <== NOT EXECUTED
if (status)
203e720: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e724: 22 80 00 06 be,a 203e73c <rtems_rfs_rtems_device_ioctl+0x38><== NOT EXECUTED
203e728: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno (status);
203e72c: 40 00 02 ba call 203f214 <rtems_deviceio_errno> <== NOT EXECUTED
203e730: 01 00 00 00 nop <== NOT EXECUTED
203e734: 81 c7 e0 08 ret <== NOT EXECUTED
203e738: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return args.ioctl_return;
}
203e73c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203e740: 81 c7 e0 08 ret <== NOT EXECUTED
203e744: 81 e8 00 00 restore <== NOT EXECUTED
0203e6f0 <rtems_rfs_rtems_device_lseek>:
rtems_rfs_rtems_device_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
return offset;
}
203e6f0: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
203e6f4: 81 c3 e0 08 retl <== NOT EXECUTED
203e6f8: 92 10 00 0a mov %o2, %o1 <== NOT EXECUTED
0203e864 <rtems_rfs_rtems_device_open>:
static int
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode)
{
203e864: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203e868: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
203e86c: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
const char *pathname,
uint32_t flag,
uint32_t mode)
{
rtems_libio_open_close_args_t args;
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203e870: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
203e874: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e878: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203e87c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e880: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
203e884: 7f ff 38 9b call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203e888: a2 07 bf cc add %fp, -52, %l1 <== NOT EXECUTED
rtems_status_code status;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
203e88c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e890: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e894: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203e898: 7f ff fc a0 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203e89c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203e8a0: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203e8a4: 04 80 00 09 ble 203e8c8 <rtems_rfs_rtems_device_open+0x64><== NOT EXECUTED
203e8a8: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203e8ac: 7f ff ff e6 call 203e844 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e8b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: opening inode", rc);
203e8b4: 40 00 16 78 call 2044294 <__errno> <== NOT EXECUTED
203e8b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e8bc: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
203e8c0: 81 c7 e0 08 ret <== NOT EXECUTED
203e8c4: 81 e8 00 00 restore <== NOT EXECUTED
}
major = rtems_rfs_inode_get_block (&inode, 0);
minor = rtems_rfs_inode_get_block (&inode, 1);
rc = rtems_rfs_inode_close (fs, &inode);
203e8c8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
203e8cc: ee 08 60 1c ldub [ %g1 + 0x1c ], %l7 <== NOT EXECUTED
203e8d0: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
203e8d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e8d8: e4 08 60 07 ldub [ %g1 + 7 ], %l2 <== NOT EXECUTED
203e8dc: ec 08 60 01 ldub [ %g1 + 1 ], %l6 <== NOT EXECUTED
203e8e0: ea 08 60 02 ldub [ %g1 + 2 ], %l5 <== NOT EXECUTED
203e8e4: fa 08 60 03 ldub [ %g1 + 3 ], %i5 <== NOT EXECUTED
203e8e8: e8 08 60 04 ldub [ %g1 + 4 ], %l4 <== NOT EXECUTED
203e8ec: e6 08 60 05 ldub [ %g1 + 5 ], %l3 <== NOT EXECUTED
203e8f0: 7f ff fc 61 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e8f4: e2 08 60 06 ldub [ %g1 + 6 ], %l1 <== NOT EXECUTED
if (rc > 0)
203e8f8: b8 92 20 00 orcc %o0, 0, %i4 <== NOT EXECUTED
203e8fc: 04 80 00 09 ble 203e920 <rtems_rfs_rtems_device_open+0xbc><== NOT EXECUTED
203e900: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203e904: 7f ff ff d0 call 203e844 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e908: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
203e90c: 40 00 16 62 call 2044294 <__errno> <== NOT EXECUTED
203e910: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203e914: f8 22 00 00 st %i4, [ %o0 ] <== NOT EXECUTED
203e918: 81 c7 e0 08 ret <== NOT EXECUTED
203e91c: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
203e920: 7f ff ff c9 call 203e844 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203e924: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
args.iop = iop;
args.flags = iop->flags;
203e928: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
args.mode = mode;
203e92c: f6 27 bf fc st %i3, [ %fp + -4 ] <== NOT EXECUTED
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
args.iop = iop;
args.flags = iop->flags;
203e930: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
args.iop = iop;
203e934: f0 27 bf f4 st %i0, [ %fp + -12 ] <== NOT EXECUTED
203e938: ba 0f 60 ff and %i5, 0xff, %i5 <== NOT EXECUTED
203e93c: af 2d e0 18 sll %l7, 0x18, %l7 <== NOT EXECUTED
203e940: ac 0d a0 ff and %l6, 0xff, %l6 <== NOT EXECUTED
203e944: ae 17 40 17 or %i5, %l7, %l7 <== NOT EXECUTED
203e948: aa 0d 60 ff and %l5, 0xff, %l5 <== NOT EXECUTED
203e94c: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
203e950: ab 2d 60 08 sll %l5, 8, %l5 <== NOT EXECUTED
203e954: ac 15 c0 16 or %l7, %l6, %l6 <== NOT EXECUTED
203e958: a9 2d 20 18 sll %l4, 0x18, %l4 <== NOT EXECUTED
203e95c: aa 15 80 15 or %l6, %l5, %l5 <== NOT EXECUTED
203e960: a6 0c e0 ff and %l3, 0xff, %l3 <== NOT EXECUTED
return rtems_rfs_rtems_error ("device_open: closing inode", rc);
}
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
203e964: ea 26 20 34 st %l5, [ %i0 + 0x34 ] <== NOT EXECUTED
203e968: a4 0c a0 ff and %l2, 0xff, %l2 <== NOT EXECUTED
203e96c: a7 2c e0 10 sll %l3, 0x10, %l3 <== NOT EXECUTED
203e970: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
203e974: a8 15 00 13 or %l4, %l3, %l4 <== NOT EXECUTED
203e978: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
203e97c: a4 15 00 12 or %l4, %l2, %l2 <== NOT EXECUTED
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open (major, minor, (void *) &args);
203e980: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
203e984: a2 14 80 11 or %l2, %l1, %l1 <== NOT EXECUTED
203e988: 94 07 bf f4 add %fp, -12, %o2 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
iop->data1 = (void*)((intptr_t) minor);
203e98c: e2 26 20 38 st %l1, [ %i0 + 0x38 ] <== NOT EXECUTED
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open (major, minor, (void *) &args);
203e990: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e994: 40 00 0a a8 call 2041434 <rtems_io_open> <== NOT EXECUTED
203e998: b0 10 20 00 clr %i0 <== NOT EXECUTED
if (status)
203e99c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e9a0: 02 80 00 05 be 203e9b4 <rtems_rfs_rtems_device_open+0x150><== NOT EXECUTED
203e9a4: 01 00 00 00 nop <== NOT EXECUTED
return rtems_deviceio_errno(status);
203e9a8: 40 00 02 1b call 203f214 <rtems_deviceio_errno> <== NOT EXECUTED
203e9ac: 01 00 00 00 nop <== NOT EXECUTED
203e9b0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return 0;
}
203e9b4: 81 c7 e0 08 ret <== NOT EXECUTED
203e9b8: 81 e8 00 00 restore <== NOT EXECUTED
0203e7a4 <rtems_rfs_rtems_device_read>:
* @return ssize_t
*/
static ssize_t
rtems_rfs_rtems_device_read (rtems_libio_t* iop, void* buffer, size_t count)
{
203e7a4: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
203e7a8: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
rtems_libio_rw_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
203e7ac: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
203e7b0: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
203e7b4: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
203e7b8: f2 27 bf f0 st %i1, [ %fp + -16 ] <== NOT EXECUTED
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
203e7bc: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
203e7c0: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
203e7c4: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
203e7c8: f0 27 bf e0 st %i0, [ %fp + -32 ] <== NOT EXECUTED
args.offset = iop->offset;
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
203e7cc: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_read (major, minor, (void *) &args);
203e7d0: 40 00 0b 2f call 204148c <rtems_io_read> <== NOT EXECUTED
203e7d4: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
if (status)
203e7d8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e7dc: 22 80 00 06 be,a 203e7f4 <rtems_rfs_rtems_device_read+0x50><== NOT EXECUTED
203e7e0: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno (status);
203e7e4: 40 00 02 8c call 203f214 <rtems_deviceio_errno> <== NOT EXECUTED
203e7e8: 01 00 00 00 nop <== NOT EXECUTED
203e7ec: 81 c7 e0 08 ret <== NOT EXECUTED
203e7f0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
203e7f4: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203e7f8: 81 c7 e0 08 ret <== NOT EXECUTED
203e7fc: 81 e8 00 00 restore <== NOT EXECUTED
0203e748 <rtems_rfs_rtems_device_write>:
static ssize_t
rtems_rfs_rtems_device_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
203e748: 9d e3 bf 80 save %sp, -128, %sp <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
203e74c: c2 06 20 18 ld [ %i0 + 0x18 ], %g1 <== NOT EXECUTED
rtems_libio_rw_args_t args;
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
203e750: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
203e754: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
rtems_status_code status;
int major;
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
203e758: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
203e75c: f2 27 bf f0 st %i1, [ %fp + -16 ] <== NOT EXECUTED
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
args.offset = iop->offset;
203e760: c4 3f bf e8 std %g2, [ %fp + -24 ] <== NOT EXECUTED
args.buffer = (void *) buffer;
args.count = count;
203e764: f4 27 bf f4 st %i2, [ %fp + -12 ] <== NOT EXECUTED
args.flags = iop->flags;
203e768: c2 27 bf f8 st %g1, [ %fp + -8 ] <== NOT EXECUTED
int minor;
major = (int) iop->data0;
minor = (intptr_t) iop->data1;
args.iop = iop;
203e76c: f0 27 bf e0 st %i0, [ %fp + -32 ] <== NOT EXECUTED
args.offset = iop->offset;
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
203e770: c0 27 bf fc clr [ %fp + -4 ] <== NOT EXECUTED
status = rtems_io_write (major, minor, (void *) &args);
203e774: 40 00 0b 5c call 20414e4 <rtems_io_write> <== NOT EXECUTED
203e778: 94 07 bf e0 add %fp, -32, %o2 <== NOT EXECUTED
if (status)
203e77c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203e780: 22 80 00 06 be,a 203e798 <rtems_rfs_rtems_device_write+0x50><== NOT EXECUTED
203e784: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
return rtems_deviceio_errno (status);
203e788: 40 00 02 a3 call 203f214 <rtems_deviceio_errno> <== NOT EXECUTED
203e78c: 01 00 00 00 nop <== NOT EXECUTED
203e790: 81 c7 e0 08 ret <== NOT EXECUTED
203e794: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
203e798: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
203e79c: 81 c7 e0 08 ret <== NOT EXECUTED
203e7a0: 81 e8 00 00 restore <== NOT EXECUTED
0203e9bc <rtems_rfs_rtems_dir_close>:
{
/*
* The RFS does not hold any resources. Nothing to do.
*/
return 0;
}
203e9bc: 81 c3 e0 08 retl <== NOT EXECUTED
203e9c0: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203e9c4 <rtems_rfs_rtems_dir_lseek>:
*/
static rtems_off64_t
rtems_rfs_rtems_dir_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
203e9c4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
switch (whence)
203e9c8: 84 10 20 00 clr %g2 <== NOT EXECUTED
203e9cc: 80 a6 e0 01 cmp %i3, 1 <== NOT EXECUTED
203e9d0: 08 80 00 09 bleu 203e9f4 <rtems_rfs_rtems_dir_lseek+0x30> <== NOT EXECUTED
203e9d4: 86 10 20 00 clr %g3 <== NOT EXECUTED
break;
case SEEK_END: /* Movement past the end of the directory via lseek */
/* is not a permitted operation */
default:
return rtems_rfs_rtems_error ("dir_lseek: bad whence", EINVAL);
203e9d8: 40 00 16 2f call 2044294 <__errno> <== NOT EXECUTED
203e9dc: 01 00 00 00 nop <== NOT EXECUTED
203e9e0: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
203e9e4: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203e9e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203e9ec: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203e9f0: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
break;
}
return 0;
}
203e9f4: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
203e9f8: 81 c7 e0 08 ret <== NOT EXECUTED
203e9fc: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
0203ebb8 <rtems_rfs_rtems_dir_open>:
static int
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,
const char* pathname,
uint32_t flag,
uint32_t mode)
{
203ebb8: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203ebbc: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
203ebc0: e4 06 20 3c ld [ %i0 + 0x3c ], %l2 <== NOT EXECUTED
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,
const char* pathname,
uint32_t flag,
uint32_t mode)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203ebc4: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
203ebc8: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ebcc: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203ebd0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ebd4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
203ebd8: 7f ff 37 c6 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203ebdc: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
rtems_rfs_inode_handle inode;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
203ebe0: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ebe4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ebe8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203ebec: 7f ff fb cb call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203ebf0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
203ebf4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
203ebf8: 02 80 00 09 be 203ec1c <rtems_rfs_rtems_dir_open+0x64> <== NOT EXECUTED
203ebfc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203ec00: 7f ff ff 80 call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ec04: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: opening inode", rc);
203ec08: 40 00 15 a3 call 2044294 <__errno> <== NOT EXECUTED
203ec0c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ec10: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
203ec14: 81 c7 e0 08 ret <== NOT EXECUTED
203ec18: 81 e8 00 00 restore <== NOT EXECUTED
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
203ec1c: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
203ec20: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203ec24: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203ec28: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203ec2c: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
203ec30: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203ec34: 02 80 00 0c be 203ec64 <rtems_rfs_rtems_dir_open+0xac> <== NOT EXECUTED
203ec38: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203ec3c: 7f ff fb 8e call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203ec40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203ec44: 7f ff ff 6f call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ec48: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);
203ec4c: 40 00 15 92 call 2044294 <__errno> <== NOT EXECUTED
203ec50: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ec54: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
203ec58: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203ec5c: 81 c7 e0 08 ret <== NOT EXECUTED
203ec60: 81 e8 00 00 restore <== NOT EXECUTED
}
iop->offset = 0;
203ec64: c0 26 20 10 clr [ %i0 + 0x10 ] <== NOT EXECUTED
203ec68: c0 26 20 14 clr [ %i0 + 0x14 ] <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
203ec6c: 7f ff fb 82 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203ec70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203ec74: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ec78: 7f ff ff 62 call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ec7c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203ec80: 81 c7 e0 08 ret <== NOT EXECUTED
203ec84: 81 e8 00 00 restore <== NOT EXECUTED
0203eabc <rtems_rfs_rtems_dir_read>:
*/
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
203eabc: 9d e3 bf 70 save %sp, -144, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203eac0: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
struct dirent* dirent;
ssize_t bytes_transferred;
int d;
int rc;
count = count / sizeof (struct dirent);
203eac4: 92 10 21 18 mov 0x118, %o1 <== NOT EXECUTED
static ssize_t
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203eac8: e2 00 60 34 ld [ %g1 + 0x34 ], %l1 <== NOT EXECUTED
struct dirent* dirent;
ssize_t bytes_transferred;
int d;
int rc;
count = count / sizeof (struct dirent);
203eacc: 40 00 77 33 call 205c798 <.udiv> <== NOT EXECUTED
203ead0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
203ead4: c2 04 60 7c ld [ %l1 + 0x7c ], %g1 <== NOT EXECUTED
203ead8: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
203eadc: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
rtems_rfs_ino ino = rtems_rfs_rtems_get_iop_ino (iop);
203eae0: e6 06 20 3c ld [ %i0 + 0x3c ], %l3 <== NOT EXECUTED
203eae4: 92 10 20 00 clr %o1 <== NOT EXECUTED
203eae8: 7f ff 38 02 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203eaec: 94 10 20 00 clr %o2 <== NOT EXECUTED
count = count / sizeof (struct dirent);
dirent = buffer;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
203eaf0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203eaf4: aa 07 bf d4 add %fp, -44, %l5 <== NOT EXECUTED
203eaf8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203eafc: 94 10 00 15 mov %l5, %o2 <== NOT EXECUTED
203eb00: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203eb04: 7f ff fc 05 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203eb08: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
if (rc)
203eb0c: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
203eb10: 12 80 00 04 bne 203eb20 <rtems_rfs_rtems_dir_read+0x64> <== NOT EXECUTED
203eb14: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
203eb18: 10 80 00 1a b 203eb80 <rtems_rfs_rtems_dir_read+0xc4> <== NOT EXECUTED
203eb1c: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203eb20: 7f ff ff b8 call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203eb24: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
203eb28: 40 00 15 db call 2044294 <__errno> <== NOT EXECUTED
203eb2c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203eb30: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
203eb34: 81 c7 e0 08 ret <== NOT EXECUTED
203eb38: 81 e8 00 00 restore <== NOT EXECUTED
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
{
size_t size;
rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size);
203eb3c: 7f ff ef 4e call 203a874 <rtems_rfs_dir_read> <== NOT EXECUTED
203eb40: d4 1c 20 10 ldd [ %l0 + 0x10 ], %o2 <== NOT EXECUTED
if (rc == ENOENT)
203eb44: 80 a2 20 02 cmp %o0, 2 <== NOT EXECUTED
203eb48: 02 80 00 15 be 203eb9c <rtems_rfs_rtems_dir_read+0xe0> <== NOT EXECUTED
203eb4c: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
{
rc = 0;
break;
}
if (rc > 0)
203eb50: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203eb54: 24 80 00 06 ble,a 203eb6c <rtems_rfs_rtems_dir_read+0xb0><== NOT EXECUTED
203eb58: c4 1c 20 10 ldd [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
{
bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
203eb5c: 40 00 15 ce call 2044294 <__errno> <== NOT EXECUTED
203eb60: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203eb64: 10 80 00 0e b 203eb9c <rtems_rfs_rtems_dir_read+0xe0> <== NOT EXECUTED
203eb68: ec 22 00 00 st %l6, [ %o0 ] <== NOT EXECUTED
break;
}
iop->offset += size;
203eb6c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203eb70: b0 06 21 18 add %i0, 0x118, %i0 <== NOT EXECUTED
203eb74: 86 80 c0 01 addcc %g3, %g1, %g3 <== NOT EXECUTED
203eb78: 84 40 a0 00 addx %g2, 0, %g2 <== NOT EXECUTED
203eb7c: c4 3c 20 10 std %g2, [ %l0 + 0x10 ] <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
203eb80: 80 a4 c0 12 cmp %l3, %l2 <== NOT EXECUTED
{
size_t size;
rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size);
203eb84: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203eb88: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
203eb8c: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_read: read inode", rc);
}
bytes_transferred = 0;
for (d = 0; d < count; d++, dirent++)
203eb90: a6 04 e0 01 inc %l3 <== NOT EXECUTED
203eb94: 0a bf ff ea bcs 203eb3c <rtems_rfs_rtems_dir_read+0x80> <== NOT EXECUTED
203eb98: 98 06 40 18 add %i1, %i0, %o4 <== NOT EXECUTED
}
iop->offset += size;
bytes_transferred += sizeof (struct dirent);
}
rtems_rfs_inode_close (fs, &inode);
203eb9c: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED
203eba0: 7f ff fb b5 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203eba4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203eba8: 7f ff ff 96 call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ebac: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return bytes_transferred;
}
203ebb0: 81 c7 e0 08 ret <== NOT EXECUTED
203ebb4: 81 e8 00 00 restore <== NOT EXECUTED
0203ea20 <rtems_rfs_rtems_dir_rmnod>:
static int
rtems_rfs_rtems_dir_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
203ea20: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
203ea24: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
203ea28: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
static int
rtems_rfs_rtems_dir_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
203ea2c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
203ea30: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_DIR_RMNOD))
printf ("rtems-rfs: dir-rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
parent, doff, ino);
if (ino == RTEMS_RFS_ROOT_INO)
203ea34: 80 a4 60 01 cmp %l1, 1 <== NOT EXECUTED
203ea38: 12 80 00 08 bne 203ea58 <rtems_rfs_rtems_dir_rmnod+0x38> <== NOT EXECUTED
203ea3c: e4 06 60 04 ld [ %i1 + 4 ], %l2 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: root inode", EBUSY);
203ea40: 40 00 16 15 call 2044294 <__errno> <== NOT EXECUTED
203ea44: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ea48: 82 10 20 10 mov 0x10, %g1 <== NOT EXECUTED
203ea4c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
203ea50: 81 c7 e0 08 ret <== NOT EXECUTED
203ea54: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
203ea58: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203ea5c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ea60: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
203ea64: 7f ff 38 23 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203ea68: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_if_empty);
203ea6c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203ea70: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ea74: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203ea78: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
203ea7c: 7f ff fe 1f call 203e2f8 <rtems_rfs_unlink> <== NOT EXECUTED
203ea80: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
if (rc)
203ea84: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203ea88: 02 80 00 09 be 203eaac <rtems_rfs_rtems_dir_rmnod+0x8c> <== NOT EXECUTED
203ea8c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203ea90: 7f ff ff dc call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ea94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("dir_rmnod: unlinking", rc);
203ea98: 40 00 15 ff call 2044294 <__errno> <== NOT EXECUTED
203ea9c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203eaa0: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
203eaa4: 81 c7 e0 08 ret <== NOT EXECUTED
203eaa8: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
203eaac: 7f ff ff d5 call 203ea00 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203eab0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203eab4: 81 c7 e0 08 ret <== NOT EXECUTED
203eab8: 81 e8 00 00 restore <== NOT EXECUTED
02022034 <rtems_rfs_rtems_eval_for_make>:
*/
int
rtems_rfs_rtems_eval_for_make (const char* path,
rtems_filesystem_location_info_t* pathloc,
const char** name)
{
2022034: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2022038: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
202203c: c4 06 40 00 ld [ %i1 ], %g2 <== NOT EXECUTED
int
rtems_rfs_rtems_eval_for_make (const char* path,
rtems_filesystem_location_info_t* pathloc,
const char** name)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2022040: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2022044: c4 27 bf fc st %g2, [ %fp + -4 ] <== NOT EXECUTED
rtems_rfs_ino node_ino;
uint32_t doff = 0;
2022048: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
int rc;
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf ("rtems-rfs-rtems: eval-for-make: path:%s ino:%" PRId32 "\n", path, ino);
*name = path + strlen (path);
202204c: 40 00 a4 4e call 204b184 <strlen> <== NOT EXECUTED
2022050: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022054: 90 06 00 08 add %i0, %o0, %o0 <== NOT EXECUTED
while (*name != path)
2022058: 10 80 00 0b b 2022084 <rtems_rfs_rtems_eval_for_make+0x50><== NOT EXECUTED
202205c: d0 26 80 00 st %o0, [ %i2 ] <== NOT EXECUTED
{
(*name)--;
2022060: c4 26 80 00 st %g2, [ %i2 ] <== NOT EXECUTED
if (rtems_filesystem_is_separator (**name))
2022064: 7f ff 9f 1a call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022068: d0 48 7f ff ldsb [ %g1 + -1 ], %o0 <== NOT EXECUTED
202206c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022070: 02 80 00 06 be 2022088 <rtems_rfs_rtems_eval_for_make+0x54><== NOT EXECUTED
2022074: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
{
(*name)++;
2022078: 82 00 60 01 inc %g1 <== NOT EXECUTED
break;
202207c: 10 80 00 06 b 2022094 <rtems_rfs_rtems_eval_for_make+0x60><== NOT EXECUTED
2022080: c2 26 80 00 st %g1, [ %i2 ] <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf ("rtems-rfs-rtems: eval-for-make: path:%s ino:%" PRId32 "\n", path, ino);
*name = path + strlen (path);
while (*name != path)
2022084: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2022088: 80 a0 40 18 cmp %g1, %i0 <== NOT EXECUTED
202208c: 12 bf ff f5 bne 2022060 <rtems_rfs_rtems_eval_for_make+0x2c><== NOT EXECUTED
2022090: 84 00 7f ff add %g1, -1, %g2 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
2022094: 40 00 a4 3c call 204b184 <strlen> <== NOT EXECUTED
2022098: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202209c: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
20220a0: 7f ff 97 f5 call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
20220a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
20220a8: 2f 00 81 8e sethi %hi(0x2063800), %l7 <== NOT EXECUTED
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
path += stripped;
20220ac: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20220b0: a2 07 bf cc add %fp, -52, %l1 <== NOT EXECUTED
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen(path));
path += stripped;
rtems_rfs_rtems_lock (fs);
20220b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20220b8: 7f ff fb f5 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20220bc: 2d 00 00 3c sethi %hi(0xf000), %l6 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
20220c0: ae 15 e0 e0 or %l7, 0xe0, %l7 <== NOT EXECUTED
}
/*
* If a directory the execute bit must be set for us to enter.
*/
if (RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)) &&
20220c4: 2b 00 00 10 sethi %hi(0x4000), %l5 <== NOT EXECUTED
else
{
/*
* Read the inode so we know it exists and what type it is.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
20220c8: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
20220cc: a6 07 bf f4 add %fp, -12, %l3 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20220d0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20220d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20220d8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20220dc: 40 00 6e 8f call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
20220e0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
20220e4: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20220e8: 14 80 00 d0 bg 2022428 <rtems_rfs_rtems_eval_for_make+0x3f4><== NOT EXECUTED
20220ec: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
}
/*
* If a directory the execute bit must be set for us to enter.
*/
if (RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)) &&
20220f0: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
20220f4: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
20220f8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20220fc: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2022100: 82 08 40 16 and %g1, %l6, %g1 <== NOT EXECUTED
2022104: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2022108: 32 80 00 09 bne,a 202212c <rtems_rfs_rtems_eval_for_make+0xf8><== NOT EXECUTED
202210c: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
2022110: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022114: 40 00 01 d7 call 2022870 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2022118: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
202211c: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2022120: 22 80 00 9f be,a 202239c <rtems_rfs_rtems_eval_for_make+0x368><== NOT EXECUTED
2022124: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if (path == *name)
2022128: c2 06 80 00 ld [ %i2 ], %g1 <== NOT EXECUTED
202212c: 80 a6 00 01 cmp %i0, %g1 <== NOT EXECUTED
2022130: 02 80 00 82 be 2022338 <rtems_rfs_rtems_eval_for_make+0x304><== NOT EXECUTED
2022134: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
2022138: 10 80 00 03 b 2022144 <rtems_rfs_rtems_eval_for_make+0x110><== NOT EXECUTED
202213c: ba 10 20 00 clr %i5 <== NOT EXECUTED
while (!rtems_filesystem_is_separator(*path) &&
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
{
node_len++;
path++;
2022140: a4 04 a0 01 inc %l2 <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator(*path) &&
2022144: 7f ff 9e e2 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022148: d0 4c 80 00 ldsb [ %l2 ], %o0 <== NOT EXECUTED
202214c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022150: 12 80 00 0b bne 202217c <rtems_rfs_rtems_eval_for_make+0x148><== NOT EXECUTED
2022154: 01 00 00 00 nop <== NOT EXECUTED
2022158: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
202215c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022160: 02 80 00 07 be 202217c <rtems_rfs_rtems_eval_for_make+0x148><== NOT EXECUTED
2022164: 01 00 00 00 nop <== NOT EXECUTED
(*path != '\0') &&
(node_len < (rtems_rfs_fs_max_name (fs) - 1)))
2022168: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
202216c: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2022170: 80 a7 40 01 cmp %i5, %g1 <== NOT EXECUTED
2022174: 2a bf ff f3 bcs,a 2022140 <rtems_rfs_rtems_eval_for_make+0x10c><== NOT EXECUTED
2022178: ba 07 60 01 inc %i5 <== NOT EXECUTED
}
/*
* Eat any separators at start of the new path.
*/
stripped = rtems_filesystem_prefix_separators (path, strlen (path));
202217c: 40 00 a4 02 call 204b184 <strlen> <== NOT EXECUTED
2022180: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2022184: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2022188: 7f ff 97 bb call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
202218c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
/*
* If the node is the current directory and there is more path to come move
* on it else we are at the inode we want.
*/
if (rtems_rfs_current_dir (node))
2022190: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
2022194: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
2022198: 12 80 00 13 bne 20221e4 <rtems_rfs_rtems_eval_for_make+0x1b0><== NOT EXECUTED
202219c: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
20221a0: d0 4e 20 01 ldsb [ %i0 + 1 ], %o0 <== NOT EXECUTED
20221a4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20221a8: 22 80 00 07 be,a 20221c4 <rtems_rfs_rtems_eval_for_make+0x190><== NOT EXECUTED
20221ac: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
20221b0: 7f ff 9e c7 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
20221b4: 01 00 00 00 nop <== NOT EXECUTED
20221b8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20221bc: 02 80 00 0b be 20221e8 <rtems_rfs_rtems_eval_for_make+0x1b4><== NOT EXECUTED
20221c0: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
{
if (*path)
20221c4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20221c8: 02 80 00 5d be 202233c <rtems_rfs_rtems_eval_for_make+0x308><== NOT EXECUTED
20221cc: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20221d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20221d4: 40 00 6e 28 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20221d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
continue;
20221dc: 10 bf ff bd b 20220d0 <rtems_rfs_rtems_eval_for_make+0x9c><== NOT EXECUTED
20221e0: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
/*
* If the node is a parent we must move up one directory. If the location
* is on another file system we have a crossmount so we call that file
* system to handle the remainder of the path.
*/
if (rtems_rfs_parent_dir (path))
20221e4: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
20221e8: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20221ec: 12 80 00 3a bne 20222d4 <rtems_rfs_rtems_eval_for_make+0x2a0><== NOT EXECUTED
20221f0: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
20221f4: c2 4c a0 01 ldsb [ %l2 + 1 ], %g1 <== NOT EXECUTED
20221f8: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20221fc: 12 80 00 37 bne 20222d8 <rtems_rfs_rtems_eval_for_make+0x2a4><== NOT EXECUTED
2022200: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
2022204: d0 4c a0 02 ldsb [ %l2 + 2 ], %o0 <== NOT EXECUTED
2022208: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202220c: 02 80 00 07 be 2022228 <rtems_rfs_rtems_eval_for_make+0x1f4><== NOT EXECUTED
2022210: b8 04 a0 02 add %l2, 2, %i4 <== NOT EXECUTED
2022214: 7f ff 9e ae call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022218: 01 00 00 00 nop <== NOT EXECUTED
202221c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022220: 02 80 00 2d be 20222d4 <rtems_rfs_rtems_eval_for_make+0x2a0><== NOT EXECUTED
2022224: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
{
/*
* If we are at the root inode of the file system we have a crossmount
* path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
2022228: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
202222c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2022230: 12 80 00 14 bne 2022280 <rtems_rfs_rtems_eval_for_make+0x24c><== NOT EXECUTED
2022234: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
{
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: crossmount: path:%s\n",
path - node_len);
rtems_rfs_inode_close (fs, &inode);
2022238: 92 07 bf cc add %fp, -52, %o1 <== NOT EXECUTED
202223c: 40 00 6e 0e call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022240: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022244: 7f ff fb 9a call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022248: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
202224c: d2 06 60 10 ld [ %i1 + 0x10 ], %o1 <== NOT EXECUTED
2022250: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
2022254: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
2022258: 40 00 95 5b call 20477c4 <memcpy> <== NOT EXECUTED
202225c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)(path + 2, pathloc, name);
2022260: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
2022264: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2022268: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
202226c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2022270: 9f c0 40 00 call %g1 <== NOT EXECUTED
2022274: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022278: 81 c7 e0 08 ret <== NOT EXECUTED
202227c: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
/*
* If not a directory give and up return. We cannot change dir from a
* regular file or device node.
*/
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
2022280: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2022284: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2022288: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
202228c: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2022290: 82 08 40 16 and %g1, %l6, %g1 <== NOT EXECUTED
2022294: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2022298: 22 80 00 0b be,a 20222c4 <rtems_rfs_rtems_eval_for_make+0x290><== NOT EXECUTED
202229c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20222a0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20222a4: 40 00 6d f4 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20222a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20222ac: 7f ff fb 80 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20222b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTSUP);
20222b4: 40 00 87 f8 call 2044294 <__errno> <== NOT EXECUTED
20222b8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20222bc: 10 80 00 54 b 202240c <rtems_rfs_rtems_eval_for_make+0x3d8><== NOT EXECUTED
20222c0: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
20222c4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20222c8: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
20222cc: 10 80 00 05 b 20222e0 <rtems_rfs_rtems_eval_for_make+0x2ac><== NOT EXECUTED
20222d0: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
else
{
/*
* Read the inode so we know it exists and what type it is.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
20222d4: 96 10 00 1d mov %i5, %o3 <== NOT EXECUTED
20222d8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20222dc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20222e0: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
20222e4: 40 00 63 65 call 203b078 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
20222e8: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
20222ec: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
20222f0: 04 80 00 06 ble 2022308 <rtems_rfs_rtems_eval_for_make+0x2d4><== NOT EXECUTED
20222f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20222f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20222fc: 40 00 6d de call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022300: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022304: 30 80 00 06 b,a 202231c <rtems_rfs_rtems_eval_for_make+0x2e8><== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: down: path:%s ino:%" PRId32 "\n",
node, ino);
}
rc = rtems_rfs_inode_close (fs, &inode);
2022308: 40 00 6d db call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
202230c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
2022310: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2022314: 24 bf ff 6f ble,a 20220d0 <rtems_rfs_rtems_eval_for_make+0x9c><== NOT EXECUTED
2022318: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202231c: 7f ff fb 64 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022320: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: closing node", rc);
2022324: 40 00 87 dc call 2044294 <__errno> <== NOT EXECUTED
2022328: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202232c: fa 22 00 00 st %i5, [ %o0 ] <== NOT EXECUTED
2022330: 81 c7 e0 08 ret <== NOT EXECUTED
2022334: 81 e8 00 00 restore <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
2022338: c2 07 bf d8 ld [ %fp + -40 ], %g1 <== NOT EXECUTED
}
}
if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))
202233c: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2022340: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2022344: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2022348: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
202234c: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2022350: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2022354: 02 80 00 0b be 2022380 <rtems_rfs_rtems_eval_for_make+0x34c><== NOT EXECUTED
2022358: a2 07 bf cc add %fp, -52, %l1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
202235c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022360: 40 00 6d c5 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022364: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022368: 7f ff fb 51 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202236c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: not dir", ENOTDIR);
2022370: 40 00 87 c9 call 2044294 <__errno> <== NOT EXECUTED
2022374: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022378: 10 80 00 25 b 202240c <rtems_rfs_rtems_eval_for_make+0x3d8><== NOT EXECUTED
202237c: 82 10 20 14 mov 0x14, %g1 <== NOT EXECUTED
}
if (!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_WX))
2022380: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2022384: 40 00 01 3b call 2022870 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
2022388: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
202238c: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2022390: 32 80 00 0b bne,a 20223bc <rtems_rfs_rtems_eval_for_make+0x388><== NOT EXECUTED
2022394: e4 06 80 00 ld [ %i2 ], %l2 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022398: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202239c: 40 00 6d b6 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20223a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20223a4: 7f ff fb 42 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20223a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: cannot write", EACCES);
20223ac: 40 00 87 ba call 2044294 <__errno> <== NOT EXECUTED
20223b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20223b4: 10 80 00 16 b 202240c <rtems_rfs_rtems_eval_for_make+0x3d8><== NOT EXECUTED
20223b8: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
}
/*
* Make sure the name does not already exists in the directory.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, *name, strlen (*name),
20223bc: 40 00 a3 72 call 204b184 <strlen> <== NOT EXECUTED
20223c0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20223c4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
20223c8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20223cc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20223d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20223d4: 98 07 bf f8 add %fp, -8, %o4 <== NOT EXECUTED
20223d8: 40 00 63 28 call 203b078 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
20223dc: 9a 07 bf f4 add %fp, -12, %o5 <== NOT EXECUTED
&node_ino, &doff);
if (rc == 0)
20223e0: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20223e4: 12 80 00 0d bne 2022418 <rtems_rfs_rtems_eval_for_make+0x3e4><== NOT EXECUTED
20223e8: 80 a4 a0 02 cmp %l2, 2 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20223ec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20223f0: 40 00 6d a1 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20223f4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20223f8: 7f ff fb 2d call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20223fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: found name", EEXIST);
2022400: 40 00 87 a5 call 2044294 <__errno> <== NOT EXECUTED
2022404: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022408: 82 10 20 11 mov 0x11, %g1 <== NOT EXECUTED
202240c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022410: 81 c7 e0 08 ret <== NOT EXECUTED
2022414: 81 e8 00 00 restore <== NOT EXECUTED
}
if (rc != ENOENT)
2022418: 02 80 00 0b be 2022444 <rtems_rfs_rtems_eval_for_make+0x410><== NOT EXECUTED
202241c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022420: 40 00 6d 95 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022424: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022428: 7f ff fb 21 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202242c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_for_make: look up", rc);
2022430: 40 00 87 99 call 2044294 <__errno> <== NOT EXECUTED
2022434: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022438: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
202243c: 81 c7 e0 08 ret <== NOT EXECUTED
2022440: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Set the parent ino in the path location.
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
2022444: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2022448: c2 26 40 00 st %g1, [ %i1 ] <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
202244c: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022450: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
2022454: 40 00 00 d9 call 20227b8 <rtems_rfs_rtems_set_handlers> <== NOT EXECUTED
2022458: c2 26 60 04 st %g1, [ %i1 + 4 ] <== NOT EXECUTED
202245c: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
2022460: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: parent ino:%" PRId32 " name:%s\n",
ino, *name);
rtems_rfs_inode_close (fs, &inode);
2022464: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022468: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: parent ino:%" PRId32 " name:%s\n",
ino, *name);
rtems_rfs_inode_close (fs, &inode);
202246c: 40 00 6d 82 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022470: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*/
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022474: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_FOR_MAKE))
printf("rtems-rfs-rtems: eval-for-make: parent ino:%" PRId32 " name:%s\n",
ino, *name);
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
2022478: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202247c: 7f ff fb 0c call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022480: b0 06 20 05 add %i0, 5, %i0 <== NOT EXECUTED
return rc;
}
2022484: 81 c7 e0 08 ret <== NOT EXECUTED
2022488: 81 e8 00 00 restore <== NOT EXECUTED
0202248c <rtems_rfs_rtems_eval_path>:
int
rtems_rfs_rtems_eval_path (const char* path,
size_t pathlen,
int flags,
rtems_filesystem_location_info_t* pathloc)
{
202248c: 9d e3 bf 70 save %sp, -144, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2022490: c4 06 e0 10 ld [ %i3 + 0x10 ], %g2 <== NOT EXECUTED
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2022494: c2 06 c0 00 ld [ %i3 ], %g1 <== NOT EXECUTED
rtems_rfs_rtems_eval_path (const char* path,
size_t pathlen,
int flags,
rtems_filesystem_location_info_t* pathloc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2022498: e0 00 a0 34 ld [ %g2 + 0x34 ], %l0 <== NOT EXECUTED
path, pathlen, ino);
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
202249c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
int flags,
rtems_filesystem_location_info_t* pathloc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
rtems_rfs_inode_handle inode;
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
20224a0: c2 27 bf fc st %g1, [ %fp + -4 ] <== NOT EXECUTED
path, pathlen, ino);
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
20224a4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20224a8: 7f ff 96 f3 call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
20224ac: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
20224b0: 2f 00 81 8e sethi %hi(0x2063800), %l7 <== NOT EXECUTED
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
20224b4: b2 26 40 08 sub %i1, %o0, %i1 <== NOT EXECUTED
/*
* Eat any separators at the start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
20224b8: b0 06 00 08 add %i0, %o0, %i0 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20224bc: a2 07 bf d0 add %fp, -48, %l1 <== NOT EXECUTED
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
path += stripped;
pathlen -= stripped;
rtems_rfs_rtems_lock (fs);
20224c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20224c4: 7f ff fa f2 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20224c8: ae 15 e0 e0 or %l7, 0xe0, %l7 <== NOT EXECUTED
break;
/*
* If a directory the execute bit must be set for us to enter.
*/
if (RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)) &&
20224cc: 2d 00 00 3c sethi %hi(0xf000), %l6 <== NOT EXECUTED
20224d0: 2b 00 00 10 sethi %hi(0x4000), %l5 <== NOT EXECUTED
/*
* Look up the node name in this directory. If found drop through, close
* the current inode and let the loop open the inode so the mode can be
* read and handlers set.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
20224d4: a8 07 bf fc add %fp, -4, %l4 <== NOT EXECUTED
20224d8: a6 07 bf f8 add %fp, -8, %l3 <== NOT EXECUTED
while (true)
{
/*
* Open and load the inode.
*/
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
20224dc: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
20224e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20224e4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20224e8: 40 00 6d 8c call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
20224ec: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
20224f0: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20224f4: 24 80 00 09 ble,a 2022518 <rtems_rfs_rtems_eval_path+0x8c><== NOT EXECUTED
20224f8: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20224fc: 7f ff fa ec call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022500: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: opening inode", rc);
2022504: 40 00 87 64 call 2044294 <__errno> <== NOT EXECUTED
2022508: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202250c: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2022510: 81 c7 e0 08 ret <== NOT EXECUTED
2022514: 81 e8 00 00 restore <== NOT EXECUTED
}
/*
* Is this the end of the pathname we where given ?
*/
if ((*path == '\0') || (pathlen == 0))
2022518: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202251c: 02 80 00 8f be 2022758 <rtems_rfs_rtems_eval_path+0x2cc> <== NOT EXECUTED
2022520: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2022524: 02 80 00 8d be 2022758 <rtems_rfs_rtems_eval_path+0x2cc> <== NOT EXECUTED
2022528: c2 07 bf dc ld [ %fp + -36 ], %g1 <== NOT EXECUTED
break;
/*
* If a directory the execute bit must be set for us to enter.
*/
if (RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)) &&
202252c: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2022530: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2022534: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2022538: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
202253c: 82 08 40 16 and %g1, %l6, %g1 <== NOT EXECUTED
2022540: 80 a0 40 15 cmp %g1, %l5 <== NOT EXECUTED
2022544: 02 80 00 05 be 2022558 <rtems_rfs_rtems_eval_path+0xcc> <== NOT EXECUTED
2022548: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202254c: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
2022550: 10 80 00 14 b 20225a0 <rtems_rfs_rtems_eval_path+0x114> <== NOT EXECUTED
2022554: ba 10 20 00 clr %i5 <== NOT EXECUTED
2022558: 40 00 00 c6 call 2022870 <rtems_rfs_rtems_eval_perms> <== NOT EXECUTED
202255c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2022560: 80 8a 20 ff btst 0xff, %o0 <== NOT EXECUTED
2022564: 12 bf ff fb bne 2022550 <rtems_rfs_rtems_eval_path+0xc4> <== NOT EXECUTED
2022568: a4 10 00 18 mov %i0, %l2 <== NOT EXECUTED
!rtems_rfs_rtems_eval_perms (&inode, RTEMS_LIBIO_PERMS_SEARCH))
{
rtems_rfs_inode_close (fs, &inode);
202256c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022570: 40 00 6d 41 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022574: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2022578: 7f ff fa cd call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202257c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: eval perms", EACCES);
2022580: 40 00 87 45 call 2044294 <__errno> <== NOT EXECUTED
2022584: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022588: 82 10 20 0d mov 0xd, %g1 <== NOT EXECUTED
202258c: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2022590: 81 c7 e0 08 ret <== NOT EXECUTED
2022594: 81 e8 00 00 restore <== NOT EXECUTED
while (!rtems_filesystem_is_separator (*path) &&
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
{
path++;
pathlen--;
2022598: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED
202259c: ba 10 00 01 mov %g1, %i5 <== NOT EXECUTED
/*
* Extract the node name we will look for this time around.
*/
node = path;
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
20225a0: 7f ff 9d cb call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
20225a4: d0 4c 80 00 ldsb [ %l2 ], %o0 <== NOT EXECUTED
20225a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20225ac: 12 80 00 0c bne 20225dc <rtems_rfs_rtems_eval_path+0x150> <== NOT EXECUTED
20225b0: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
20225b4: 02 80 00 0b be 20225e0 <rtems_rfs_rtems_eval_path+0x154> <== NOT EXECUTED
20225b8: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20225bc: c4 4c 80 00 ldsb [ %l2 ], %g2 <== NOT EXECUTED
20225c0: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20225c4: 02 80 00 07 be 20225e0 <rtems_rfs_rtems_eval_path+0x154> <== NOT EXECUTED
20225c8: 82 07 60 01 add %i5, 1, %g1 <== NOT EXECUTED
(*path != '\0') && pathlen &&
((node_len + 1) < rtems_rfs_fs_max_name (fs)))
20225cc: c4 04 20 18 ld [ %l0 + 0x18 ], %g2 <== NOT EXECUTED
20225d0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20225d4: 2a bf ff f1 bcs,a 2022598 <rtems_rfs_rtems_eval_path+0x10c><== NOT EXECUTED
20225d8: a4 04 a0 01 inc %l2 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
20225dc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20225e0: 7f ff 96 a5 call 2008074 <rtems_filesystem_prefix_separators><== NOT EXECUTED
20225e4: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
/*
* If the node is the current directory and there is more path to come move
* on it else we are at the inode we want.
*/
if (rtems_rfs_current_dir (node))
20225e8: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
}
/*
* Eat any separators at start of the path.
*/
stripped = rtems_filesystem_prefix_separators (path, pathlen);
20225ec: b8 10 00 08 mov %o0, %i4 <== NOT EXECUTED
path += stripped;
20225f0: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
/*
* If the node is the current directory and there is more path to come move
* on it else we are at the inode we want.
*/
if (rtems_rfs_current_dir (node))
20225f4: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
20225f8: 12 80 00 15 bne 202264c <rtems_rfs_rtems_eval_path+0x1c0> <== NOT EXECUTED
20225fc: b2 26 40 08 sub %i1, %o0, %i1 <== NOT EXECUTED
2022600: d0 4e 20 01 ldsb [ %i0 + 1 ], %o0 <== NOT EXECUTED
2022604: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022608: 22 80 00 08 be,a 2022628 <rtems_rfs_rtems_eval_path+0x19c><== NOT EXECUTED
202260c: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2022610: 7f ff 9d af call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022614: 01 00 00 00 nop <== NOT EXECUTED
2022618: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202261c: 22 80 00 0b be,a 2022648 <rtems_rfs_rtems_eval_path+0x1bc><== NOT EXECUTED
2022620: c2 4e 00 00 ldsb [ %i0 ], %g1 <== NOT EXECUTED
{
if (*path)
2022624: c2 4c 80 00 ldsb [ %l2 ], %g1 <== NOT EXECUTED
2022628: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202262c: 02 80 00 4c be 202275c <rtems_rfs_rtems_eval_path+0x2d0> <== NOT EXECUTED
2022630: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022634: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022638: 40 00 6d 0f call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
202263c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
continue;
2022640: 10 bf ff a7 b 20224dc <rtems_rfs_rtems_eval_path+0x50> <== NOT EXECUTED
2022644: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
/*
* If the node is a parent we must move up one directory. If the location
* is on another file system we have a crossmount so we call that file
* system to handle the remainder of the path.
*/
if (rtems_rfs_parent_dir (node))
2022648: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
202264c: 12 80 00 2a bne 20226f4 <rtems_rfs_rtems_eval_path+0x268> <== NOT EXECUTED
2022650: ba 07 00 1d add %i4, %i5, %i5 <== NOT EXECUTED
2022654: c2 4e 20 01 ldsb [ %i0 + 1 ], %g1 <== NOT EXECUTED
2022658: 80 a0 60 2e cmp %g1, 0x2e <== NOT EXECUTED
202265c: 12 80 00 27 bne 20226f8 <rtems_rfs_rtems_eval_path+0x26c> <== NOT EXECUTED
2022660: 96 27 40 1c sub %i5, %i4, %o3 <== NOT EXECUTED
2022664: d0 4e 20 02 ldsb [ %i0 + 2 ], %o0 <== NOT EXECUTED
2022668: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202266c: 02 80 00 08 be 202268c <rtems_rfs_rtems_eval_path+0x200> <== NOT EXECUTED
2022670: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
2022674: 7f ff 9d 96 call 2009ccc <rtems_filesystem_is_separator> <== NOT EXECUTED
2022678: 01 00 00 00 nop <== NOT EXECUTED
202267c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022680: 02 80 00 1e be 20226f8 <rtems_rfs_rtems_eval_path+0x26c> <== NOT EXECUTED
2022684: 96 27 40 1c sub %i5, %i4, %o3 <== NOT EXECUTED
{
/*
* If we are at root inode of the file system we have a crossmount path.
*/
if (ino == RTEMS_RFS_ROOT_INO)
2022688: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
202268c: 80 a0 60 01 cmp %g1, 1 <== NOT EXECUTED
2022690: 12 80 00 15 bne 20226e4 <rtems_rfs_rtems_eval_path+0x258> <== NOT EXECUTED
2022694: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
printf("rtems-rfs-rtems: eval-path: crossmount: path:%s (%zd)\n",
path - node_len, pathlen + node_len);
rtems_rfs_inode_close (fs, &inode);
2022698: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202269c: 40 00 6c f6 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20226a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20226a4: 7f ff fa 82 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20226a8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
*pathloc = pathloc->mt_entry->mt_point_node;
20226ac: d2 06 e0 10 ld [ %i3 + 0x10 ], %o1 <== NOT EXECUTED
20226b0: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
20226b4: 92 02 60 08 add %o1, 8, %o1 <== NOT EXECUTED
20226b8: 40 00 94 43 call 20477c4 <memcpy> <== NOT EXECUTED
20226bc: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)(path - node_len, pathlen + node_len,
20226c0: c2 06 e0 0c ld [ %i3 + 0xc ], %g1 <== NOT EXECUTED
20226c4: 92 07 40 19 add %i5, %i1, %o1 <== NOT EXECUTED
20226c8: c2 00 40 00 ld [ %g1 ], %g1 <== NOT EXECUTED
20226cc: 90 24 80 1d sub %l2, %i5, %o0 <== NOT EXECUTED
20226d0: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
20226d4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20226d8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
20226dc: 81 c7 e0 08 ret <== NOT EXECUTED
20226e0: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
}
/*
* We need to find the parent of this node.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode, "..", 2, &ino, &doff);
20226e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20226e8: 94 10 00 17 mov %l7, %o2 <== NOT EXECUTED
20226ec: 10 80 00 06 b 2022704 <rtems_rfs_rtems_eval_path+0x278> <== NOT EXECUTED
20226f0: 96 10 20 02 mov 2, %o3 <== NOT EXECUTED
/*
* Look up the node name in this directory. If found drop through, close
* the current inode and let the loop open the inode so the mode can be
* read and handlers set.
*/
rc = rtems_rfs_dir_lookup_ino (fs, &inode,
20226f4: 96 27 40 1c sub %i5, %i4, %o3 <== NOT EXECUTED
20226f8: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
20226fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022700: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022704: 98 10 00 14 mov %l4, %o4 <== NOT EXECUTED
2022708: 40 00 62 5c call 203b078 <rtems_rfs_dir_lookup_ino> <== NOT EXECUTED
202270c: 9a 10 00 13 mov %l3, %o5 <== NOT EXECUTED
node, node_len - stripped, &ino, &doff);
if (rc > 0)
2022710: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2022714: 14 80 00 07 bg 2022730 <rtems_rfs_rtems_eval_path+0x2a4> <== NOT EXECUTED
2022718: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
printf("rtems-rfs-rtems: eval-path: down: path:%s ino:%" PRId32 "\n", node, ino);
}
rc = rtems_rfs_inode_close (fs, &inode);
202271c: 40 00 6c d6 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022720: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
2022724: ba 92 20 00 orcc %o0, 0, %i5 <== NOT EXECUTED
2022728: 24 bf ff 6d ble,a 20224dc <rtems_rfs_rtems_eval_path+0x50><== NOT EXECUTED
202272c: b0 10 00 12 mov %l2, %i0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
2022730: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022734: 40 00 6c d0 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2022738: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
202273c: 7f ff fa 5c call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022740: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
2022744: 40 00 86 d4 call 2044294 <__errno> <== NOT EXECUTED
2022748: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202274c: fa 22 00 00 st %i5, [ %o0 ] <== NOT EXECUTED
2022750: 81 c7 e0 08 ret <== NOT EXECUTED
2022754: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
2022758: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
202275c: a2 07 bf d0 add %fp, -48, %l1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
2022760: c2 26 c0 00 st %g1, [ %i3 ] <== NOT EXECUTED
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
2022764: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022768: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rtems_rfs_rtems_error ("eval_path: closing node", rc);
}
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
202276c: c2 26 e0 04 st %g1, [ %i3 + 4 ] <== NOT EXECUTED
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022770: 40 00 00 12 call 20227b8 <rtems_rfs_rtems_set_handlers> <== NOT EXECUTED
2022774: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2022778: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
202277c: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2022780: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022784: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
2022788: 40 00 6c bb call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
202278c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
rtems_rfs_rtems_set_pathloc_ino (pathloc, ino);
rtems_rfs_rtems_set_pathloc_doff (pathloc, doff);
rc = rtems_rfs_rtems_set_handlers (pathloc, &inode) ? 0 : EIO;
2022790: b0 0e 3f fb and %i0, -5, %i0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
2022794: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2022798: 7f ff fa 45 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202279c: b0 06 20 05 add %i0, 5, %i0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
printf("rtems-rfs-rtems: eval-path: ino:%" PRId32 "\n", ino);
return rc;
}
20227a0: 81 c7 e0 08 ret <== NOT EXECUTED
20227a4: 81 e8 00 00 restore <== NOT EXECUTED
02022870 <rtems_rfs_rtems_eval_perms>:
#include "rtems-rfs-rtems.h"
bool
rtems_rfs_rtems_eval_perms (rtems_rfs_inode_handle* inode, int flags)
{
2022870: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
2022874: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2022878: 84 00 60 04 add %g1, 4, %g2 <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
202287c: e0 08 60 03 ldub [ %g1 + 3 ], %l0 <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
2022880: ea 08 a0 02 ldub [ %g2 + 2 ], %l5 <== NOT EXECUTED
2022884: e8 08 a0 03 ldub [ %g2 + 3 ], %l4 <== NOT EXECUTED
* @return uint16_t The group id (gid).
*/
static inline uint16_t
rtems_rfs_inode_get_gid (rtems_rfs_inode_handle* handle)
{
return (rtems_rfs_read_u32 (&handle->node->owner) >> 16) & 0xffff;
2022888: e4 08 a0 01 ldub [ %g2 + 1 ], %l2 <== NOT EXECUTED
202288c: e6 08 60 04 ldub [ %g1 + 4 ], %l3 <== NOT EXECUTED
uid = rtems_rfs_inode_get_uid (inode);
gid = rtems_rfs_inode_get_gid (inode);
mode = rtems_rfs_inode_get_mode (inode);
#if defined (RTEMS_POSIX_API)
st_uid = geteuid ();
2022890: 40 00 19 e8 call 2029030 <geteuid> <== NOT EXECUTED
2022894: e2 08 60 02 ldub [ %g1 + 2 ], %l1 <== NOT EXECUTED
st_gid = getegid ();
2022898: 40 00 19 e2 call 2029020 <getegid> <== NOT EXECUTED
202289c: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
/*
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ((st_uid == 0) || (st_uid == uid))
20228a0: ad 2d a0 10 sll %l6, 0x10, %l6 <== NOT EXECUTED
20228a4: ad 35 a0 10 srl %l6, 0x10, %l6 <== NOT EXECUTED
20228a8: 80 a0 00 16 cmp %g0, %l6 <== NOT EXECUTED
20228ac: ab 2d 60 08 sll %l5, 8, %l5 <== NOT EXECUTED
20228b0: 84 60 3f ff subx %g0, -1, %g2 <== NOT EXECUTED
20228b4: a8 15 40 14 or %l5, %l4, %l4 <== NOT EXECUTED
20228b8: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
20228bc: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED
20228c0: 80 a5 80 14 cmp %l6, %l4 <== NOT EXECUTED
20228c4: 02 80 00 06 be 20228dc <rtems_rfs_rtems_eval_perms+0x6c> <== NOT EXECUTED
20228c8: 83 2e 60 06 sll %i1, 6, %g1 <== NOT EXECUTED
20228cc: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20228d0: 02 80 00 04 be 20228e0 <rtems_rfs_rtems_eval_perms+0x70> <== NOT EXECUTED
20228d4: 82 10 00 19 mov %i1, %g1 <== NOT EXECUTED
flags_to_test |= flags << 6;
20228d8: 83 2e 60 06 sll %i1, 6, %g1 <== NOT EXECUTED
20228dc: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED
if ((st_uid == 0) || (st_gid == gid))
20228e0: a7 2c e0 18 sll %l3, 0x18, %l3 <== NOT EXECUTED
20228e4: a4 0c a0 ff and %l2, 0xff, %l2 <== NOT EXECUTED
20228e8: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
20228ec: a5 2c a0 10 sll %l2, 0x10, %l2 <== NOT EXECUTED
20228f0: a6 14 c0 12 or %l3, %l2, %l3 <== NOT EXECUTED
20228f4: 80 a4 c0 08 cmp %l3, %o0 <== NOT EXECUTED
20228f8: 22 80 00 06 be,a 2022910 <rtems_rfs_rtems_eval_perms+0xa0><== NOT EXECUTED
20228fc: b3 2e 60 03 sll %i1, 3, %i1 <== NOT EXECUTED
2022900: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
2022904: 22 80 00 05 be,a 2022918 <rtems_rfs_rtems_eval_perms+0xa8><== NOT EXECUTED
2022908: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
flags_to_test |= flags << 3;
202290c: b3 2e 60 03 sll %i1, 3, %i1 <== NOT EXECUTED
2022910: 82 10 40 19 or %g1, %i1, %g1 <== NOT EXECUTED
2022914: a2 0c 60 ff and %l1, 0xff, %l1 <== NOT EXECUTED
2022918: a0 0c 20 ff and %l0, 0xff, %l0 <== NOT EXECUTED
202291c: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
2022920: a0 14 00 11 or %l0, %l1, %l0 <== NOT EXECUTED
2022924: a0 0c 21 ff and %l0, 0x1ff, %l0 <== NOT EXECUTED
2022928: 82 0c 00 01 and %l0, %g1, %g1 <== NOT EXECUTED
202292c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
2022930: b0 40 20 00 addx %g0, 0, %i0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PERMS))
printf("rtems-rfs: eval-perms: perms failed\n");
return false;
}
2022934: 81 c7 e0 08 ret <== NOT EXECUTED
2022938: 81 e8 00 00 restore <== NOT EXECUTED
02021218 <rtems_rfs_rtems_fchmod>:
* @return int
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
2021218: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202121c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021220: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED
*/
int
rtems_rfs_rtems_fchmod (rtems_filesystem_location_info_t* pathloc,
mode_t mode)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021224: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
printf ("rtems-rfs-rtems: fchmod: in: ino:%" PRId32 " mode:%06" PRIomode_t "\n",
ino, mode);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021228: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FCHMOD))
printf ("rtems-rfs-rtems: fchmod: in: ino:%" PRId32 " mode:%06" PRIomode_t "\n",
ino, mode);
rtems_rfs_rtems_lock (fs);
202122c: 7f ff ff 98 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021230: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021234: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2021238: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202123c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2021240: 40 00 72 36 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
2021244: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2021248: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
202124c: 02 80 00 09 be 2021270 <rtems_rfs_rtems_fchmod+0x58> <== NOT EXECUTED
2021250: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021254: 7f ff ff 96 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021258: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: opening inode", rc);
202125c: 40 00 8c 0e call 2044294 <__errno> <== NOT EXECUTED
2021260: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021264: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2021268: 81 c7 e0 08 ret <== NOT EXECUTED
202126c: 81 e8 00 00 restore <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
2021270: e4 08 60 03 ldub [ %g1 + 3 ], %l2 <== NOT EXECUTED
/*
* Verify I am the owner of the node or the super user.
*/
#if defined (RTEMS_POSIX_API)
uid = geteuid();
2021274: 40 00 1f 6f call 2029030 <geteuid> <== NOT EXECUTED
2021278: e6 08 60 02 ldub [ %g1 + 2 ], %l3 <== NOT EXECUTED
* @return uint16_t The user id (uid).
*/
static inline uint16_t
rtems_rfs_inode_get_uid (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->owner) & 0xffff;
202127c: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))
2021280: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2021284: 84 00 60 04 add %g1, 4, %g2 <== NOT EXECUTED
2021288: c8 08 a0 03 ldub [ %g2 + 3 ], %g4 <== NOT EXECUTED
202128c: c6 08 a0 02 ldub [ %g2 + 2 ], %g3 <== NOT EXECUTED
2021290: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
2021294: 86 10 c0 04 or %g3, %g4, %g3 <== NOT EXECUTED
2021298: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
202129c: 80 a0 c0 08 cmp %g3, %o0 <== NOT EXECUTED
20212a0: 02 80 00 10 be 20212e0 <rtems_rfs_rtems_fchmod+0xc8> <== NOT EXECUTED
20212a4: 85 32 20 10 srl %o0, 0x10, %g2 <== NOT EXECUTED
20212a8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
20212ac: 22 80 00 0e be,a 20212e4 <rtems_rfs_rtems_fchmod+0xcc> <== NOT EXECUTED
20212b0: a6 0c e0 ff and %l3, 0xff, %l3 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
20212b4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20212b8: 40 00 71 ef call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20212bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
20212c0: 7f ff ff 7b call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20212c4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: not owner", EPERM);
20212c8: 40 00 8b f3 call 2044294 <__errno> <== NOT EXECUTED
20212cc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20212d0: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20212d4: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20212d8: 81 c7 e0 08 ret <== NOT EXECUTED
20212dc: 81 e8 00 00 restore <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
20212e0: a6 0c e0 ff and %l3, 0xff, %l3 <== NOT EXECUTED
20212e4: a4 0c a0 ff and %l2, 0xff, %l2 <== NOT EXECUTED
20212e8: a7 2c e0 08 sll %l3, 8, %l3 <== NOT EXECUTED
}
#endif
imode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
20212ec: b2 0e 6f ff and %i1, 0xfff, %i1 <== NOT EXECUTED
20212f0: a4 14 c0 12 or %l3, %l2, %l2 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("fchmod: not owner", EPERM);
}
#endif
imode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
20212f4: a4 0c b0 00 and %l2, -4096, %l2 <== NOT EXECUTED
imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
20212f8: b2 14 80 19 or %l2, %i1, %i1 <== NOT EXECUTED
* @prarm mode The mode.
*/
static inline void
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{
rtems_rfs_write_u16 (&handle->node->mode, mode);
20212fc: 85 36 60 08 srl %i1, 8, %g2 <== NOT EXECUTED
2021300: c4 28 60 02 stb %g2, [ %g1 + 2 ] <== NOT EXECUTED
2021304: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_set_mode (&inode, imode);
rc = rtems_rfs_inode_close (fs, &inode);
2021308: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202130c: f2 28 60 03 stb %i1, [ %g1 + 3 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2021310: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2021314: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
2021318: 40 00 71 d7 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
202131c: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc > 0)
2021320: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021324: 04 80 00 09 ble 2021348 <rtems_rfs_rtems_fchmod+0x130> <== NOT EXECUTED
2021328: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202132c: 7f ff ff 60 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021330: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("fchmod: closing inode", rc);
2021334: 40 00 8b d8 call 2044294 <__errno> <== NOT EXECUTED
2021338: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202133c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021340: 81 c7 e0 08 ret <== NOT EXECUTED
2021344: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021348: 7f ff ff 59 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202134c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021350: 81 c7 e0 08 ret <== NOT EXECUTED
2021354: 81 e8 00 00 restore <== NOT EXECUTED
02021084 <rtems_rfs_rtems_fcntl>:
int
rtems_rfs_rtems_fcntl (int cmd,
rtems_libio_t* iop)
{
return 0;
}
2021084: 81 c3 e0 08 retl <== NOT EXECUTED
2021088: 90 10 20 00 clr %o0 <== NOT EXECUTED
020219f8 <rtems_rfs_rtems_fdatasync>:
* @param iop
* @return int
*/
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
20219f8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
20219fc: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
if (rc)
2021a00: b0 10 20 00 clr %i0 <== NOT EXECUTED
int
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)
{
int rc;
rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
2021a04: 40 00 62 0f call 203a240 <rtems_rfs_buffer_sync> <== NOT EXECUTED
2021a08: d0 00 60 34 ld [ %g1 + 0x34 ], %o0 <== NOT EXECUTED
if (rc)
2021a0c: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2021a10: 02 80 00 05 be 2021a24 <rtems_rfs_rtems_fdatasync+0x2c> <== NOT EXECUTED
2021a14: 01 00 00 00 nop <== NOT EXECUTED
return rtems_rfs_rtems_error ("fdatasync: sync", rc);
2021a18: 40 00 8a 1f call 2044294 <__errno> <== NOT EXECUTED
2021a1c: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff> <== NOT EXECUTED
2021a20: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
return 0;
}
2021a24: 81 c7 e0 08 ret <== NOT EXECUTED
2021a28: 81 e8 00 00 restore <== NOT EXECUTED
0203ecb0 <rtems_rfs_rtems_file_close>:
* @param iop
* @return int
*/
static int
rtems_rfs_rtems_file_close (rtems_libio_t* iop)
{
203ecb0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203ecb4: e2 06 20 3c ld [ %i0 + 0x3c ], %l1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
203ecb8: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);
203ecbc: c2 04 60 1c ld [ %l1 + 0x1c ], %g1 <== NOT EXECUTED
203ecc0: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ecc4: e0 00 60 98 ld [ %g1 + 0x98 ], %l0 <== NOT EXECUTED
203ecc8: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203eccc: 7f ff 37 89 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203ecd0: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_CLOSE))
printf("rtems-rfs: file-close: handle:%p\n", file);
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_file_close (fs, file);
203ecd4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ecd8: 7f ff f3 58 call 203ba38 <rtems_rfs_file_close> <== NOT EXECUTED
203ecdc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203ece0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203ece4: 04 80 00 06 ble 203ecfc <rtems_rfs_rtems_file_close+0x4c> <== NOT EXECUTED
203ece8: 01 00 00 00 nop <== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file-close: file close", rc);
203ecec: 40 00 15 6a call 2044294 <__errno> <== NOT EXECUTED
203ecf0: 01 00 00 00 nop <== NOT EXECUTED
203ecf4: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
203ecf8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203ecfc: 7f ff ff e5 call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ed00: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rc;
}
203ed04: 81 c7 e0 08 ret <== NOT EXECUTED
203ed08: 81 e8 00 00 restore <== NOT EXECUTED
0203ed98 <rtems_rfs_rtems_file_ftruncate>:
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
203ed98: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203ed9c: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203eda0: 92 10 20 00 clr %o1 <== NOT EXECUTED
203eda4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203eda8: 94 10 20 00 clr %o2 <== NOT EXECUTED
203edac: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
* @return int
*/
int
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,
rtems_off64_t length)
{
203edb0: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
203edb4: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203edb8: 7f ff 37 4e call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203edbc: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC))
printf("rtems-rfs: file-ftrunc: handle:%p length:%Ld\n", file, length);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
rc = rtems_rfs_file_set_size (file, length);
203edc0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203edc4: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203edc8: 7f ff f1 b5 call 203b49c <rtems_rfs_file_set_size> <== NOT EXECUTED
203edcc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (rc)
203edd0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203edd4: 22 80 00 07 be,a 203edf0 <rtems_rfs_rtems_file_ftruncate+0x58><== NOT EXECUTED
203edd8: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
203eddc: 40 00 15 2e call 2044294 <__errno> <== NOT EXECUTED
203ede0: 01 00 00 00 nop <== NOT EXECUTED
203ede4: f0 22 00 00 st %i0, [ %o0 ] <== NOT EXECUTED
203ede8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
iop->size = rtems_rfs_file_size (file);
203edec: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203edf0: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203edf4: 7f ff e9 29 call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203edf8: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203edfc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
rc = rtems_rfs_file_set_size (file, length);
if (rc)
rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);
iop->size = rtems_rfs_file_size (file);
203ee00: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203ee04: 7f ff ff a3 call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ee08: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return rc;
}
203ee0c: 81 c7 e0 08 ret <== NOT EXECUTED
203ee10: 81 e8 00 00 restore <== NOT EXECUTED
0203ec88 <rtems_rfs_rtems_file_ioctl>:
int
rtems_rfs_rtems_file_ioctl (rtems_libio_t* iop, uint32_t command, void* buffer)
{
return 0;
}
203ec88: 81 c3 e0 08 retl <== NOT EXECUTED
203ec8c: 90 10 20 00 clr %o0 <== NOT EXECUTED
0203ee14 <rtems_rfs_rtems_file_lseek>:
*/
rtems_off64_t
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,
rtems_off64_t offset,
int whence)
{
203ee14: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203ee18: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203ee1c: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ee20: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203ee24: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ee28: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203ee2c: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203ee30: 7f ff 37 30 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203ee34: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))
printf("rtems-rfs: file-lseek: handle:%p offset:%Ld\n", file, offset);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
203ee38: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
203ee3c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))
printf("rtems-rfs: file-lseek: handle:%p offset:%Ld\n", file, offset);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
203ee40: c4 3f bf f8 std %g2, [ %fp + -8 ] <== NOT EXECUTED
rc = rtems_rfs_file_seek (file, pos, &pos);
203ee44: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
203ee48: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
203ee4c: 7f ff f2 4e call 203b784 <rtems_rfs_file_seek> <== NOT EXECUTED
203ee50: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
203ee54: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
if (rc)
203ee58: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ee5c: 02 80 00 0b be 203ee88 <rtems_rfs_rtems_file_lseek+0x74> <== NOT EXECUTED
203ee60: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203ee64: 7f ff ff 8b call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ee68: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file_lseek: lseek", rc);
203ee6c: 40 00 15 0a call 2044294 <__errno> <== NOT EXECUTED
203ee70: 01 00 00 00 nop <== NOT EXECUTED
203ee74: 05 3f ff ff sethi %hi(0xfffffc00), %g2 <== NOT EXECUTED
203ee78: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
203ee7c: 84 10 a3 ff or %g2, 0x3ff, %g2 <== NOT EXECUTED
203ee80: 10 80 00 05 b 203ee94 <rtems_rfs_rtems_file_lseek+0x80> <== NOT EXECUTED
203ee84: 86 10 00 02 mov %g2, %g3 <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203ee88: 7f ff ff 82 call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ee8c: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return iop->offset;
203ee90: c4 1e 20 10 ldd [ %i0 + 0x10 ], %g2 <== NOT EXECUTED
}
203ee94: b2 10 00 03 mov %g3, %i1 <== NOT EXECUTED
203ee98: 81 c7 e0 08 ret <== NOT EXECUTED
203ee9c: 91 e8 00 02 restore %g0, %g2, %o0 <== NOT EXECUTED
0203ed0c <rtems_rfs_rtems_file_open>:
static int
rtems_rfs_rtems_file_open (rtems_libio_t* iop,
const char* pathname,
uint32_t flag,
uint32_t mode)
{
203ed0c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
203ed10: c2 06 20 2c ld [ %i0 + 0x2c ], %g1 <== NOT EXECUTED
203ed14: 92 10 20 00 clr %o1 <== NOT EXECUTED
203ed18: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
203ed1c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ed20: c2 04 20 7c ld [ %l0 + 0x7c ], %g1 <== NOT EXECUTED
203ed24: 7f ff 37 73 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203ed28: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_lock (fs);
ino = rtems_rfs_rtems_get_iop_ino (iop);
rc = rtems_rfs_file_open (fs, ino, flags, &file);
203ed2c: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
203ed30: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ed34: 94 10 20 00 clr %o2 <== NOT EXECUTED
203ed38: 7f ff f3 b3 call 203bc04 <rtems_rfs_file_open> <== NOT EXECUTED
203ed3c: 96 07 bf fc add %fp, -4, %o3 <== NOT EXECUTED
if (rc > 0)
203ed40: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
203ed44: 04 80 00 09 ble 203ed68 <rtems_rfs_rtems_file_open+0x5c> <== NOT EXECUTED
203ed48: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
203ed4c: 7f ff ff d1 call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ed50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file-open: open", rc);
203ed54: 40 00 15 50 call 2044294 <__errno> <== NOT EXECUTED
203ed58: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ed5c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
203ed60: 81 c7 e0 08 ret <== NOT EXECUTED
203ed64: 81 e8 00 00 restore <== NOT EXECUTED
}
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN))
printf("rtems-rfs: file-open: handle:%p\n", file);
iop->size = rtems_rfs_file_size (file);
203ed68: d2 00 60 1c ld [ %g1 + 0x1c ], %o1 <== NOT EXECUTED
203ed6c: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203ed70: 7f ff e9 4a call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203ed74: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
iop->file_info = file;
203ed78: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
}
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN))
printf("rtems-rfs: file-open: handle:%p\n", file);
iop->size = rtems_rfs_file_size (file);
203ed7c: d0 3e 20 08 std %o0, [ %i0 + 8 ] <== NOT EXECUTED
iop->file_info = file;
203ed80: c2 26 20 3c st %g1, [ %i0 + 0x3c ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
203ed84: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203ed88: 7f ff ff c2 call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ed8c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
203ed90: 81 c7 e0 08 ret <== NOT EXECUTED
203ed94: 81 e8 00 00 restore <== NOT EXECUTED
0203f02c <rtems_rfs_rtems_file_read>:
*/
ssize_t
rtems_rfs_rtems_file_read (rtems_libio_t* iop,
void* buffer,
size_t count)
{
203f02c: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203f030: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203f034: 92 10 20 00 clr %o1 <== NOT EXECUTED
203f038: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203f03c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203f040: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
203f044: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203f048: 7f ff 36 aa call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203f04c: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
203f050: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_READ))
printf("rtems-rfs: file-read: handle:%p count:%zd\n", file, count);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
203f054: e2 06 20 10 ld [ %i0 + 0x10 ], %l1 <== NOT EXECUTED
203f058: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203f05c: e4 06 20 14 ld [ %i0 + 0x14 ], %l2 <== NOT EXECUTED
203f060: 7f ff e8 8e call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203f064: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
if (pos < rtems_rfs_file_size (file))
203f068: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
203f06c: 38 80 00 2f bgu,a 203f128 <rtems_rfs_rtems_file_read+0xfc><== NOT EXECUTED
203f070: b0 10 20 00 clr %i0 <== NOT EXECUTED
203f074: 80 a2 00 11 cmp %o0, %l1 <== NOT EXECUTED
203f078: 12 80 00 04 bne 203f088 <rtems_rfs_rtems_file_read+0x5c> <== NOT EXECUTED
203f07c: 80 a2 40 12 cmp %o1, %l2 <== NOT EXECUTED
203f080: 38 80 00 2a bgu,a 203f128 <rtems_rfs_rtems_file_read+0xfc><== NOT EXECUTED
203f084: b0 10 20 00 clr %i0 <== NOT EXECUTED
203f088: 10 80 00 2e b 203f140 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203f08c: b0 10 20 00 clr %i0 <== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
203f090: 7f ff f0 9f call 203b30c <rtems_rfs_file_io_start> <== NOT EXECUTED
203f094: 01 00 00 00 nop <== NOT EXECUTED
203f098: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
if (rc > 0)
203f09c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
203f0a0: 04 80 00 06 ble 203f0b8 <rtems_rfs_rtems_file_read+0x8c> <== NOT EXECUTED
203f0a4: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
{
read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
203f0a8: 40 00 14 7b call 2044294 <__errno> <== NOT EXECUTED
203f0ac: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203f0b0: 10 80 00 24 b 203f140 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203f0b4: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
break;
}
if (size == 0)
203f0b8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203f0bc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203f0c0: 02 80 00 20 be 203f140 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203f0c4: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
break;
if (size > count)
203f0c8: 38 80 00 02 bgu,a 203f0d0 <rtems_rfs_rtems_file_read+0xa4><== NOT EXECUTED
203f0cc: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
203f0d0: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203f0d4: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203f0d8: d2 00 a0 24 ld [ %g2 + 0x24 ], %o1 <== NOT EXECUTED
203f0dc: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203f0e0: 40 00 21 b9 call 20477c4 <memcpy> <== NOT EXECUTED
203f0e4: 92 02 40 01 add %o1, %g1, %o1 <== NOT EXECUTED
data += size;
203f0e8: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED
count -= size;
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
203f0ec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203f0f0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203f0f4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203f0f8: 7f ff f1 d7 call 203b854 <rtems_rfs_file_io_end> <== NOT EXECUTED
203f0fc: b0 06 00 11 add %i0, %l1, %i0 <== NOT EXECUTED
if (rc > 0)
203f100: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203f104: 14 80 00 05 bg 203f118 <rtems_rfs_rtems_file_read+0xec> <== NOT EXECUTED
203f108: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
if (size > count)
size = count;
memcpy (data, rtems_rfs_file_data (file), size);
data += size;
203f10c: b2 06 40 11 add %i1, %l1, %i1 <== NOT EXECUTED
count -= size;
203f110: 10 80 00 07 b 203f12c <rtems_rfs_rtems_file_read+0x100> <== NOT EXECUTED
203f114: b4 26 80 11 sub %i2, %l1, %i2 <== NOT EXECUTED
read += size;
rc = rtems_rfs_file_io_end (file, size, true);
if (rc > 0)
{
read = rtems_rfs_rtems_error ("file-read: read: io-end", rc);
203f118: 40 00 14 5f call 2044294 <__errno> <== NOT EXECUTED
203f11c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203f120: 10 80 00 08 b 203f140 <rtems_rfs_rtems_file_read+0x114> <== NOT EXECUTED
203f124: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
{
while (count)
{
size_t size;
rc = rtems_rfs_file_io_start (file, &size, true);
203f128: a4 07 bf fc add %fp, -4, %l2 <== NOT EXECUTED
203f12c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203f130: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
pos = iop->offset;
if (pos < rtems_rfs_file_size (file))
{
while (count)
203f134: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203f138: 12 bf ff d6 bne 203f090 <rtems_rfs_rtems_file_read+0x64> <== NOT EXECUTED
203f13c: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
break;
}
}
}
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203f140: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203f144: 7f ff fe d3 call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203f148: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return read;
}
203f14c: 81 c7 e0 08 ret <== NOT EXECUTED
203f150: 81 e8 00 00 restore <== NOT EXECUTED
0203eea0 <rtems_rfs_rtems_file_write>:
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
203eea0: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_handle* file = iop->file_info;
203eea4: e0 06 20 3c ld [ %i0 + 0x3c ], %l0 <== NOT EXECUTED
203eea8: 92 10 20 00 clr %o1 <== NOT EXECUTED
203eeac: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203eeb0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203eeb4: c2 00 60 98 ld [ %g1 + 0x98 ], %g1 <== NOT EXECUTED
*/
ssize_t
rtems_rfs_rtems_file_write (rtems_libio_t* iop,
const void* buffer,
size_t count)
{
203eeb8: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
203eebc: c2 00 60 7c ld [ %g1 + 0x7c ], %g1 <== NOT EXECUTED
203eec0: 7f ff 37 0c call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
203eec4: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
* size of file we are still past the end of the file as positions number
* from 0. For a specific position we need a file that has a length of one
* more.
*/
if (pos >= rtems_rfs_file_size (file))
203eec8: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE))
printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));
pos = iop->offset;
203eecc: e4 1e 20 10 ldd [ %i0 + 0x10 ], %l2 <== NOT EXECUTED
203eed0: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203eed4: 7f ff e8 f1 call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203eed8: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
* size of file we are still past the end of the file as positions number
* from 0. For a specific position we need a file that has a length of one
* more.
*/
if (pos >= rtems_rfs_file_size (file))
203eedc: 80 a2 00 12 cmp %o0, %l2 <== NOT EXECUTED
203eee0: 38 80 00 19 bgu,a 203ef44 <rtems_rfs_rtems_file_write+0xa4><== NOT EXECUTED
203eee4: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
203eee8: 80 a2 00 12 cmp %o0, %l2 <== NOT EXECUTED
203eeec: 12 80 00 06 bne 203ef04 <rtems_rfs_rtems_file_write+0x64> <== NOT EXECUTED
203eef0: 86 84 e0 01 addcc %l3, 1, %g3 <== NOT EXECUTED
203eef4: 80 a2 40 13 cmp %o1, %l3 <== NOT EXECUTED
203eef8: 38 80 00 13 bgu,a 203ef44 <rtems_rfs_rtems_file_write+0xa4><== NOT EXECUTED
203eefc: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
{
rc = rtems_rfs_file_set_size (file, pos + 1);
203ef00: 86 84 e0 01 addcc %l3, 1, %g3 <== NOT EXECUTED
203ef04: 84 44 a0 00 addx %l2, 0, %g2 <== NOT EXECUTED
203ef08: 94 10 00 03 mov %g3, %o2 <== NOT EXECUTED
203ef0c: 92 10 00 02 mov %g2, %o1 <== NOT EXECUTED
203ef10: 7f ff f1 63 call 203b49c <rtems_rfs_file_set_size> <== NOT EXECUTED
203ef14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc)
203ef18: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
203ef1c: 02 80 00 0a be 203ef44 <rtems_rfs_rtems_file_write+0xa4> <== NOT EXECUTED
203ef20: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
return rtems_rfs_rtems_error ("file-write: write extend", rc);
203ef24: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
if (pos >= rtems_rfs_file_size (file))
{
rc = rtems_rfs_file_set_size (file, pos + 1);
if (rc)
{
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203ef28: 7f ff ff 5a call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203ef2c: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("file-write: write extend", rc);
203ef30: 40 00 14 d9 call 2044294 <__errno> <== NOT EXECUTED
203ef34: 01 00 00 00 nop <== NOT EXECUTED
203ef38: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
203ef3c: 81 c7 e0 08 ret <== NOT EXECUTED
203ef40: 81 e8 00 00 restore <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
203ef44: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
203ef48: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
203ef4c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203ef50: 96 04 20 10 add %l0, 0x10, %o3 <== NOT EXECUTED
203ef54: 7f ff e8 a2 call 20391dc <rtems_rfs_block_get_bpos> <== NOT EXECUTED
203ef58: b0 10 20 00 clr %i0 <== NOT EXECUTED
while (count)
203ef5c: 10 80 00 25 b 203eff0 <rtems_rfs_rtems_file_write+0x150> <== NOT EXECUTED
203ef60: a6 07 bf fc add %fp, -4, %l3 <== NOT EXECUTED
{
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
203ef64: 7f ff f0 ea call 203b30c <rtems_rfs_file_io_start> <== NOT EXECUTED
203ef68: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
}
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
203ef6c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
while (count)
{
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
if (rc)
203ef70: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203ef74: 02 80 00 06 be 203ef8c <rtems_rfs_rtems_file_write+0xec> <== NOT EXECUTED
203ef78: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write open", rc);
203ef7c: 40 00 14 c6 call 2044294 <__errno> <== NOT EXECUTED
203ef80: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203ef84: 10 80 00 20 b 203f004 <rtems_rfs_rtems_file_write+0x164> <== NOT EXECUTED
203ef88: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
break;
}
if (size > count)
203ef8c: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
203ef90: 80 a0 40 1a cmp %g1, %i2 <== NOT EXECUTED
203ef94: 38 80 00 02 bgu,a 203ef9c <rtems_rfs_rtems_file_write+0xfc><== NOT EXECUTED
203ef98: f4 27 bf fc st %i2, [ %fp + -4 ] <== NOT EXECUTED
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
203ef9c: c4 04 20 0c ld [ %l0 + 0xc ], %g2 <== NOT EXECUTED
203efa0: c2 04 20 14 ld [ %l0 + 0x14 ], %g1 <== NOT EXECUTED
203efa4: d0 00 a0 24 ld [ %g2 + 0x24 ], %o0 <== NOT EXECUTED
203efa8: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
203efac: 40 00 22 06 call 20477c4 <memcpy> <== NOT EXECUTED
203efb0: 90 02 00 01 add %o0, %g1, %o0 <== NOT EXECUTED
data += size;
203efb4: e4 07 bf fc ld [ %fp + -4 ], %l2 <== NOT EXECUTED
count -= size;
write += size;
rc = rtems_rfs_file_io_end (file, size, false);
203efb8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203efbc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203efc0: 94 10 20 00 clr %o2 <== NOT EXECUTED
203efc4: 7f ff f2 24 call 203b854 <rtems_rfs_file_io_end> <== NOT EXECUTED
203efc8: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED
if (rc)
203efcc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
203efd0: 02 80 00 06 be 203efe8 <rtems_rfs_rtems_file_write+0x148> <== NOT EXECUTED
203efd4: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
{
write = rtems_rfs_rtems_error ("file-write: write close", rc);
203efd8: 40 00 14 af call 2044294 <__errno> <== NOT EXECUTED
203efdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
203efe0: 10 80 00 09 b 203f004 <rtems_rfs_rtems_file_write+0x164> <== NOT EXECUTED
203efe4: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
if (size > count)
size = count;
memcpy (rtems_rfs_file_data (file), data, size);
data += size;
203efe8: b2 06 40 12 add %i1, %l2, %i1 <== NOT EXECUTED
count -= size;
203efec: b4 26 80 12 sub %i2, %l2, %i2 <== NOT EXECUTED
while (count)
{
size_t size = count;
rc = rtems_rfs_file_io_start (file, &size, false);
203eff0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203eff4: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
}
rtems_rfs_file_set_bpos (file, pos);
while (count)
203eff8: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
203effc: 12 bf ff da bne 203ef64 <rtems_rfs_rtems_file_write+0xc4> <== NOT EXECUTED
203f000: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
write = rtems_rfs_rtems_error ("file-write: write close", rc);
break;
}
}
iop->size = rtems_rfs_file_size (file);
203f004: d2 04 20 1c ld [ %l0 + 0x1c ], %o1 <== NOT EXECUTED
203f008: d0 02 60 98 ld [ %o1 + 0x98 ], %o0 <== NOT EXECUTED
203f00c: 7f ff e8 a3 call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
203f010: 92 02 60 84 add %o1, 0x84, %o1 <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203f014: c2 04 20 1c ld [ %l0 + 0x1c ], %g1 <== NOT EXECUTED
write = rtems_rfs_rtems_error ("file-write: write close", rc);
break;
}
}
iop->size = rtems_rfs_file_size (file);
203f018: d0 3c 60 08 std %o0, [ %l1 + 8 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));
203f01c: 7f ff ff 1d call 203ec90 <rtems_rfs_rtems_unlock> <== NOT EXECUTED
203f020: d0 00 60 98 ld [ %g1 + 0x98 ], %o0 <== NOT EXECUTED
return write;
}
203f024: 81 c7 e0 08 ret <== NOT EXECUTED
203f028: 81 e8 00 00 restore <== NOT EXECUTED
0202107c <rtems_rfs_rtems_freenodinfo>:
int
rtems_rfs_rtems_freenodinfo (rtems_filesystem_location_info_t* pathloc)
{
return 0;
}
202107c: 81 c3 e0 08 retl <== NOT EXECUTED
2021080: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
020227a8 <rtems_rfs_rtems_imode>:
{
/*
* Mapping matches RTEMS so no need to change.
*/
return mode;
}
20227a8: 81 c3 e0 08 retl <== NOT EXECUTED
02021560 <rtems_rfs_rtems_initialise>:
*/
int
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
const void* data)
{
2021560: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
/*
* Parse the options the user specifiies.
*/
while (options)
{
printf ("options=%s\n", options);
2021564: 2b 00 81 8e sethi %hi(0x2063800), %l5 <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2021568: 29 00 81 8e sethi %hi(0x2063800), %l4 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
202156c: 27 00 81 8e sethi %hi(0x2063800), %l3 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
else if (strncmp (options, "max-held-bufs",
2021570: 21 00 81 8e sethi %hi(0x2063800), %l0 <== NOT EXECUTED
/*
* Parse the options the user specifiies.
*/
while (options)
{
printf ("options=%s\n", options);
2021574: aa 15 60 a0 or %l5, 0xa0, %l5 <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2021578: a8 15 20 b0 or %l4, 0xb0, %l4 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
else if (strncmp (options, "no-local-cache",
202157c: a6 14 e0 c0 or %l3, 0xc0, %l3 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
else if (strncmp (options, "max-held-bufs",
2021580: a0 14 20 d0 or %l0, 0xd0, %l0 <== NOT EXECUTED
{
rtems_rfs_rtems_private* rtems;
rtems_rfs_file_system* fs;
uint32_t flags = 0;
uint32_t max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;
const char* options = data;
2021584: a4 10 20 05 mov 5, %l2 <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
2021588: 10 80 00 2e b 2021640 <rtems_rfs_rtems_initialise+0xe0> <== NOT EXECUTED
202158c: a2 10 20 00 clr %l1 <== NOT EXECUTED
{
printf ("options=%s\n", options);
2021590: 40 00 9d 3c call 2048a80 <printf> <== NOT EXECUTED
2021594: 01 00 00 00 nop <== NOT EXECUTED
if (strncmp (options, "hold-bitmaps",
2021598: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
202159c: 92 10 00 14 mov %l4, %o1 <== NOT EXECUTED
20215a0: 40 00 a7 61 call 204b324 <strncmp> <== NOT EXECUTED
20215a4: 94 10 20 0c mov 0xc, %o2 <== NOT EXECUTED
20215a8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20215ac: 12 80 00 04 bne 20215bc <rtems_rfs_rtems_initialise+0x5c> <== NOT EXECUTED
20215b0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
sizeof ("hold-bitmaps") - 1) == 0)
flags |= RTEMS_RFS_FS_BITMAPS_HOLD;
20215b4: 10 80 00 19 b 2021618 <rtems_rfs_rtems_initialise+0xb8> <== NOT EXECUTED
20215b8: a2 14 60 01 or %l1, 1, %l1 <== NOT EXECUTED
else if (strncmp (options, "no-local-cache",
20215bc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20215c0: 40 00 a7 59 call 204b324 <strncmp> <== NOT EXECUTED
20215c4: 94 10 20 0e mov 0xe, %o2 <== NOT EXECUTED
20215c8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20215cc: 12 80 00 04 bne 20215dc <rtems_rfs_rtems_initialise+0x7c> <== NOT EXECUTED
20215d0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
sizeof ("no-local-cache") - 1) == 0)
flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;
20215d4: 10 80 00 11 b 2021618 <rtems_rfs_rtems_initialise+0xb8> <== NOT EXECUTED
20215d8: a2 14 60 02 or %l1, 2, %l1 <== NOT EXECUTED
else if (strncmp (options, "max-held-bufs",
20215dc: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
20215e0: 40 00 a7 51 call 204b324 <strncmp> <== NOT EXECUTED
20215e4: 94 10 20 0d mov 0xd, %o2 <== NOT EXECUTED
20215e8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20215ec: 12 80 00 07 bne 2021608 <rtems_rfs_rtems_initialise+0xa8> <== NOT EXECUTED
20215f0: 92 10 20 00 clr %o1 <== NOT EXECUTED
sizeof ("max-held-bufs") - 1) == 0)
{
max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
20215f4: 90 06 60 0e add %i1, 0xe, %o0 <== NOT EXECUTED
20215f8: 40 00 ac 98 call 204c858 <strtoul> <== NOT EXECUTED
20215fc: 94 10 20 00 clr %o2 <== NOT EXECUTED
2021600: 10 80 00 06 b 2021618 <rtems_rfs_rtems_initialise+0xb8> <== NOT EXECUTED
2021604: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
}
else
return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
2021608: 40 00 8b 23 call 2044294 <__errno> <== NOT EXECUTED
202160c: 01 00 00 00 nop <== NOT EXECUTED
2021610: 10 80 00 17 b 202166c <rtems_rfs_rtems_initialise+0x10c> <== NOT EXECUTED
2021614: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
options = strchr (options, ',');
2021618: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
202161c: 40 00 a4 66 call 204a7b4 <strchr> <== NOT EXECUTED
2021620: 92 10 20 2c mov 0x2c, %o1 <== NOT EXECUTED
if (options)
2021624: b2 92 20 00 orcc %o0, 0, %i1 <== NOT EXECUTED
2021628: 02 80 00 09 be 202164c <rtems_rfs_rtems_initialise+0xec> <== NOT EXECUTED
202162c: b2 06 60 01 inc %i1 <== NOT EXECUTED
{
++options;
if (*options == '\0')
2021630: c2 4e 40 00 ldsb [ %i1 ], %g1 <== NOT EXECUTED
2021634: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2021638: 02 80 00 05 be 202164c <rtems_rfs_rtems_initialise+0xec> <== NOT EXECUTED
202163c: 01 00 00 00 nop <== NOT EXECUTED
int rc;
/*
* Parse the options the user specifiies.
*/
while (options)
2021640: 92 96 60 00 orcc %i1, 0, %o1 <== NOT EXECUTED
2021644: 12 bf ff d3 bne 2021590 <rtems_rfs_rtems_initialise+0x30> <== NOT EXECUTED
2021648: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
if (*options == '\0')
options = NULL;
}
}
rtems = malloc (sizeof (rtems_rfs_rtems_private));
202164c: 7f ff 9c cc call 200897c <malloc> <== NOT EXECUTED
2021650: 90 10 20 04 mov 4, %o0 <== NOT EXECUTED
if (!rtems)
2021654: a0 92 20 00 orcc %o0, 0, %l0 <== NOT EXECUTED
2021658: 12 80 00 07 bne 2021674 <rtems_rfs_rtems_initialise+0x114><== NOT EXECUTED
202165c: 01 00 00 00 nop <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);
2021660: 40 00 8b 0d call 2044294 <__errno> <== NOT EXECUTED
2021664: 01 00 00 00 nop <== NOT EXECUTED
2021668: 82 10 20 0c mov 0xc, %g1 ! c <PROM_START+0xc> <== NOT EXECUTED
202166c: 10 80 00 21 b 20216f0 <rtems_rfs_rtems_initialise+0x190> <== NOT EXECUTED
2021670: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
memset (rtems, 0, sizeof (rtems_rfs_rtems_private));
rc = rtems_rfs_mutex_create (&rtems->access);
2021674: 40 00 74 12 call 203e6bc <rtems_rfs_mutex_create> <== NOT EXECUTED
2021678: c0 24 00 00 clr [ %l0 ] <== NOT EXECUTED
if (rc > 0)
202167c: a6 92 20 00 orcc %o0, 0, %l3 <== NOT EXECUTED
2021680: 24 80 00 09 ble,a 20216a4 <rtems_rfs_rtems_initialise+0x144><== NOT EXECUTED
2021684: d0 04 00 00 ld [ %l0 ], %o0 <== NOT EXECUTED
{
free (rtems);
2021688: 7f ff 9a f6 call 2008260 <free> <== NOT EXECUTED
202168c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
2021690: 40 00 8b 01 call 2044294 <__errno> <== NOT EXECUTED
2021694: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021698: e6 22 00 00 st %l3, [ %o0 ] <== NOT EXECUTED
202169c: 81 c7 e0 08 ret <== NOT EXECUTED
20216a0: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
20216a4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20216a8: 7f ff ad 12 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20216ac: 94 10 20 00 clr %o2 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
20216b0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20216b4: 22 80 00 1d be,a 2021728 <rtems_rfs_rtems_initialise+0x1c8><== NOT EXECUTED
20216b8: d0 06 20 70 ld [ %i0 + 0x70 ], %o0 <== NOT EXECUTED
}
rc = rtems_rfs_mutex_lock (&rtems->access);
if (rc > 0)
{
rtems_rfs_mutex_destroy (&rtems->access);
20216bc: 40 00 73 f8 call 203e69c <rtems_rfs_mutex_destroy> <== NOT EXECUTED
20216c0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
free (rtems);
20216c4: 7f ff 9a e7 call 2008260 <free> <== NOT EXECUTED
20216c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
20216cc: 40 00 8a f2 call 2044294 <__errno> <== NOT EXECUTED
20216d0: 01 00 00 00 nop <== NOT EXECUTED
20216d4: 10 bf ff e6 b 202166c <rtems_rfs_rtems_initialise+0x10c> <== NOT EXECUTED
20216d8: 82 10 20 05 mov 5, %g1 ! 5 <PROM_START+0x5> <== NOT EXECUTED
}
rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
if (rc)
{
free (rtems);
20216dc: 7f ff 9a e1 call 2008260 <free> <== NOT EXECUTED
20216e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("initialise: open", rc);
20216e4: 40 00 8a ec call 2044294 <__errno> <== NOT EXECUTED
20216e8: 01 00 00 00 nop <== NOT EXECUTED
20216ec: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20216f0: 81 c7 e0 08 ret <== NOT EXECUTED
20216f4: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
}
mt_entry->fs_info = fs;
mt_entry->mt_fs_root.node_access = (void*) RTEMS_RFS_ROOT_INO;
20216f8: c2 26 20 1c st %g1, [ %i0 + 0x1c ] <== NOT EXECUTED
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
20216fc: 03 00 81 a3 sethi %hi(0x2068c00), %g1 <== NOT EXECUTED
2021700: 82 10 60 88 or %g1, 0x88, %g1 ! 2068c88 <rtems_rfs_rtems_dir_handlers><== NOT EXECUTED
2021704: c2 26 20 24 st %g1, [ %i0 + 0x24 ] <== NOT EXECUTED
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
2021708: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED
202170c: 82 10 61 20 or %g1, 0x120, %g1 ! 2063920 <rtems_rfs_ops> <== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
2021710: d0 26 20 34 st %o0, [ %i0 + 0x34 ] <== NOT EXECUTED
mt_entry->mt_fs_root.node_access = (void*) RTEMS_RFS_ROOT_INO;
mt_entry->mt_fs_root.handlers = &rtems_rfs_rtems_dir_handlers;
mt_entry->mt_fs_root.ops = &rtems_rfs_ops;
2021714: c2 26 20 28 st %g1, [ %i0 + 0x28 ] <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2021718: 7f ff fe 65 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202171c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021720: 81 c7 e0 08 ret <== NOT EXECUTED
2021724: 81 e8 00 00 restore <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
free (rtems);
return rtems_rfs_rtems_error ("initialise: cannot lock access mutex", rc);
}
rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
2021728: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
202172c: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2021730: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2021734: 40 00 69 f8 call 203bf14 <rtems_rfs_fs_open> <== NOT EXECUTED
2021738: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc)
202173c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021740: 12 bf ff e7 bne 20216dc <rtems_rfs_rtems_initialise+0x17c><== NOT EXECUTED
2021744: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
{
free (rtems);
return rtems_rfs_rtems_error ("initialise: open", rc);
}
mt_entry->fs_info = fs;
2021748: 10 bf ff ec b 20216f8 <rtems_rfs_rtems_initialise+0x198> <== NOT EXECUTED
202174c: d0 07 bf fc ld [ %fp + -4 ], %o0 <== NOT EXECUTED
020217e4 <rtems_rfs_rtems_link>:
*/
int
rtems_rfs_rtems_link (rtems_filesystem_location_info_t* to_loc,
rtems_filesystem_location_info_t* parent_loc,
const char* name)
{
20217e4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
20217e8: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
20217ec: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
int
rtems_rfs_rtems_link (rtems_filesystem_location_info_t* to_loc,
rtems_filesystem_location_info_t* parent_loc,
const char* name)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (to_loc);
20217f0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino target = rtems_rfs_rtems_get_pathloc_ino (to_loc);
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
20217f4: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_LINK))
printf ("rtems-rfs-rtems: link: in: parent:%" PRId32 " target:%" PRId32 "\n",
parent, target);
rtems_rfs_rtems_lock (fs);
20217f8: 7f ff fe 25 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20217fc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_link (fs, name, strlen (name), parent, target, false);
2021800: 40 00 a6 61 call 204b184 <strlen> <== NOT EXECUTED
2021804: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2021808: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
202180c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2021810: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2021814: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021818: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
202181c: 40 00 73 45 call 203e530 <rtems_rfs_link> <== NOT EXECUTED
2021820: 9a 10 20 00 clr %o5 <== NOT EXECUTED
if (rc)
2021824: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021828: 02 80 00 09 be 202184c <rtems_rfs_rtems_link+0x68> <== NOT EXECUTED
202182c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021830: 7f ff fe 1f call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021834: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("link: linking", rc);
2021838: 40 00 8a 97 call 2044294 <__errno> <== NOT EXECUTED
202183c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021840: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021844: 81 c7 e0 08 ret <== NOT EXECUTED
2021848: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
202184c: 7f ff fe 18 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021850: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021854: 81 c7 e0 08 ret <== NOT EXECUTED
2021858: 81 e8 00 00 restore <== NOT EXECUTED
0202108c <rtems_rfs_rtems_lock>:
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
202108c: c2 02 20 7c ld [ %o0 + 0x7c ], %g1 <== NOT EXECUTED
2021090: 92 10 20 00 clr %o1 <== NOT EXECUTED
2021094: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2021098: 94 10 20 00 clr %o2 <== NOT EXECUTED
202109c: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
20210a0: 7f ff ae 94 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
20210a4: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
02021a2c <rtems_rfs_rtems_mknod>:
int
rtems_rfs_rtems_mknod (const char *name,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc)
{
2021a2c: 9d e3 bf 60 save %sp, -160, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021a30: c2 07 20 10 ld [ %i4 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021a34: e6 07 00 00 ld [ %i4 ], %l3 <== NOT EXECUTED
uid_t uid;
gid_t gid;
int rc;
#if defined(RTEMS_POSIX_API)
uid = geteuid ();
2021a38: 40 00 1d 7e call 2029030 <geteuid> <== NOT EXECUTED
2021a3c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
gid = getegid ();
2021a40: 40 00 1d 78 call 2029020 <getegid> <== NOT EXECUTED
2021a44: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2021a48: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
2021a4c: 7f ff fd 90 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021a50: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
2021a54: 40 00 a5 cc call 204b184 <strlen> <== NOT EXECUTED
2021a58: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2021a5c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
2021a60: 40 00 03 52 call 20227a8 <rtems_rfs_rtems_imode> <== NOT EXECUTED
2021a64: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
2021a68: 82 07 bf fc add %fp, -4, %g1 <== NOT EXECUTED
2021a6c: a3 2c 60 10 sll %l1, 0x10, %l1 <== NOT EXECUTED
2021a70: a3 34 60 10 srl %l1, 0x10, %l1 <== NOT EXECUTED
2021a74: 99 2a 20 10 sll %o0, 0x10, %o4 <== NOT EXECUTED
2021a78: e2 23 a0 5c st %l1, [ %sp + 0x5c ] <== NOT EXECUTED
2021a7c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2021a80: a9 2d 20 10 sll %l4, 0x10, %l4 <== NOT EXECUTED
2021a84: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
2021a88: a9 35 20 10 srl %l4, 0x10, %l4 <== NOT EXECUTED
2021a8c: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
2021a90: e8 23 a0 60 st %l4, [ %sp + 0x60 ] <== NOT EXECUTED
2021a94: 99 33 20 10 srl %o4, 0x10, %o4 <== NOT EXECUTED
2021a98: c2 23 a0 64 st %g1, [ %sp + 0x64 ] <== NOT EXECUTED
2021a9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021aa0: 40 00 70 7f call 203dc9c <rtems_rfs_inode_create> <== NOT EXECUTED
2021aa4: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
rtems_rfs_rtems_imode (mode),
1, uid, gid, &ino);
if (rc > 0)
2021aa8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021aac: 14 80 00 49 bg 2021bd0 <rtems_rfs_rtems_mknod+0x1a4> <== NOT EXECUTED
2021ab0: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
return rtems_rfs_rtems_error ("mknod: inode create", rc);
}
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021ab4: a2 07 bf d4 add %fp, -44, %l1 <== NOT EXECUTED
2021ab8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021abc: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2021ac0: 40 00 70 16 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
2021ac4: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2021ac8: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021acc: 04 80 00 09 ble 2021af0 <rtems_rfs_rtems_mknod+0xc4> <== NOT EXECUTED
2021ad0: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021ad4: 7f ff fd 76 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021ad8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: inode open", rc);
2021adc: 40 00 89 ee call 2044294 <__errno> <== NOT EXECUTED
2021ae0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021ae4: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2021ae8: 81 c7 e0 08 ret <== NOT EXECUTED
2021aec: 81 e8 00 00 restore <== NOT EXECUTED
}
if (S_ISDIR(mode) || S_ISREG(mode))
2021af0: b2 0e 40 01 and %i1, %g1, %i1 <== NOT EXECUTED
2021af4: 03 00 00 20 sethi %hi(0x8000), %g1 <== NOT EXECUTED
2021af8: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2021afc: 02 80 00 2f be 2021bb8 <rtems_rfs_rtems_mknod+0x18c> <== NOT EXECUTED
2021b00: 03 00 00 10 sethi %hi(0x4000), %g1 <== NOT EXECUTED
2021b04: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2021b08: 02 80 00 2c be 2021bb8 <rtems_rfs_rtems_mknod+0x18c> <== NOT EXECUTED
2021b0c: 03 00 00 18 sethi %hi(0x6000), %g1 <== NOT EXECUTED
{
}
else if (S_ISCHR (mode) || S_ISBLK (mode))
2021b10: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2021b14: 02 80 00 06 be 2021b2c <rtems_rfs_rtems_mknod+0x100> <== NOT EXECUTED
2021b18: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b1c: 03 00 00 08 sethi %hi(0x2000), %g1 <== NOT EXECUTED
2021b20: 80 a6 40 01 cmp %i1, %g1 <== NOT EXECUTED
2021b24: 12 80 00 1a bne 2021b8c <rtems_rfs_rtems_mknod+0x160> <== NOT EXECUTED
2021b28: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
* @param bno The block number.
*/
static inline void
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{
rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);
2021b2c: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
2021b30: c4 28 60 1c stb %g2, [ %g1 + 0x1c ] <== NOT EXECUTED
2021b34: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b38: 85 36 a0 10 srl %i2, 0x10, %g2 <== NOT EXECUTED
2021b3c: c4 28 60 1d stb %g2, [ %g1 + 0x1d ] <== NOT EXECUTED
2021b40: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b44: 85 36 a0 08 srl %i2, 8, %g2 <== NOT EXECUTED
2021b48: c4 28 60 1e stb %g2, [ %g1 + 0x1e ] <== NOT EXECUTED
2021b4c: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b50: 85 36 e0 18 srl %i3, 0x18, %g2 <== NOT EXECUTED
2021b54: f4 28 60 1f stb %i2, [ %g1 + 0x1f ] <== NOT EXECUTED
2021b58: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b5c: 87 36 e0 10 srl %i3, 0x10, %g3 <== NOT EXECUTED
2021b60: c4 28 60 20 stb %g2, [ %g1 + 0x20 ] <== NOT EXECUTED
2021b64: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b68: 85 36 e0 08 srl %i3, 8, %g2 <== NOT EXECUTED
2021b6c: c6 28 60 21 stb %g3, [ %g1 + 0x21 ] <== NOT EXECUTED
2021b70: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b74: c4 28 60 22 stb %g2, [ %g1 + 0x22 ] <== NOT EXECUTED
2021b78: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2021b7c: f6 28 60 23 stb %i3, [ %g1 + 0x23 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
2021b80: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2021b84: 10 80 00 0d b 2021bb8 <rtems_rfs_rtems_mknod+0x18c> <== NOT EXECUTED
2021b88: c2 2f bf e4 stb %g1, [ %fp + -28 ] <== NOT EXECUTED
rtems_rfs_inode_set_block (&inode, 0, major);
rtems_rfs_inode_set_block (&inode, 1, minor);
}
else
{
rtems_rfs_inode_close (fs, &inode);
2021b8c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2021b90: 40 00 6f b9 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2021b94: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_rtems_unlock (fs);
2021b98: 7f ff fd 45 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021b9c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);
2021ba0: 40 00 89 bd call 2044294 <__errno> <== NOT EXECUTED
2021ba4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021ba8: 82 10 20 16 mov 0x16, %g1 <== NOT EXECUTED
2021bac: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
2021bb0: 81 c7 e0 08 ret <== NOT EXECUTED
2021bb4: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &inode);
2021bb8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021bbc: 40 00 6f ae call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2021bc0: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED
if (rc > 0)
2021bc4: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021bc8: 04 80 00 09 ble 2021bec <rtems_rfs_rtems_mknod+0x1c0> <== NOT EXECUTED
2021bcc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021bd0: 7f ff fd 37 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021bd4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("mknod: closing inode", rc);
2021bd8: 40 00 89 af call 2044294 <__errno> <== NOT EXECUTED
2021bdc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021be0: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021be4: 81 c7 e0 08 ret <== NOT EXECUTED
2021be8: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021bec: 7f ff fd 30 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021bf0: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021bf4: 81 c7 e0 08 ret <== NOT EXECUTED
2021bf8: 81 e8 00 00 restore <== NOT EXECUTED
020227b0 <rtems_rfs_rtems_mode>:
{
/*
* Mapping matches RTEMS so no need to change.
*/
return imode;
}
20227b0: 81 c3 e0 08 retl <== NOT EXECUTED
02021450 <rtems_rfs_rtems_node_type>:
* @return rtems_filesystem_node_types_t
*/
rtems_filesystem_node_types_t
rtems_rfs_rtems_node_type (rtems_filesystem_location_info_t* pathloc)
{
2021450: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021454: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021458: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
*/
rtems_filesystem_node_types_t
rtems_rfs_rtems_node_type (rtems_filesystem_location_info_t* pathloc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202145c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_filesystem_node_types_t type;
rtems_rfs_inode_handle inode;
uint16_t mode;
int rc;
rtems_rfs_rtems_lock (fs);
2021460: 7f ff ff 0b call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021464: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021468: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
202146c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021470: 94 07 bf d8 add %fp, -40, %o2 <== NOT EXECUTED
2021474: 40 00 71 a9 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
2021478: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
202147c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021480: 14 80 00 1d bg 20214f4 <rtems_rfs_rtems_node_type+0xa4> <== NOT EXECUTED
2021484: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
* link is actually the normal path to a regular file, directory, device
* etc's inode. Links to inodes can be considered "the real" one, yet they
* are all links.
*/
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISDIR (mode))
2021488: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
202148c: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
2021490: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2021494: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
2021498: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
202149c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20214a0: 02 80 00 0f be 20214dc <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
20214a4: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
type = RTEMS_FILESYSTEM_DIRECTORY;
else if (RTEMS_RFS_S_ISLNK (mode))
20214a8: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
20214ac: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20214b0: 02 80 00 0b be 20214dc <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
20214b4: b0 10 20 04 mov 4, %i0 <== NOT EXECUTED
type = RTEMS_FILESYSTEM_SYM_LINK;
else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))
20214b8: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
20214bc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20214c0: 02 80 00 07 be 20214dc <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
20214c4: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
20214c8: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
20214cc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20214d0: 12 80 00 03 bne 20214dc <rtems_rfs_rtems_node_type+0x8c> <== NOT EXECUTED
20214d4: b0 10 20 05 mov 5, %i0 <== NOT EXECUTED
20214d8: b0 10 20 02 mov 2, %i0 <== NOT EXECUTED
type = RTEMS_FILESYSTEM_DEVICE;
else
type = RTEMS_FILESYSTEM_MEMORY_FILE;
rc = rtems_rfs_inode_close (fs, &inode);
20214dc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20214e0: 40 00 71 65 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
20214e4: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
if (rc > 0)
20214e8: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20214ec: 04 80 00 09 ble 2021510 <rtems_rfs_rtems_node_type+0xc0> <== NOT EXECUTED
20214f0: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20214f4: 7f ff fe ee call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20214f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("node_type: closing inode", rc);
20214fc: 40 00 8b 66 call 2044294 <__errno> <== NOT EXECUTED
2021500: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021504: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021508: 81 c7 e0 08 ret <== NOT EXECUTED
202150c: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021510: 7f ff fe e7 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021514: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return type;
}
2021518: 81 c7 e0 08 ret <== NOT EXECUTED
202151c: 81 e8 00 00 restore <== NOT EXECUTED
02021f24 <rtems_rfs_rtems_readlink>:
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
2021f24: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021f28: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021f2c: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
int
rtems_rfs_rtems_readlink (rtems_filesystem_location_info_t* pathloc,
char* buf,
size_t bufsize)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021f30: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
int rc;
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_READLINK))
printf ("rtems-rfs-rtems: readlink: in: ino:%" PRId32 "\n", ino);
rtems_rfs_rtems_lock (fs);
2021f34: 7f ff fc 56 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021f38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);
2021f3c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2021f40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021f44: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2021f48: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
2021f4c: 40 00 6f f9 call 203df30 <rtems_rfs_symlink_read> <== NOT EXECUTED
2021f50: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc)
2021f54: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021f58: 02 80 00 09 be 2021f7c <rtems_rfs_rtems_readlink+0x58> <== NOT EXECUTED
2021f5c: 01 00 00 00 nop <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021f60: 7f ff fc 53 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021f64: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("readlink: reading link", rc);
2021f68: 40 00 88 cb call 2044294 <__errno> <== NOT EXECUTED
2021f6c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021f70: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021f74: 81 c7 e0 08 ret <== NOT EXECUTED
2021f78: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021f7c: 7f ff fc 4c call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021f80: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return (int) length;
2021f84: f0 07 bf fc ld [ %fp + -4 ], %i0 <== NOT EXECUTED
}
2021f88: 81 c7 e0 08 ret <== NOT EXECUTED
2021f8c: 81 e8 00 00 restore <== NOT EXECUTED
0202185c <rtems_rfs_rtems_rename>:
int
rtems_rfs_rtems_rename(rtems_filesystem_location_info_t* old_parent_loc,
rtems_filesystem_location_info_t* old_loc,
rtems_filesystem_location_info_t* new_parent_loc,
const char* new_name)
{
202185c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
2021860: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino;
uint32_t doff;
int rc;
old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);
new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);
2021864: e8 06 80 00 ld [ %i2 ], %l4 <== NOT EXECUTED
rtems_rfs_rtems_rename(rtems_filesystem_location_info_t* old_parent_loc,
rtems_filesystem_location_info_t* old_loc,
rtems_filesystem_location_info_t* new_parent_loc,
const char* new_name)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (old_loc);
2021868: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
int rc;
old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);
new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);
ino = rtems_rfs_rtems_get_pathloc_ino (old_loc);
202186c: e2 06 40 00 ld [ %i1 ], %l1 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_RENAME))
printf ("rtems-rfs: rename: ino:%" PRId32 " doff:%" PRIu32 ", new parent:%" PRId32 " new name:%s\n",
ino, doff, new_parent, new_name);
rtems_rfs_rtems_lock (fs);
2021870: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_ino new_parent;
rtems_rfs_ino ino;
uint32_t doff;
int rc;
old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);
2021874: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_RENAME))
printf ("rtems-rfs: rename: ino:%" PRId32 " doff:%" PRIu32 ", new parent:%" PRId32 " new name:%s\n",
ino, doff, new_parent, new_name);
rtems_rfs_rtems_lock (fs);
2021878: 7f ff fe 05 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
202187c: e4 06 60 04 ld [ %i1 + 4 ], %l2 <== NOT EXECUTED
/*
* Link to the inode before unlinking so the inode is not erased when
* unlinked.
*/
rc = rtems_rfs_link (fs, new_name, strlen (new_name), new_parent, ino, true);
2021880: 40 00 a6 41 call 204b184 <strlen> <== NOT EXECUTED
2021884: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
2021888: 96 10 00 14 mov %l4, %o3 <== NOT EXECUTED
202188c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2021890: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
2021894: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021898: 98 10 00 11 mov %l1, %o4 <== NOT EXECUTED
202189c: 40 00 73 25 call 203e530 <rtems_rfs_link> <== NOT EXECUTED
20218a0: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
if (rc)
20218a4: a8 92 20 00 orcc %o0, 0, %l4 <== NOT EXECUTED
20218a8: 02 80 00 09 be 20218cc <rtems_rfs_rtems_rename+0x70> <== NOT EXECUTED
20218ac: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20218b0: 7f ff fd ff call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20218b4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: linking", rc);
20218b8: 40 00 8a 77 call 2044294 <__errno> <== NOT EXECUTED
20218bc: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20218c0: e8 22 00 00 st %l4, [ %o0 ] <== NOT EXECUTED
20218c4: 81 c7 e0 08 ret <== NOT EXECUTED
20218c8: 81 e8 00 00 restore <== NOT EXECUTED
/*
* Unlink all inodes even directories with the dir option as false because a
* directory may not be empty.
*/
rc = rtems_rfs_unlink (fs, old_parent, ino, doff,
20218cc: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20218d0: 96 10 00 12 mov %l2, %o3 <== NOT EXECUTED
20218d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20218d8: 40 00 72 88 call 203e2f8 <rtems_rfs_unlink> <== NOT EXECUTED
20218dc: 98 10 20 02 mov 2, %o4 <== NOT EXECUTED
rtems_rfs_unlink_dir_allowed);
if (rc)
20218e0: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20218e4: 02 80 00 09 be 2021908 <rtems_rfs_rtems_rename+0xac> <== NOT EXECUTED
20218e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20218ec: 7f ff fd f0 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20218f0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("rename: unlinking", rc);
20218f4: 40 00 8a 68 call 2044294 <__errno> <== NOT EXECUTED
20218f8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20218fc: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021900: 81 c7 e0 08 ret <== NOT EXECUTED
2021904: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021908: 7f ff fd e9 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202190c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021910: 81 c7 e0 08 ret <== NOT EXECUTED
2021914: 81 e8 00 00 restore <== NOT EXECUTED
02021918 <rtems_rfs_rtems_rmnod>:
* @return int
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
2021918: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202191c: c2 06 60 10 ld [ %i1 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (pathloc);
2021920: e2 06 60 04 ld [ %i1 + 4 ], %l1 <== NOT EXECUTED
*/
int
rtems_rfs_rtems_rmnod (rtems_filesystem_location_info_t* parent_pathloc,
rtems_filesystem_location_info_t* pathloc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021924: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_pathloc);
2021928: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
202192c: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_RMNOD))
printf ("rtems-rfs: rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
parent, doff, ino);
rtems_rfs_rtems_lock (fs);
2021930: 7f ff fd d7 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021934: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
2021938: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
202193c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021940: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2021944: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2021948: 40 00 72 6c call 203e2f8 <rtems_rfs_unlink> <== NOT EXECUTED
202194c: 98 10 20 00 clr %o4 <== NOT EXECUTED
if (rc)
2021950: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021954: 02 80 00 09 be 2021978 <rtems_rfs_rtems_rmnod+0x60> <== NOT EXECUTED
2021958: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
202195c: 7f ff fd d4 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021960: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("rmnod: unlinking", rc);
2021964: 40 00 8a 4c call 2044294 <__errno> <== NOT EXECUTED
2021968: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202196c: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021970: 81 c7 e0 08 ret <== NOT EXECUTED
2021974: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021978: 7f ff fd cd call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202197c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021980: 81 c7 e0 08 ret <== NOT EXECUTED
2021984: 81 e8 00 00 restore <== NOT EXECUTED
020227b8 <rtems_rfs_rtems_set_handlers>:
*/
bool
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,
rtems_rfs_inode_handle* inode)
{
20227b8: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
20227bc: c2 06 60 0c ld [ %i1 + 0xc ], %g1 <== NOT EXECUTED
20227c0: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
20227c4: d2 08 60 02 ldub [ %g1 + 2 ], %o1 <== NOT EXECUTED
20227c8: 93 2a 60 08 sll %o1, 8, %o1 <== NOT EXECUTED
uint16_t mode = rtems_rfs_inode_get_mode (inode);
loc->handlers = NULL;
if (RTEMS_RFS_S_ISDIR (mode))
20227cc: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
20227d0: 92 12 40 02 or %o1, %g2, %o1 <== NOT EXECUTED
20227d4: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
20227d8: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
20227dc: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
20227e0: 82 0a 40 01 and %o1, %g1, %g1 <== NOT EXECUTED
20227e4: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20227e8: 12 80 00 05 bne 20227fc <rtems_rfs_rtems_set_handlers+0x44><== NOT EXECUTED
20227ec: c0 26 20 08 clr [ %i0 + 8 ] <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (dir);
20227f0: 03 00 81 a3 sethi %hi(0x2068c00), %g1 <== NOT EXECUTED
20227f4: 10 80 00 17 b 2022850 <rtems_rfs_rtems_set_handlers+0x98> <== NOT EXECUTED
20227f8: 82 10 60 88 or %g1, 0x88, %g1 ! 2068c88 <rtems_rfs_rtems_dir_handlers><== NOT EXECUTED
else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))
20227fc: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2022800: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022804: 02 80 00 05 be 2022818 <rtems_rfs_rtems_set_handlers+0x60><== NOT EXECUTED
2022808: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
202280c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022810: 12 80 00 05 bne 2022824 <rtems_rfs_rtems_set_handlers+0x6c><== NOT EXECUTED
2022814: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (device);
2022818: 03 00 81 a3 sethi %hi(0x2068c00), %g1 <== NOT EXECUTED
202281c: 10 80 00 0d b 2022850 <rtems_rfs_rtems_set_handlers+0x98> <== NOT EXECUTED
2022820: 82 10 60 50 or %g1, 0x50, %g1 ! 2068c50 <rtems_rfs_rtems_device_handlers><== NOT EXECUTED
else if (RTEMS_RFS_S_ISLNK (mode))
2022824: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022828: 12 80 00 05 bne 202283c <rtems_rfs_rtems_set_handlers+0x84><== NOT EXECUTED
202282c: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (link);
2022830: 03 00 81 8e sethi %hi(0x2063800), %g1 <== NOT EXECUTED
2022834: 10 80 00 07 b 2022850 <rtems_rfs_rtems_set_handlers+0x98> <== NOT EXECUTED
2022838: 82 10 60 e8 or %g1, 0xe8, %g1 ! 20638e8 <rtems_rfs_rtems_link_handlers><== NOT EXECUTED
else if (RTEMS_RFS_S_ISREG (mode))
202283c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022840: 12 80 00 07 bne 202285c <rtems_rfs_rtems_set_handlers+0xa4><== NOT EXECUTED
2022844: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
loc->handlers = rtems_rfs_rtems_handlers (file);
2022848: 03 00 81 a3 sethi %hi(0x2068c00), %g1 <== NOT EXECUTED
202284c: 82 10 60 c0 or %g1, 0xc0, %g1 ! 2068cc0 <rtems_rfs_rtems_file_handlers><== NOT EXECUTED
2022850: c2 26 20 08 st %g1, [ %i0 + 8 ] <== NOT EXECUTED
2022854: 81 c7 e0 08 ret <== NOT EXECUTED
2022858: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
else
{
printf ("rtems-rfs: mode type unknown: %04x\n", mode);
202285c: b0 10 20 00 clr %i0 <== NOT EXECUTED
2022860: 40 00 98 88 call 2048a80 <printf> <== NOT EXECUTED
2022864: 90 12 21 68 or %o0, 0x168, %o0 <== NOT EXECUTED
return false;
}
return true;
}
2022868: 81 c7 e0 08 ret <== NOT EXECUTED
202286c: 81 e8 00 00 restore <== NOT EXECUTED
02021520 <rtems_rfs_rtems_shutdown>:
/**
* Shutdown the file system.
*/
int
rtems_rfs_rtems_shutdown (rtems_filesystem_mount_table_entry_t* mt_entry)
{
2021520: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = mt_entry->fs_info;
2021524: d0 06 20 34 ld [ %i0 + 0x34 ], %o0 <== NOT EXECUTED
rtems_rfs_rtems_private* rtems;
int rc;
rtems = rtems_rfs_fs_user (fs);
rc = rtems_rfs_fs_close(fs);
2021528: 40 00 6a 5d call 203be9c <rtems_rfs_fs_close> <== NOT EXECUTED
202152c: e2 02 20 7c ld [ %o0 + 0x7c ], %l1 <== NOT EXECUTED
2021530: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_rfs_mutex_destroy (&rtems->access);
2021534: 40 00 74 5a call 203e69c <rtems_rfs_mutex_destroy> <== NOT EXECUTED
2021538: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
free (rtems);
202153c: 7f ff 9b 49 call 2008260 <free> <== NOT EXECUTED
2021540: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("shutdown: close", rc);
2021544: 40 00 8b 54 call 2044294 <__errno> <== NOT EXECUTED
2021548: 01 00 00 00 nop <== NOT EXECUTED
}
202154c: 80 a0 00 10 cmp %g0, %l0 <== NOT EXECUTED
rc = rtems_rfs_fs_close(fs);
rtems_rfs_mutex_destroy (&rtems->access);
free (rtems);
return rtems_rfs_rtems_error ("shutdown: close", rc);
2021550: e0 22 00 00 st %l0, [ %o0 ] <== NOT EXECUTED
}
2021554: b0 60 20 00 subx %g0, 0, %i0 <== NOT EXECUTED
2021558: 81 c7 e0 08 ret <== NOT EXECUTED
202155c: 81 e8 00 00 restore <== NOT EXECUTED
02021bfc <rtems_rfs_rtems_stat>:
*/
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
2021bfc: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021c00: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021c04: e2 06 00 00 ld [ %i0 ], %l1 <== NOT EXECUTED
int
rtems_rfs_rtems_stat (rtems_filesystem_location_info_t* pathloc,
struct stat* buf)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021c08: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
int rc;
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_STAT))
printf ("rtems-rfs-rtems: stat: in: ino:%" PRId32 "\n", ino);
rtems_rfs_rtems_lock (fs);
2021c0c: 7f ff fd 20 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021c10: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021c14: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021c18: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2021c1c: 94 07 bf d8 add %fp, -40, %o2 <== NOT EXECUTED
2021c20: 40 00 6f be call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
2021c24: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2021c28: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2021c2c: 02 80 00 09 be 2021c50 <rtems_rfs_rtems_stat+0x54> <== NOT EXECUTED
2021c30: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021c34: 7f ff fd 1e call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021c38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: opening inode", rc);
2021c3c: 40 00 89 96 call 2044294 <__errno> <== NOT EXECUTED
2021c40: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021c44: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
2021c48: 81 c7 e0 08 ret <== NOT EXECUTED
2021c4c: 81 e8 00 00 restore <== NOT EXECUTED
}
mode = rtems_rfs_inode_get_mode (&inode);
if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))
2021c50: 07 00 00 18 sethi %hi(0x6000), %g3 <== NOT EXECUTED
2021c54: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2021c58: d0 08 60 02 ldub [ %g1 + 2 ], %o0 <== NOT EXECUTED
2021c5c: 91 2a 20 08 sll %o0, 8, %o0 <== NOT EXECUTED
2021c60: 90 12 00 02 or %o0, %g2, %o0 <== NOT EXECUTED
2021c64: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2021c68: 91 2a 20 10 sll %o0, 0x10, %o0 <== NOT EXECUTED
2021c6c: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2021c70: 84 0a 00 02 and %o0, %g2, %g2 <== NOT EXECUTED
2021c74: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2021c78: 22 80 00 07 be,a 2021c94 <rtems_rfs_rtems_stat+0x98> <== NOT EXECUTED
2021c7c: da 08 60 1c ldub [ %g1 + 0x1c ], %o5 <== NOT EXECUTED
2021c80: 07 00 00 08 sethi %hi(0x2000), %g3 <== NOT EXECUTED
2021c84: 80 a0 80 03 cmp %g2, %g3 <== NOT EXECUTED
2021c88: 32 80 00 1a bne,a 2021cf0 <rtems_rfs_rtems_stat+0xf4> <== NOT EXECUTED
2021c8c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
2021c90: da 08 60 1c ldub [ %g1 + 0x1c ], %o5 <== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
2021c94: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2021c98: d4 08 60 04 ldub [ %g1 + 4 ], %o2 <== NOT EXECUTED
2021c9c: d6 08 60 07 ldub [ %g1 + 7 ], %o3 <== NOT EXECUTED
2021ca0: d8 08 60 06 ldub [ %g1 + 6 ], %o4 <== NOT EXECUTED
2021ca4: d2 08 60 05 ldub [ %g1 + 5 ], %o1 <== NOT EXECUTED
2021ca8: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2021cac: c8 08 60 03 ldub [ %g1 + 3 ], %g4 <== NOT EXECUTED
2021cb0: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2021cb4: 95 2a a0 18 sll %o2, 0x18, %o2 <== NOT EXECUTED
2021cb8: 83 2a 60 10 sll %o1, 0x10, %g1 <== NOT EXECUTED
2021cbc: 99 2b 20 08 sll %o4, 8, %o4 <== NOT EXECUTED
2021cc0: 82 12 80 01 or %o2, %g1, %g1 <== NOT EXECUTED
2021cc4: 82 10 40 0b or %g1, %o3, %g1 <== NOT EXECUTED
2021cc8: 82 10 40 0c or %g1, %o4, %g1 <== NOT EXECUTED
2021ccc: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
{
buf->st_rdev =
2021cd0: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
2021cd4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2021cd8: 83 2b 60 18 sll %o5, 0x18, %g1 <== NOT EXECUTED
2021cdc: 82 11 00 01 or %g4, %g1, %g1 <== NOT EXECUTED
2021ce0: 82 10 40 03 or %g1, %g3, %g1 <== NOT EXECUTED
2021ce4: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2021ce8: c2 26 60 18 st %g1, [ %i1 + 0x18 ] <== NOT EXECUTED
rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
rtems_rfs_inode_get_block (&inode, 1));
}
buf->st_dev = rtems_rfs_fs_device (fs);
2021cec: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
buf->st_ino = ino;
2021cf0: e2 26 60 08 st %l1, [ %i1 + 8 ] <== NOT EXECUTED
buf->st_rdev =
rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
rtems_rfs_inode_get_block (&inode, 1));
}
buf->st_dev = rtems_rfs_fs_device (fs);
2021cf4: c4 18 40 00 ldd [ %g1 ], %g2 <== NOT EXECUTED
buf->st_ino = ino;
buf->st_mode = rtems_rfs_rtems_mode (mode);
2021cf8: 40 00 02 ae call 20227b0 <rtems_rfs_rtems_mode> <== NOT EXECUTED
2021cfc: c4 3e 40 00 std %g2, [ %i1 ] <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
2021d00: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2021d04: d0 26 60 0c st %o0, [ %i1 + 0xc ] <== NOT EXECUTED
2021d08: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
2021d0c: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
if (links == 0xffff)
2021d10: 09 3f ff c0 sethi %hi(0xffff0000), %g4 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
2021d14: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2021d18: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
2021d1c: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
2021d20: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
2021d24: 86 39 00 03 xnor %g4, %g3, %g3 <== NOT EXECUTED
2021d28: 80 a0 00 03 cmp %g0, %g3 <== NOT EXECUTED
2021d2c: 86 60 20 00 subx %g0, 0, %g3 <== NOT EXECUTED
2021d30: 84 08 80 03 and %g2, %g3, %g2 <== NOT EXECUTED
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
2021d34: c4 36 60 10 sth %g2, [ %i1 + 0x10 ] <== NOT EXECUTED
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
2021d38: c6 08 60 07 ldub [ %g1 + 7 ], %g3 <== NOT EXECUTED
2021d3c: c4 08 60 06 ldub [ %g1 + 6 ], %g2 <== NOT EXECUTED
/*
* Need to check is the ino is an open file. If so we take the values from
* the open file rather than the inode.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
2021d40: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
buf->st_dev = rtems_rfs_fs_device (fs);
buf->st_ino = ino;
buf->st_mode = rtems_rfs_rtems_mode (mode);
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
buf->st_uid = rtems_rfs_inode_get_uid (&inode);
2021d44: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2021d48: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
2021d4c: c4 36 60 12 sth %g2, [ %i1 + 0x12 ] <== NOT EXECUTED
buf->st_gid = rtems_rfs_inode_get_gid (&inode);
2021d50: c4 08 60 05 ldub [ %g1 + 5 ], %g2 <== NOT EXECUTED
2021d54: c2 08 60 04 ldub [ %g1 + 4 ], %g1 <== NOT EXECUTED
2021d58: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
2021d5c: 83 28 60 18 sll %g1, 0x18, %g1 <== NOT EXECUTED
2021d60: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2021d64: 83 30 60 10 srl %g1, 0x10, %g1 <== NOT EXECUTED
/*
* Need to check is the ino is an open file. If so we take the values from
* the open file rather than the inode.
*/
shared = rtems_rfs_file_get_shared (fs, ino);
2021d68: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021d6c: 40 00 65 5b call 203b2d8 <rtems_rfs_file_get_shared> <== NOT EXECUTED
2021d70: c2 36 60 14 sth %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
if (shared)
2021d74: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2021d78: 02 80 00 17 be 2021dd4 <rtems_rfs_rtems_stat+0x1d8> <== NOT EXECUTED
2021d7c: c6 06 60 0c ld [ %i1 + 0xc ], %g3 <== NOT EXECUTED
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
2021d80: c2 02 20 8c ld [ %o0 + 0x8c ], %g1 <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
if (S_ISLNK (buf->st_mode))
2021d84: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
*/
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
2021d88: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
2021d8c: c2 02 20 90 ld [ %o0 + 0x90 ], %g1 <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
if (S_ISLNK (buf->st_mode))
2021d90: 86 08 c0 02 and %g3, %g2, %g3 <== NOT EXECUTED
shared = rtems_rfs_file_get_shared (fs, ino);
if (shared)
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
2021d94: c2 26 60 30 st %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
2021d98: c2 02 20 94 ld [ %o0 + 0x94 ], %g1 <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
if (S_ISLNK (buf->st_mode))
2021d9c: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
if (shared)
{
buf->st_atime = rtems_rfs_file_shared_get_atime (shared);
buf->st_mtime = rtems_rfs_file_shared_get_mtime (shared);
buf->st_ctime = rtems_rfs_file_shared_get_ctime (shared);
2021da0: c2 26 60 38 st %g1, [ %i1 + 0x38 ] <== NOT EXECUTED
buf->st_blocks = rtems_rfs_file_shared_get_block_count (shared);
2021da4: c2 02 20 84 ld [ %o0 + 0x84 ], %g1 <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
2021da8: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2021dac: 12 80 00 05 bne 2021dc0 <rtems_rfs_rtems_stat+0x1c4> <== NOT EXECUTED
2021db0: c2 26 60 44 st %g1, [ %i1 + 0x44 ] <== NOT EXECUTED
buf->st_size = rtems_rfs_file_shared_get_block_offset (shared);
2021db4: c2 12 20 8a lduh [ %o0 + 0x8a ], %g1 <== NOT EXECUTED
2021db8: 10 80 00 43 b 2021ec4 <rtems_rfs_rtems_stat+0x2c8> <== NOT EXECUTED
2021dbc: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
*/
static inline rtems_rfs_pos
rtems_rfs_file_shared_get_size (rtems_rfs_file_system* fs,
rtems_rfs_file_shared* shared)
{
return rtems_rfs_block_get_size (fs, &shared->size);
2021dc0: 92 02 20 84 add %o0, 0x84, %o1 <== NOT EXECUTED
2021dc4: 40 00 5d 35 call 2039298 <rtems_rfs_block_get_size> <== NOT EXECUTED
2021dc8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
if (S_ISLNK (buf->st_mode))
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
2021dcc: 10 80 00 43 b 2021ed8 <rtems_rfs_rtems_stat+0x2dc> <== NOT EXECUTED
2021dd0: d0 3e 60 20 std %o0, [ %i1 + 0x20 ] <== NOT EXECUTED
* @return rtems_rfs_time The atime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->atime);
2021dd4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
else
buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);
}
else
{
buf->st_atime = rtems_rfs_inode_get_atime (&inode);
2021dd8: d6 08 60 10 ldub [ %g1 + 0x10 ], %o3 <== NOT EXECUTED
2021ddc: 84 00 60 10 add %g1, 0x10, %g2 <== NOT EXECUTED
2021de0: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021de4: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021de8: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021dec: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021df0: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021df4: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021df8: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021dfc: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021e00: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021e04: c4 26 60 28 st %g2, [ %i1 + 0x28 ] <== NOT EXECUTED
* @return rtems_rfs_time The mtime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->mtime);
2021e08: 84 00 60 14 add %g1, 0x14, %g2 <== NOT EXECUTED
buf->st_mtime = rtems_rfs_inode_get_mtime (&inode);
2021e0c: d6 08 60 14 ldub [ %g1 + 0x14 ], %o3 <== NOT EXECUTED
2021e10: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021e14: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021e18: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021e1c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021e20: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021e24: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021e28: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021e2c: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021e30: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021e34: c4 26 60 30 st %g2, [ %i1 + 0x30 ] <== NOT EXECUTED
* @return rtems_rfs_time The ctime.
*/
static inline rtems_rfs_time
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->ctime);
2021e38: 84 00 60 18 add %g1, 0x18, %g2 <== NOT EXECUTED
buf->st_ctime = rtems_rfs_inode_get_ctime (&inode);
2021e3c: d6 08 60 18 ldub [ %g1 + 0x18 ], %o3 <== NOT EXECUTED
2021e40: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021e44: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021e48: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021e4c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021e50: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021e54: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021e58: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021e5c: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021e60: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021e64: c4 26 60 38 st %g2, [ %i1 + 0x38 ] <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
2021e68: 84 00 60 0c add %g1, 0xc, %g2 <== NOT EXECUTED
buf->st_blocks = rtems_rfs_inode_get_block_count (&inode);
2021e6c: d6 08 60 0c ldub [ %g1 + 0xc ], %o3 <== NOT EXECUTED
2021e70: c8 08 a0 02 ldub [ %g2 + 2 ], %g4 <== NOT EXECUTED
2021e74: d8 08 a0 03 ldub [ %g2 + 3 ], %o4 <== NOT EXECUTED
2021e78: da 08 a0 01 ldub [ %g2 + 1 ], %o5 <== NOT EXECUTED
2021e7c: 89 29 20 08 sll %g4, 8, %g4 <== NOT EXECUTED
2021e80: 85 2a e0 18 sll %o3, 0x18, %g2 <== NOT EXECUTED
2021e84: 9b 2b 60 10 sll %o5, 0x10, %o5 <== NOT EXECUTED
2021e88: 84 13 00 02 or %o4, %g2, %g2 <== NOT EXECUTED
2021e8c: 84 10 80 0d or %g2, %o5, %g2 <== NOT EXECUTED
2021e90: 84 10 80 04 or %g2, %g4, %g2 <== NOT EXECUTED
2021e94: c4 26 60 44 st %g2, [ %i1 + 0x44 ] <== NOT EXECUTED
if (S_ISLNK (buf->st_mode))
2021e98: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
2021e9c: 86 08 c0 02 and %g3, %g2, %g3 <== NOT EXECUTED
2021ea0: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2021ea4: 80 a0 c0 02 cmp %g3, %g2 <== NOT EXECUTED
2021ea8: 12 80 00 09 bne 2021ecc <rtems_rfs_rtems_stat+0x2d0> <== NOT EXECUTED
2021eac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
2021eb0: c4 08 60 0b ldub [ %g1 + 0xb ], %g2 <== NOT EXECUTED
2021eb4: c2 08 60 0a ldub [ %g1 + 0xa ], %g1 <== NOT EXECUTED
2021eb8: c0 26 60 20 clr [ %i1 + 0x20 ] <== NOT EXECUTED
2021ebc: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2021ec0: 82 10 80 01 or %g2, %g1, %g1 <== NOT EXECUTED
2021ec4: 10 80 00 05 b 2021ed8 <rtems_rfs_rtems_stat+0x2dc> <== NOT EXECUTED
2021ec8: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
2021ecc: 40 00 6e 27 call 203d768 <rtems_rfs_inode_get_size> <== NOT EXECUTED
2021ed0: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
2021ed4: d0 3e 60 20 std %o0, [ %i1 + 0x20 ] <== NOT EXECUTED
}
buf->st_blksize = rtems_rfs_fs_block_size (fs);
2021ed8: c2 04 20 08 ld [ %l0 + 8 ], %g1 <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2021edc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
buf->st_size = rtems_rfs_inode_get_block_offset (&inode);
else
buf->st_size = rtems_rfs_inode_get_size (fs, &inode);
}
buf->st_blksize = rtems_rfs_fs_block_size (fs);
2021ee0: c2 26 60 40 st %g1, [ %i1 + 0x40 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
2021ee4: 40 00 6e e4 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2021ee8: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
if (rc > 0)
2021eec: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2021ef0: 04 80 00 09 ble 2021f14 <rtems_rfs_rtems_stat+0x318> <== NOT EXECUTED
2021ef4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021ef8: 7f ff fc 6d call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021efc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("stat: closing inode", rc);
2021f00: 40 00 88 e5 call 2044294 <__errno> <== NOT EXECUTED
2021f04: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021f08: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021f0c: 81 c7 e0 08 ret <== NOT EXECUTED
2021f10: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021f14: 7f ff fc 66 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021f18: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021f1c: 81 c7 e0 08 ret <== NOT EXECUTED
2021f20: 81 e8 00 00 restore <== NOT EXECUTED
02021750 <rtems_rfs_rtems_statvfs>:
* @return int
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
2021750: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021754: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
2021758: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
*/
int
rtems_rfs_rtems_statvfs (rtems_filesystem_location_info_t* pathloc,
struct statvfs* sb)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202175c: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
2021760: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2021764: 40 00 6e b8 call 203d244 <rtems_rfs_group_usage> <== NOT EXECUTED
2021768: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
202176c: c2 04 20 0c ld [ %l0 + 0xc ], %g1 <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
2021770: c4 04 20 08 ld [ %l0 + 8 ], %g2 <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
2021774: c0 26 60 08 clr [ %i1 + 8 ] <== NOT EXECUTED
size_t blocks;
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
2021778: c4 26 40 00 st %g2, [ %i1 ] <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
202177c: c4 00 60 24 ld [ %g1 + 0x24 ], %g2 <== NOT EXECUTED
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
2021780: c0 26 60 10 clr [ %i1 + 0x10 ] <== NOT EXECUTED
size_t inodes;
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
2021784: c4 26 60 04 st %g2, [ %i1 + 4 ] <== NOT EXECUTED
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
sb->f_bavail = sb->f_bfree;
sb->f_files = rtems_rfs_fs_inodes (fs);
2021788: c4 04 20 10 ld [ %l0 + 0x10 ], %g2 <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
202178c: c6 00 60 1c ld [ %g1 + 0x1c ], %g3 <== NOT EXECUTED
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
sb->f_bavail = sb->f_bfree;
sb->f_files = rtems_rfs_fs_inodes (fs);
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
2021790: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
sb->f_bavail = sb->f_bfree;
sb->f_files = rtems_rfs_fs_inodes (fs);
2021794: c4 26 60 20 st %g2, [ %i1 + 0x20 ] <== NOT EXECUTED
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
2021798: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
202179c: c2 26 60 28 st %g1, [ %i1 + 0x28 ] <== NOT EXECUTED
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
sb->f_bavail = sb->f_bfree;
sb->f_files = rtems_rfs_fs_inodes (fs);
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
20217a0: c2 26 60 24 st %g1, [ %i1 + 0x24 ] <== NOT EXECUTED
sb->f_favail = sb->f_ffree;
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
20217a4: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
20217a8: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
20217ac: c2 26 60 2c st %g1, [ %i1 + 0x2c ] <== NOT EXECUTED
sb->f_flag = rtems_rfs_fs_flags (fs);
20217b0: c2 04 00 00 ld [ %l0 ], %g1 <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
20217b4: c4 04 20 04 ld [ %l0 + 4 ], %g2 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
sb->f_files = rtems_rfs_fs_inodes (fs);
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
sb->f_favail = sb->f_ffree;
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
sb->f_flag = rtems_rfs_fs_flags (fs);
20217b8: c2 26 60 30 st %g1, [ %i1 + 0x30 ] <== NOT EXECUTED
sb->f_namemax = rtems_rfs_fs_max_name (fs);
20217bc: c2 04 20 18 ld [ %l0 + 0x18 ], %g1 <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
20217c0: c6 26 60 0c st %g3, [ %i1 + 0xc ] <== NOT EXECUTED
sb->f_files = rtems_rfs_fs_inodes (fs);
sb->f_ffree = rtems_rfs_fs_inodes (fs) - inodes;
sb->f_favail = sb->f_ffree;
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
sb->f_flag = rtems_rfs_fs_flags (fs);
sb->f_namemax = rtems_rfs_fs_max_name (fs);
20217c4: c2 26 60 34 st %g1, [ %i1 + 0x34 ] <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
20217c8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
20217cc: c0 26 60 18 clr [ %i1 + 0x18 ] <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
20217d0: 82 20 80 01 sub %g2, %g1, %g1 <== NOT EXECUTED
sb->f_bavail = sb->f_bfree;
20217d4: c2 26 60 1c st %g1, [ %i1 + 0x1c ] <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
sb->f_bsize = rtems_rfs_fs_block_size (fs);
sb->f_frsize = rtems_rfs_fs_media_block_size (fs);
sb->f_blocks = rtems_rfs_fs_media_blocks (fs);
sb->f_bfree = rtems_rfs_fs_blocks (fs) - blocks;
20217d8: c2 26 60 14 st %g1, [ %i1 + 0x14 ] <== NOT EXECUTED
sb->f_fsid = RTEMS_RFS_SB_MAGIC;
sb->f_flag = rtems_rfs_fs_flags (fs);
sb->f_namemax = rtems_rfs_fs_max_name (fs);
return 0;
}
20217dc: 81 c7 e0 08 ret <== NOT EXECUTED
20217e0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02021f90 <rtems_rfs_rtems_symlink>:
int
rtems_rfs_rtems_symlink (rtems_filesystem_location_info_t* parent_loc,
const char* link_name,
const char* node_name)
{
2021f90: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
2021f94: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
2021f98: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED
uid_t uid;
gid_t gid;
int rc;
#if defined(RTEMS_POSIX_API)
uid = geteuid ();
2021f9c: 40 00 1c 25 call 2029030 <geteuid> <== NOT EXECUTED
2021fa0: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
gid = getegid ();
2021fa4: 40 00 1c 1f call 2029020 <getegid> <== NOT EXECUTED
2021fa8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2021fac: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
#else
uid = 0;
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
2021fb0: 7f ff fc 37 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021fb4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
2021fb8: 40 00 a4 73 call 204b184 <strlen> <== NOT EXECUTED
2021fbc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2021fc0: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
link_name, strlen (link_name),
2021fc4: 40 00 a4 70 call 204b184 <strlen> <== NOT EXECUTED
2021fc8: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
2021fcc: 9b 2c 60 10 sll %l1, 0x10, %o5 <== NOT EXECUTED
link_name, strlen (link_name),
2021fd0: 98 10 00 08 mov %o0, %o4 <== NOT EXECUTED
gid = 0;
#endif
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_symlink (fs, node_name, strlen (node_name),
2021fd4: e4 23 a0 60 st %l2, [ %sp + 0x60 ] <== NOT EXECUTED
2021fd8: b1 2e 20 10 sll %i0, 0x10, %i0 <== NOT EXECUTED
2021fdc: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
2021fe0: b1 36 20 10 srl %i0, 0x10, %i0 <== NOT EXECUTED
2021fe4: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
2021fe8: f0 23 a0 5c st %i0, [ %sp + 0x5c ] <== NOT EXECUTED
2021fec: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
2021ff0: 9b 33 60 10 srl %o5, 0x10, %o5 <== NOT EXECUTED
2021ff4: 40 00 70 42 call 203e0fc <rtems_rfs_symlink> <== NOT EXECUTED
2021ff8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
link_name, strlen (link_name),
uid, gid, parent);
if (rc)
2021ffc: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2022000: 02 80 00 09 be 2022024 <rtems_rfs_rtems_symlink+0x94> <== NOT EXECUTED
2022004: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2022008: 7f ff fc 29 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
202200c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("symlink: linking", rc);
2022010: 40 00 88 a1 call 2044294 <__errno> <== NOT EXECUTED
2022014: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2022018: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
202201c: 81 c7 e0 08 ret <== NOT EXECUTED
2022020: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2022024: 7f ff fc 22 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2022028: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
202202c: 81 c7 e0 08 ret <== NOT EXECUTED
2022030: 81 e8 00 00 restore <== NOT EXECUTED
02021988 <rtems_rfs_rtems_unlink>:
*/
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
2021988: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
202198c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (loc);
2021990: e2 06 60 04 ld [ %i1 + 4 ], %l1 <== NOT EXECUTED
int
rtems_rfs_rtems_unlink (rtems_filesystem_location_info_t* parent_loc,
rtems_filesystem_location_info_t* loc)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
2021994: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_ino parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
2021998: e6 06 00 00 ld [ %i0 ], %l3 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (loc);
202199c: e4 06 40 00 ld [ %i1 ], %l2 <== NOT EXECUTED
uint32_t doff = rtems_rfs_rtems_get_pathloc_doff (loc);
int rc;
rtems_rfs_rtems_lock (fs);
20219a0: 7f ff fd bb call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
20219a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_UNLINK))
printf("rtems-rfs-rtems: unlink: parent:%" PRId32 " doff:%" PRIu32 " ino:%" PRId32 "\n",
parent, doff, ino);
rc = rtems_rfs_unlink (fs, parent, ino, doff, rtems_rfs_unlink_dir_denied);
20219a8: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
20219ac: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20219b0: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
20219b4: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
20219b8: 40 00 72 50 call 203e2f8 <rtems_rfs_unlink> <== NOT EXECUTED
20219bc: 98 10 20 00 clr %o4 <== NOT EXECUTED
if (rc)
20219c0: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
20219c4: 02 80 00 09 be 20219e8 <rtems_rfs_rtems_unlink+0x60> <== NOT EXECUTED
20219c8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
20219cc: 7f ff fd b8 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20219d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("unlink: unlink inode", rc);
20219d4: 40 00 8a 30 call 2044294 <__errno> <== NOT EXECUTED
20219d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20219dc: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
20219e0: 81 c7 e0 08 ret <== NOT EXECUTED
20219e4: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
20219e8: 7f ff fd b1 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
20219ec: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20219f0: 81 c7 e0 08 ret <== NOT EXECUTED
20219f4: 81 e8 00 00 restore <== NOT EXECUTED
020210ac <rtems_rfs_rtems_unlock>:
/**
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
20210ac: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
20210b0: e0 06 20 7c ld [ %i0 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
20210b4: 40 00 64 50 call 203a1f4 <rtems_rfs_buffers_release> <== NOT EXECUTED
20210b8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
20210bc: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED
20210c0: 7f ff ae d3 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
20210c4: 81 e8 00 00 restore <== NOT EXECUTED
02021358 <rtems_rfs_rtems_utime>:
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
2021358: 9d e3 bf 78 save %sp, -136, %sp <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
202135c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
2021360: e4 06 00 00 ld [ %i0 ], %l2 <== NOT EXECUTED
int
rtems_rfs_rtems_utime(rtems_filesystem_location_info_t* pathloc,
time_t atime,
time_t mtime)
{
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
2021364: e0 00 60 34 ld [ %g1 + 0x34 ], %l0 <== NOT EXECUTED
rtems_rfs_inode_handle inode;
int rc;
rtems_rfs_rtems_lock (fs);
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021368: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
rtems_rfs_inode_handle inode;
int rc;
rtems_rfs_rtems_lock (fs);
202136c: 7f ff ff 48 call 202108c <rtems_rfs_rtems_lock> <== NOT EXECUTED
2021370: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2021374: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2021378: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
202137c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2021380: 40 00 71 e6 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
2021384: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
2021388: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
202138c: 02 80 00 09 be 20213b0 <rtems_rfs_rtems_utime+0x58> <== NOT EXECUTED
2021390: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021394: 7f ff ff 46 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021398: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: read inode", rc);
202139c: 40 00 8b be call 2044294 <__errno> <== NOT EXECUTED
20213a0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20213a4: e4 22 00 00 st %l2, [ %o0 ] <== NOT EXECUTED
20213a8: 81 c7 e0 08 ret <== NOT EXECUTED
20213ac: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
20213b0: 85 36 60 18 srl %i1, 0x18, %g2 <== NOT EXECUTED
20213b4: c4 28 60 10 stb %g2, [ %g1 + 0x10 ] <== NOT EXECUTED
20213b8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20213bc: 85 36 60 10 srl %i1, 0x10, %g2 <== NOT EXECUTED
20213c0: c4 28 60 11 stb %g2, [ %g1 + 0x11 ] <== NOT EXECUTED
20213c4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20213c8: 85 36 60 08 srl %i1, 8, %g2 <== NOT EXECUTED
20213cc: c4 28 60 12 stb %g2, [ %g1 + 0x12 ] <== NOT EXECUTED
20213d0: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
20213d4: 85 36 a0 18 srl %i2, 0x18, %g2 <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,
rtems_rfs_time atime)
{
rtems_rfs_write_u32 (&handle->node->atime, atime);
20213d8: f2 28 60 13 stb %i1, [ %g1 + 0x13 ] <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,
rtems_rfs_time mtime)
{
rtems_rfs_write_u32 (&handle->node->mtime, mtime);
20213dc: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20213e0: 87 36 a0 10 srl %i2, 0x10, %g3 <== NOT EXECUTED
20213e4: c4 28 60 14 stb %g2, [ %g1 + 0x14 ] <== NOT EXECUTED
20213e8: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
20213ec: 85 36 a0 08 srl %i2, 8, %g2 <== NOT EXECUTED
20213f0: c6 28 60 15 stb %g3, [ %g1 + 0x15 ] <== NOT EXECUTED
20213f4: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
}
rtems_rfs_inode_set_atime (&inode, atime);
rtems_rfs_inode_set_mtime (&inode, mtime);
rc = rtems_rfs_inode_close (fs, &inode);
20213f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20213fc: c4 28 60 16 stb %g2, [ %g1 + 0x16 ] <== NOT EXECUTED
2021400: c2 07 bf e4 ld [ %fp + -28 ], %g1 <== NOT EXECUTED
2021404: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2021408: f4 28 60 17 stb %i2, [ %g1 + 0x17 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
202140c: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2021410: 40 00 71 99 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2021414: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
if (rc)
2021418: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
202141c: 02 80 00 09 be 2021440 <rtems_rfs_rtems_utime+0xe8> <== NOT EXECUTED
2021420: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_rtems_unlock (fs);
2021424: 7f ff ff 22 call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021428: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return rtems_rfs_rtems_error ("utime: closing inode", rc);
202142c: 40 00 8b 9a call 2044294 <__errno> <== NOT EXECUTED
2021430: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2021434: e2 22 00 00 st %l1, [ %o0 ] <== NOT EXECUTED
2021438: 81 c7 e0 08 ret <== NOT EXECUTED
202143c: 81 e8 00 00 restore <== NOT EXECUTED
}
rtems_rfs_rtems_unlock (fs);
2021440: 7f ff ff 1b call 20210ac <rtems_rfs_rtems_unlock> <== NOT EXECUTED
2021444: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2021448: 81 c7 e0 08 ret <== NOT EXECUTED
202144c: 81 e8 00 00 restore <== NOT EXECUTED
0203c47c <rtems_rfs_rup_quotient>:
* Return a rounded up integer quotient given a dividend and divisor. That is:
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
203c47c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
203c480: 82 10 00 18 mov %i0, %g1 <== NOT EXECUTED
if (dividend == 0)
203c484: 80 a6 20 00 cmp %i0, 0 <== NOT EXECUTED
* Return a rounded up integer quotient given a dividend and divisor. That is:
* "quotient = dividend / divisor"
*/
int
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)
{
203c488: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
if (dividend == 0)
203c48c: 02 80 00 05 be 203c4a0 <rtems_rfs_rup_quotient+0x24> <== NOT EXECUTED
203c490: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
return ((dividend - 1) / divisor) + 1;
203c494: 40 00 80 c1 call 205c798 <.udiv> <== NOT EXECUTED
203c498: 90 00 7f ff add %g1, -1, %o0 <== NOT EXECUTED
203c49c: b0 02 20 01 add %o0, 1, %i0 <== NOT EXECUTED
}
203c4a0: 81 c7 e0 08 ret <== NOT EXECUTED
203c4a4: 81 e8 00 00 restore <== NOT EXECUTED
02023510 <rtems_rfs_shell_block>:
return 0;
}
static int
rtems_rfs_shell_block (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2023510: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
uint8_t* data;
bool state;
int b;
int rc;
if (argc <= 1)
2023514: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
2023518: 34 80 00 07 bg,a 2023534 <rtems_rfs_shell_block+0x24> <== NOT EXECUTED
202351c: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
2023520: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023524: 40 00 96 03 call 2048d30 <puts> <== NOT EXECUTED
2023528: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 2063df0 <rtems_rfs_ops+0x4d0><== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
202352c: 81 c7 e0 08 ret <== NOT EXECUTED
2023530: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
return 1;
}
block = strtoul (argv[1], 0, 0);
2023534: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023538: 40 00 a4 c8 call 204c858 <strtoul> <== NOT EXECUTED
202353c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2023540: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2023544: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
2023548: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
202354c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023550: 7f ff a5 68 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2023554: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
2023558: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202355c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023560: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023564: 40 00 67 5e call 203d2dc <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2023568: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
202356c: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2023570: 04 80 00 0c ble 20235a0 <rtems_rfs_shell_block+0x90> <== NOT EXECUTED
2023574: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2023578: 7f ff fd 8b call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
202357c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
2023580: 40 00 9d f5 call 204ad54 <strerror> <== NOT EXECUTED
2023584: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023588: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
202358c: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023590: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2023594: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023598: 10 80 00 27 b 2023634 <rtems_rfs_shell_block+0x124> <== NOT EXECUTED
202359c: 90 12 22 10 or %o0, 0x210, %o0 ! 2063e10 <rtems_rfs_ops+0x4f0><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
20235a0: 15 00 81 8f sethi %hi(0x2063c00), %o2 <== NOT EXECUTED
20235a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20235a8: 12 80 00 04 bne 20235b8 <rtems_rfs_shell_block+0xa8> <== NOT EXECUTED
20235ac: 94 12 a2 48 or %o2, 0x248, %o2 <== NOT EXECUTED
20235b0: 15 00 81 8f sethi %hi(0x2063c00), %o2 <== NOT EXECUTED
20235b4: 94 12 a2 40 or %o2, 0x240, %o2 ! 2063e40 <rtems_rfs_ops+0x520><== NOT EXECUTED
20235b8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20235bc: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
20235c0: 40 00 95 30 call 2048a80 <printf> <== NOT EXECUTED
20235c4: 90 12 22 58 or %o0, 0x258, %o0 ! 2063e58 <rtems_rfs_ops+0x538><== NOT EXECUTED
printf ("error: opening buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
20235c8: a2 07 bf f0 add %fp, -16, %l1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
20235cc: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20235d0: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
20235d4: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
20235d8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20235dc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20235e0: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
20235e4: 40 00 5b a3 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
20235e8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
20235ec: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
20235f0: 04 80 00 15 ble 2023644 <rtems_rfs_shell_block+0x134> <== NOT EXECUTED
20235f4: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
20235f8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20235fc: 40 00 5b 53 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2023600: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
2023604: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
2023608: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
202360c: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
2023610: 7f ff fd 65 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023614: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
2023618: 40 00 9d cf call 204ad54 <strerror> <== NOT EXECUTED
202361c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2023620: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023624: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023628: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
202362c: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023630: 90 12 22 70 or %o0, 0x270, %o0 ! 2063e70 <rtems_rfs_ops+0x550><== NOT EXECUTED
2023634: 40 00 95 13 call 2048a80 <printf> <== NOT EXECUTED
2023638: 01 00 00 00 nop <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
202363c: 81 c7 e0 08 ret <== NOT EXECUTED
2023640: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
printf ("%04x ", b);
2023644: 25 00 81 8f sethi %hi(0x2063c00), %l2 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
2023648: 23 00 81 8f sethi %hi(0x2063c00), %l1 <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
202364c: e6 00 60 24 ld [ %g1 + 0x24 ], %l3 <== NOT EXECUTED
int mod = b % 16;
if (mod == 0)
{
if (b)
printf ("\n");
printf ("%04x ", b);
2023650: a4 14 a3 38 or %l2, 0x338, %l2 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
2023654: a2 14 63 40 or %l1, 0x340, %l1 <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
2023658: 10 80 00 16 b 20236b0 <rtems_rfs_shell_block+0x1a0> <== NOT EXECUTED
202365c: a0 10 20 00 clr %l0 <== NOT EXECUTED
b < rtems_rfs_fs_block_size (fs);
b++, data++)
{
int mod = b % 16;
if (mod == 0)
2023660: 12 80 00 0c bne 2023690 <rtems_rfs_shell_block+0x180> <== NOT EXECUTED
2023664: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED
{
if (b)
2023668: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
202366c: 02 80 00 05 be 2023680 <rtems_rfs_shell_block+0x170> <== NOT EXECUTED
2023670: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
printf ("\n");
2023674: 40 00 95 7b call 2048c60 <putchar> <== NOT EXECUTED
2023678: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
printf ("%04x ", b);
202367c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2023680: 40 00 95 00 call 2048a80 <printf> <== NOT EXECUTED
2023684: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
}
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
2023688: 10 80 00 07 b 20236a4 <rtems_rfs_shell_block+0x194> <== NOT EXECUTED
202368c: d2 0c c0 10 ldub [ %l3 + %l0 ], %o1 <== NOT EXECUTED
{
if (b)
printf ("\n");
printf ("%04x ", b);
}
if (mod == 8)
2023690: 32 80 00 05 bne,a 20236a4 <rtems_rfs_shell_block+0x194> <== NOT EXECUTED
2023694: d2 0c c0 10 ldub [ %l3 + %l0 ], %o1 <== NOT EXECUTED
printf (" ");
2023698: 40 00 95 72 call 2048c60 <putchar> <== NOT EXECUTED
202369c: 90 10 20 20 mov 0x20, %o0 <== NOT EXECUTED
printf ("%02x ", *data);
20236a0: d2 0c c0 10 ldub [ %l3 + %l0 ], %o1 <== NOT EXECUTED
20236a4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20236a8: 40 00 94 f6 call 2048a80 <printf> <== NOT EXECUTED
20236ac: a0 04 20 01 inc %l0 <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
for (b = 0, data = rtems_rfs_buffer_data (&buffer);
b < rtems_rfs_fs_block_size (fs);
20236b0: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
20236b4: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
20236b8: 0a bf ff ea bcs 2023660 <rtems_rfs_shell_block+0x150> <== NOT EXECUTED
20236bc: 82 8c 20 0f andcc %l0, 0xf, %g1 <== NOT EXECUTED
if (mod == 8)
printf (" ");
printf ("%02x ", *data);
}
printf ("\n");
20236c0: 40 00 95 68 call 2048c60 <putchar> <== NOT EXECUTED
20236c4: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
20236c8: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
20236cc: 40 00 5b 1f call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20236d0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: closing buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rtems_rfs_shell_unlock_rfs (fs);
20236d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
20236d8: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20236dc: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
20236e0: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
20236e4: 7f ff fd 30 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
20236e8: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
20236ec: 81 c7 e0 08 ret <== NOT EXECUTED
20236f0: 81 e8 00 00 restore <== NOT EXECUTED
020236f4 <rtems_rfs_shell_data>:
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
20236f4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
size_t blocks;
size_t inodes;
int bpcent;
int ipcent;
printf ("RFS Filesystem Data\n");
20236f8: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
20236fc: 40 00 95 8d call 2048d30 <puts> <== NOT EXECUTED
2023700: 90 12 23 48 or %o0, 0x348, %o0 ! 2063f48 <rtems_rfs_ops+0x628><== NOT EXECUTED
printf (" flags: %08" PRIx32 "\n", fs->flags);
2023704: d2 06 00 00 ld [ %i0 ], %o1 <== NOT EXECUTED
2023708: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
202370c: 40 00 94 dd call 2048a80 <printf> <== NOT EXECUTED
2023710: 90 12 23 60 or %o0, 0x360, %o0 ! 2063f60 <rtems_rfs_ops+0x640><== NOT EXECUTED
#if 0
printf (" device: %08lx\n", rtems_rfs_fs_device (fs));
#endif
printf (" blocks: %zu\n", rtems_rfs_fs_blocks (fs));
2023714: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2023718: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
202371c: 40 00 94 d9 call 2048a80 <printf> <== NOT EXECUTED
2023720: 90 12 23 80 or %o0, 0x380, %o0 ! 2063f80 <rtems_rfs_ops+0x660><== NOT EXECUTED
printf (" block size: %zu\n", rtems_rfs_fs_block_size (fs));
2023724: d2 06 20 08 ld [ %i0 + 8 ], %o1 <== NOT EXECUTED
2023728: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
202372c: 40 00 94 d5 call 2048a80 <printf> <== NOT EXECUTED
2023730: 90 12 23 a0 or %o0, 0x3a0, %o0 ! 2063fa0 <rtems_rfs_ops+0x680><== NOT EXECUTED
printf (" size: %" PRIu64 "\n", rtems_rfs_fs_size (fs));
2023734: 40 00 61 c7 call 203be50 <rtems_rfs_fs_size> <== NOT EXECUTED
2023738: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202373c: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
2023740: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2023744: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023748: 40 00 94 ce call 2048a80 <printf> <== NOT EXECUTED
202374c: 90 12 23 c0 or %o0, 0x3c0, %o0 ! 2063fc0 <rtems_rfs_ops+0x6a0><== NOT EXECUTED
printf (" media block size: %" PRIu32 "\n", rtems_rfs_fs_media_block_size (fs));
2023750: c2 06 20 0c ld [ %i0 + 0xc ], %g1 <== NOT EXECUTED
2023754: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023758: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
202375c: 40 00 94 c9 call 2048a80 <printf> <== NOT EXECUTED
2023760: 90 12 23 e0 or %o0, 0x3e0, %o0 <== NOT EXECUTED
printf (" media size: %" PRIu64 "\n", rtems_rfs_fs_media_size (fs));
2023764: 40 00 61 c4 call 203be74 <rtems_rfs_fs_media_size> <== NOT EXECUTED
2023768: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202376c: 94 10 00 09 mov %o1, %o2 <== NOT EXECUTED
2023770: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2023774: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023778: 40 00 94 c2 call 2048a80 <printf> <== NOT EXECUTED
202377c: 90 12 20 00 mov %o0, %o0 ! 2064000 <rtems_rfs_ops+0x6e0> <== NOT EXECUTED
printf (" inodes: %" PRIu32 "\n", rtems_rfs_fs_inodes (fs));
2023780: d2 06 20 10 ld [ %i0 + 0x10 ], %o1 <== NOT EXECUTED
2023784: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023788: 40 00 94 be call 2048a80 <printf> <== NOT EXECUTED
202378c: 90 12 20 20 or %o0, 0x20, %o0 ! 2064020 <rtems_rfs_ops+0x700><== NOT EXECUTED
printf (" bad blocks: %" PRIu32 "\n", fs->bad_blocks);
2023790: d2 06 20 14 ld [ %i0 + 0x14 ], %o1 <== NOT EXECUTED
2023794: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023798: 40 00 94 ba call 2048a80 <printf> <== NOT EXECUTED
202379c: 90 12 20 40 or %o0, 0x40, %o0 ! 2064040 <rtems_rfs_ops+0x720><== NOT EXECUTED
printf (" max. name length: %" PRIu32 "\n", rtems_rfs_fs_max_name (fs));
20237a0: d2 06 20 18 ld [ %i0 + 0x18 ], %o1 <== NOT EXECUTED
20237a4: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20237a8: 40 00 94 b6 call 2048a80 <printf> <== NOT EXECUTED
20237ac: 90 12 20 60 or %o0, 0x60, %o0 ! 2064060 <rtems_rfs_ops+0x740><== NOT EXECUTED
printf (" groups: %d\n", fs->group_count);
20237b0: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
20237b4: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20237b8: 40 00 94 b2 call 2048a80 <printf> <== NOT EXECUTED
20237bc: 90 12 20 80 or %o0, 0x80, %o0 ! 2064080 <rtems_rfs_ops+0x760><== NOT EXECUTED
printf (" group blocks: %zd\n", fs->group_blocks);
20237c0: d2 06 20 24 ld [ %i0 + 0x24 ], %o1 <== NOT EXECUTED
20237c4: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20237c8: 40 00 94 ae call 2048a80 <printf> <== NOT EXECUTED
20237cc: 90 12 20 98 or %o0, 0x98, %o0 ! 2064098 <rtems_rfs_ops+0x778><== NOT EXECUTED
printf (" group inodes: %zd\n", fs->group_inodes);
20237d0: d2 06 20 28 ld [ %i0 + 0x28 ], %o1 <== NOT EXECUTED
20237d4: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20237d8: 40 00 94 aa call 2048a80 <printf> <== NOT EXECUTED
20237dc: 90 12 20 b8 or %o0, 0xb8, %o0 ! 20640b8 <rtems_rfs_ops+0x798><== NOT EXECUTED
printf (" inodes per block: %zd\n", fs->inodes_per_block);
20237e0: d2 06 20 2c ld [ %i0 + 0x2c ], %o1 <== NOT EXECUTED
20237e4: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20237e8: 40 00 94 a6 call 2048a80 <printf> <== NOT EXECUTED
20237ec: 90 12 20 d8 or %o0, 0xd8, %o0 ! 20640d8 <rtems_rfs_ops+0x7b8><== NOT EXECUTED
printf (" blocks per block: %zd\n", fs->blocks_per_block);
20237f0: d2 06 20 30 ld [ %i0 + 0x30 ], %o1 <== NOT EXECUTED
20237f4: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20237f8: 40 00 94 a2 call 2048a80 <printf> <== NOT EXECUTED
20237fc: 90 12 20 f8 or %o0, 0xf8, %o0 ! 20640f8 <rtems_rfs_ops+0x7d8><== NOT EXECUTED
printf (" singly blocks: %zd\n", fs->block_map_singly_blocks);
2023800: d2 06 20 34 ld [ %i0 + 0x34 ], %o1 <== NOT EXECUTED
2023804: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023808: 40 00 94 9e call 2048a80 <printf> <== NOT EXECUTED
202380c: 90 12 21 18 or %o0, 0x118, %o0 ! 2064118 <rtems_rfs_ops+0x7f8><== NOT EXECUTED
printf (" doublly blocks: %zd\n", fs->block_map_doubly_blocks);
2023810: d2 06 20 38 ld [ %i0 + 0x38 ], %o1 <== NOT EXECUTED
2023814: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023818: 40 00 94 9a call 2048a80 <printf> <== NOT EXECUTED
202381c: 90 12 21 38 or %o0, 0x138, %o0 ! 2064138 <rtems_rfs_ops+0x818><== NOT EXECUTED
printf (" max. held buffers: %" PRId32 "\n", fs->max_held_buffers);
2023820: d2 06 20 3c ld [ %i0 + 0x3c ], %o1 <== NOT EXECUTED
2023824: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023828: 40 00 94 96 call 2048a80 <printf> <== NOT EXECUTED
202382c: 90 12 21 58 or %o0, 0x158, %o0 ! 2064158 <rtems_rfs_ops+0x838><== NOT EXECUTED
2023830: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2023834: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023838: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
202383c: 7f ff a4 ad call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2023840: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rtems_rfs_group_usage (fs, &blocks, &inodes);
2023844: 94 07 bf f8 add %fp, -8, %o2 <== NOT EXECUTED
2023848: 92 07 bf fc add %fp, -4, %o1 <== NOT EXECUTED
202384c: 40 00 66 7e call 203d244 <rtems_rfs_group_usage> <== NOT EXECUTED
2023850: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_shell_unlock_rfs (fs);
2023854: 7f ff fc d4 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023858: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
202385c: e0 07 bf fc ld [ %fp + -4 ], %l0 <== NOT EXECUTED
2023860: d2 06 20 04 ld [ %i0 + 4 ], %o1 <== NOT EXECUTED
2023864: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
2023868: 91 2c 20 07 sll %l0, 7, %o0 <== NOT EXECUTED
202386c: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
2023870: 90 02 00 10 add %o0, %l0, %o0 <== NOT EXECUTED
2023874: 40 00 e3 c9 call 205c798 <.udiv> <== NOT EXECUTED
2023878: 91 2a 20 03 sll %o0, 3, %o0 <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
202387c: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
return rc;
}
static int
rtems_rfs_shell_data (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2023880: a2 10 00 18 mov %i0, %l1 <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
rtems_rfs_shell_unlock_rfs (fs);
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
2023884: d2 04 60 10 ld [ %l1 + 0x10 ], %o1 <== NOT EXECUTED
2023888: 87 28 60 07 sll %g1, 7, %g3 <== NOT EXECUTED
202388c: 85 28 60 02 sll %g1, 2, %g2 <== NOT EXECUTED
2023890: 84 20 c0 02 sub %g3, %g2, %g2 <== NOT EXECUTED
2023894: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
rtems_rfs_shell_unlock_rfs (fs);
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
2023898: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
202389c: 40 00 e3 bf call 205c798 <.udiv> <== NOT EXECUTED
20238a0: 91 28 60 03 sll %g1, 3, %o0 <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
20238a4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
rtems_rfs_group_usage (fs, &blocks, &inodes);
rtems_rfs_shell_unlock_rfs (fs);
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
20238a8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
printf (" blocks used: %zd (%d.%d%%)\n",
20238ac: 40 00 e3 bd call 205c7a0 <.div> <== NOT EXECUTED
20238b0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20238b4: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20238b8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
20238bc: 40 00 e4 65 call 205ca50 <.rem> <== NOT EXECUTED
20238c0: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
20238c4: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
20238c8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20238cc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20238d0: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
20238d4: 40 00 94 6b call 2048a80 <printf> <== NOT EXECUTED
20238d8: 90 12 21 78 or %o0, 0x178, %o0 ! 2064178 <rtems_rfs_ops+0x858><== NOT EXECUTED
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
20238dc: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20238e0: 40 00 e3 b0 call 205c7a0 <.div> <== NOT EXECUTED
20238e4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20238e8: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
20238ec: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
20238f0: 40 00 e4 58 call 205ca50 <.rem> <== NOT EXECUTED
20238f4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20238f8: d2 07 bf f8 ld [ %fp + -8 ], %o1 <== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
20238fc: b0 10 20 00 clr %i0 <== NOT EXECUTED
bpcent = (blocks * 1000) / rtems_rfs_fs_blocks (fs);
ipcent = (inodes * 1000) / rtems_rfs_fs_inodes (fs);
printf (" blocks used: %zd (%d.%d%%)\n",
blocks, bpcent / 10, bpcent % 10);
printf (" inodes used: %zd (%d.%d%%)\n",
2023900: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023904: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023908: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
202390c: 40 00 94 5d call 2048a80 <printf> <== NOT EXECUTED
2023910: 90 12 21 a0 or %o0, 0x1a0, %o0 ! 20641a0 <rtems_rfs_ops+0x880><== NOT EXECUTED
inodes, ipcent / 10, ipcent % 10);
return 0;
}
2023914: 81 c7 e0 08 ret <== NOT EXECUTED
2023918: 81 e8 00 00 restore <== NOT EXECUTED
02023234 <rtems_rfs_shell_dir>:
return 0;
}
static int
rtems_rfs_shell_dir (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2023234: 9d e3 bf 90 save %sp, -112, %sp <== NOT EXECUTED
bool state;
int entry;
int b;
int rc;
if (argc <= 1)
2023238: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
202323c: 34 80 00 07 bg,a 2023258 <rtems_rfs_shell_dir+0x24> <== NOT EXECUTED
2023240: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
2023244: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023248: 40 00 96 ba call 2048d30 <puts> <== NOT EXECUTED
202324c: 90 12 21 f0 or %o0, 0x1f0, %o0 ! 2063df0 <rtems_rfs_ops+0x4d0><== NOT EXECUTED
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
if (rc > 0)
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
2023250: 81 c7 e0 08 ret <== NOT EXECUTED
2023254: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
{
printf ("error: no block number provided\n");
return 1;
}
block = strtoul (argv[1], 0, 0);
2023258: 92 10 20 00 clr %o1 <== NOT EXECUTED
202325c: 40 00 a5 7f call 204c858 <strtoul> <== NOT EXECUTED
2023260: 94 10 20 00 clr %o2 <== NOT EXECUTED
2023264: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
2023268: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
202326c: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2023270: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023274: 7f ff a6 1f call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2023278: 94 10 20 00 clr %o2 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
rc = rtems_rfs_group_bitmap_test (fs, false, block, &state);
202327c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023280: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023284: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023288: 40 00 68 15 call 203d2dc <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
202328c: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
2023290: a2 92 20 00 orcc %o0, 0, %l1 <== NOT EXECUTED
2023294: 04 80 00 0c ble 20232c4 <rtems_rfs_shell_dir+0x90> <== NOT EXECUTED
2023298: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
202329c: 7f ff fe 42 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
20232a0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing block state: block=%" PRIu32 ": (%d) %s\n",
20232a4: 40 00 9e ac call 204ad54 <strerror> <== NOT EXECUTED
20232a8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
20232ac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20232b0: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
20232b4: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20232b8: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
20232bc: 10 80 00 27 b 2023358 <rtems_rfs_shell_dir+0x124> <== NOT EXECUTED
20232c0: 90 12 22 10 or %o0, 0x210, %o0 ! 2063e10 <rtems_rfs_ops+0x4f0><== NOT EXECUTED
block, rc, strerror (rc));
return 1;
}
printf (" %5" PRIu32 ": block %s\n", block, state ? "allocated" : "free");
20232c4: 15 00 81 8f sethi %hi(0x2063c00), %o2 <== NOT EXECUTED
20232c8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20232cc: 12 80 00 04 bne 20232dc <rtems_rfs_shell_dir+0xa8> <== NOT EXECUTED
20232d0: 94 12 a2 48 or %o2, 0x248, %o2 <== NOT EXECUTED
20232d4: 15 00 81 8f sethi %hi(0x2063c00), %o2 <== NOT EXECUTED
20232d8: 94 12 a2 40 or %o2, 0x240, %o2 ! 2063e40 <rtems_rfs_ops+0x520><== NOT EXECUTED
20232dc: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
20232e0: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
20232e4: 40 00 95 e7 call 2048a80 <printf> <== NOT EXECUTED
20232e8: 90 12 22 58 or %o0, 0x258, %o0 ! 2063e58 <rtems_rfs_ops+0x538><== NOT EXECUTED
printf ("error: opening buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);
20232ec: a2 07 bf f0 add %fp, -16, %l1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
20232f0: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20232f4: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
20232f8: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
20232fc: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023300: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023304: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023308: 40 00 5c 5a call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
202330c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2023310: a4 92 20 00 orcc %o0, 0, %l2 <== NOT EXECUTED
2023314: 04 80 00 15 ble 2023368 <rtems_rfs_shell_dir+0x134> <== NOT EXECUTED
2023318: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
202331c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023320: 40 00 5c 0a call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
2023324: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
{
rtems_rfs_buffer_handle_close (fs, &buffer);
rtems_rfs_shell_unlock_rfs (fs);
2023328: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
202332c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
2023330: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
2023334: 7f ff fe 1c call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023338: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
printf ("error: requesting buffer handle: block=%" PRIu32 ": (%d) %s\n",
202333c: 40 00 9e 86 call 204ad54 <strerror> <== NOT EXECUTED
2023340: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2023344: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023348: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
202334c: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2023350: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023354: 90 12 22 70 or %o0, 0x270, %o0 ! 2063e70 <rtems_rfs_ops+0x550><== NOT EXECUTED
2023358: 40 00 95 ca call 2048a80 <printf> <== NOT EXECUTED
202335c: 01 00 00 00 nop <== NOT EXECUTED
block, rc, strerror (rc));
return 1;
2023360: 81 c7 e0 08 ret <== NOT EXECUTED
2023364: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2023368: 2f 00 00 3f sethi %hi(0xfc00), %l7 <== NOT EXECUTED
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
202336c: 2d 00 81 8f sethi %hi(0x2063c00), %l6 <== NOT EXECUTED
length = 50;
for (c = 0; c < length; c++)
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
printf ("...");
2023370: 2b 00 81 8f sethi %hi(0x2063c00), %l5 <== NOT EXECUTED
return 1;
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
2023374: e0 00 60 24 ld [ %g1 + 0x24 ], %l0 <== NOT EXECUTED
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
2023378: ae 15 e3 ff or %l7, 0x3ff, %l7 <== NOT EXECUTED
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
202337c: ac 15 a3 00 or %l6, 0x300, %l6 <== NOT EXECUTED
length = 50;
for (c = 0; c < length; c++)
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
printf ("...");
2023380: aa 15 63 30 or %l5, 0x330, %l5 <== NOT EXECUTED
return 1;
}
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
2023384: a6 10 20 00 clr %l3 <== NOT EXECUTED
while (b < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE - 1))
2023388: 10 80 00 52 b 20234d0 <rtems_rfs_shell_dir+0x29c> <== NOT EXECUTED
202338c: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
elength = rtems_rfs_dir_entry_length (data);
2023390: e2 0c 20 08 ldub [ %l0 + 8 ], %l1 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
2023394: c6 0c 00 00 ldub [ %l0 ], %g3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
2023398: a3 2c 60 08 sll %l1, 8, %l1 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
202339c: c4 0c 20 01 ldub [ %l0 + 1 ], %g2 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
20233a0: a2 14 40 01 or %l1, %g1, %l1 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
20233a4: d6 0c 20 03 ldub [ %l0 + 3 ], %o3 <== NOT EXECUTED
elength = rtems_rfs_dir_entry_length (data);
if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)
20233a8: 80 a4 40 17 cmp %l1, %l7 <== NOT EXECUTED
20233ac: 02 80 00 4e be 20234e4 <rtems_rfs_shell_dir+0x2b0> <== NOT EXECUTED
20233b0: c2 0c 20 02 ldub [ %l0 + 2 ], %g1 <== NOT EXECUTED
break;
if ((elength < RTEMS_RFS_DIR_ENTRY_SIZE) ||
20233b4: 80 a4 60 09 cmp %l1, 9 <== NOT EXECUTED
20233b8: 04 80 00 07 ble 20233d4 <rtems_rfs_shell_dir+0x1a0> <== NOT EXECUTED
20233bc: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
(elength >= rtems_rfs_fs_max_name (fs)))
20233c0: c8 06 20 18 ld [ %i0 + 0x18 ], %g4 <== NOT EXECUTED
20233c4: 80 a4 40 04 cmp %l1, %g4 <== NOT EXECUTED
20233c8: 0a 80 00 07 bcs 20233e4 <rtems_rfs_shell_dir+0x1b0> <== NOT EXECUTED
20233cc: 96 0a e0 ff and %o3, 0xff, %o3 <== NOT EXECUTED
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
20233d0: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
20233d4: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20233d8: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
20233dc: 10 80 00 14 b 202342c <rtems_rfs_shell_dir+0x1f8> <== NOT EXECUTED
20233e0: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
rtems_rfs_ino eino;
int elength;
int length;
int c;
eino = rtems_rfs_dir_entry_ino (data);
20233e4: 87 28 e0 18 sll %g3, 0x18, %g3 <== NOT EXECUTED
20233e8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
20233ec: 96 12 c0 03 or %o3, %g3, %o3 <== NOT EXECUTED
20233f0: 82 08 60 ff and %g1, 0xff, %g1 <== NOT EXECUTED
20233f4: 85 28 a0 10 sll %g2, 0x10, %g2 <== NOT EXECUTED
20233f8: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
20233fc: 96 12 c0 02 or %o3, %g2, %o3 <== NOT EXECUTED
{
printf (" %5d: entry length appears corrupt: %d\n", entry, elength);
break;
}
if ((eino < RTEMS_RFS_ROOT_INO) || (eino >= rtems_rfs_fs_inodes (fs)))
2023400: 96 92 c0 01 orcc %o3, %g1, %o3 <== NOT EXECUTED
2023404: 02 80 00 07 be 2023420 <rtems_rfs_shell_dir+0x1ec> <== NOT EXECUTED
2023408: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
202340c: c2 06 20 10 ld [ %i0 + 0x10 ], %g1 <== NOT EXECUTED
2023410: 80 a2 c0 01 cmp %o3, %g1 <== NOT EXECUTED
2023414: 2a 80 00 0a bcs,a 202343c <rtems_rfs_shell_dir+0x208> <== NOT EXECUTED
2023418: c6 0c 20 05 ldub [ %l0 + 5 ], %g3 <== NOT EXECUTED
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
202341c: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023420: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2023424: 94 10 00 0b mov %o3, %o2 <== NOT EXECUTED
2023428: 90 12 22 d0 or %o0, 0x2d0, %o0 <== NOT EXECUTED
202342c: 40 00 95 95 call 2048a80 <printf> <== NOT EXECUTED
2023430: 01 00 00 00 nop <== NOT EXECUTED
break;
2023434: 10 80 00 2d b 20234e8 <rtems_rfs_shell_dir+0x2b4> <== NOT EXECUTED
2023438: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
202343c: c2 0c 20 06 ldub [ %l0 + 6 ], %g1 <== NOT EXECUTED
2023440: d8 0c 20 04 ldub [ %l0 + 4 ], %o4 <== NOT EXECUTED
2023444: c4 0c 20 07 ldub [ %l0 + 7 ], %g2 <== NOT EXECUTED
2023448: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
202344c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
{
printf (" %5d: entry ino appears corrupt: ino=%" PRId32 "\n", entry, eino);
break;
}
length = elength - RTEMS_RFS_DIR_ENTRY_SIZE;
2023450: a8 04 7f f6 add %l1, -10, %l4 <== NOT EXECUTED
printf (" %5d: %04x inode=%-6" PRIu32 " hash=%08" PRIx32 " name[%03u]=",
2023454: 99 2b 20 18 sll %o4, 0x18, %o4 <== NOT EXECUTED
2023458: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
202345c: 98 13 00 03 or %o4, %g3, %o4 <== NOT EXECUTED
2023460: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
2023464: 98 13 00 02 or %o4, %g2, %o4 <== NOT EXECUTED
2023468: 94 10 00 13 mov %l3, %o2 <== NOT EXECUTED
202346c: 98 13 00 01 or %o4, %g1, %o4 <== NOT EXECUTED
2023470: 40 00 95 84 call 2048a80 <printf> <== NOT EXECUTED
2023474: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
2023478: 80 a5 20 32 cmp %l4, 0x32 <== NOT EXECUTED
202347c: 04 80 00 03 ble 2023488 <rtems_rfs_shell_dir+0x254> <== NOT EXECUTED
2023480: b8 10 00 14 mov %l4, %i4 <== NOT EXECUTED
2023484: b8 10 20 32 mov 0x32, %i4 <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
2023488: 10 80 00 05 b 202349c <rtems_rfs_shell_dir+0x268> <== NOT EXECUTED
202348c: ba 10 20 00 clr %i5 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
2023490: d0 08 60 0a ldub [ %g1 + 0xa ], %o0 <== NOT EXECUTED
2023494: 40 00 95 f3 call 2048c60 <putchar> <== NOT EXECUTED
2023498: ba 07 60 01 inc %i5 <== NOT EXECUTED
length);
if (length > 50)
length = 50;
for (c = 0; c < length; c++)
202349c: 80 a7 40 1c cmp %i5, %i4 <== NOT EXECUTED
20234a0: 06 bf ff fc bl 2023490 <rtems_rfs_shell_dir+0x25c> <== NOT EXECUTED
20234a4: 82 04 00 1d add %l0, %i5, %g1 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
20234a8: 80 a7 00 14 cmp %i4, %l4 <== NOT EXECUTED
20234ac: 36 80 00 05 bge,a 20234c0 <rtems_rfs_shell_dir+0x28c> <== NOT EXECUTED
20234b0: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
printf ("...");
20234b4: 40 00 95 73 call 2048a80 <printf> <== NOT EXECUTED
20234b8: 90 10 00 15 mov %l5, %o0 <== NOT EXECUTED
printf ("\n");
b += elength;
data += elength;
20234bc: a0 04 00 11 add %l0, %l1, %l0 <== NOT EXECUTED
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
printf ("...");
printf ("\n");
b += elength;
20234c0: a6 04 c0 11 add %l3, %l1, %l3 <== NOT EXECUTED
data += elength;
entry++;
20234c4: a4 04 a0 01 inc %l2 <== NOT EXECUTED
for (c = 0; c < length; c++)
printf ("%c", data[RTEMS_RFS_DIR_ENTRY_SIZE + c]);
if (length < elength - RTEMS_RFS_DIR_ENTRY_SIZE)
printf ("...");
printf ("\n");
20234c8: 40 00 95 e6 call 2048c60 <putchar> <== NOT EXECUTED
20234cc: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
b = 0;
entry = 1;
data = rtems_rfs_buffer_data (&buffer);
while (b < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE - 1))
20234d0: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
20234d4: 82 00 7f f5 add %g1, -11, %g1 <== NOT EXECUTED
20234d8: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
20234dc: 2a bf ff ad bcs,a 2023390 <rtems_rfs_shell_dir+0x15c> <== NOT EXECUTED
20234e0: c2 0c 20 09 ldub [ %l0 + 9 ], %g1 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
20234e4: 92 07 bf f0 add %fp, -16, %o1 <== NOT EXECUTED
20234e8: 40 00 5b 98 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
20234ec: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: closing buffer handle: block=%" PRIu32 ": (%d) %s\n",
block, rc, strerror (rc));
return 1;
}
rtems_rfs_shell_unlock_rfs (fs);
20234f0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
handle->dirty = false;
20234f4: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
20234f8: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
20234fc: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
2023500: 7f ff fd a9 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023504: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
2023508: 81 c7 e0 08 ret <== NOT EXECUTED
202350c: 81 e8 00 00 restore <== NOT EXECUTED
02023094 <rtems_rfs_shell_group>:
return 0;
}
static int
rtems_rfs_shell_group (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2023094: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
int g;
start = 0;
end = fs->group_count - 1;
switch (argc)
2023098: 80 a6 60 02 cmp %i1, 2 <== NOT EXECUTED
202309c: 02 80 00 09 be 20230c0 <rtems_rfs_shell_group+0x2c> <== NOT EXECUTED
20230a0: e0 06 20 20 ld [ %i0 + 0x20 ], %l0 <== NOT EXECUTED
20230a4: 80 a6 60 03 cmp %i1, 3 <== NOT EXECUTED
20230a8: 02 80 00 0d be 20230dc <rtems_rfs_shell_group+0x48> <== NOT EXECUTED
20230ac: 80 a6 60 01 cmp %i1, 1 <== NOT EXECUTED
20230b0: 12 80 00 16 bne 2023108 <rtems_rfs_shell_group+0x74> <== NOT EXECUTED
20230b4: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
20230b8: 10 80 00 18 b 2023118 <rtems_rfs_shell_group+0x84> <== NOT EXECUTED
20230bc: a0 04 3f ff add %l0, -1, %l0 <== NOT EXECUTED
switch (argc)
{
case 1:
break;
case 2:
start = end = strtoul (argv[1], 0, 0);
20230c0: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
20230c4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20230c8: 40 00 a5 e4 call 204c858 <strtoul> <== NOT EXECUTED
20230cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20230d0: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
break;
20230d4: 10 80 00 12 b 202311c <rtems_rfs_shell_group+0x88> <== NOT EXECUTED
20230d8: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
case 3:
start = strtoul (argv[1], 0, 0);
20230dc: d0 06 a0 04 ld [ %i2 + 4 ], %o0 <== NOT EXECUTED
20230e0: 92 10 20 00 clr %o1 <== NOT EXECUTED
20230e4: 40 00 a5 dd call 204c858 <strtoul> <== NOT EXECUTED
20230e8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20230ec: a6 10 00 08 mov %o0, %l3 <== NOT EXECUTED
end = strtoul (argv[2], 0, 0);
20230f0: d0 06 a0 08 ld [ %i2 + 8 ], %o0 <== NOT EXECUTED
20230f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20230f8: 40 00 a5 d8 call 204c858 <strtoul> <== NOT EXECUTED
20230fc: 94 10 20 00 clr %o2 <== NOT EXECUTED
break;
2023100: 10 80 00 07 b 202311c <rtems_rfs_shell_group+0x88> <== NOT EXECUTED
2023104: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
2023108: 40 00 97 0a call 2048d30 <puts> <== NOT EXECUTED
202310c: 90 12 21 60 or %o0, 0x160, %o0 <== NOT EXECUTED
}
if ((start < 0) || (end < 0) ||
(start >= fs->group_count) || (end >= fs->group_count))
{
printf ("error: group out of range (0->%d).\n", fs->group_count);
2023110: 81 c7 e0 08 ret <== NOT EXECUTED
2023114: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
int start;
int end;
int g;
start = 0;
end = fs->group_count - 1;
2023118: a6 10 20 00 clr %l3 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
202311c: 80 a4 20 00 cmp %l0, 0 <== NOT EXECUTED
2023120: 06 80 00 0a bl 2023148 <rtems_rfs_shell_group+0xb4> <== NOT EXECUTED
2023124: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2023128: 26 80 00 09 bl,a 202314c <rtems_rfs_shell_group+0xb8> <== NOT EXECUTED
202312c: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
2023130: c2 06 20 20 ld [ %i0 + 0x20 ], %g1 <== NOT EXECUTED
default:
printf ("error: too many arguments.\n");
return 1;
}
if ((start < 0) || (end < 0) ||
2023134: 80 a4 c0 01 cmp %l3, %g1 <== NOT EXECUTED
2023138: 16 80 00 04 bge 2023148 <rtems_rfs_shell_group+0xb4> <== NOT EXECUTED
202313c: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2023140: 26 80 00 08 bl,a 2023160 <rtems_rfs_shell_group+0xcc> <== NOT EXECUTED
2023144: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
(start >= fs->group_count) || (end >= fs->group_count))
{
printf ("error: group out of range (0->%d).\n", fs->group_count);
2023148: d2 06 20 20 ld [ %i0 + 0x20 ], %o1 <== NOT EXECUTED
202314c: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023150: 40 00 96 4c call 2048a80 <printf> <== NOT EXECUTED
2023154: 90 12 21 80 or %o0, 0x180, %o0 ! 2063d80 <rtems_rfs_ops+0x460><== NOT EXECUTED
return 1;
2023158: 81 c7 e0 08 ret <== NOT EXECUTED
202315c: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
2023160: a3 2c e0 04 sll %l3, 4, %l1 <== NOT EXECUTED
2023164: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2023168: a4 10 00 13 mov %l3, %l2 <== NOT EXECUTED
202316c: a7 2c e0 06 sll %l3, 6, %l3 <== NOT EXECUTED
2023170: 92 10 20 00 clr %o1 <== NOT EXECUTED
2023174: 94 10 20 00 clr %o2 <== NOT EXECUTED
2023178: 7f ff a6 5e call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
202317c: a2 04 40 13 add %l1, %l3, %l1 <== NOT EXECUTED
rtems_rfs_group* group = &fs->groups[g];
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
2023180: 27 00 81 8f sethi %hi(0x2063c00), %l3 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2023184: 10 80 00 24 b 2023214 <rtems_rfs_shell_group+0x180> <== NOT EXECUTED
2023188: a6 14 e1 a8 or %l3, 0x1a8, %l3 ! 2063da8 <rtems_rfs_ops+0x488><== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
202318c: ee 06 20 28 ld [ %i0 + 0x28 ], %l7 <== NOT EXECUTED
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
{
rtems_rfs_group* group = &fs->groups[g];
2023190: 82 00 80 11 add %g2, %l1, %g1 <== NOT EXECUTED
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
2023194: f4 00 60 04 ld [ %g1 + 4 ], %i2 <== NOT EXECUTED
2023198: ea 00 60 18 ld [ %g1 + 0x18 ], %l5 <== NOT EXECUTED
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
202319c: fa 00 80 11 ld [ %g2 + %l1 ], %i5 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
20231a0: ec 00 60 3c ld [ %g1 + 0x3c ], %l6 <== NOT EXECUTED
for (g = start; g <= end; g++)
{
rtems_rfs_group* group = &fs->groups[g];
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
20231a4: aa 26 80 15 sub %i2, %l5, %l5 <== NOT EXECUTED
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
20231a8: 85 2d 60 02 sll %l5, 2, %g2 <== NOT EXECUTED
20231ac: 83 2d 60 04 sll %l5, 4, %g1 <== NOT EXECUTED
20231b0: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
20231b4: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
20231b8: 91 28 60 02 sll %g1, 2, %o0 <== NOT EXECUTED
20231bc: 40 00 e5 77 call 205c798 <.udiv> <== NOT EXECUTED
20231c0: 90 00 40 08 add %g1, %o0, %o0 <== NOT EXECUTED
{
rtems_rfs_group* group = &fs->groups[g];
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
20231c4: ac 25 c0 16 sub %l7, %l6, %l6 <== NOT EXECUTED
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
20231c8: 83 2d a0 04 sll %l6, 4, %g1 <== NOT EXECUTED
20231cc: a8 10 00 08 mov %o0, %l4 <== NOT EXECUTED
20231d0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
20231d4: ec 23 a0 5c st %l6, [ %sp + 0x5c ] <== NOT EXECUTED
20231d8: ad 2d a0 02 sll %l6, 2, %l6 <== NOT EXECUTED
20231dc: ac 05 80 01 add %l6, %g1, %l6 <== NOT EXECUTED
20231e0: 91 2d a0 02 sll %l6, 2, %o0 <== NOT EXECUTED
20231e4: 40 00 e5 6d call 205c798 <.udiv> <== NOT EXECUTED
20231e8: 90 05 80 08 add %l6, %o0, %o0 <== NOT EXECUTED
20231ec: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
20231f0: d0 23 a0 60 st %o0, [ %sp + 0x60 ] <== NOT EXECUTED
20231f4: 94 10 00 1d mov %i5, %o2 <== NOT EXECUTED
20231f8: 96 10 00 1a mov %i2, %o3 <== NOT EXECUTED
20231fc: 98 10 00 15 mov %l5, %o4 <== NOT EXECUTED
2023200: 9a 10 00 14 mov %l4, %o5 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2023204: a2 04 60 50 add %l1, 0x50, %l1 <== NOT EXECUTED
2023208: a4 04 a0 01 inc %l2 <== NOT EXECUTED
rtems_rfs_group* group = &fs->groups[g];
size_t blocks;
size_t inodes;
blocks = group->size - rtems_rfs_bitmap_map_free (&group->block_bitmap);
inodes = fs->group_inodes - rtems_rfs_bitmap_map_free (&group->inode_bitmap);
printf (" %4d: base=%-7" PRIu32 " size=%-6zu blocks=%-5zu (%3zu%%) inode=%-5zu (%3zu%%)\n",
202320c: 40 00 96 1d call 2048a80 <printf> <== NOT EXECUTED
2023210: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (g = start; g <= end; g++)
2023214: 80 a4 80 10 cmp %l2, %l0 <== NOT EXECUTED
2023218: 24 bf ff dd ble,a 202318c <rtems_rfs_shell_group+0xf8> <== NOT EXECUTED
202321c: c4 06 20 1c ld [ %i0 + 0x1c ], %g2 <== NOT EXECUTED
g, group->base, group->size,
blocks, (blocks * 100) / group->size,
inodes, (inodes * 100) / fs->group_inodes);
}
rtems_rfs_shell_unlock_rfs (fs);
2023220: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2023224: 7f ff fe 60 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023228: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
202322c: 81 c7 e0 08 ret <== NOT EXECUTED
2023230: 81 e8 00 00 restore <== NOT EXECUTED
02022bc4 <rtems_rfs_shell_inode>:
return 0;
}
static int
rtems_rfs_shell_inode (rtems_rfs_file_system* fs, int argc, char *argv[])
{
2022bc4: 9d e3 bf 68 save %sp, -152, %sp <== NOT EXECUTED
bool have_end;
int arg;
int b;
int rc;
total = fs->group_inodes * fs->group_count;
2022bc8: d0 06 20 20 ld [ %i0 + 0x20 ], %o0 <== NOT EXECUTED
2022bcc: d2 06 20 28 ld [ %i0 + 0x28 ], %o1 <== NOT EXECUTED
2022bd0: 7f ff 7f 8a call 20029f8 <.umul> <== NOT EXECUTED
2022bd4: 37 00 81 8e sethi %hi(0x2063800), %i3 <== NOT EXECUTED
}
}
else
{
if (have_end && have_start)
printf ("warning: option ignored: %s\n", argv[arg]);
2022bd8: b6 16 e3 e8 or %i3, 0x3e8, %i3 ! 2063be8 <rtems_rfs_ops+0x2c8><== NOT EXECUTED
int b;
int rc;
total = fs->group_inodes * fs->group_count;
start = RTEMS_RFS_ROOT_INO;
end = total - 1;
2022bdc: ae 02 3f ff add %o0, -1, %l7 <== NOT EXECUTED
bool have_end;
int arg;
int b;
int rc;
total = fs->group_inodes * fs->group_count;
2022be0: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
start = RTEMS_RFS_ROOT_INO;
end = total - 1;
2022be4: aa 10 20 01 mov 1, %l5 <== NOT EXECUTED
2022be8: a2 10 00 17 mov %l7, %l1 <== NOT EXECUTED
2022bec: b8 10 20 00 clr %i4 <== NOT EXECUTED
2022bf0: ba 10 20 00 clr %i5 <== NOT EXECUTED
2022bf4: a4 10 20 00 clr %l2 <== NOT EXECUTED
2022bf8: a6 10 20 00 clr %l3 <== NOT EXECUTED
2022bfc: a8 10 20 00 clr %l4 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2022c00: 10 80 00 30 b 2022cc0 <rtems_rfs_shell_inode+0xfc> <== NOT EXECUTED
2022c04: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
2022c08: d2 06 80 01 ld [ %i2 + %g1 ], %o1 <== NOT EXECUTED
2022c0c: c2 4a 40 00 ldsb [ %o1 ], %g1 <== NOT EXECUTED
2022c10: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
2022c14: 12 80 00 12 bne 2022c5c <rtems_rfs_shell_inode+0x98> <== NOT EXECUTED
2022c18: 80 8f 20 ff btst 0xff, %i4 <== NOT EXECUTED
{
switch (argv[arg][1])
2022c1c: c2 4a 60 01 ldsb [ %o1 + 1 ], %g1 <== NOT EXECUTED
2022c20: 80 a0 60 65 cmp %g1, 0x65 <== NOT EXECUTED
2022c24: 02 80 00 08 be 2022c44 <rtems_rfs_shell_inode+0x80> <== NOT EXECUTED
2022c28: 80 a0 60 66 cmp %g1, 0x66 <== NOT EXECUTED
2022c2c: 02 80 00 0a be 2022c54 <rtems_rfs_shell_inode+0x90> <== NOT EXECUTED
2022c30: 80 a0 60 61 cmp %g1, 0x61 <== NOT EXECUTED
2022c34: 12 80 00 0f bne 2022c70 <rtems_rfs_shell_inode+0xac> <== NOT EXECUTED
2022c38: 01 00 00 00 nop <== NOT EXECUTED
2022c3c: 10 80 00 04 b 2022c4c <rtems_rfs_shell_inode+0x88> <== NOT EXECUTED
2022c40: a8 10 20 01 mov 1, %l4 ! 1 <PROM_START+0x1> <== NOT EXECUTED
2022c44: 10 80 00 1e b 2022cbc <rtems_rfs_shell_inode+0xf8> <== NOT EXECUTED
2022c48: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2022c4c: 10 80 00 1d b 2022cc0 <rtems_rfs_shell_inode+0xfc> <== NOT EXECUTED
2022c50: aa 05 60 01 inc %l5 <== NOT EXECUTED
case 'e':
error_check_only = true;
break;
case 'f':
forced = true;
break;
2022c54: 10 80 00 1a b 2022cbc <rtems_rfs_shell_inode+0xf8> <== NOT EXECUTED
2022c58: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
2022c5c: 02 80 00 09 be 2022c80 <rtems_rfs_shell_inode+0xbc> <== NOT EXECUTED
2022c60: 82 0f 60 ff and %i5, 0xff, %g1 <== NOT EXECUTED
2022c64: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022c68: 02 80 00 09 be 2022c8c <rtems_rfs_shell_inode+0xc8> <== NOT EXECUTED
2022c6c: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
2022c70: 40 00 97 84 call 2048a80 <printf> <== NOT EXECUTED
2022c74: 90 10 00 1b mov %i3, %o0 <== NOT EXECUTED
break;
}
}
else
{
if (have_end && have_start)
2022c78: 10 80 00 12 b 2022cc0 <rtems_rfs_shell_inode+0xfc> <== NOT EXECUTED
2022c7c: aa 05 60 01 inc %l5 <== NOT EXECUTED
printf ("warning: option ignored: %s\n", argv[arg]);
else if (!have_start)
2022c80: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022c84: 12 80 00 09 bne 2022ca8 <rtems_rfs_shell_inode+0xe4> <== NOT EXECUTED
2022c88: 90 10 00 09 mov %o1, %o0 <== NOT EXECUTED
{
start = end = strtoul (argv[arg], 0, 0);
2022c8c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022c90: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022c94: 40 00 a6 f1 call 204c858 <strtoul> <== NOT EXECUTED
2022c98: ba 10 20 01 mov 1, %i5 <== NOT EXECUTED
2022c9c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2022ca0: 10 80 00 07 b 2022cbc <rtems_rfs_shell_inode+0xf8> <== NOT EXECUTED
2022ca4: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
have_start = true;
}
else
{
end = strtoul (argv[arg], 0, 0);
2022ca8: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022cac: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022cb0: 40 00 a6 ea call 204c858 <strtoul> <== NOT EXECUTED
2022cb4: b8 10 20 01 mov 1, %i4 <== NOT EXECUTED
2022cb8: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
show_all = false;
error_check_only = false;
forced = false;
have_start = have_end = false;
for (arg = 1; arg < argc; arg++)
2022cbc: aa 05 60 01 inc %l5 <== NOT EXECUTED
2022cc0: 80 a5 40 19 cmp %l5, %i1 <== NOT EXECUTED
2022cc4: 06 bf ff d1 bl 2022c08 <rtems_rfs_shell_inode+0x44> <== NOT EXECUTED
2022cc8: 83 2d 60 02 sll %l5, 2, %g1 <== NOT EXECUTED
have_end = true;
}
}
}
if ((start >= total) || (end >= total))
2022ccc: 80 a4 40 16 cmp %l1, %l6 <== NOT EXECUTED
2022cd0: 1a 80 00 04 bcc 2022ce0 <rtems_rfs_shell_inode+0x11c> <== NOT EXECUTED
2022cd4: 80 a4 00 16 cmp %l0, %l6 <== NOT EXECUTED
2022cd8: 2a 80 00 08 bcs,a 2022cf8 <rtems_rfs_shell_inode+0x134> <== NOT EXECUTED
2022cdc: c2 06 20 7c ld [ %i0 + 0x7c ], %g1 <== NOT EXECUTED
{
printf ("error: inode out of range (0->%" PRId32 ").\n", total - 1);
2022ce0: 92 10 00 17 mov %l7, %o1 <== NOT EXECUTED
2022ce4: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2022ce8: 40 00 97 66 call 2048a80 <printf> <== NOT EXECUTED
2022cec: 90 12 20 08 or %o0, 8, %o0 ! 2063c08 <rtems_rfs_ops+0x2e8><== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
if (rc > 0)
{
rtems_rfs_shell_unlock_rfs (fs);
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
2022cf0: 81 c7 e0 08 ret <== NOT EXECUTED
2022cf4: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
2022cf8: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022cfc: d0 00 40 00 ld [ %g1 ], %o0 <== NOT EXECUTED
2022d00: 94 10 20 00 clr %o2 <== NOT EXECUTED
}
}
if (!error_check_only || error)
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2022d04: 39 00 81 8f sethi %hi(0x2063c00), %i4 <== NOT EXECUTED
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
if (links == 0xffff)
2022d08: 3b 00 00 3f sethi %hi(0xfc00), %i5 <== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
type = "LNK";
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
2022d0c: 2f 00 81 8f sethi %hi(0x2063c00), %l7 <== NOT EXECUTED
rtems_rfs_inode_get_links (&inode),
mode, type, mode & ((1 << 10) - 1),
rtems_rfs_inode_get_block_offset (&inode),
rtems_rfs_inode_get_block_count (&inode));
for (b = 0; b < (RTEMS_RFS_INODE_BLOCKS - 1); b++)
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
2022d10: 2d 00 81 8f sethi %hi(0x2063c00), %l6 <== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
2022d14: 2b 00 81 8f sethi %hi(0x2063c00), %l5 <== NOT EXECUTED
2022d18: 37 00 81 8f sethi %hi(0x2063c00), %i3 <== NOT EXECUTED
2022d1c: 7f ff a7 75 call 200caf0 <rtems_semaphore_obtain> <== NOT EXECUTED
2022d20: 33 00 81 8f sethi %hi(0x2063c00), %i1 <== NOT EXECUTED
}
}
if (!error_check_only || error)
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2022d24: b8 17 20 90 or %i4, 0x90, %i4 <== NOT EXECUTED
2022d28: ba 17 63 ff or %i5, 0x3ff, %i5 <== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
type = "LNK";
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
2022d2c: ae 15 e0 e8 or %l7, 0xe8, %l7 <== NOT EXECUTED
rtems_rfs_inode_get_links (&inode),
mode, type, mode & ((1 << 10) - 1),
rtems_rfs_inode_get_block_offset (&inode),
rtems_rfs_inode_get_block_count (&inode));
for (b = 0; b < (RTEMS_RFS_INODE_BLOCKS - 1); b++)
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
2022d30: ac 15 a1 20 or %l6, 0x120, %l6 <== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
2022d34: aa 15 60 e0 or %l5, 0xe0, %l5 <== NOT EXECUTED
2022d38: b6 16 e0 d8 or %i3, 0xd8, %i3 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
2022d3c: 10 80 00 cf b 2023078 <rtems_rfs_shell_inode+0x4b4> <== NOT EXECUTED
2022d40: b2 16 60 d0 or %i1, 0xd0, %i1 <== NOT EXECUTED
{
rtems_rfs_inode_handle inode;
bool allocated;
rc = rtems_rfs_group_bitmap_test (fs, true, ino, &allocated);
2022d44: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
2022d48: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2022d4c: 40 00 69 64 call 203d2dc <rtems_rfs_group_bitmap_test> <== NOT EXECUTED
2022d50: 96 07 bf ff add %fp, -1, %o3 <== NOT EXECUTED
if (rc > 0)
2022d54: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022d58: 04 80 00 0d ble 2022d8c <rtems_rfs_shell_inode+0x1c8> <== NOT EXECUTED
2022d5c: 80 8d 20 ff btst 0xff, %l4 <== NOT EXECUTED
2022d60: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2022d64: 7f ff ff 90 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022d68: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: testing inode state: ino=%" PRIu32 ": (%d) %s\n",
2022d6c: 40 00 9f fa call 204ad54 <strerror> <== NOT EXECUTED
2022d70: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2022d74: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022d78: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2022d7c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022d80: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2022d84: 10 80 00 b9 b 2023068 <rtems_rfs_shell_inode+0x4a4> <== NOT EXECUTED
2022d88: 90 12 20 30 or %o0, 0x30, %o0 ! 2063c30 <rtems_rfs_ops+0x310><== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
}
if (show_all || allocated)
2022d8c: 12 80 00 05 bne 2022da0 <rtems_rfs_shell_inode+0x1dc> <== NOT EXECUTED
2022d90: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2022d94: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022d98: 22 80 00 b8 be,a 2023078 <rtems_rfs_shell_inode+0x4b4> <== NOT EXECUTED
2022d9c: a0 04 20 01 inc %l0 <== NOT EXECUTED
{
uint16_t mode;
bool error;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
2022da0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022da4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022da8: 94 07 bf d4 add %fp, -44, %o2 <== NOT EXECUTED
2022dac: 40 00 6b 5b call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
2022db0: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
2022db4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022db8: 04 80 00 0d ble 2022dec <rtems_rfs_shell_inode+0x228> <== NOT EXECUTED
2022dbc: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
2022dc0: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2022dc4: 7f ff ff 78 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2022dc8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: opening inode handle: ino=%" PRIu32 ": (%d) %s\n",
2022dcc: 40 00 9f e2 call 204ad54 <strerror> <== NOT EXECUTED
2022dd0: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2022dd4: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2022dd8: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2022ddc: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2022de0: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2022de4: 10 80 00 a1 b 2023068 <rtems_rfs_shell_inode+0x4a4> <== NOT EXECUTED
2022de8: 90 12 20 60 or %o0, 0x60, %o0 ! 2063c60 <rtems_rfs_ops+0x340><== NOT EXECUTED
error = false;
mode = rtems_rfs_inode_get_mode (&inode);
if (error_check_only)
2022dec: 80 8c e0 ff btst 0xff, %l3 <== NOT EXECUTED
* @return uint16_t The mode.
*/
static inline uint16_t
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u16 (&handle->node->mode);
2022df0: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
2022df4: f4 08 60 02 ldub [ %g1 + 2 ], %i2 <== NOT EXECUTED
2022df8: b5 2e a0 08 sll %i2, 8, %i2 <== NOT EXECUTED
2022dfc: 02 80 00 15 be 2022e50 <rtems_rfs_shell_inode+0x28c> <== NOT EXECUTED
2022e00: b4 16 80 02 or %i2, %g2, %i2 <== NOT EXECUTED
{
if (!RTEMS_RFS_S_ISDIR (mode) &&
2022e04: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2022e08: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2022e0c: 82 0e 80 01 and %i2, %g1, %g1 <== NOT EXECUTED
2022e10: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022e14: 02 80 00 86 be 202302c <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022e18: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2022e1c: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2022e20: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022e24: 02 80 00 82 be 202302c <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022e28: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2022e2c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022e30: 02 80 00 7f be 202302c <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022e34: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2022e38: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022e3c: 02 80 00 7c be 202302c <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022e40: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
}
#endif
}
}
if (!error_check_only || error)
2022e44: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022e48: 02 80 00 79 be 202302c <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022e4c: 01 00 00 00 nop <== NOT EXECUTED
{
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
2022e50: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
2022e54: c4 0f bf ff ldub [ %fp + -1 ], %g2 <== NOT EXECUTED
2022e58: d4 07 bf e8 ld [ %fp + -24 ], %o2 <== NOT EXECUTED
2022e5c: 80 a0 00 02 cmp %g0, %g2 <== NOT EXECUTED
2022e60: 97 28 60 06 sll %g1, 6, %o3 <== NOT EXECUTED
2022e64: 83 28 60 03 sll %g1, 3, %g1 <== NOT EXECUTED
2022e68: 98 60 20 00 subx %g0, 0, %o4 <== NOT EXECUTED
2022e6c: 96 22 c0 01 sub %o3, %g1, %o3 <== NOT EXECUTED
2022e70: 98 0b 3f fb and %o4, -5, %o4 <== NOT EXECUTED
2022e74: 90 10 00 1c mov %i4, %o0 <== NOT EXECUTED
2022e78: 98 03 20 46 add %o4, 0x46, %o4 <== NOT EXECUTED
2022e7c: 40 00 97 01 call 2048a80 <printf> <== NOT EXECUTED
2022e80: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
2022e84: c2 0f bf ff ldub [ %fp + -1 ], %g1 <== NOT EXECUTED
2022e88: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2022e8c: 32 80 00 0a bne,a 2022eb4 <rtems_rfs_shell_inode+0x2f0> <== NOT EXECUTED
2022e90: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
2022e94: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
2022e98: 32 80 00 07 bne,a 2022eb4 <rtems_rfs_shell_inode+0x2f0> <== NOT EXECUTED
2022e9c: b5 2e a0 10 sll %i2, 0x10, %i2 <== NOT EXECUTED
printf (" --\n");
2022ea0: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2022ea4: 40 00 97 a3 call 2048d30 <puts> <== NOT EXECUTED
2022ea8: 90 12 20 b0 or %o0, 0xb0, %o0 ! 2063cb0 <rtems_rfs_ops+0x390><== NOT EXECUTED
printf (" %5" PRIu32 ": pos=%06" PRIu32 ":%04zx %c ",
ino, rtems_rfs_buffer_bnum (&inode.buffer),
inode.offset * RTEMS_RFS_INODE_SIZE,
allocated ? 'A' : 'F');
if (!allocated && !forced)
2022eac: 10 80 00 60 b 202302c <rtems_rfs_shell_inode+0x468> <== NOT EXECUTED
2022eb0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf (" --\n");
else
{
const char* type;
type = "UKN";
if (RTEMS_RFS_S_ISDIR (mode))
2022eb4: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
2022eb8: 95 36 a0 10 srl %i2, 0x10, %o2 <== NOT EXECUTED
2022ebc: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
2022ec0: 82 0a 80 01 and %o2, %g1, %g1 <== NOT EXECUTED
2022ec4: 17 00 81 8f sethi %hi(0x2063c00), %o3 <== NOT EXECUTED
2022ec8: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022ecc: 02 80 00 15 be 2022f20 <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022ed0: 96 12 e0 b8 or %o3, 0xb8, %o3 <== NOT EXECUTED
type = "DIR";
else if (RTEMS_RFS_S_ISCHR (mode))
2022ed4: 05 00 00 08 sethi %hi(0x2000), %g2 <== NOT EXECUTED
2022ed8: 17 00 81 8f sethi %hi(0x2063c00), %o3 <== NOT EXECUTED
2022edc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022ee0: 02 80 00 10 be 2022f20 <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022ee4: 96 12 e0 c0 or %o3, 0xc0, %o3 <== NOT EXECUTED
type = "CHR";
else if (RTEMS_RFS_S_ISBLK (mode))
2022ee8: 05 00 00 18 sethi %hi(0x6000), %g2 <== NOT EXECUTED
2022eec: 17 00 81 8f sethi %hi(0x2063c00), %o3 <== NOT EXECUTED
2022ef0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022ef4: 02 80 00 0b be 2022f20 <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022ef8: 96 12 e0 c8 or %o3, 0xc8, %o3 <== NOT EXECUTED
type = "BLK";
else if (RTEMS_RFS_S_ISREG (mode))
2022efc: 05 00 00 20 sethi %hi(0x8000), %g2 <== NOT EXECUTED
2022f00: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022f04: 02 80 00 07 be 2022f20 <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022f08: 96 10 00 19 mov %i1, %o3 <== NOT EXECUTED
type = "REG";
else if (RTEMS_RFS_S_ISLNK (mode))
2022f0c: 05 00 00 28 sethi %hi(0xa000), %g2 <== NOT EXECUTED
2022f10: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2022f14: 12 80 00 03 bne 2022f20 <rtems_rfs_shell_inode+0x35c> <== NOT EXECUTED
2022f18: 96 10 00 15 mov %l5, %o3 <== NOT EXECUTED
2022f1c: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
2022f20: c6 07 bf e0 ld [ %fp + -32 ], %g3 <== NOT EXECUTED
type = "LNK";
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
2022f24: b4 10 20 00 clr %i2 <== NOT EXECUTED
2022f28: d0 08 e0 01 ldub [ %g3 + 1 ], %o0 <== NOT EXECUTED
2022f2c: c2 08 c0 00 ldub [ %g3 ], %g1 <== NOT EXECUTED
2022f30: d2 08 e0 0b ldub [ %g3 + 0xb ], %o1 <== NOT EXECUTED
2022f34: c8 08 e0 0c ldub [ %g3 + 0xc ], %g4 <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
2022f38: 9e 00 e0 0c add %g3, 0xc, %o7 <== NOT EXECUTED
2022f3c: da 08 e0 0a ldub [ %g3 + 0xa ], %o5 <== NOT EXECUTED
2022f40: d8 0b e0 03 ldub [ %o7 + 3 ], %o4 <== NOT EXECUTED
2022f44: c4 0b e0 02 ldub [ %o7 + 2 ], %g2 <== NOT EXECUTED
2022f48: c6 0b e0 01 ldub [ %o7 + 1 ], %g3 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
2022f4c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
2022f50: 82 10 40 08 or %g1, %o0, %g1 <== NOT EXECUTED
2022f54: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
if (links == 0xffff)
2022f58: 91 28 60 10 sll %g1, 0x10, %o0 <== NOT EXECUTED
2022f5c: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
2022f60: 91 32 20 10 srl %o0, 0x10, %o0 <== NOT EXECUTED
2022f64: 9b 2b 60 08 sll %o5, 8, %o5 <== NOT EXECUTED
2022f68: 90 1a 00 1d xor %o0, %i5, %o0 <== NOT EXECUTED
2022f6c: 9a 12 40 0d or %o1, %o5, %o5 <== NOT EXECUTED
2022f70: 80 a0 00 08 cmp %g0, %o0 <== NOT EXECUTED
2022f74: 89 29 20 18 sll %g4, 0x18, %g4 <== NOT EXECUTED
2022f78: 92 60 20 00 subx %g0, 0, %o1 <== NOT EXECUTED
2022f7c: 88 13 00 04 or %o4, %g4, %g4 <== NOT EXECUTED
2022f80: 92 08 40 09 and %g1, %o1, %o1 <== NOT EXECUTED
2022f84: 82 11 00 03 or %g4, %g3, %g1 <== NOT EXECUTED
2022f88: 82 10 40 02 or %g1, %g2, %g1 <== NOT EXECUTED
2022f8c: 93 2a 60 10 sll %o1, 0x10, %o1 <== NOT EXECUTED
2022f90: c2 23 a0 5c st %g1, [ %sp + 0x5c ] <== NOT EXECUTED
2022f94: 93 32 60 10 srl %o1, 0x10, %o1 <== NOT EXECUTED
2022f98: 90 10 00 17 mov %l7, %o0 <== NOT EXECUTED
2022f9c: 40 00 96 b9 call 2048a80 <printf> <== NOT EXECUTED
2022fa0: 98 0a a3 ff and %o2, 0x3ff, %o4 <== NOT EXECUTED
* @return uint32_t The block number.
*/
static inline uint32_t
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
{
return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);
2022fa4: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
rtems_rfs_inode_get_links (&inode),
mode, type, mode & ((1 << 10) - 1),
rtems_rfs_inode_get_block_offset (&inode),
rtems_rfs_inode_get_block_count (&inode));
for (b = 0; b < (RTEMS_RFS_INODE_BLOCKS - 1); b++)
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
2022fa8: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
2022fac: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2022fb0: d2 08 40 1a ldub [ %g1 + %i2 ], %o1 <== NOT EXECUTED
2022fb4: 82 00 40 1a add %g1, %i2, %g1 <== NOT EXECUTED
2022fb8: c4 08 60 02 ldub [ %g1 + 2 ], %g2 <== NOT EXECUTED
2022fbc: c6 08 60 03 ldub [ %g1 + 3 ], %g3 <== NOT EXECUTED
2022fc0: c2 08 60 01 ldub [ %g1 + 1 ], %g1 <== NOT EXECUTED
2022fc4: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
2022fc8: 83 28 60 10 sll %g1, 0x10, %g1 <== NOT EXECUTED
2022fcc: 92 10 c0 09 or %g3, %o1, %o1 <== NOT EXECUTED
2022fd0: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2022fd4: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
2022fd8: 40 00 96 aa call 2048a80 <printf> <== NOT EXECUTED
2022fdc: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2022fe0: b4 06 a0 04 add %i2, 4, %i2 <== NOT EXECUTED
printf ("links=%03i mode=%04x (%s/%03o) bo=%04u bc=%04" PRIu32 " b=[",
rtems_rfs_inode_get_links (&inode),
mode, type, mode & ((1 << 10) - 1),
rtems_rfs_inode_get_block_offset (&inode),
rtems_rfs_inode_get_block_count (&inode));
for (b = 0; b < (RTEMS_RFS_INODE_BLOCKS - 1); b++)
2022fe4: 80 a6 a0 10 cmp %i2, 0x10 <== NOT EXECUTED
2022fe8: 12 bf ff f0 bne 2022fa8 <rtems_rfs_shell_inode+0x3e4> <== NOT EXECUTED
2022fec: c2 07 bf e0 ld [ %fp + -32 ], %g1 <== NOT EXECUTED
printf ("%" PRIu32 " ", rtems_rfs_inode_get_block (&inode, b));
printf ("%" PRIu32 "]\n", rtems_rfs_inode_get_block (&inode, b));
2022ff0: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2022ff4: 82 00 60 1c add %g1, 0x1c, %g1 <== NOT EXECUTED
2022ff8: c4 08 60 12 ldub [ %g1 + 0x12 ], %g2 <== NOT EXECUTED
2022ffc: d2 08 60 10 ldub [ %g1 + 0x10 ], %o1 <== NOT EXECUTED
2023000: c6 08 60 11 ldub [ %g1 + 0x11 ], %g3 <== NOT EXECUTED
2023004: c2 08 60 13 ldub [ %g1 + 0x13 ], %g1 <== NOT EXECUTED
2023008: 93 2a 60 18 sll %o1, 0x18, %o1 <== NOT EXECUTED
202300c: 87 28 e0 10 sll %g3, 0x10, %g3 <== NOT EXECUTED
2023010: 92 12 40 03 or %o1, %g3, %o1 <== NOT EXECUTED
2023014: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
2023018: 83 28 a0 08 sll %g2, 8, %g1 <== NOT EXECUTED
202301c: 90 12 21 28 or %o0, 0x128, %o0 <== NOT EXECUTED
2023020: 40 00 96 98 call 2048a80 <printf> <== NOT EXECUTED
2023024: 92 12 40 01 or %o1, %g1, %o1 <== NOT EXECUTED
}
}
rc = rtems_rfs_inode_close (fs, &inode);
2023028: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202302c: 40 00 6a 92 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
2023030: 92 07 bf d4 add %fp, -44, %o1 <== NOT EXECUTED
if (rc > 0)
2023034: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023038: 24 80 00 10 ble,a 2023078 <rtems_rfs_shell_inode+0x4b4> <== NOT EXECUTED
202303c: a0 04 20 01 inc %l0 <== NOT EXECUTED
2023040: b4 10 00 08 mov %o0, %i2 <== NOT EXECUTED
{
rtems_rfs_shell_unlock_rfs (fs);
2023044: 7f ff fe d8 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023048: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
printf ("error: closing inode handle: ino=%" PRIu32 ": (%d) %s\n",
202304c: 40 00 9f 42 call 204ad54 <strerror> <== NOT EXECUTED
2023050: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
2023054: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2023058: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
202305c: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
2023060: 11 00 81 8f sethi %hi(0x2063c00), %o0 <== NOT EXECUTED
2023064: 90 12 21 30 or %o0, 0x130, %o0 ! 2063d30 <rtems_rfs_ops+0x410><== NOT EXECUTED
2023068: 40 00 96 86 call 2048a80 <printf> <== NOT EXECUTED
202306c: 01 00 00 00 nop <== NOT EXECUTED
ino, rc, strerror (rc));
return 1;
2023070: 81 c7 e0 08 ret <== NOT EXECUTED
2023074: 91 e8 20 01 restore %g0, 1, %o0 <== NOT EXECUTED
return 1;
}
rtems_rfs_shell_lock_rfs (fs);
for (ino = start; ino <= end; ino++)
2023078: 80 a4 00 11 cmp %l0, %l1 <== NOT EXECUTED
202307c: 08 bf ff 32 bleu 2022d44 <rtems_rfs_shell_inode+0x180> <== NOT EXECUTED
2023080: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
return 1;
}
}
}
rtems_rfs_shell_unlock_rfs (fs);
2023084: 7f ff fe c8 call 2022ba4 <rtems_rfs_shell_unlock_rfs> <== NOT EXECUTED
2023088: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
202308c: 81 c7 e0 08 ret <== NOT EXECUTED
2023090: 81 e8 00 00 restore <== NOT EXECUTED
02022ba4 <rtems_rfs_shell_unlock_rfs>:
/**
* Unlock the file system.
*/
static void
rtems_rfs_shell_unlock_rfs (rtems_rfs_file_system* fs)
{
2022ba4: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
* Unlock the RFS file system.
*/
static inline void
rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs)
{
rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);
2022ba8: e0 06 20 7c ld [ %i0 + 0x7c ], %l0 <== NOT EXECUTED
rtems_rfs_buffers_release (fs);
2022bac: 40 00 5d 92 call 203a1f4 <rtems_rfs_buffers_release> <== NOT EXECUTED
2022bb0: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)
{
#if __rtems__
rtems_status_code sc = rtems_semaphore_release (*mutex);
2022bb4: f0 04 00 00 ld [ %l0 ], %i0 <== NOT EXECUTED
2022bb8: 7f ff a8 15 call 200cc0c <rtems_semaphore_release> <== NOT EXECUTED
2022bbc: 81 e8 00 00 restore <== NOT EXECUTED
0202293c <rtems_rfs_shell_usage>:
}
void
rtems_rfs_shell_usage (const char* arg)
{
202293c: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
printf ("%s: RFS debugger\n", arg);
2022940: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022944: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2022948: 40 00 98 4e call 2048a80 <printf> <== NOT EXECUTED
202294c: 90 12 21 90 or %o0, 0x190, %o0 <== NOT EXECUTED
printf (" %s [-hl] <path> <command>\n", arg);
2022950: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2022954: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022958: 40 00 98 4a call 2048a80 <printf> <== NOT EXECUTED
202295c: 90 12 21 a8 or %o0, 0x1a8, %o0 ! 20639a8 <rtems_rfs_ops+0x88><== NOT EXECUTED
printf (" where:\n");
2022960: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022964: 40 00 98 f3 call 2048d30 <puts> <== NOT EXECUTED
2022968: 90 12 21 c8 or %o0, 0x1c8, %o0 ! 20639c8 <rtems_rfs_ops+0xa8><== NOT EXECUTED
printf (" path: Path to the mounted RFS file system\n");
202296c: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022970: 40 00 98 f0 call 2048d30 <puts> <== NOT EXECUTED
2022974: 90 12 21 d8 or %o0, 0x1d8, %o0 ! 20639d8 <rtems_rfs_ops+0xb8><== NOT EXECUTED
printf (" command: A debugger command. See -l for a list plus help.\n");
2022978: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
202297c: 40 00 98 ed call 2048d30 <puts> <== NOT EXECUTED
2022980: 90 12 22 10 or %o0, 0x210, %o0 ! 2063a10 <rtems_rfs_ops+0xf0><== NOT EXECUTED
printf (" -h: This help\n");
2022984: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022988: 40 00 98 ea call 2048d30 <puts> <== NOT EXECUTED
202298c: 90 12 22 50 or %o0, 0x250, %o0 ! 2063a50 <rtems_rfs_ops+0x130><== NOT EXECUTED
printf (" -l: The debugger command list.\n");
2022990: 31 00 81 8e sethi %hi(0x2063800), %i0 <== NOT EXECUTED
2022994: 40 00 98 e7 call 2048d30 <puts> <== NOT EXECUTED
2022998: 91 ee 22 68 restore %i0, 0x268, %o0 <== NOT EXECUTED
0203e0fc <rtems_rfs_symlink>:
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
203e0fc: 9d e3 bf 00 save %sp, -256, %sp <== NOT EXECUTED
printf (" link:");
for (c = 0; c < link_length; c++)
printf ("%c", link[c]);
}
if (link_length >= rtems_rfs_fs_block_size (fs))
203e100: c2 06 20 08 ld [ %i0 + 8 ], %g1 <== NOT EXECUTED
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
203e104: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
printf (" link:");
for (c = 0; c < link_length; c++)
printf ("%c", link[c]);
}
if (link_length >= rtems_rfs_fs_block_size (fs))
203e108: 80 a7 00 01 cmp %i4, %g1 <== NOT EXECUTED
const char* link,
int link_length,
uid_t uid,
gid_t gid,
rtems_rfs_ino parent)
{
203e10c: e2 07 a0 5c ld [ %fp + 0x5c ], %l1 <== NOT EXECUTED
printf (" link:");
for (c = 0; c < link_length; c++)
printf ("%c", link[c]);
}
if (link_length >= rtems_rfs_fs_block_size (fs))
203e110: 1a 80 00 6b bcc 203e2bc <rtems_rfs_symlink+0x1c0> <== NOT EXECUTED
203e114: b0 10 20 5b mov 0x5b, %i0 <== NOT EXECUTED
return ENAMETOOLONG;
rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),
203e118: 40 00 34 1b call 204b184 <strlen> <== NOT EXECUTED
203e11c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
203e120: d2 07 a0 60 ld [ %fp + 0x60 ], %o1 <== NOT EXECUTED
203e124: 82 07 bf fc add %fp, -4, %g1 <== NOT EXECUTED
203e128: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
203e12c: bb 2f 60 10 sll %i5, 0x10, %i5 <== NOT EXECUTED
203e130: a3 2c 60 10 sll %l1, 0x10, %l1 <== NOT EXECUTED
203e134: bb 37 60 10 srl %i5, 0x10, %i5 <== NOT EXECUTED
203e138: a3 34 60 10 srl %l1, 0x10, %l1 <== NOT EXECUTED
203e13c: fa 23 a0 5c st %i5, [ %sp + 0x5c ] <== NOT EXECUTED
203e140: e2 23 a0 60 st %l1, [ %sp + 0x60 ] <== NOT EXECUTED
203e144: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
203e148: c2 23 a0 64 st %g1, [ %sp + 0x64 ] <== NOT EXECUTED
203e14c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e150: 19 00 00 28 sethi %hi(0xa000), %o4 <== NOT EXECUTED
203e154: 9a 10 20 01 mov 1, %o5 <== NOT EXECUTED
203e158: 7f ff fe d1 call 203dc9c <rtems_rfs_inode_create> <== NOT EXECUTED
203e15c: 98 13 21 ff or %o4, 0x1ff, %o4 <== NOT EXECUTED
RTEMS_RFS_S_SYMLINK,
1, uid, gid, &ino);
if (rc > 0)
203e160: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e164: 14 80 00 56 bg 203e2bc <rtems_rfs_symlink+0x1c0> <== NOT EXECUTED
203e168: d2 07 bf fc ld [ %fp + -4 ], %o1 <== NOT EXECUTED
return rc;
rc = rtems_rfs_inode_open (fs, ino, &inode, true);
203e16c: a2 07 bf c4 add %fp, -60, %l1 <== NOT EXECUTED
203e170: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e174: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203e178: 7f ff fe 68 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203e17c: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc > 0)
203e180: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e184: 14 80 00 4e bg 203e2bc <rtems_rfs_symlink+0x1c0> <== NOT EXECUTED
203e188: 80 a7 20 13 cmp %i4, 0x13 <== NOT EXECUTED
/*
* If the link length is less than the length of data union in the inode
* place the link into the data area else allocate a block and write the link
* to that.
*/
if (link_length < RTEMS_RFS_INODE_DATA_NAME_SIZE)
203e18c: 18 80 00 15 bgu 203e1e0 <rtems_rfs_symlink+0xe4> <== NOT EXECUTED
203e190: a4 07 bf 74 add %fp, -140, %l2 <== NOT EXECUTED
{
memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
203e194: d0 07 bf d0 ld [ %fp + -48 ], %o0 <== NOT EXECUTED
203e198: 92 10 20 00 clr %o1 <== NOT EXECUTED
203e19c: 94 10 20 14 mov 0x14, %o2 <== NOT EXECUTED
203e1a0: 40 00 26 1c call 2047a10 <memset> <== NOT EXECUTED
203e1a4: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
memcpy (inode.node->data.name, link, link_length);
203e1a8: d0 07 bf d0 ld [ %fp + -48 ], %o0 <== NOT EXECUTED
203e1ac: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203e1b0: 90 02 20 1c add %o0, 0x1c, %o0 <== NOT EXECUTED
203e1b4: 40 00 25 84 call 20477c4 <memcpy> <== NOT EXECUTED
203e1b8: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
* @param block_count The block count.
*/
static inline void
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{
rtems_rfs_write_u32 (&handle->node->block_count, block_count);
203e1bc: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203e1c0: c0 28 60 0c clrb [ %g1 + 0xc ] <== NOT EXECUTED
203e1c4: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203e1c8: c0 28 60 0d clrb [ %g1 + 0xd ] <== NOT EXECUTED
203e1cc: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203e1d0: c0 28 60 0e clrb [ %g1 + 0xe ] <== NOT EXECUTED
203e1d4: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203e1d8: 10 80 00 3b b 203e2c4 <rtems_rfs_symlink+0x1c8> <== NOT EXECUTED
203e1dc: c0 28 60 0f clrb [ %g1 + 0xf ] <== NOT EXECUTED
rtems_rfs_block_map map;
rtems_rfs_block_no block;
rtems_rfs_buffer_handle buffer;
uint8_t* data;
rc = rtems_rfs_block_map_open (fs, &inode, &map);
203e1e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e1e4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e1e8: 7f ff ef 86 call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203e1ec: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203e1f0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e1f4: 14 80 00 30 bg 203e2b4 <rtems_rfs_symlink+0x1b8> <== NOT EXECUTED
203e1f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);
203e1fc: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e200: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
203e204: 7f ff ee 28 call 2039aa4 <rtems_rfs_block_map_grow> <== NOT EXECUTED
203e208: 96 07 bf f8 add %fp, -8, %o3 <== NOT EXECUTED
if (rc > 0)
203e20c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e210: 14 80 00 0e bg 203e248 <rtems_rfs_symlink+0x14c> <== NOT EXECUTED
203e214: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
203e218: d4 07 bf f8 ld [ %fp + -8 ], %o2 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203e21c: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
203e220: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
203e224: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
203e228: a6 07 bf ec add %fp, -20, %l3 <== NOT EXECUTED
203e22c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e230: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203e234: 7f ff f0 8f call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e238: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203e23c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e240: 04 80 00 06 ble 203e258 <rtems_rfs_symlink+0x15c> <== NOT EXECUTED
203e244: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
203e248: 7f ff ee fd call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203e24c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
rc = rtems_rfs_block_map_close (fs, &map);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
203e250: 10 80 00 19 b 203e2b4 <rtems_rfs_symlink+0x1b8> <== NOT EXECUTED
203e254: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
203e258: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
203e25c: d4 04 20 08 ld [ %l0 + 8 ], %o2 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
203e260: f2 00 60 24 ld [ %g1 + 0x24 ], %i1 <== NOT EXECUTED
memset (data, 0xff, rtems_rfs_fs_block_size (fs));
203e264: 92 10 20 ff mov 0xff, %o1 <== NOT EXECUTED
203e268: 40 00 25 ea call 2047a10 <memset> <== NOT EXECUTED
203e26c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
memcpy (data, link, link_length);
203e270: 94 10 00 1c mov %i4, %o2 <== NOT EXECUTED
203e274: 92 10 00 1b mov %i3, %o1 <== NOT EXECUTED
203e278: 40 00 25 53 call 20477c4 <memcpy> <== NOT EXECUTED
203e27c: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203e280: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203e284: 7f ff f0 31 call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203e288: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_close (fs, &map);
203e28c: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->dirty = false;
203e290: c0 2f bf ec clrb [ %fp + -20 ] <== NOT EXECUTED
handle->bnum = 0;
203e294: c0 27 bf f0 clr [ %fp + -16 ] <== NOT EXECUTED
handle->buffer = NULL;
203e298: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
203e29c: 7f ff ee e8 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203e2a0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203e2a4: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e2a8: 04 80 00 08 ble 203e2c8 <rtems_rfs_symlink+0x1cc> <== NOT EXECUTED
203e2ac: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203e2b0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e2b4: 7f ff fd f0 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e2b8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203e2bc: 81 c7 e0 08 ret <== NOT EXECUTED
203e2c0: 81 e8 00 00 restore <== NOT EXECUTED
*/
static inline void
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,
uint16_t block_offset)
{
rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);
203e2c4: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
203e2c8: 85 37 20 08 srl %i4, 8, %g2 <== NOT EXECUTED
203e2cc: c4 28 60 0a stb %g2, [ %g1 + 0xa ] <== NOT EXECUTED
203e2d0: c2 07 bf d0 ld [ %fp + -48 ], %g1 <== NOT EXECUTED
}
}
rtems_rfs_inode_set_block_offset (&inode, link_length);
rc = rtems_rfs_inode_close (fs, &inode);
203e2d4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e2d8: f8 28 60 0b stb %i4, [ %g1 + 0xb ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203e2dc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203e2e0: 92 07 bf c4 add %fp, -60, %o1 <== NOT EXECUTED
203e2e4: 7f ff fd e4 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e2e8: c2 2f bf d4 stb %g1, [ %fp + -44 ] <== NOT EXECUTED
203e2ec: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
203e2f0: 81 c7 e0 08 ret <== NOT EXECUTED
203e2f4: 81 e8 00 00 restore <== NOT EXECUTED
0203df30 <rtems_rfs_symlink_read>:
rtems_rfs_symlink_read (rtems_rfs_file_system* fs,
rtems_rfs_ino link,
char* path,
size_t size,
size_t* length)
{
203df30: 9d e3 bf 18 save %sp, -232, %sp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))
printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);
rc = rtems_rfs_inode_open (fs, link, &inode, true);
203df34: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203df38: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_symlink_read (rtems_rfs_file_system* fs,
rtems_rfs_ino link,
char* path,
size_t size,
size_t* length)
{
203df3c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))
printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);
rc = rtems_rfs_inode_open (fs, link, &inode, true);
203df40: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203df44: a2 07 bf c8 add %fp, -56, %l1 <== NOT EXECUTED
203df48: 7f ff fe f4 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203df4c: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
203df50: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203df54: 12 80 00 15 bne 203dfa8 <rtems_rfs_symlink_read+0x78> <== NOT EXECUTED
203df58: d2 07 bf d4 ld [ %fp + -44 ], %o1 <== NOT EXECUTED
return rc;
if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))
203df5c: 03 00 00 3c sethi %hi(0xf000), %g1 <== NOT EXECUTED
203df60: c4 0a 60 02 ldub [ %o1 + 2 ], %g2 <== NOT EXECUTED
203df64: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203df68: 84 08 80 01 and %g2, %g1, %g2 <== NOT EXECUTED
203df6c: 03 00 00 28 sethi %hi(0xa000), %g1 <== NOT EXECUTED
203df70: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
203df74: 12 80 00 0a bne 203df9c <rtems_rfs_symlink_read+0x6c> <== NOT EXECUTED
203df78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return EINVAL;
}
*length = rtems_rfs_inode_get_block_offset (&inode);
203df7c: d4 0a 60 0a ldub [ %o1 + 0xa ], %o2 <== NOT EXECUTED
203df80: c2 0a 60 0b ldub [ %o1 + 0xb ], %g1 <== NOT EXECUTED
203df84: 95 2a a0 08 sll %o2, 8, %o2 <== NOT EXECUTED
203df88: 94 10 40 0a or %g1, %o2, %o2 <== NOT EXECUTED
if (size < *length)
203df8c: 80 a6 c0 0a cmp %i3, %o2 <== NOT EXECUTED
203df90: 1a 80 00 08 bcc 203dfb0 <rtems_rfs_symlink_read+0x80> <== NOT EXECUTED
203df94: d4 27 00 00 st %o2, [ %i4 ] <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203df98: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203df9c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203dfa0: 7f ff fe b5 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203dfa4: b0 10 20 16 mov 0x16, %i0 <== NOT EXECUTED
return EINVAL;
203dfa8: 81 c7 e0 08 ret <== NOT EXECUTED
203dfac: 81 e8 00 00 restore <== NOT EXECUTED
* @return uint32_t The block count.
*/
static inline uint32_t
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)
{
return rtems_rfs_read_u32 (&handle->node->block_count);
203dfb0: 82 02 60 0c add %o1, 0xc, %g1 <== NOT EXECUTED
}
if (rtems_rfs_inode_get_block_count (&inode) == 0)
203dfb4: c4 08 60 03 ldub [ %g1 + 3 ], %g2 <== NOT EXECUTED
203dfb8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203dfbc: 12 80 00 13 bne 203e008 <rtems_rfs_symlink_read+0xd8> <== NOT EXECUTED
203dfc0: a2 07 bf c8 add %fp, -56, %l1 <== NOT EXECUTED
203dfc4: c4 0a 60 0c ldub [ %o1 + 0xc ], %g2 <== NOT EXECUTED
203dfc8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203dfcc: 12 80 00 10 bne 203e00c <rtems_rfs_symlink_read+0xdc> <== NOT EXECUTED
203dfd0: a4 07 bf 78 add %fp, -136, %l2 <== NOT EXECUTED
203dfd4: c4 08 60 01 ldub [ %g1 + 1 ], %g2 <== NOT EXECUTED
203dfd8: 80 a0 a0 00 cmp %g2, 0 <== NOT EXECUTED
203dfdc: 12 80 00 0d bne 203e010 <rtems_rfs_symlink_read+0xe0> <== NOT EXECUTED
203dfe0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203dfe4: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
203dfe8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
203dfec: 32 80 00 0a bne,a 203e014 <rtems_rfs_symlink_read+0xe4> <== NOT EXECUTED
203dff0: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
memcpy (path, inode.node->data.name, *length);
203dff4: 92 02 60 1c add %o1, 0x1c, %o1 <== NOT EXECUTED
203dff8: 40 00 25 f3 call 20477c4 <memcpy> <== NOT EXECUTED
203dffc: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
203e000: 10 80 00 38 b 203e0e0 <rtems_rfs_symlink_read+0x1b0> <== NOT EXECUTED
203e004: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
rtems_rfs_block_map map;
rtems_rfs_block_no block;
rtems_rfs_buffer_handle buffer;
char* data;
rc = rtems_rfs_block_map_open (fs, &inode, &map);
203e008: a4 07 bf 78 add %fp, -136, %l2 <== NOT EXECUTED
203e00c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e010: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e014: 7f ff ef fb call 203a000 <rtems_rfs_block_map_open> <== NOT EXECUTED
203e018: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
if (rc > 0)
203e01c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e020: 14 80 00 2c bg 203e0d0 <rtems_rfs_symlink_read+0x1a0> <== NOT EXECUTED
203e024: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);
203e028: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
203e02c: 94 10 20 00 clr %o2 <== NOT EXECUTED
203e030: 96 10 20 00 clr %o3 <== NOT EXECUTED
203e034: 7f ff ed 3a call 203951c <rtems_rfs_block_map_seek> <== NOT EXECUTED
203e038: 98 07 bf fc add %fp, -4, %o4 <== NOT EXECUTED
if (rc > 0)
203e03c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e040: 14 80 00 0e bg 203e078 <rtems_rfs_symlink_read+0x148> <== NOT EXECUTED
203e044: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false);
203e048: d4 07 bf fc ld [ %fp + -4 ], %o2 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_open (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
handle->dirty = false;
203e04c: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203e050: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203e054: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203e058: a6 07 bf f0 add %fp, -16, %l3 <== NOT EXECUTED
203e05c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e060: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203e064: 7f ff f1 03 call 203a470 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
203e068: 96 10 20 00 clr %o3 <== NOT EXECUTED
if (rc > 0)
203e06c: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e070: 04 80 00 06 ble 203e088 <rtems_rfs_symlink_read+0x158> <== NOT EXECUTED
203e074: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
{
rtems_rfs_block_map_close (fs, &map);
203e078: 7f ff ef 71 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203e07c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
}
rc = rtems_rfs_block_map_close (fs, &map);
if (rc > 0)
{
rtems_rfs_inode_close (fs, &inode);
203e080: 10 80 00 14 b 203e0d0 <rtems_rfs_symlink_read+0x1a0> <== NOT EXECUTED
203e084: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
data = rtems_rfs_buffer_data (&buffer);
memcpy (path, data, *length);
203e088: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
203e08c: d4 07 00 00 ld [ %i4 ], %o2 <== NOT EXECUTED
203e090: d2 00 60 24 ld [ %g1 + 0x24 ], %o1 <== NOT EXECUTED
203e094: 40 00 25 cc call 20477c4 <memcpy> <== NOT EXECUTED
203e098: 90 10 00 1a mov %i2, %o0 <== NOT EXECUTED
*/
static inline int
rtems_rfs_buffer_handle_close (rtems_rfs_file_system* fs,
rtems_rfs_buffer_handle* handle)
{
rtems_rfs_buffer_handle_release (fs, handle);
203e09c: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
203e0a0: 7f ff f0 aa call 203a348 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
203e0a4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_block_map_close (fs, &map);
rtems_rfs_inode_close (fs, &inode);
return rc;
}
rc = rtems_rfs_block_map_close (fs, &map);
203e0a8: 92 10 00 12 mov %l2, %o1 <== NOT EXECUTED
handle->dirty = false;
203e0ac: c0 2f bf f0 clrb [ %fp + -16 ] <== NOT EXECUTED
handle->bnum = 0;
203e0b0: c0 27 bf f4 clr [ %fp + -12 ] <== NOT EXECUTED
handle->buffer = NULL;
203e0b4: c0 27 bf f8 clr [ %fp + -8 ] <== NOT EXECUTED
203e0b8: 7f ff ef 61 call 2039e3c <rtems_rfs_block_map_close> <== NOT EXECUTED
203e0bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203e0c0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e0c4: 24 80 00 07 ble,a 203e0e0 <rtems_rfs_symlink_read+0x1b0> <== NOT EXECUTED
203e0c8: c2 07 00 00 ld [ %i4 ], %g1 <== NOT EXECUTED
{
rtems_rfs_inode_close (fs, &inode);
203e0cc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e0d0: 7f ff fe 69 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e0d4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
203e0d8: 81 c7 e0 08 ret <== NOT EXECUTED
203e0dc: 81 e8 00 00 restore <== NOT EXECUTED
}
}
path[*length] = '\0';
rc = rtems_rfs_inode_close (fs, &inode);
203e0e0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &inode);
return rc;
}
}
path[*length] = '\0';
203e0e4: c0 2e 80 01 clrb [ %i2 + %g1 ] <== NOT EXECUTED
rc = rtems_rfs_inode_close (fs, &inode);
203e0e8: 7f ff fe 63 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e0ec: 92 07 bf c8 add %fp, -56, %o1 <== NOT EXECUTED
203e0f0: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
return rc;
}
203e0f4: 81 c7 e0 08 ret <== NOT EXECUTED
203e0f8: 81 e8 00 00 restore <== NOT EXECUTED
0203e2f8 <rtems_rfs_unlink>:
rtems_rfs_unlink (rtems_rfs_file_system* fs,
rtems_rfs_ino parent,
rtems_rfs_ino target,
uint32_t doff,
rtems_rfs_unlink_dir dir_mode)
{
203e2f8: 9d e3 bf 50 save %sp, -176, %sp <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
203e2fc: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
203e300: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
rtems_rfs_unlink (rtems_rfs_file_system* fs,
rtems_rfs_ino parent,
rtems_rfs_ino target,
uint32_t doff,
rtems_rfs_unlink_dir dir_mode)
{
203e304: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
int rc;
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
rc = rtems_rfs_inode_open (fs, target, &target_inode, true);
203e308: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203e30c: 92 10 00 1a mov %i2, %o1 <== NOT EXECUTED
203e310: 7f ff fe 02 call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203e314: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
if (rc)
203e318: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e31c: 12 80 00 17 bne 203e378 <rtems_rfs_unlink+0x80> <== NOT EXECUTED
203e320: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
/*
* If a directory process the unlink mode.
*/
dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode));
203e324: 05 00 00 3c sethi %hi(0xf000), %g2 <== NOT EXECUTED
203e328: c2 08 60 02 ldub [ %g1 + 2 ], %g1 <== NOT EXECUTED
203e32c: 83 28 60 08 sll %g1, 8, %g1 <== NOT EXECUTED
203e330: 82 08 40 02 and %g1, %g2, %g1 <== NOT EXECUTED
203e334: 05 00 00 10 sethi %hi(0x4000), %g2 <== NOT EXECUTED
203e338: 82 18 40 02 xor %g1, %g2, %g1 <== NOT EXECUTED
203e33c: 80 a0 00 01 cmp %g0, %g1 <== NOT EXECUTED
203e340: a4 60 3f ff subx %g0, -1, %l2 <== NOT EXECUTED
if (dir)
203e344: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
203e348: 02 80 00 13 be 203e394 <rtems_rfs_unlink+0x9c> <== NOT EXECUTED
203e34c: 80 a7 20 00 cmp %i4, 0 <== NOT EXECUTED
{
switch (dir_mode)
203e350: 22 80 00 07 be,a 203e36c <rtems_rfs_unlink+0x74> <== NOT EXECUTED
203e354: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e358: 80 a7 20 01 cmp %i4, 1 <== NOT EXECUTED
203e35c: 12 80 00 0f bne 203e398 <rtems_rfs_unlink+0xa0> <== NOT EXECUTED
203e360: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
printf ("rtems-rfs: link is a directory\n");
rtems_rfs_inode_close (fs, &target_inode);
return EISDIR;
case rtems_rfs_unlink_dir_if_empty:
rc = rtems_rfs_dir_empty (fs, &target_inode);
203e364: 10 80 00 07 b 203e380 <rtems_rfs_unlink+0x88> <== NOT EXECUTED
203e368: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
switch (dir_mode)
{
case rtems_rfs_unlink_dir_denied:
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link is a directory\n");
rtems_rfs_inode_close (fs, &target_inode);
203e36c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e370: 7f ff fd c1 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e374: b0 10 20 15 mov 0x15, %i0 <== NOT EXECUTED
return EISDIR;
203e378: 81 c7 e0 08 ret <== NOT EXECUTED
203e37c: 81 e8 00 00 restore <== NOT EXECUTED
case rtems_rfs_unlink_dir_if_empty:
rc = rtems_rfs_dir_empty (fs, &target_inode);
203e380: 7f ff f0 cc call 203a6b0 <rtems_rfs_dir_empty> <== NOT EXECUTED
203e384: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203e388: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e38c: 14 80 00 31 bg 203e450 <rtems_rfs_unlink+0x158> <== NOT EXECUTED
203e390: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
default:
break;
}
}
rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);
203e394: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
203e398: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
203e39c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e3a0: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
203e3a4: 7f ff fd dd call 203db18 <rtems_rfs_inode_open> <== NOT EXECUTED
203e3a8: 96 10 20 01 mov 1, %o3 <== NOT EXECUTED
if (rc)
203e3ac: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e3b0: 12 80 00 4e bne 203e4e8 <rtems_rfs_unlink+0x1f0> <== NOT EXECUTED
203e3b4: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
return rc;
}
rc = rtems_rfs_dir_del_entry (fs, &parent_inode, target, doff);
203e3b8: 96 10 00 1b mov %i3, %o3 <== NOT EXECUTED
203e3bc: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e3c0: 7f ff f1 e2 call 203ab48 <rtems_rfs_dir_del_entry> <== NOT EXECUTED
203e3c4: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203e3c8: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e3cc: 14 80 00 44 bg 203e4dc <rtems_rfs_unlink+0x1e4> <== NOT EXECUTED
203e3d0: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
if (links == 0xffff)
203e3d4: 09 00 00 3f sethi %hi(0xfc00), %g4 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
203e3d8: c6 08 60 01 ldub [ %g1 + 1 ], %g3 <== NOT EXECUTED
203e3dc: c4 08 40 00 ldub [ %g1 ], %g2 <== NOT EXECUTED
if (links == 0xffff)
203e3e0: 88 11 23 ff or %g4, 0x3ff, %g4 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
203e3e4: 85 28 a0 08 sll %g2, 8, %g2 <== NOT EXECUTED
203e3e8: 84 10 80 03 or %g2, %g3, %g2 <== NOT EXECUTED
if (links == 0xffff)
203e3ec: 87 28 a0 10 sll %g2, 0x10, %g3 <== NOT EXECUTED
203e3f0: 87 30 e0 10 srl %g3, 0x10, %g3 <== NOT EXECUTED
203e3f4: 80 a0 c0 04 cmp %g3, %g4 <== NOT EXECUTED
203e3f8: 02 80 00 0b be 203e424 <rtems_rfs_unlink+0x12c> <== NOT EXECUTED
203e3fc: 80 a0 e0 01 cmp %g3, 1 <== NOT EXECUTED
links = rtems_rfs_inode_get_links (&target_inode);
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
if (links > 1)
203e400: 08 80 00 09 bleu 203e424 <rtems_rfs_unlink+0x12c> <== NOT EXECUTED
203e404: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
203e408: 87 30 a0 08 srl %g2, 8, %g3 <== NOT EXECUTED
203e40c: c6 28 40 00 stb %g3, [ %g1 ] <== NOT EXECUTED
203e410: c2 07 bf bc ld [ %fp + -68 ], %g1 <== NOT EXECUTED
203e414: c4 28 60 01 stb %g2, [ %g1 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203e418: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203e41c: 10 80 00 28 b 203e4bc <rtems_rfs_unlink+0x1c4> <== NOT EXECUTED
203e420: c2 2f bf c0 stb %g1, [ %fp + -64 ] <== NOT EXECUTED
else
{
/*
* Erasing the inode releases all blocks attached to it.
*/
rc = rtems_rfs_inode_delete (fs, &target_inode);
203e424: a2 07 bf b0 add %fp, -80, %l1 <== NOT EXECUTED
203e428: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e42c: 7f ff fd ee call 203dbe4 <rtems_rfs_inode_delete> <== NOT EXECUTED
203e430: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
if (rc > 0)
203e434: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e438: 04 80 00 08 ble 203e458 <rtems_rfs_unlink+0x160> <== NOT EXECUTED
203e43c: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: unlink: inode-del failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &parent_inode);
203e440: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e444: 7f ff fd 8c call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e448: 92 07 bf d8 add %fp, -40, %o1 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
203e44c: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e450: 10 80 00 2f b 203e50c <rtems_rfs_unlink+0x214> <== NOT EXECUTED
203e454: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
return rc;
}
if (dir)
203e458: 02 80 00 1a be 203e4c0 <rtems_rfs_unlink+0x1c8> <== NOT EXECUTED
203e45c: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
*/
static inline uint16_t
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)
{
uint16_t links;
links = rtems_rfs_read_u16 (&handle->node->links);
203e460: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
203e464: c2 08 a0 01 ldub [ %g2 + 1 ], %g1 <== NOT EXECUTED
203e468: c6 08 80 00 ldub [ %g2 ], %g3 <== NOT EXECUTED
203e46c: 87 28 e0 08 sll %g3, 8, %g3 <== NOT EXECUTED
203e470: 86 10 c0 01 or %g3, %g1, %g3 <== NOT EXECUTED
if (links == 0xffff)
203e474: 03 00 00 3f sethi %hi(0xfc00), %g1 <== NOT EXECUTED
203e478: 82 10 63 ff or %g1, 0x3ff, %g1 ! ffff <PROM_START+0xffff> <== NOT EXECUTED
203e47c: 89 28 e0 10 sll %g3, 0x10, %g4 <== NOT EXECUTED
203e480: 89 31 20 10 srl %g4, 0x10, %g4 <== NOT EXECUTED
203e484: 80 a1 00 01 cmp %g4, %g1 <== NOT EXECUTED
203e488: 12 80 00 04 bne 203e498 <rtems_rfs_unlink+0x1a0> <== NOT EXECUTED
203e48c: 82 10 00 03 mov %g3, %g1 <== NOT EXECUTED
203e490: 10 80 00 05 b 203e4a4 <rtems_rfs_unlink+0x1ac> <== NOT EXECUTED
203e494: 82 10 20 00 clr %g1 <== NOT EXECUTED
{
links = rtems_rfs_inode_get_links (&parent_inode);
if (links > 1)
203e498: 80 a1 20 01 cmp %g4, 1 <== NOT EXECUTED
203e49c: 38 80 00 02 bgu,a 203e4a4 <rtems_rfs_unlink+0x1ac> <== NOT EXECUTED
203e4a0: 82 00 ff ff add %g3, -1, %g1 <== NOT EXECUTED
* @prarm links The links.
*/
static inline void
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{
rtems_rfs_write_u16 (&handle->node->links, links);
203e4a4: 87 30 60 08 srl %g1, 8, %g3 <== NOT EXECUTED
203e4a8: c6 28 80 00 stb %g3, [ %g2 ] <== NOT EXECUTED
203e4ac: c4 07 bf e4 ld [ %fp + -28 ], %g2 <== NOT EXECUTED
203e4b0: c2 28 a0 01 stb %g1, [ %g2 + 1 ] <== NOT EXECUTED
rtems_rfs_buffer_mark_dirty (&handle->buffer);
203e4b4: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
203e4b8: c2 2f bf e8 stb %g1, [ %fp + -24 ] <== NOT EXECUTED
links--;
rtems_rfs_inode_set_links (&parent_inode, links);
}
}
rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);
203e4bc: a2 07 bf d8 add %fp, -40, %l1 <== NOT EXECUTED
203e4c0: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
203e4c4: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
203e4c8: 7f ff fc c1 call 203d7cc <rtems_rfs_inode_time_stamp_now> <== NOT EXECUTED
203e4cc: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
if (rc > 0)
203e4d0: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e4d4: 24 80 00 08 ble,a 203e4f4 <rtems_rfs_unlink+0x1fc> <== NOT EXECUTED
203e4d8: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: inode-time-stamp failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &parent_inode);
203e4dc: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
203e4e0: 7f ff fd 65 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e4e4: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_rfs_inode_close (fs, &target_inode);
203e4e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e4ec: 10 80 00 08 b 203e50c <rtems_rfs_unlink+0x214> <== NOT EXECUTED
203e4f0: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
return rc;
}
rc = rtems_rfs_inode_close (fs, &parent_inode);
203e4f4: 7f ff fd 60 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e4f8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if (rc > 0)
203e4fc: b0 92 20 00 orcc %o0, 0, %i0 <== NOT EXECUTED
203e500: 04 80 00 07 ble 203e51c <rtems_rfs_unlink+0x224> <== NOT EXECUTED
203e504: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
{
if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: parent inode-close failed: %d: %s\n",
rc, strerror (rc));
rtems_rfs_inode_close (fs, &target_inode);
203e508: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e50c: 7f ff fd 5a call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e510: 01 00 00 00 nop <== NOT EXECUTED
return rc;
203e514: 81 c7 e0 08 ret <== NOT EXECUTED
203e518: 81 e8 00 00 restore <== NOT EXECUTED
}
rc = rtems_rfs_inode_close (fs, &target_inode);
203e51c: 7f ff fd 56 call 203da74 <rtems_rfs_inode_close> <== NOT EXECUTED
203e520: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
203e524: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))
printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",
rc, strerror (rc));
return rc;
}
203e528: 81 c7 e0 08 ret <== NOT EXECUTED
203e52c: 81 e8 00 00 restore <== NOT EXECUTED
0202391c <rtems_shell_debugrfs>:
printf (" -l: The debugger command list.\n");
}
int
rtems_shell_debugrfs (int argc, char *argv[])
{
202391c: 9d e3 bf 10 save %sp, -240, %sp <== NOT EXECUTED
"Display a block as a table for directory entrie, dir <bno>" },
{ "group", rtems_rfs_shell_group,
"Display the group data of a file system, group, group <group>, group <start> <end>" },
{ "inode", rtems_rfs_shell_inode,
"Display an inode, inode <ino>, inode> <ino>..<ino>" }
};
2023920: 13 00 81 91 sethi %hi(0x2064400), %o1 <== NOT EXECUTED
2023924: 90 07 bf 74 add %fp, -140, %o0 <== NOT EXECUTED
2023928: 92 12 60 28 or %o1, 0x28, %o1 <== NOT EXECUTED
202392c: 40 00 8f a6 call 20477c4 <memcpy> <== NOT EXECUTED
2023930: 94 10 20 3c mov 0x3c, %o2 <== NOT EXECUTED
int arg;
int t;
for (arg = 1; arg < argc; arg++)
2023934: 80 a6 20 01 cmp %i0, 1 <== NOT EXECUTED
2023938: 04 80 00 32 ble 2023a00 <rtems_shell_debugrfs+0xe4> <== NOT EXECUTED
202393c: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if (argv[arg][0] != '-')
2023940: e2 06 60 04 ld [ %i1 + 4 ], %l1 <== NOT EXECUTED
2023944: c2 4c 40 00 ldsb [ %l1 ], %g1 <== NOT EXECUTED
2023948: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
202394c: 12 80 00 2b bne 20239f8 <rtems_shell_debugrfs+0xdc> <== NOT EXECUTED
2023950: 80 a6 20 02 cmp %i0, 2 <== NOT EXECUTED
break;
switch (argv[arg][1])
2023954: c2 4c 60 01 ldsb [ %l1 + 1 ], %g1 <== NOT EXECUTED
2023958: 80 a0 60 68 cmp %g1, 0x68 <== NOT EXECUTED
202395c: 02 80 00 06 be 2023974 <rtems_shell_debugrfs+0x58> <== NOT EXECUTED
2023960: 80 a0 60 6c cmp %g1, 0x6c <== NOT EXECUTED
2023964: 32 80 00 22 bne,a 20239ec <rtems_shell_debugrfs+0xd0> <== NOT EXECUTED
2023968: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
202396c: 10 80 00 06 b 2023984 <rtems_shell_debugrfs+0x68> <== NOT EXECUTED
2023970: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
break;
switch (argv[arg][1])
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
2023974: 7f ff fb f2 call 202293c <rtems_rfs_shell_usage> <== NOT EXECUTED
2023978: d0 06 40 00 ld [ %i1 ], %o0 <== NOT EXECUTED
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
printf (" %s\t\t%s\n", table[t].name, table[t].help);
202397c: 10 80 00 77 b 2023b58 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
2023980: 90 10 20 00 clr %o0 <== NOT EXECUTED
{
case 'h':
rtems_rfs_shell_usage (argv[0]);
return 0;
case 'l':
printf ("%s: commands are:\n", argv[0]);
2023984: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023988: 40 00 94 3e call 2048a80 <printf> <== NOT EXECUTED
202398c: 90 12 21 c8 or %o0, 0x1c8, %o0 ! 20641c8 <rtems_rfs_ops+0x8a8><== NOT EXECUTED
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
printf (" %s\t\t%s\n", table[t].name, table[t].help);
2023990: d2 07 bf 74 ld [ %fp + -140 ], %o1 <== NOT EXECUTED
2023994: d4 07 bf 7c ld [ %fp + -132 ], %o2 <== NOT EXECUTED
2023998: 21 00 81 90 sethi %hi(0x2064000), %l0 <== NOT EXECUTED
202399c: 40 00 94 39 call 2048a80 <printf> <== NOT EXECUTED
20239a0: 90 14 21 e0 or %l0, 0x1e0, %o0 ! 20641e0 <rtems_rfs_ops+0x8c0><== NOT EXECUTED
20239a4: d2 07 bf 80 ld [ %fp + -128 ], %o1 <== NOT EXECUTED
20239a8: d4 07 bf 88 ld [ %fp + -120 ], %o2 <== NOT EXECUTED
20239ac: 40 00 94 35 call 2048a80 <printf> <== NOT EXECUTED
20239b0: 90 14 21 e0 or %l0, 0x1e0, %o0 <== NOT EXECUTED
20239b4: d2 07 bf 8c ld [ %fp + -116 ], %o1 <== NOT EXECUTED
20239b8: d4 07 bf 94 ld [ %fp + -108 ], %o2 <== NOT EXECUTED
20239bc: 40 00 94 31 call 2048a80 <printf> <== NOT EXECUTED
20239c0: 90 14 21 e0 or %l0, 0x1e0, %o0 <== NOT EXECUTED
20239c4: d2 07 bf 98 ld [ %fp + -104 ], %o1 <== NOT EXECUTED
20239c8: d4 07 bf a0 ld [ %fp + -96 ], %o2 <== NOT EXECUTED
20239cc: 40 00 94 2d call 2048a80 <printf> <== NOT EXECUTED
20239d0: 90 14 21 e0 or %l0, 0x1e0, %o0 <== NOT EXECUTED
20239d4: d2 07 bf a4 ld [ %fp + -92 ], %o1 <== NOT EXECUTED
20239d8: d4 07 bf ac ld [ %fp + -84 ], %o2 <== NOT EXECUTED
20239dc: 40 00 94 29 call 2048a80 <printf> <== NOT EXECUTED
20239e0: 90 14 21 e0 or %l0, 0x1e0, %o0 <== NOT EXECUTED
20239e4: 10 80 00 5d b 2023b58 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
20239e8: 90 10 20 00 clr %o0 <== NOT EXECUTED
return 0;
default:
printf ("error: unknown option: %s\n", argv[arg]);
20239ec: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
20239f0: 10 80 00 57 b 2023b4c <rtems_shell_debugrfs+0x230> <== NOT EXECUTED
20239f4: 90 12 21 f0 or %o0, 0x1f0, %o0 <== NOT EXECUTED
return 1;
}
}
if ((argc - arg) < 2)
20239f8: 32 80 00 06 bne,a 2023a10 <rtems_shell_debugrfs+0xf4> <== NOT EXECUTED
20239fc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
2023a00: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023a04: d2 06 40 00 ld [ %i1 ], %o1 <== NOT EXECUTED
2023a08: 10 80 00 51 b 2023b4c <rtems_shell_debugrfs+0x230> <== NOT EXECUTED
2023a0c: 90 12 22 10 or %o0, 0x210, %o0 <== NOT EXECUTED
rtems_rfs_get_fs (const char* path, rtems_rfs_file_system** fs)
{
struct statvfs sb;
int rc;
rc = statvfs (path, &sb);
2023a10: 40 00 1b b7 call 202a8ec <statvfs> <== NOT EXECUTED
2023a14: 92 07 bf b0 add %fp, -80, %o1 <== NOT EXECUTED
if (rc < 0)
2023a18: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023a1c: 16 80 00 10 bge 2023a5c <rtems_shell_debugrfs+0x140> <== NOT EXECUTED
2023a20: c4 07 bf dc ld [ %fp + -36 ], %g2 <== NOT EXECUTED
{
printf ("error: cannot statvfs path: %s: (%d) %s\n",
2023a24: 40 00 82 1c call 2044294 <__errno> <== NOT EXECUTED
2023a28: 01 00 00 00 nop <== NOT EXECUTED
2023a2c: 40 00 82 1a call 2044294 <__errno> <== NOT EXECUTED
2023a30: e0 02 00 00 ld [ %o0 ], %l0 <== NOT EXECUTED
2023a34: 40 00 9c c8 call 204ad54 <strerror> <== NOT EXECUTED
2023a38: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2023a3c: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023a40: 96 10 00 08 mov %o0, %o3 <== NOT EXECUTED
2023a44: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
2023a48: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023a4c: 40 00 94 0d call 2048a80 <printf> <== NOT EXECUTED
2023a50: 90 12 22 48 or %o0, 0x248, %o0 ! 2064248 <rtems_rfs_ops+0x928><== NOT EXECUTED
if (rtems_rfs_get_fs (argv[arg], &fs) == 0)
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
return table[t].handler (fs, argc - 2, argv + 2);
printf ("error: command not found: %s\n", argv[arg + 1]);
2023a54: 10 80 00 41 b 2023b58 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
2023a58: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
printf ("error: cannot statvfs path: %s: (%d) %s\n",
path, errno, strerror (errno));
return -1;
}
if (sb.f_fsid != RTEMS_RFS_SB_MAGIC)
2023a5c: 03 0a 02 48 sethi %hi(0x28092000), %g1 <== NOT EXECUTED
2023a60: 82 10 60 01 or %g1, 1, %g1 ! 28092001 <RAM_END+0x25c92001><== NOT EXECUTED
2023a64: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2023a68: 02 80 00 05 be 2023a7c <rtems_shell_debugrfs+0x160> <== NOT EXECUTED
2023a6c: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
{
printf ("error: path '%s' is not on an RFS file system\n", path);
2023a70: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2023a74: 10 80 00 36 b 2023b4c <rtems_shell_debugrfs+0x230> <== NOT EXECUTED
2023a78: 90 12 22 78 or %o0, 0x278, %o0 <== NOT EXECUTED
* Now find the path location on the file system. This will give the file
* system data.
*/
{
rtems_filesystem_location_info_t pathloc;
rc = rtems_filesystem_evaluate_path (path, strlen (path), 0, &pathloc, true);
2023a7c: 40 00 9d c2 call 204b184 <strlen> <== NOT EXECUTED
2023a80: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023a84: 94 10 20 00 clr %o2 <== NOT EXECUTED
2023a88: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
2023a8c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
2023a90: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2023a94: a2 07 bf ec add %fp, -20, %l1 <== NOT EXECUTED
2023a98: 7f ff 91 d5 call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
2023a9c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
rtems_filesystem_freenode (&pathloc);
2023aa0: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
* system data.
*/
{
rtems_filesystem_location_info_t pathloc;
rc = rtems_filesystem_evaluate_path (path, strlen (path), 0, &pathloc, true);
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
2023aa4: c4 07 bf fc ld [ %fp + -4 ], %g2 <== NOT EXECUTED
* Now find the path location on the file system. This will give the file
* system data.
*/
{
rtems_filesystem_location_info_t pathloc;
rc = rtems_filesystem_evaluate_path (path, strlen (path), 0, &pathloc, true);
2023aa8: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
*fs = rtems_rfs_rtems_pathloc_dev (&pathloc);
rtems_filesystem_freenode (&pathloc);
2023aac: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023ab0: 02 80 00 08 be 2023ad0 <rtems_shell_debugrfs+0x1b4> <== NOT EXECUTED
2023ab4: e8 00 a0 34 ld [ %g2 + 0x34 ], %l4 <== NOT EXECUTED
2023ab8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2023abc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2023ac0: 02 80 00 05 be 2023ad4 <rtems_shell_debugrfs+0x1b8> <== NOT EXECUTED
2023ac4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2023ac8: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023acc: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
if ((argc - arg) < 2)
printf ("error: you need at least a path and command, try %s -h\n", argv[0]);
else
{
rtems_rfs_file_system* fs;
if (rtems_rfs_get_fs (argv[arg], &fs) == 0)
2023ad0: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2023ad4: a2 10 20 00 clr %l1 <== NOT EXECUTED
2023ad8: a4 07 bf 74 add %fp, -140, %l2 <== NOT EXECUTED
2023adc: 12 80 00 1f bne 2023b58 <rtems_shell_debugrfs+0x23c> <== NOT EXECUTED
2023ae0: 90 10 20 01 mov 1, %o0 <== NOT EXECUTED
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
if (strcmp (argv[arg + 1], table[t].name) == 0)
2023ae4: b2 06 60 08 add %i1, 8, %i1 <== NOT EXECUTED
2023ae8: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
2023aec: e6 06 40 00 ld [ %i1 ], %l3 <== NOT EXECUTED
2023af0: a4 04 a0 0c add %l2, 0xc, %l2 <== NOT EXECUTED
2023af4: 40 00 9b a3 call 204a980 <strcmp> <== NOT EXECUTED
2023af8: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2023afc: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2023b00: 32 80 00 0d bne,a 2023b34 <rtems_shell_debugrfs+0x218> <== NOT EXECUTED
2023b04: a2 04 60 01 inc %l1 <== NOT EXECUTED
return table[t].handler (fs, argc - 2, argv + 2);
2023b08: 83 2c 60 04 sll %l1, 4, %g1 <== NOT EXECUTED
2023b0c: a3 2c 60 02 sll %l1, 2, %l1 <== NOT EXECUTED
2023b10: a2 20 40 11 sub %g1, %l1, %l1 <== NOT EXECUTED
2023b14: a2 07 80 11 add %fp, %l1, %l1 <== NOT EXECUTED
2023b18: c2 04 7f 78 ld [ %l1 + -136 ], %g1 <== NOT EXECUTED
2023b1c: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
2023b20: 92 04 3f fe add %l0, -2, %o1 <== NOT EXECUTED
2023b24: 9f c0 40 00 call %g1 <== NOT EXECUTED
2023b28: 94 10 00 19 mov %i1, %o2 <== NOT EXECUTED
2023b2c: 81 c7 e0 08 ret <== NOT EXECUTED
2023b30: 91 e8 00 08 restore %g0, %o0, %o0 <== NOT EXECUTED
else
{
rtems_rfs_file_system* fs;
if (rtems_rfs_get_fs (argv[arg], &fs) == 0)
{
for (t = 0; t < (sizeof (table) / sizeof (const rtems_rfs_shell_cmd)); t++)
2023b34: 80 a4 60 05 cmp %l1, 5 <== NOT EXECUTED
2023b38: 32 bf ff ed bne,a 2023aec <rtems_shell_debugrfs+0x1d0> <== NOT EXECUTED
2023b3c: d2 04 80 00 ld [ %l2 ], %o1 <== NOT EXECUTED
if (strcmp (argv[arg + 1], table[t].name) == 0)
return table[t].handler (fs, argc - 2, argv + 2);
printf ("error: command not found: %s\n", argv[arg + 1]);
2023b40: 11 00 81 90 sethi %hi(0x2064000), %o0 <== NOT EXECUTED
2023b44: 92 10 00 13 mov %l3, %o1 <== NOT EXECUTED
2023b48: 90 12 22 a8 or %o0, 0x2a8, %o0 <== NOT EXECUTED
2023b4c: 40 00 93 cd call 2048a80 <printf> <== NOT EXECUTED
2023b50: 01 00 00 00 nop <== NOT EXECUTED
2023b54: 90 10 20 01 mov 1, %o0 ! 1 <PROM_START+0x1> <== NOT EXECUTED
}
}
return 1;
}
2023b58: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
2023b5c: 81 c7 e0 08 ret <== NOT EXECUTED
2023b60: 81 e8 00 00 restore <== NOT EXECUTED
020229a0 <rtems_shell_rfs_format>:
return 1;
}
int
rtems_shell_rfs_format (int argc, char* argv[])
{
20229a0: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
rtems_rfs_format_config config;
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
20229a4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20229a8: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
20229ac: 94 10 20 18 mov 0x18, %o2 <== NOT EXECUTED
20229b0: 40 00 94 18 call 2047a10 <memset> <== NOT EXECUTED
20229b4: a0 10 20 01 mov 1, %l0 <== NOT EXECUTED
20229b8: a2 10 20 00 clr %l1 <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
20229bc: 10 80 00 5d b 2022b30 <rtems_shell_rfs_format+0x190> <== NOT EXECUTED
20229c0: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
{
if (argv[arg][0] == '-')
20229c4: d2 06 40 01 ld [ %i1 + %g1 ], %o1 <== NOT EXECUTED
20229c8: c2 4a 40 00 ldsb [ %o1 ], %g1 <== NOT EXECUTED
20229cc: 80 a0 60 2d cmp %g1, 0x2d <== NOT EXECUTED
20229d0: 12 80 00 4f bne 2022b0c <rtems_shell_rfs_format+0x16c> <== NOT EXECUTED
20229d4: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
{
switch (argv[arg][1])
20229d8: c2 4a 60 01 ldsb [ %o1 + 1 ], %g1 <== NOT EXECUTED
20229dc: 80 a0 60 69 cmp %g1, 0x69 <== NOT EXECUTED
20229e0: 22 80 00 2f be,a 2022a9c <rtems_shell_rfs_format+0xfc> <== NOT EXECUTED
20229e4: a0 04 20 01 inc %l0 <== NOT EXECUTED
20229e8: 14 80 00 09 bg 2022a0c <rtems_shell_rfs_format+0x6c> <== NOT EXECUTED
20229ec: 80 a0 60 73 cmp %g1, 0x73 <== NOT EXECUTED
20229f0: 80 a0 60 49 cmp %g1, 0x49 <== NOT EXECUTED
20229f4: 02 80 00 36 be 2022acc <rtems_shell_rfs_format+0x12c> <== NOT EXECUTED
20229f8: 80 a0 60 62 cmp %g1, 0x62 <== NOT EXECUTED
20229fc: 12 80 00 42 bne 2022b04 <rtems_shell_rfs_format+0x164> <== NOT EXECUTED
2022a00: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
}
config.block_size = strtoul (argv[arg], 0, 0);
break;
case 'b':
arg++;
2022a04: 10 80 00 1a b 2022a6c <rtems_shell_rfs_format+0xcc> <== NOT EXECUTED
2022a08: a0 04 20 01 inc %l0 <== NOT EXECUTED
for (arg = 1; arg < argc; arg++)
{
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
2022a0c: 02 80 00 0a be 2022a34 <rtems_shell_rfs_format+0x94> <== NOT EXECUTED
2022a10: 80 a0 60 76 cmp %g1, 0x76 <== NOT EXECUTED
2022a14: 02 80 00 06 be 2022a2c <rtems_shell_rfs_format+0x8c> <== NOT EXECUTED
2022a18: 80 a0 60 6f cmp %g1, 0x6f <== NOT EXECUTED
2022a1c: 12 80 00 3a bne 2022b04 <rtems_shell_rfs_format+0x164> <== NOT EXECUTED
2022a20: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
case 'I':
config.initialise_inodes = true;
break;
case 'o':
arg++;
2022a24: 10 80 00 2c b 2022ad4 <rtems_shell_rfs_format+0x134> <== NOT EXECUTED
2022a28: a0 04 20 01 inc %l0 <== NOT EXECUTED
if (argv[arg][0] == '-')
{
switch (argv[arg][1])
{
case 'v':
config.verbose = true;
2022a2c: 10 80 00 0e b 2022a64 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
2022a30: e4 2f bf fd stb %l2, [ %fp + -3 ] <== NOT EXECUTED
break;
case 's':
arg++;
2022a34: a0 04 20 01 inc %l0 <== NOT EXECUTED
if (arg >= argc)
2022a38: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022a3c: 06 80 00 05 bl 2022a50 <rtems_shell_rfs_format+0xb0> <== NOT EXECUTED
2022a40: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: block size needs an argument\n");
2022a44: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022a48: 10 80 00 42 b 2022b50 <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
2022a4c: 90 12 22 98 or %o0, 0x298, %o0 ! 2063a98 <rtems_rfs_ops+0x178><== NOT EXECUTED
return 1;
}
config.block_size = strtoul (argv[arg], 0, 0);
2022a50: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
2022a54: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022a58: 40 00 a7 80 call 204c858 <strtoul> <== NOT EXECUTED
2022a5c: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022a60: d0 27 bf e8 st %o0, [ %fp + -24 ] <== NOT EXECUTED
break;
2022a64: 10 80 00 31 b 2022b28 <rtems_shell_rfs_format+0x188> <== NOT EXECUTED
2022a68: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
case 'b':
arg++;
if (arg >= argc)
2022a6c: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022a70: 06 80 00 05 bl 2022a84 <rtems_shell_rfs_format+0xe4> <== NOT EXECUTED
2022a74: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: group block count needs an argument\n");
2022a78: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022a7c: 10 80 00 35 b 2022b50 <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
2022a80: 90 12 22 c0 or %o0, 0x2c0, %o0 ! 2063ac0 <rtems_rfs_ops+0x1a0><== NOT EXECUTED
return 1;
}
config.group_blocks = strtoul (argv[arg], 0, 0);
2022a84: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
2022a88: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022a8c: 40 00 a7 73 call 204c858 <strtoul> <== NOT EXECUTED
2022a90: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022a94: 10 bf ff f4 b 2022a64 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
2022a98: d0 27 bf ec st %o0, [ %fp + -20 ] <== NOT EXECUTED
break;
case 'i':
arg++;
if (arg >= argc)
2022a9c: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022aa0: 06 80 00 05 bl 2022ab4 <rtems_shell_rfs_format+0x114> <== NOT EXECUTED
2022aa4: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: group inode count needs an argument\n");
2022aa8: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022aac: 10 80 00 29 b 2022b50 <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
2022ab0: 90 12 22 f0 or %o0, 0x2f0, %o0 ! 2063af0 <rtems_rfs_ops+0x1d0><== NOT EXECUTED
return 1;
}
config.group_inodes = strtoul (argv[arg], 0, 0);
2022ab4: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
2022ab8: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022abc: 40 00 a7 67 call 204c858 <strtoul> <== NOT EXECUTED
2022ac0: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022ac4: 10 bf ff e8 b 2022a64 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
2022ac8: d0 27 bf f0 st %o0, [ %fp + -16 ] <== NOT EXECUTED
break;
case 'I':
config.initialise_inodes = true;
2022acc: 10 bf ff e6 b 2022a64 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
2022ad0: e4 2f bf fc stb %l2, [ %fp + -4 ] <== NOT EXECUTED
break;
case 'o':
arg++;
if (arg >= argc)
2022ad4: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022ad8: 06 80 00 05 bl 2022aec <rtems_shell_rfs_format+0x14c> <== NOT EXECUTED
2022adc: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
{
printf ("error: inode percentage overhead needs an argument\n");
2022ae0: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022ae4: 10 80 00 1b b 2022b50 <rtems_shell_rfs_format+0x1b0> <== NOT EXECUTED
2022ae8: 90 12 23 20 or %o0, 0x320, %o0 ! 2063b20 <rtems_rfs_ops+0x200><== NOT EXECUTED
return 1;
}
config.inode_overhead = strtoul (argv[arg], 0, 0);
2022aec: d0 06 40 01 ld [ %i1 + %g1 ], %o0 <== NOT EXECUTED
2022af0: 92 10 20 00 clr %o1 <== NOT EXECUTED
2022af4: 40 00 a7 59 call 204c858 <strtoul> <== NOT EXECUTED
2022af8: 94 10 20 00 clr %o2 <== NOT EXECUTED
2022afc: 10 bf ff da b 2022a64 <rtems_shell_rfs_format+0xc4> <== NOT EXECUTED
2022b00: d0 27 bf f4 st %o0, [ %fp + -12 ] <== NOT EXECUTED
break;
default:
printf ("error: invalid option: %s\n", argv[arg]);
2022b04: 10 80 00 06 b 2022b1c <rtems_shell_rfs_format+0x17c> <== NOT EXECUTED
2022b08: 90 12 23 58 or %o0, 0x358, %o0 <== NOT EXECUTED
return 1;
}
}
else
{
if (!driver)
2022b0c: 22 80 00 08 be,a 2022b2c <rtems_shell_rfs_format+0x18c> <== NOT EXECUTED
2022b10: a0 04 20 01 inc %l0 <== NOT EXECUTED
driver = argv[arg];
else
{
printf ("error: only one driver name allowed: %s\n", argv[arg]);
2022b14: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022b18: 90 12 23 78 or %o0, 0x378, %o0 ! 2063b78 <rtems_rfs_ops+0x258><== NOT EXECUTED
2022b1c: 40 00 97 d9 call 2048a80 <printf> <== NOT EXECUTED
2022b20: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2022b24: 30 80 00 1e b,a 2022b9c <rtems_shell_rfs_format+0x1fc> <== NOT EXECUTED
const char* driver = NULL;
int arg;
memset (&config, 0, sizeof (rtems_rfs_format_config));
for (arg = 1; arg < argc; arg++)
2022b28: a0 04 20 01 inc %l0 <== NOT EXECUTED
2022b2c: a2 10 00 09 mov %o1, %l1 <== NOT EXECUTED
2022b30: 80 a4 00 18 cmp %l0, %i0 <== NOT EXECUTED
2022b34: 06 bf ff a4 bl 20229c4 <rtems_shell_rfs_format+0x24> <== NOT EXECUTED
2022b38: 83 2c 20 02 sll %l0, 2, %g1 <== NOT EXECUTED
return 1;
}
}
}
if (!driver) {
2022b3c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2022b40: 12 80 00 08 bne 2022b60 <rtems_shell_rfs_format+0x1c0> <== NOT EXECUTED
2022b44: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
printf ("error: no driver name provided\n");
2022b48: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022b4c: 90 12 23 a8 or %o0, 0x3a8, %o0 ! 2063ba8 <rtems_rfs_ops+0x288><== NOT EXECUTED
2022b50: 40 00 98 78 call 2048d30 <puts> <== NOT EXECUTED
2022b54: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return 1;
2022b58: 81 c7 e0 08 ret <== NOT EXECUTED
2022b5c: 81 e8 00 00 restore <== NOT EXECUTED
}
if (rtems_rfs_format (driver, &config) < 0)
2022b60: 92 07 bf e8 add %fp, -24, %o1 <== NOT EXECUTED
2022b64: 40 00 66 76 call 203c53c <rtems_rfs_format> <== NOT EXECUTED
2022b68: b0 10 20 00 clr %i0 <== NOT EXECUTED
2022b6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2022b70: 16 80 00 0b bge 2022b9c <rtems_shell_rfs_format+0x1fc> <== NOT EXECUTED
2022b74: 01 00 00 00 nop <== NOT EXECUTED
{
printf ("error: format of %s failed: %s\n",
2022b78: 40 00 85 c7 call 2044294 <__errno> <== NOT EXECUTED
2022b7c: b0 10 20 01 mov 1, %i0 ! 1 <PROM_START+0x1> <== NOT EXECUTED
2022b80: 40 00 a0 75 call 204ad54 <strerror> <== NOT EXECUTED
2022b84: d0 02 00 00 ld [ %o0 ], %o0 <== NOT EXECUTED
2022b88: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
2022b8c: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2022b90: 11 00 81 8e sethi %hi(0x2063800), %o0 <== NOT EXECUTED
2022b94: 40 00 97 bb call 2048a80 <printf> <== NOT EXECUTED
2022b98: 90 12 23 c8 or %o0, 0x3c8, %o0 ! 2063bc8 <rtems_rfs_ops+0x2a8><== NOT EXECUTED
driver, strerror (errno));
return 1;
}
return 0;
}
2022b9c: 81 c7 e0 08 ret <== NOT EXECUTED
2022ba0: 81 e8 00 00 restore <== NOT EXECUTED
02014c44 <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
2014c44: 9d e3 bf 98 save %sp, -104, %sp
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
2014c48: 82 10 20 0a mov 0xa, %g1
2014c4c: 80 a6 60 00 cmp %i1, 0
2014c50: 02 80 00 2a be 2014cf8 <rtems_signal_send+0xb4>
2014c54: 90 10 00 18 mov %i0, %o0
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
2014c58: 40 00 10 ba call 2018f40 <_Thread_Get>
2014c5c: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
2014c60: c4 07 bf fc ld [ %fp + -4 ], %g2
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
2014c64: a0 10 00 08 mov %o0, %l0
switch ( location ) {
2014c68: 80 a0 a0 00 cmp %g2, 0
2014c6c: 12 80 00 23 bne 2014cf8 <rtems_signal_send+0xb4>
2014c70: 82 10 20 04 mov 4, %g1
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
2014c74: d2 02 21 68 ld [ %o0 + 0x168 ], %o1
asr = &api->Signal;
2014c78: c2 02 60 0c ld [ %o1 + 0xc ], %g1
2014c7c: 80 a0 60 00 cmp %g1, 0
2014c80: 02 80 00 1b be 2014cec <rtems_signal_send+0xa8>
2014c84: 01 00 00 00 nop
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
2014c88: c2 0a 60 08 ldub [ %o1 + 8 ], %g1
2014c8c: 80 a0 60 00 cmp %g1, 0
2014c90: 02 80 00 11 be 2014cd4 <rtems_signal_send+0x90>
2014c94: 90 10 00 19 mov %i1, %o0
_ASR_Post_signals( signal_set, &asr->signals_posted );
2014c98: 7f ff ff e2 call 2014c20 <_ASR_Post_signals>
2014c9c: 92 02 60 14 add %o1, 0x14, %o1
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
2014ca0: 03 00 80 fb sethi %hi(0x203ec00), %g1
2014ca4: c4 00 63 ec ld [ %g1 + 0x3ec ], %g2 ! 203efec <_ISR_Nest_level>
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = true;
2014ca8: 82 10 20 01 mov 1, %g1
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
2014cac: 80 a0 a0 00 cmp %g2, 0
2014cb0: 02 80 00 0b be 2014cdc <rtems_signal_send+0x98>
2014cb4: c2 2c 20 74 stb %g1, [ %l0 + 0x74 ]
2014cb8: 05 00 80 fc sethi %hi(0x203f000), %g2
2014cbc: c4 00 a0 10 ld [ %g2 + 0x10 ], %g2 ! 203f010 <_Thread_Executing>
2014cc0: 80 a4 00 02 cmp %l0, %g2
2014cc4: 12 80 00 06 bne 2014cdc <rtems_signal_send+0x98> <== NEVER TAKEN
2014cc8: 05 00 80 fc sethi %hi(0x203f000), %g2
_ISR_Signals_to_thread_executing = true;
2014ccc: 10 80 00 04 b 2014cdc <rtems_signal_send+0x98>
2014cd0: c2 28 a0 a8 stb %g1, [ %g2 + 0xa8 ] ! 203f0a8 <_ISR_Signals_to_thread_executing>
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
2014cd4: 7f ff ff d3 call 2014c20 <_ASR_Post_signals>
2014cd8: 92 02 60 18 add %o1, 0x18, %o1
}
_Thread_Enable_dispatch();
2014cdc: 40 00 10 76 call 2018eb4 <_Thread_Enable_dispatch>
2014ce0: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
2014ce4: 10 80 00 05 b 2014cf8 <rtems_signal_send+0xb4>
2014ce8: 82 10 20 00 clr %g1 ! 0 <PROM_START>
}
_Thread_Enable_dispatch();
2014cec: 40 00 10 72 call 2018eb4 <_Thread_Enable_dispatch>
2014cf0: 01 00 00 00 nop
2014cf4: 82 10 20 0b mov 0xb, %g1 ! b <PROM_START+0xb>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
2014cf8: 81 c7 e0 08 ret
2014cfc: 91 e8 00 01 restore %g0, %g1, %o0
02006500 <rtems_stack_checker_begin_extension>:
* rtems_stack_checker_Begin_extension
*/
void rtems_stack_checker_begin_extension(
Thread_Control *the_thread
)
{
2006500: 9d e3 bf a0 save %sp, -96, %sp
Stack_check_Control *the_pattern;
if ( the_thread->Object.id == 0 ) /* skip system tasks */
2006504: c2 06 20 08 ld [ %i0 + 8 ], %g1
2006508: 80 a0 60 00 cmp %g1, 0
200650c: 02 80 00 07 be 2006528 <rtems_stack_checker_begin_extension+0x28><== NEVER TAKEN
2006510: 13 00 81 ba sethi %hi(0x206e800), %o1
return;
the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
*the_pattern = Stack_check_Pattern;
2006514: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0
2006518: 90 02 20 08 add %o0, 8, %o0
200651c: 92 12 63 88 or %o1, 0x388, %o1
2006520: 40 01 04 a9 call 20477c4 <memcpy>
2006524: 94 10 20 10 mov 0x10, %o2
2006528: 81 c7 e0 08 ret
200652c: 81 e8 00 00 restore
0200696c <rtems_stack_checker_create_extension>:
*/
bool rtems_stack_checker_create_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *the_thread
)
{
200696c: 9d e3 bf a0 save %sp, -96, %sp
Stack_check_Initialize();
2006970: 7f ff ff d8 call 20068d0 <Stack_check_Initialize>
2006974: 01 00 00 00 nop
if (the_thread)
2006978: 80 a6 60 00 cmp %i1, 0
200697c: 02 80 00 06 be 2006994 <rtems_stack_checker_create_extension+0x28><== NEVER TAKEN
2006980: 01 00 00 00 nop
Stack_check_Dope_stack(&the_thread->Start.Initial_stack);
2006984: d4 06 60 c4 ld [ %i1 + 0xc4 ], %o2
2006988: d0 06 60 c8 ld [ %i1 + 0xc8 ], %o0
200698c: 40 01 04 21 call 2047a10 <memset>
2006990: 92 10 20 a5 mov 0xa5, %o1
return true;
}
2006994: 81 c7 e0 08 ret
2006998: 91 e8 20 01 restore %g0, 1, %o0
020067dc <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
20067dc: 9d e3 bf a0 save %sp, -96, %sp
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
20067e0: 03 00 81 bb sethi %hi(0x206ec00), %g1
20067e4: c2 00 62 40 ld [ %g1 + 0x240 ], %g1 ! 206ee40 <_Thread_Executing>
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
20067e8: d0 00 60 c8 ld [ %g1 + 0xc8 ], %o0
20067ec: 80 a7 80 08 cmp %fp, %o0
20067f0: 0a 80 00 06 bcs 2006808 <rtems_stack_checker_is_blown+0x2c><== NEVER TAKEN
20067f4: a0 10 20 00 clr %l0
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
20067f8: c2 00 60 c4 ld [ %g1 + 0xc4 ], %g1
20067fc: 82 02 00 01 add %o0, %g1, %g1
2006800: 80 a0 40 1e cmp %g1, %fp
2006804: a0 60 3f ff subx %g0, -1, %l0
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
2006808: 03 00 81 b0 sethi %hi(0x206c000), %g1
200680c: c2 00 60 28 ld [ %g1 + 0x28 ], %g1 ! 206c028 <Stack_check_Initialized>
2006810: 80 a0 60 00 cmp %g1, 0
2006814: 02 80 00 09 be 2006838 <rtems_stack_checker_is_blown+0x5c><== NEVER TAKEN
2006818: 92 10 20 01 mov 1, %o1
pattern_ok = (!memcmp(
200681c: 90 02 20 08 add %o0, 8, %o0
2006820: 13 00 81 ba sethi %hi(0x206e800), %o1
2006824: 94 10 20 10 mov 0x10, %o2
2006828: 40 01 03 b6 call 2047700 <memcmp>
200682c: 92 12 63 88 or %o1, 0x388, %o1
2006830: 80 a0 00 08 cmp %g0, %o0
2006834: 92 60 3f ff subx %g0, -1, %o1
}
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
if ( sp_ok && pattern_ok )
2006838: 80 8c 20 ff btst 0xff, %l0
200683c: 02 80 00 04 be 200684c <rtems_stack_checker_is_blown+0x70><== NEVER TAKEN
2006840: 80 8a 60 ff btst 0xff, %o1
2006844: 12 80 00 07 bne 2006860 <rtems_stack_checker_is_blown+0x84><== ALWAYS TAKEN
2006848: b0 10 20 00 clr %i0
return false;
/*
* Let's report as much as we can.
*/
Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
200684c: 03 00 81 bb sethi %hi(0x206ec00), %g1 <== NOT EXECUTED
2006850: d0 00 62 40 ld [ %g1 + 0x240 ], %o0 ! 206ee40 <_Thread_Executing><== NOT EXECUTED
2006854: 92 0a 60 01 and %o1, 1, %o1 <== NOT EXECUTED
2006858: 7f ff ff b7 call 2006734 <Stack_check_report_blown_task> <== NOT EXECUTED
200685c: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
return true;
}
2006860: 81 c7 e0 08 ret
2006864: 81 e8 00 00 restore
02006718 <rtems_stack_checker_report_usage>:
void rtems_stack_checker_report_usage( void )
{
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
2006718: 13 00 80 25 sethi %hi(0x2009400), %o1 <== NOT EXECUTED
200671c: 90 10 20 00 clr %o0 <== NOT EXECUTED
2006720: 92 12 62 c8 or %o1, 0x2c8, %o1 <== NOT EXECUTED
2006724: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2006728: 7f ff ff e6 call 20066c0 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
200672c: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
020066c0 <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
20066c0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
print_context = context;
20066c4: 23 00 81 b0 sethi %hi(0x206c000), %l1 <== NOT EXECUTED
print_handler = print;
20066c8: 21 00 81 b0 sethi %hi(0x206c000), %l0 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
print_context = context;
20066cc: f0 24 60 2c st %i0, [ %l1 + 0x2c ] <== NOT EXECUTED
print_handler = print;
20066d0: f2 24 20 30 st %i1, [ %l0 + 0x30 ] <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
20066d4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20066d8: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
20066dc: 9f c6 40 00 call %i1 <== NOT EXECUTED
20066e0: 92 12 61 b0 or %o1, 0x1b0, %o1 ! 205f9b0 <write_test_string.8866+0x470><== NOT EXECUTED
(*print)( context,
20066e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
20066e8: 13 00 81 7e sethi %hi(0x205f800), %o1 <== NOT EXECUTED
20066ec: 9f c6 40 00 call %i1 <== NOT EXECUTED
20066f0: 92 12 61 c8 or %o1, 0x1c8, %o1 ! 205f9c8 <write_test_string.8866+0x488><== NOT EXECUTED
" ID NAME LOW HIGH CURRENT AVAILABLE USED\n"
);
/* iterate over all threads and dump the usage */
rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage );
20066f4: 11 00 80 19 sethi %hi(0x2006400), %o0 <== NOT EXECUTED
20066f8: 40 00 1e af call 200e1b4 <rtems_iterate_over_all_threads> <== NOT EXECUTED
20066fc: 90 12 21 70 or %o0, 0x170, %o0 ! 2006570 <Stack_check_Dump_threads_usage><== NOT EXECUTED
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
2006700: 7f ff ff 9c call 2006570 <Stack_check_Dump_threads_usage> <== NOT EXECUTED
2006704: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
print_context = NULL;
2006708: c0 24 60 2c clr [ %l1 + 0x2c ] <== NOT EXECUTED
print_handler = NULL;
200670c: c0 24 20 30 clr [ %l0 + 0x30 ] <== NOT EXECUTED
}
2006710: 81 c7 e0 08 ret <== NOT EXECUTED
2006714: 81 e8 00 00 restore <== NOT EXECUTED
02006868 <rtems_stack_checker_switch_extension>:
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
2006868: 9d e3 bf a0 save %sp, -96, %sp
Stack_Control *the_stack = &running->Start.Initial_stack;
void *pattern;
bool sp_ok;
bool pattern_ok = true;
pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern;
200686c: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
2006870: 80 a7 80 08 cmp %fp, %o0
2006874: 0a 80 00 06 bcs 200688c <rtems_stack_checker_switch_extension+0x24><== NEVER TAKEN
2006878: a0 10 20 00 clr %l0
}
/*
* rtems_stack_checker_switch_extension
*/
void rtems_stack_checker_switch_extension(
200687c: c2 06 20 c4 ld [ %i0 + 0xc4 ], %g1
2006880: 82 02 00 01 add %o0, %g1, %g1
2006884: 80 a0 40 1e cmp %g1, %fp
2006888: a0 60 3f ff subx %g0, -1, %l0
/*
* Check for an out of bounds stack pointer or an overwrite
*/
sp_ok = Stack_check_Frame_pointer_in_range( the_stack );
pattern_ok = (!memcmp( pattern,
200688c: 90 02 20 08 add %o0, 8, %o0
2006890: 13 00 81 ba sethi %hi(0x206e800), %o1
2006894: 94 10 20 10 mov 0x10, %o2
2006898: 40 01 03 9a call 2047700 <memcmp>
200689c: 92 12 63 88 or %o1, 0x388, %o1
20068a0: 80 a0 00 08 cmp %g0, %o0
20068a4: b2 60 3f ff subx %g0, -1, %i1
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
20068a8: 80 8c 20 ff btst 0xff, %l0
20068ac: 02 80 00 04 be 20068bc <rtems_stack_checker_switch_extension+0x54><== NEVER TAKEN
20068b0: 80 a6 60 00 cmp %i1, 0
20068b4: 12 80 00 05 bne 20068c8 <rtems_stack_checker_switch_extension+0x60>
20068b8: 01 00 00 00 nop
Stack_check_report_blown_task( running, pattern_ok );
20068bc: b2 0e 60 01 and %i1, 1, %i1
20068c0: 7f ff ff 9d call 2006734 <Stack_check_report_blown_task>
20068c4: 81 e8 00 00 restore
20068c8: 81 c7 e0 08 ret
20068cc: 81 e8 00 00 restore
0200c20c <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
200c20c: 9d e3 bf 90 save %sp, -112, %sp
200c210: a0 10 00 18 mov %i0, %l0
double result;
char *end;
if ( !n )
200c214: 80 a6 60 00 cmp %i1, 0
200c218: 02 80 00 2e be 200c2d0 <rtems_string_to_double+0xc4>
200c21c: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c220: 40 00 0c ff call 200f61c <__errno>
200c224: 01 00 00 00 nop
*n = 0;
result = strtod( s, &end );
200c228: 92 07 bf fc add %fp, -4, %o1
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c22c: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c230: c0 26 40 00 clr [ %i1 ]
200c234: c0 26 60 04 clr [ %i1 + 4 ]
result = strtod( s, &end );
200c238: 40 00 18 78 call 2012418 <strtod>
200c23c: 90 10 00 10 mov %l0, %o0
if ( endptr )
200c240: 80 a6 a0 00 cmp %i2, 0
200c244: 02 80 00 03 be 200c250 <rtems_string_to_double+0x44>
200c248: c2 07 bf fc ld [ %fp + -4 ], %g1
*endptr = end;
200c24c: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c250: c2 07 bf fc ld [ %fp + -4 ], %g1
200c254: 80 a0 40 10 cmp %g1, %l0
200c258: 02 80 00 1e be 200c2d0 <rtems_string_to_double+0xc4>
200c25c: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c260: c1 27 bf f4 st %f0, [ %fp + -12 ]
200c264: 40 00 0c ee call 200f61c <__errno>
200c268: c3 27 bf f0 st %f1, [ %fp + -16 ]
200c26c: c2 02 00 00 ld [ %o0 ], %g1
200c270: c1 07 bf f4 ld [ %fp + -12 ], %f0
200c274: 80 a0 60 22 cmp %g1, 0x22
200c278: 12 80 00 12 bne 200c2c0 <rtems_string_to_double+0xb4>
200c27c: c3 07 bf f0 ld [ %fp + -16 ], %f1
200c280: 03 00 80 7a sethi %hi(0x201e800), %g1
200c284: d1 18 60 90 ldd [ %g1 + 0x90 ], %f8 ! 201e890 <_CPU_Trap_slot_template+0x14>
200c288: 81 a8 0a 48 fcmpd %f0, %f8
200c28c: 01 00 00 00 nop
200c290: 13 80 00 0f fbe 200c2cc <rtems_string_to_double+0xc0>
200c294: 03 00 80 7a sethi %hi(0x201e800), %g1
200c298: d1 18 60 98 ldd [ %g1 + 0x98 ], %f8 ! 201e898 <_CPU_Trap_slot_template+0x1c>
200c29c: 81 a8 0a c8 fcmped %f0, %f8
200c2a0: 01 00 00 00 nop
200c2a4: 0d 80 00 0a fbg 200c2cc <rtems_string_to_double+0xc0>
200c2a8: 03 00 80 7a sethi %hi(0x201e800), %g1
200c2ac: d1 18 60 a0 ldd [ %g1 + 0xa0 ], %f8 ! 201e8a0 <_CPU_Trap_slot_template+0x24><== NOT EXECUTED
200c2b0: 81 a8 0a c8 fcmped %f0, %f8 <== NOT EXECUTED
200c2b4: 01 00 00 00 nop <== NOT EXECUTED
200c2b8: 29 80 00 06 fbl,a 200c2d0 <rtems_string_to_double+0xc4> <== NOT EXECUTED
200c2bc: b0 10 20 0a mov 0xa, %i0 ! a <PROM_START+0xa> <== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c2c0: c1 3e 40 00 std %f0, [ %i1 ]
return RTEMS_SUCCESSFUL;
200c2c4: 81 c7 e0 08 ret
200c2c8: 91 e8 20 00 restore %g0, 0, %o0
200c2cc: b0 10 20 0a mov 0xa, %i0
}
200c2d0: 81 c7 e0 08 ret
200c2d4: 81 e8 00 00 restore
0200c2d8 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
200c2d8: 9d e3 bf 90 save %sp, -112, %sp
200c2dc: a0 10 00 18 mov %i0, %l0
float result;
char *end;
if ( !n )
200c2e0: 80 a6 60 00 cmp %i1, 0
200c2e4: 02 80 00 2b be 200c390 <rtems_string_to_float+0xb8>
200c2e8: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c2ec: 40 00 0c cc call 200f61c <__errno>
200c2f0: 01 00 00 00 nop
*n = 0;
result = strtof( s, &end );
200c2f4: 92 07 bf fc add %fp, -4, %o1
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c2f8: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c2fc: c0 26 40 00 clr [ %i1 ]
result = strtof( s, &end );
200c300: 40 00 18 31 call 20123c4 <strtof>
200c304: 90 10 00 10 mov %l0, %o0
if ( endptr )
200c308: 80 a6 a0 00 cmp %i2, 0
200c30c: 02 80 00 03 be 200c318 <rtems_string_to_float+0x40>
200c310: c2 07 bf fc ld [ %fp + -4 ], %g1
*endptr = end;
200c314: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c318: c2 07 bf fc ld [ %fp + -4 ], %g1
200c31c: 80 a0 40 10 cmp %g1, %l0
200c320: 02 80 00 1c be 200c390 <rtems_string_to_float+0xb8>
200c324: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c328: 40 00 0c bd call 200f61c <__errno>
200c32c: c1 27 bf f4 st %f0, [ %fp + -12 ]
200c330: c2 02 00 00 ld [ %o0 ], %g1
200c334: 80 a0 60 22 cmp %g1, 0x22
200c338: 12 80 00 12 bne 200c380 <rtems_string_to_float+0xa8>
200c33c: c1 07 bf f4 ld [ %fp + -12 ], %f0
200c340: 03 00 80 7a sethi %hi(0x201e800), %g1
200c344: d1 00 60 a8 ld [ %g1 + 0xa8 ], %f8 ! 201e8a8 <_CPU_Trap_slot_template+0x2c>
200c348: 81 a8 0a 28 fcmps %f0, %f8
200c34c: 01 00 00 00 nop
200c350: 13 80 00 0f fbe 200c38c <rtems_string_to_float+0xb4>
200c354: 03 00 80 7a sethi %hi(0x201e800), %g1
200c358: d1 00 60 ac ld [ %g1 + 0xac ], %f8 ! 201e8ac <_CPU_Trap_slot_template+0x30>
200c35c: 81 a8 0a a8 fcmpes %f0, %f8
200c360: 01 00 00 00 nop
200c364: 0d 80 00 0a fbg 200c38c <rtems_string_to_float+0xb4>
200c368: 03 00 80 7a sethi %hi(0x201e800), %g1
200c36c: d1 00 60 b0 ld [ %g1 + 0xb0 ], %f8 ! 201e8b0 <_CPU_Trap_slot_template+0x34><== NOT EXECUTED
200c370: 81 a8 0a a8 fcmpes %f0, %f8 <== NOT EXECUTED
200c374: 01 00 00 00 nop <== NOT EXECUTED
200c378: 29 80 00 06 fbl,a 200c390 <rtems_string_to_float+0xb8> <== NOT EXECUTED
200c37c: b0 10 20 0a mov 0xa, %i0 ! a <PROM_START+0xa> <== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c380: c1 26 40 00 st %f0, [ %i1 ]
return RTEMS_SUCCESSFUL;
200c384: 81 c7 e0 08 ret
200c388: 91 e8 20 00 restore %g0, 0, %o0
200c38c: b0 10 20 0a mov 0xa, %i0
}
200c390: 81 c7 e0 08 ret
200c394: 81 e8 00 00 restore
0201efcc <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
201efcc: 9d e3 bf 98 save %sp, -104, %sp
201efd0: a0 10 00 18 mov %i0, %l0
long result;
char *end;
if ( !n )
201efd4: 80 a6 60 00 cmp %i1, 0
201efd8: 02 80 00 27 be 201f074 <rtems_string_to_int+0xa8>
201efdc: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
201efe0: 40 00 94 ad call 2044294 <__errno>
201efe4: 01 00 00 00 nop
201efe8: c0 22 00 00 clr [ %o0 ]
*n = 0;
201efec: c0 26 40 00 clr [ %i1 ]
result = strtol( s, &end, base );
201eff0: 94 10 00 1b mov %i3, %o2
201eff4: 90 10 00 10 mov %l0, %o0
201eff8: 40 00 b4 e0 call 204c378 <strtol>
201effc: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
201f000: 80 a6 a0 00 cmp %i2, 0
201f004: 02 80 00 04 be 201f014 <rtems_string_to_int+0x48>
201f008: a2 10 00 08 mov %o0, %l1
*endptr = end;
201f00c: c2 07 bf fc ld [ %fp + -4 ], %g1
201f010: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
201f014: c2 07 bf fc ld [ %fp + -4 ], %g1
201f018: 80 a0 40 10 cmp %g1, %l0
201f01c: 02 80 00 16 be 201f074 <rtems_string_to_int+0xa8>
201f020: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
201f024: 40 00 94 9c call 2044294 <__errno>
201f028: 01 00 00 00 nop
201f02c: c2 02 00 00 ld [ %o0 ], %g1
201f030: 80 a0 60 22 cmp %g1, 0x22
201f034: 32 80 00 0d bne,a 201f068 <rtems_string_to_int+0x9c>
201f038: e2 26 40 00 st %l1, [ %i1 ]
201f03c: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
201f040: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
201f044: 80 a4 40 01 cmp %l1, %g1
201f048: 02 80 00 0a be 201f070 <rtems_string_to_int+0xa4> <== ALWAYS TAKEN
201f04c: 80 a4 60 00 cmp %l1, 0
201f050: 02 80 00 08 be 201f070 <rtems_string_to_int+0xa4> <== NOT EXECUTED
201f054: 03 20 00 00 sethi %hi(0x80000000), %g1 <== NOT EXECUTED
201f058: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
201f05c: 22 80 00 06 be,a 201f074 <rtems_string_to_int+0xa8> <== NOT EXECUTED
201f060: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
201f064: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
201f068: 81 c7 e0 08 ret
201f06c: 91 e8 20 00 restore %g0, 0, %o0
201f070: b0 10 20 0a mov 0xa, %i0
}
201f074: 81 c7 e0 08 ret
201f078: 81 e8 00 00 restore
0200c51c <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
200c51c: 9d e3 bf 98 save %sp, -104, %sp
200c520: a0 10 00 18 mov %i0, %l0
long result;
char *end;
if ( !n )
200c524: 80 a6 60 00 cmp %i1, 0
200c528: 02 80 00 27 be 200c5c4 <rtems_string_to_long+0xa8>
200c52c: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c530: 40 00 0c 3b call 200f61c <__errno>
200c534: 01 00 00 00 nop
*n = 0;
result = strtol( s, &end, base );
200c538: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c53c: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c540: c0 26 40 00 clr [ %i1 ]
result = strtol( s, &end, base );
200c544: 90 10 00 10 mov %l0, %o0
200c548: 40 00 18 3f call 2012644 <strtol>
200c54c: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c550: 80 a6 a0 00 cmp %i2, 0
200c554: 02 80 00 04 be 200c564 <rtems_string_to_long+0x48>
200c558: a2 10 00 08 mov %o0, %l1
*endptr = end;
200c55c: c2 07 bf fc ld [ %fp + -4 ], %g1
200c560: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c564: c2 07 bf fc ld [ %fp + -4 ], %g1
200c568: 80 a0 40 10 cmp %g1, %l0
200c56c: 02 80 00 16 be 200c5c4 <rtems_string_to_long+0xa8>
200c570: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c574: 40 00 0c 2a call 200f61c <__errno>
200c578: 01 00 00 00 nop
200c57c: c2 02 00 00 ld [ %o0 ], %g1
200c580: 80 a0 60 22 cmp %g1, 0x22
200c584: 32 80 00 0d bne,a 200c5b8 <rtems_string_to_long+0x9c>
200c588: e2 26 40 00 st %l1, [ %i1 ]
200c58c: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
200c590: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
200c594: 80 a4 40 01 cmp %l1, %g1
200c598: 02 80 00 0a be 200c5c0 <rtems_string_to_long+0xa4>
200c59c: 80 a4 60 00 cmp %l1, 0
200c5a0: 02 80 00 08 be 200c5c0 <rtems_string_to_long+0xa4> <== NEVER TAKEN
200c5a4: 03 20 00 00 sethi %hi(0x80000000), %g1
200c5a8: 80 a4 40 01 cmp %l1, %g1
200c5ac: 22 80 00 06 be,a 200c5c4 <rtems_string_to_long+0xa8> <== ALWAYS TAKEN
200c5b0: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c5b4: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
200c5b8: 81 c7 e0 08 ret
200c5bc: 91 e8 20 00 restore %g0, 0, %o0
200c5c0: b0 10 20 0a mov 0xa, %i0
}
200c5c4: 81 c7 e0 08 ret
200c5c8: 81 e8 00 00 restore
0200c448 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
200c448: 9d e3 bf 98 save %sp, -104, %sp
200c44c: a0 10 00 18 mov %i0, %l0
long long result;
char *end;
if ( !n )
200c450: 80 a6 60 00 cmp %i1, 0
200c454: 02 80 00 30 be 200c514 <rtems_string_to_long_long+0xcc>
200c458: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c45c: 40 00 0c 70 call 200f61c <__errno>
200c460: 01 00 00 00 nop
*n = 0;
result = strtoll( s, &end, base );
200c464: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c468: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c46c: c0 26 40 00 clr [ %i1 ]
200c470: c0 26 60 04 clr [ %i1 + 4 ]
result = strtoll( s, &end, base );
200c474: 90 10 00 10 mov %l0, %o0
200c478: 40 00 18 7d call 201266c <strtoll>
200c47c: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c480: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoll( s, &end, base );
200c484: a2 10 00 08 mov %o0, %l1
if ( endptr )
200c488: 02 80 00 04 be 200c498 <rtems_string_to_long_long+0x50>
200c48c: a4 10 00 09 mov %o1, %l2
*endptr = end;
200c490: c2 07 bf fc ld [ %fp + -4 ], %g1
200c494: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c498: c2 07 bf fc ld [ %fp + -4 ], %g1
200c49c: 80 a0 40 10 cmp %g1, %l0
200c4a0: 02 80 00 1d be 200c514 <rtems_string_to_long_long+0xcc>
200c4a4: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c4a8: 40 00 0c 5d call 200f61c <__errno>
200c4ac: 01 00 00 00 nop
200c4b0: c2 02 00 00 ld [ %o0 ], %g1
200c4b4: 80 a0 60 22 cmp %g1, 0x22
200c4b8: 32 80 00 13 bne,a 200c504 <rtems_string_to_long_long+0xbc>
200c4bc: e4 26 60 04 st %l2, [ %i1 + 4 ]
200c4c0: 03 1f ff ff sethi %hi(0x7ffffc00), %g1
200c4c4: 82 10 63 ff or %g1, 0x3ff, %g1 ! 7fffffff <RAM_END+0x7dbfffff>
200c4c8: 80 a4 40 01 cmp %l1, %g1
200c4cc: 12 80 00 05 bne 200c4e0 <rtems_string_to_long_long+0x98>
200c4d0: 80 94 40 12 orcc %l1, %l2, %g0
200c4d4: 80 a4 bf ff cmp %l2, -1
200c4d8: 02 80 00 0e be 200c510 <rtems_string_to_long_long+0xc8> <== ALWAYS TAKEN
200c4dc: 80 94 40 12 orcc %l1, %l2, %g0
200c4e0: 02 80 00 0c be 200c510 <rtems_string_to_long_long+0xc8> <== NEVER TAKEN
200c4e4: 03 20 00 00 sethi %hi(0x80000000), %g1
200c4e8: 80 a4 40 01 cmp %l1, %g1
200c4ec: 32 80 00 06 bne,a 200c504 <rtems_string_to_long_long+0xbc><== NEVER TAKEN
200c4f0: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED
200c4f4: 80 a4 a0 00 cmp %l2, 0
200c4f8: 22 80 00 07 be,a 200c514 <rtems_string_to_long_long+0xcc><== ALWAYS TAKEN
200c4fc: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c500: e4 26 60 04 st %l2, [ %i1 + 4 ] <== NOT EXECUTED
200c504: e2 26 40 00 st %l1, [ %i1 ]
return RTEMS_SUCCESSFUL;
200c508: 81 c7 e0 08 ret
200c50c: 91 e8 20 00 restore %g0, 0, %o0
200c510: b0 10 20 0a mov 0xa, %i0
}
200c514: 81 c7 e0 08 ret
200c518: 81 e8 00 00 restore
0201f090 <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
201f090: 9d e3 bf 98 save %sp, -104, %sp
201f094: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
201f098: 80 a6 60 00 cmp %i1, 0
201f09c: 02 80 00 24 be 201f12c <rtems_string_to_unsigned_char+0x9c>
201f0a0: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
201f0a4: 40 00 94 7c call 2044294 <__errno>
201f0a8: 01 00 00 00 nop
201f0ac: c0 22 00 00 clr [ %o0 ]
*n = 0;
201f0b0: c0 2e 40 00 clrb [ %i1 ]
result = strtoul( s, &end, base );
201f0b4: 94 10 00 1b mov %i3, %o2
201f0b8: 90 10 00 10 mov %l0, %o0
201f0bc: 40 00 b5 e7 call 204c858 <strtoul>
201f0c0: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
201f0c4: 80 a6 a0 00 cmp %i2, 0
201f0c8: 02 80 00 04 be 201f0d8 <rtems_string_to_unsigned_char+0x48>
201f0cc: a2 10 00 08 mov %o0, %l1
*endptr = end;
201f0d0: c2 07 bf fc ld [ %fp + -4 ], %g1
201f0d4: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
201f0d8: c2 07 bf fc ld [ %fp + -4 ], %g1
201f0dc: 80 a0 40 10 cmp %g1, %l0
201f0e0: 02 80 00 13 be 201f12c <rtems_string_to_unsigned_char+0x9c>
201f0e4: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
201f0e8: 40 00 94 6b call 2044294 <__errno>
201f0ec: 01 00 00 00 nop
201f0f0: c2 02 00 00 ld [ %o0 ], %g1
201f0f4: 80 a0 60 22 cmp %g1, 0x22
201f0f8: 12 80 00 07 bne 201f114 <rtems_string_to_unsigned_char+0x84><== ALWAYS TAKEN
201f0fc: 80 a4 60 ff cmp %l1, 0xff
201f100: 82 04 7f ff add %l1, -1, %g1 <== NOT EXECUTED
201f104: 80 a0 7f fd cmp %g1, -3 <== NOT EXECUTED
201f108: 18 80 00 09 bgu 201f12c <rtems_string_to_unsigned_char+0x9c><== NOT EXECUTED
201f10c: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
201f110: 80 a4 60 ff cmp %l1, 0xff <== NOT EXECUTED
201f114: 28 80 00 08 bleu,a 201f134 <rtems_string_to_unsigned_char+0xa4><== ALWAYS TAKEN
201f118: e2 2e 40 00 stb %l1, [ %i1 ]
errno = ERANGE;
201f11c: 40 00 94 5e call 2044294 <__errno> <== NOT EXECUTED
201f120: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
201f124: 82 10 20 22 mov 0x22, %g1 <== NOT EXECUTED
201f128: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
201f12c: 81 c7 e0 08 ret
201f130: 81 e8 00 00 restore
}
#endif
*n = result;
201f134: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
201f138: 81 c7 e0 08 ret
201f13c: 81 e8 00 00 restore
0200c690 <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
200c690: 9d e3 bf 98 save %sp, -104, %sp
200c694: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
200c698: 80 a6 60 00 cmp %i1, 0
200c69c: 02 80 00 1f be 200c718 <rtems_string_to_unsigned_int+0x88>
200c6a0: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c6a4: 40 00 0b de call 200f61c <__errno>
200c6a8: 01 00 00 00 nop
200c6ac: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c6b0: c0 26 40 00 clr [ %i1 ]
result = strtoul( s, &end, base );
200c6b4: 94 10 00 1b mov %i3, %o2
200c6b8: 90 10 00 10 mov %l0, %o0
200c6bc: 40 00 19 1a call 2012b24 <strtoul>
200c6c0: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c6c4: 80 a6 a0 00 cmp %i2, 0
200c6c8: 02 80 00 04 be 200c6d8 <rtems_string_to_unsigned_int+0x48>
200c6cc: a2 10 00 08 mov %o0, %l1
*endptr = end;
200c6d0: c2 07 bf fc ld [ %fp + -4 ], %g1
200c6d4: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c6d8: c2 07 bf fc ld [ %fp + -4 ], %g1
200c6dc: 80 a0 40 10 cmp %g1, %l0
200c6e0: 02 80 00 0e be 200c718 <rtems_string_to_unsigned_int+0x88>
200c6e4: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c6e8: 40 00 0b cd call 200f61c <__errno>
200c6ec: 01 00 00 00 nop
200c6f0: c2 02 00 00 ld [ %o0 ], %g1
200c6f4: 80 a0 60 22 cmp %g1, 0x22
200c6f8: 32 80 00 07 bne,a 200c714 <rtems_string_to_unsigned_int+0x84>
200c6fc: e2 26 40 00 st %l1, [ %i1 ]
200c700: 82 04 7f ff add %l1, -1, %g1
200c704: 80 a0 7f fd cmp %g1, -3
200c708: 18 80 00 04 bgu 200c718 <rtems_string_to_unsigned_int+0x88><== ALWAYS TAKEN
200c70c: b0 10 20 0a mov 0xa, %i0
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
200c710: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
200c714: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c718: 81 c7 e0 08 ret
200c71c: 81 e8 00 00 restore
0201f140 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
201f140: 9d e3 bf 98 save %sp, -104, %sp
201f144: a0 10 00 18 mov %i0, %l0
unsigned long result;
char *end;
if ( !n )
201f148: 80 a6 60 00 cmp %i1, 0
201f14c: 02 80 00 1f be 201f1c8 <rtems_string_to_unsigned_long+0x88>
201f150: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
201f154: 40 00 94 50 call 2044294 <__errno>
201f158: 01 00 00 00 nop
*n = 0;
result = strtoul( s, &end, base );
201f15c: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
201f160: c0 22 00 00 clr [ %o0 ]
*n = 0;
201f164: c0 26 40 00 clr [ %i1 ]
result = strtoul( s, &end, base );
201f168: 90 10 00 10 mov %l0, %o0
201f16c: 40 00 b5 bb call 204c858 <strtoul>
201f170: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
201f174: 80 a6 a0 00 cmp %i2, 0
201f178: 02 80 00 04 be 201f188 <rtems_string_to_unsigned_long+0x48>
201f17c: a2 10 00 08 mov %o0, %l1
*endptr = end;
201f180: c2 07 bf fc ld [ %fp + -4 ], %g1
201f184: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
201f188: c2 07 bf fc ld [ %fp + -4 ], %g1
201f18c: 80 a0 40 10 cmp %g1, %l0
201f190: 02 80 00 0e be 201f1c8 <rtems_string_to_unsigned_long+0x88>
201f194: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
201f198: 40 00 94 3f call 2044294 <__errno>
201f19c: 01 00 00 00 nop
201f1a0: c2 02 00 00 ld [ %o0 ], %g1
201f1a4: 80 a0 60 22 cmp %g1, 0x22
201f1a8: 32 80 00 07 bne,a 201f1c4 <rtems_string_to_unsigned_long+0x84>
201f1ac: e2 26 40 00 st %l1, [ %i1 ]
201f1b0: 82 04 7f ff add %l1, -1, %g1
201f1b4: 80 a0 7f fd cmp %g1, -3
201f1b8: 18 80 00 04 bgu 201f1c8 <rtems_string_to_unsigned_long+0x88><== ALWAYS TAKEN
201f1bc: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
201f1c0: e2 26 40 00 st %l1, [ %i1 ] <== NOT EXECUTED
201f1c4: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
201f1c8: 81 c7 e0 08 ret
201f1cc: 81 e8 00 00 restore
0200c720 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
200c720: 9d e3 bf 98 save %sp, -104, %sp
200c724: a0 10 00 18 mov %i0, %l0
unsigned long long result;
char *end;
if ( !n )
200c728: 80 a6 60 00 cmp %i1, 0
200c72c: 02 80 00 25 be 200c7c0 <rtems_string_to_unsigned_long_long+0xa0>
200c730: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c734: 40 00 0b ba call 200f61c <__errno>
200c738: 01 00 00 00 nop
*n = 0;
result = strtoull( s, &end, base );
200c73c: 94 10 00 1b mov %i3, %o2
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
200c740: c0 22 00 00 clr [ %o0 ]
*n = 0;
200c744: c0 26 40 00 clr [ %i1 ]
200c748: c0 26 60 04 clr [ %i1 + 4 ]
result = strtoull( s, &end, base );
200c74c: 90 10 00 10 mov %l0, %o0
200c750: 40 00 18 ff call 2012b4c <strtoull>
200c754: 92 07 bf fc add %fp, -4, %o1
if ( endptr )
200c758: 80 a6 a0 00 cmp %i2, 0
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoull( s, &end, base );
200c75c: a4 10 00 08 mov %o0, %l2
if ( endptr )
200c760: 02 80 00 04 be 200c770 <rtems_string_to_unsigned_long_long+0x50>
200c764: a6 10 00 09 mov %o1, %l3
*endptr = end;
200c768: c2 07 bf fc ld [ %fp + -4 ], %g1
200c76c: c2 26 80 00 st %g1, [ %i2 ]
if ( end == s )
200c770: c2 07 bf fc ld [ %fp + -4 ], %g1
200c774: 80 a0 40 10 cmp %g1, %l0
200c778: 02 80 00 12 be 200c7c0 <rtems_string_to_unsigned_long_long+0xa0>
200c77c: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
200c780: 40 00 0b a7 call 200f61c <__errno>
200c784: 01 00 00 00 nop
200c788: c2 02 00 00 ld [ %o0 ], %g1
200c78c: 80 a0 60 22 cmp %g1, 0x22
200c790: 32 80 00 0b bne,a 200c7bc <rtems_string_to_unsigned_long_long+0x9c>
200c794: e4 3e 40 00 std %l2, [ %i1 ]
200c798: 86 84 ff ff addcc %l3, -1, %g3
200c79c: 84 44 bf ff addx %l2, -1, %g2
200c7a0: 80 a0 bf ff cmp %g2, -1
200c7a4: 32 80 00 06 bne,a 200c7bc <rtems_string_to_unsigned_long_long+0x9c><== NEVER TAKEN
200c7a8: e4 3e 40 00 std %l2, [ %i1 ] <== NOT EXECUTED
200c7ac: 80 a0 ff fd cmp %g3, -3
200c7b0: 18 80 00 04 bgu 200c7c0 <rtems_string_to_unsigned_long_long+0xa0><== ALWAYS TAKEN
200c7b4: b0 10 20 0a mov 0xa, %i0
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
200c7b8: e4 3e 40 00 std %l2, [ %i1 ] <== NOT EXECUTED
200c7bc: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
200c7c0: 81 c7 e0 08 ret
200c7c4: 81 e8 00 00 restore
020102e8 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
20102e8: 9d e3 bf a0 save %sp, -96, %sp
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
20102ec: 80 a6 a0 00 cmp %i2, 0
20102f0: 02 80 00 54 be 2010440 <rtems_task_mode+0x158>
20102f4: 82 10 20 09 mov 9, %g1
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
20102f8: 03 00 80 78 sethi %hi(0x201e000), %g1
20102fc: e0 00 63 50 ld [ %g1 + 0x350 ], %l0 ! 201e350 <_Thread_Executing>
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
2010300: c4 0c 20 75 ldub [ %l0 + 0x75 ], %g2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
2010304: c2 04 20 7c ld [ %l0 + 0x7c ], %g1
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
2010308: 80 a0 00 02 cmp %g0, %g2
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
201030c: e2 04 21 68 ld [ %l0 + 0x168 ], %l1
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
2010310: a4 60 3f ff subx %g0, -1, %l2
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
2010314: 80 a0 60 00 cmp %g1, 0
2010318: 02 80 00 03 be 2010324 <rtems_task_mode+0x3c>
201031c: a5 2c a0 08 sll %l2, 8, %l2
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
2010320: a4 14 a2 00 or %l2, 0x200, %l2
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
2010324: c2 0c 60 08 ldub [ %l1 + 8 ], %g1
2010328: 80 a0 00 01 cmp %g0, %g1
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
old_mode |= _ISR_Get_level();
201032c: 7f ff e7 4f call 200a068 <_CPU_ISR_Get_level>
2010330: a6 60 3f ff subx %g0, -1, %l3
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
2010334: a7 2c e0 0a sll %l3, 0xa, %l3
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
2010338: a6 14 c0 08 or %l3, %o0, %l3
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
201033c: a4 14 c0 12 or %l3, %l2, %l2
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
2010340: 80 8e 61 00 btst 0x100, %i1
2010344: 02 80 00 06 be 201035c <rtems_task_mode+0x74>
2010348: e4 26 80 00 st %l2, [ %i2 ]
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
201034c: 83 36 20 08 srl %i0, 8, %g1
2010350: 82 18 60 01 xor %g1, 1, %g1
2010354: 82 08 60 01 and %g1, 1, %g1
2010358: c2 2c 20 75 stb %g1, [ %l0 + 0x75 ]
if ( mask & RTEMS_TIMESLICE_MASK ) {
201035c: 80 8e 62 00 btst 0x200, %i1
2010360: 02 80 00 0b be 201038c <rtems_task_mode+0xa4>
2010364: 80 8e 60 0f btst 0xf, %i1
if ( _Modes_Is_timeslice(mode_set) ) {
2010368: 80 8e 22 00 btst 0x200, %i0
201036c: 22 80 00 07 be,a 2010388 <rtems_task_mode+0xa0>
2010370: c0 24 20 7c clr [ %l0 + 0x7c ]
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
2010374: 03 00 80 78 sethi %hi(0x201e000), %g1
2010378: c2 00 61 e8 ld [ %g1 + 0x1e8 ], %g1 ! 201e1e8 <_Thread_Ticks_per_timeslice>
201037c: c2 24 20 78 st %g1, [ %l0 + 0x78 ]
if ( mask & RTEMS_PREEMPT_MASK )
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
2010380: 82 10 20 01 mov 1, %g1
2010384: c2 24 20 7c st %g1, [ %l0 + 0x7c ]
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
2010388: 80 8e 60 0f btst 0xf, %i1
201038c: 02 80 00 06 be 20103a4 <rtems_task_mode+0xbc>
2010390: 80 8e 64 00 btst 0x400, %i1
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
2010394: 90 0e 20 0f and %i0, 0xf, %o0
2010398: 7f ff c7 0f call 2001fd4 <sparc_enable_interrupts>
201039c: 91 2a 20 08 sll %o0, 8, %o0
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
20103a0: 80 8e 64 00 btst 0x400, %i1
20103a4: 22 80 00 18 be,a 2010404 <rtems_task_mode+0x11c>
20103a8: a0 10 20 00 clr %l0
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
20103ac: c2 0c 60 08 ldub [ %l1 + 8 ], %g1
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
20103b0: b1 36 20 0a srl %i0, 0xa, %i0
20103b4: b0 1e 20 01 xor %i0, 1, %i0
20103b8: b0 0e 20 01 and %i0, 1, %i0
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
20103bc: 80 a6 00 01 cmp %i0, %g1
20103c0: 22 80 00 11 be,a 2010404 <rtems_task_mode+0x11c>
20103c4: a0 10 20 00 clr %l0
)
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
20103c8: 7f ff c6 ff call 2001fc4 <sparc_disable_interrupts>
20103cc: f0 2c 60 08 stb %i0, [ %l1 + 8 ]
_signals = information->signals_pending;
20103d0: c4 04 60 18 ld [ %l1 + 0x18 ], %g2
information->signals_pending = information->signals_posted;
20103d4: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
information->signals_posted = _signals;
20103d8: c4 24 60 14 st %g2, [ %l1 + 0x14 ]
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
information->signals_pending = information->signals_posted;
20103dc: c2 24 60 18 st %g1, [ %l1 + 0x18 ]
information->signals_posted = _signals;
_ISR_Enable( _level );
20103e0: 7f ff c6 fd call 2001fd4 <sparc_enable_interrupts>
20103e4: 01 00 00 00 nop
20103e8: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
20103ec: 80 a0 60 00 cmp %g1, 0
20103f0: 22 80 00 05 be,a 2010404 <rtems_task_mode+0x11c>
20103f4: a0 10 20 00 clr %l0
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
needs_asr_dispatching = true;
executing->do_post_task_switch_extension = true;
20103f8: 82 10 20 01 mov 1, %g1
20103fc: c2 2c 20 74 stb %g1, [ %l0 + 0x74 ]
2010400: a0 10 20 01 mov 1, %l0
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
2010404: 03 00 80 79 sethi %hi(0x201e400), %g1
2010408: c2 00 60 30 ld [ %g1 + 0x30 ], %g1 ! 201e430 <_System_state_Current>
201040c: 80 a0 60 03 cmp %g1, 3
2010410: 12 80 00 0c bne 2010440 <rtems_task_mode+0x158> <== NEVER TAKEN
2010414: 82 10 20 00 clr %g1
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
2010418: 40 00 00 82 call 2010620 <_Thread_Evaluate_mode>
201041c: 01 00 00 00 nop
2010420: 80 8a 20 ff btst 0xff, %o0
2010424: 12 80 00 04 bne 2010434 <rtems_task_mode+0x14c>
2010428: 80 8c 20 ff btst 0xff, %l0
201042c: 02 80 00 05 be 2010440 <rtems_task_mode+0x158>
2010430: 82 10 20 00 clr %g1
_Thread_Dispatch();
2010434: 7f ff e0 1b call 20084a0 <_Thread_Dispatch>
2010438: 01 00 00 00 nop
201043c: 82 10 20 00 clr %g1 ! 0 <PROM_START>
return RTEMS_SUCCESSFUL;
}
2010440: 81 c7 e0 08 ret
2010444: 91 e8 00 01 restore %g0, %g1, %o0
0200afc8 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
200afc8: 9d e3 bf 98 save %sp, -104, %sp
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
200afcc: 80 a6 60 00 cmp %i1, 0
200afd0: 02 80 00 07 be 200afec <rtems_task_set_priority+0x24>
200afd4: 90 10 00 18 mov %i0, %o0
200afd8: 03 00 80 88 sethi %hi(0x2022000), %g1
200afdc: c2 08 60 44 ldub [ %g1 + 0x44 ], %g1 ! 2022044 <rtems_maximum_priority>
200afe0: 80 a6 40 01 cmp %i1, %g1
200afe4: 18 80 00 1c bgu 200b054 <rtems_task_set_priority+0x8c>
200afe8: b0 10 20 13 mov 0x13, %i0
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
200afec: 80 a6 a0 00 cmp %i2, 0
200aff0: 02 80 00 19 be 200b054 <rtems_task_set_priority+0x8c>
200aff4: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
200aff8: 40 00 08 4b call 200d124 <_Thread_Get>
200affc: 92 07 bf fc add %fp, -4, %o1
switch ( location ) {
200b000: c2 07 bf fc ld [ %fp + -4 ], %g1
200b004: 80 a0 60 00 cmp %g1, 0
200b008: 12 80 00 13 bne 200b054 <rtems_task_set_priority+0x8c>
200b00c: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
200b010: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
200b014: 80 a6 60 00 cmp %i1, 0
200b018: 02 80 00 0d be 200b04c <rtems_task_set_priority+0x84>
200b01c: c2 26 80 00 st %g1, [ %i2 ]
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
200b020: c2 02 20 1c ld [ %o0 + 0x1c ], %g1
200b024: 80 a0 60 00 cmp %g1, 0
200b028: 02 80 00 06 be 200b040 <rtems_task_set_priority+0x78>
200b02c: f2 22 20 18 st %i1, [ %o0 + 0x18 ]
the_thread->current_priority > new_priority )
200b030: c2 02 20 14 ld [ %o0 + 0x14 ], %g1
200b034: 80 a0 40 19 cmp %g1, %i1
200b038: 08 80 00 05 bleu 200b04c <rtems_task_set_priority+0x84> <== ALWAYS TAKEN
200b03c: 01 00 00 00 nop
_Thread_Change_priority( the_thread, new_priority, false );
200b040: 92 10 00 19 mov %i1, %o1
200b044: 40 00 06 8a call 200ca6c <_Thread_Change_priority>
200b048: 94 10 20 00 clr %o2
}
_Thread_Enable_dispatch();
200b04c: 40 00 08 13 call 200d098 <_Thread_Enable_dispatch>
200b050: b0 10 20 00 clr %i0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
200b054: 81 c7 e0 08 ret
200b058: 81 e8 00 00 restore
02004fd0 <rtems_termios_baud_to_index>:
#include <rtems/termiostypes.h>
int rtems_termios_baud_to_index(
rtems_termios_baud_t termios_baud
)
{
2004fd0: 82 10 00 08 mov %o0, %g1
int baud_index;
switch (termios_baud) {
2004fd4: 80 a2 20 09 cmp %o0, 9
2004fd8: 02 80 00 19 be 200503c <rtems_termios_baud_to_index+0x6c> <== NEVER TAKEN
2004fdc: 90 10 20 09 mov 9, %o0
2004fe0: 80 a0 60 09 cmp %g1, 9
2004fe4: 14 80 00 25 bg 2005078 <rtems_termios_baud_to_index+0xa8> <== NEVER TAKEN
2004fe8: 80 a0 60 0e cmp %g1, 0xe
2004fec: 80 a0 60 04 cmp %g1, 4
2004ff0: 02 80 00 13 be 200503c <rtems_termios_baud_to_index+0x6c> <== NEVER TAKEN
2004ff4: 90 10 20 04 mov 4, %o0
2004ff8: 80 a0 60 04 cmp %g1, 4
2004ffc: 14 80 00 12 bg 2005044 <rtems_termios_baud_to_index+0x74> <== NEVER TAKEN
2005000: 80 a0 60 06 cmp %g1, 6
2005004: 80 a0 60 01 cmp %g1, 1
2005008: 02 80 00 0d be 200503c <rtems_termios_baud_to_index+0x6c> <== NEVER TAKEN
200500c: 90 10 20 01 mov 1, %o0
2005010: 80 a0 60 01 cmp %g1, 1
2005014: 34 80 00 05 bg,a 2005028 <rtems_termios_baud_to_index+0x58><== NEVER TAKEN
2005018: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
200501c: 80 a0 60 00 cmp %g1, 0
2005020: 10 80 00 3f b 200511c <rtems_termios_baud_to_index+0x14c>
2005024: 90 10 20 00 clr %o0
2005028: 02 80 00 05 be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
200502c: 90 10 20 02 mov 2, %o0 <== NOT EXECUTED
2005030: 80 a0 60 03 cmp %g1, 3 <== NOT EXECUTED
2005034: 12 80 00 3c bne 2005124 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
2005038: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
200503c: 81 c3 e0 08 retl <== NOT EXECUTED
2005040: 01 00 00 00 nop <== NOT EXECUTED
2005044: 02 bf ff fe be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
2005048: 90 10 20 06 mov 6, %o0 ! 6 <PROM_START+0x6> <== NOT EXECUTED
200504c: 80 a0 60 06 cmp %g1, 6 <== NOT EXECUTED
2005050: 06 bf ff fb bl 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
2005054: 90 10 20 05 mov 5, %o0 <== NOT EXECUTED
2005058: 80 a0 60 07 cmp %g1, 7 <== NOT EXECUTED
200505c: 02 bf ff f8 be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
2005060: 90 10 20 07 mov 7, %o0 <== NOT EXECUTED
2005064: 80 a0 60 08 cmp %g1, 8 <== NOT EXECUTED
2005068: 12 80 00 2f bne 2005124 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
200506c: 90 10 20 08 mov 8, %o0 <== NOT EXECUTED
2005070: 81 c3 e0 08 retl <== NOT EXECUTED
2005074: 01 00 00 00 nop <== NOT EXECUTED
2005078: 02 bf ff f1 be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
200507c: 90 10 20 0e mov 0xe, %o0 ! e <PROM_START+0xe> <== NOT EXECUTED
2005080: 80 a0 60 0e cmp %g1, 0xe <== NOT EXECUTED
2005084: 14 80 00 10 bg 20050c4 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED
2005088: 05 00 00 04 sethi %hi(0x1000), %g2 <== NOT EXECUTED
200508c: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
2005090: 02 bf ff eb be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
2005094: 90 10 20 0b mov 0xb, %o0 <== NOT EXECUTED
2005098: 80 a0 60 0b cmp %g1, 0xb <== NOT EXECUTED
200509c: 06 bf ff e8 bl 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
20050a0: 90 10 20 0a mov 0xa, %o0 <== NOT EXECUTED
20050a4: 80 a0 60 0c cmp %g1, 0xc <== NOT EXECUTED
20050a8: 02 bf ff e5 be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
20050ac: 90 10 20 0c mov 0xc, %o0 <== NOT EXECUTED
20050b0: 80 a0 60 0d cmp %g1, 0xd <== NOT EXECUTED
20050b4: 12 80 00 1c bne 2005124 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
20050b8: 90 10 20 0d mov 0xd, %o0 <== NOT EXECUTED
20050bc: 81 c3 e0 08 retl <== NOT EXECUTED
20050c0: 01 00 00 00 nop <== NOT EXECUTED
20050c4: 86 10 a0 02 or %g2, 2, %g3 <== NOT EXECUTED
20050c8: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20050cc: 02 bf ff dc be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
20050d0: 90 10 20 11 mov 0x11, %o0 <== NOT EXECUTED
20050d4: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
20050d8: 34 80 00 0b bg,a 2005104 <rtems_termios_baud_to_index+0x134><== NOT EXECUTED
20050dc: 86 10 a0 03 or %g2, 3, %g3 <== NOT EXECUTED
20050e0: 80 a0 60 0f cmp %g1, 0xf <== NOT EXECUTED
20050e4: 02 bf ff d6 be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
20050e8: 90 10 20 0f mov 0xf, %o0 <== NOT EXECUTED
20050ec: 84 10 a0 01 or %g2, 1, %g2 <== NOT EXECUTED
20050f0: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
20050f4: 12 80 00 0c bne 2005124 <rtems_termios_baud_to_index+0x154><== NOT EXECUTED
20050f8: 90 10 20 10 mov 0x10, %o0 <== NOT EXECUTED
20050fc: 81 c3 e0 08 retl <== NOT EXECUTED
2005100: 01 00 00 00 nop <== NOT EXECUTED
2005104: 80 a0 40 03 cmp %g1, %g3 <== NOT EXECUTED
2005108: 02 bf ff cd be 200503c <rtems_termios_baud_to_index+0x6c> <== NOT EXECUTED
200510c: 90 10 20 12 mov 0x12, %o0 <== NOT EXECUTED
2005110: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
2005114: 90 10 20 13 mov 0x13, %o0 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
2005118: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
200511c: 02 80 00 03 be 2005128 <rtems_termios_baud_to_index+0x158><== NEVER TAKEN
2005120: 01 00 00 00 nop
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
case B460800: baud_index = 19; break;
2005124: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff>
default: baud_index = -1; break;
}
return baud_index;
}
2005128: 81 c3 e0 08 retl
02005130 <rtems_termios_baud_to_number>:
#include <rtems/termiostypes.h>
int32_t rtems_termios_baud_to_number(
int termios_baud
)
{
2005130: 82 10 00 08 mov %o0, %g1
int32_t baud;
switch (termios_baud) {
2005134: 80 a2 20 09 cmp %o0, 9
2005138: 02 80 00 19 be 200519c <rtems_termios_baud_to_number+0x6c>
200513c: 90 10 24 b0 mov 0x4b0, %o0
2005140: 80 a0 60 09 cmp %g1, 9
2005144: 14 80 00 25 bg 20051d8 <rtems_termios_baud_to_number+0xa8>
2005148: 11 00 00 12 sethi %hi(0x4800), %o0
200514c: 80 a0 60 04 cmp %g1, 4
2005150: 02 80 00 13 be 200519c <rtems_termios_baud_to_number+0x6c>
2005154: 90 10 20 86 mov 0x86, %o0
2005158: 80 a0 60 04 cmp %g1, 4
200515c: 14 80 00 12 bg 20051a4 <rtems_termios_baud_to_number+0x74>
2005160: 80 a0 60 06 cmp %g1, 6
2005164: 80 a0 60 01 cmp %g1, 1
2005168: 02 80 00 0d be 200519c <rtems_termios_baud_to_number+0x6c>
200516c: 90 10 20 32 mov 0x32, %o0
2005170: 80 a0 60 01 cmp %g1, 1
2005174: 34 80 00 05 bg,a 2005188 <rtems_termios_baud_to_number+0x58>
2005178: 80 a0 60 02 cmp %g1, 2
200517c: 80 a0 60 00 cmp %g1, 0
2005180: 10 80 00 45 b 2005294 <rtems_termios_baud_to_number+0x164>
2005184: 90 10 20 00 clr %o0
2005188: 02 80 00 05 be 200519c <rtems_termios_baud_to_number+0x6c>
200518c: 90 10 20 4b mov 0x4b, %o0
2005190: 80 a0 60 03 cmp %g1, 3
2005194: 12 80 00 42 bne 200529c <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
2005198: 90 10 20 6e mov 0x6e, %o0
200519c: 81 c3 e0 08 retl
20051a0: 01 00 00 00 nop
20051a4: 02 bf ff fe be 200519c <rtems_termios_baud_to_number+0x6c>
20051a8: 90 10 20 c8 mov 0xc8, %o0 ! c8 <PROM_START+0xc8>
20051ac: 80 a0 60 06 cmp %g1, 6
20051b0: 06 bf ff fb bl 200519c <rtems_termios_baud_to_number+0x6c>
20051b4: 90 10 20 96 mov 0x96, %o0
20051b8: 80 a0 60 07 cmp %g1, 7
20051bc: 02 bf ff f8 be 200519c <rtems_termios_baud_to_number+0x6c>
20051c0: 90 10 21 2c mov 0x12c, %o0
20051c4: 80 a0 60 08 cmp %g1, 8
20051c8: 12 80 00 35 bne 200529c <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
20051cc: 90 10 22 58 mov 0x258, %o0
20051d0: 81 c3 e0 08 retl
20051d4: 01 00 00 00 nop
20051d8: 80 a0 60 0e cmp %g1, 0xe
20051dc: 02 bf ff f0 be 200519c <rtems_termios_baud_to_number+0x6c>
20051e0: 90 12 23 00 or %o0, 0x300, %o0
20051e4: 80 a0 60 0e cmp %g1, 0xe
20051e8: 14 80 00 12 bg 2005230 <rtems_termios_baud_to_number+0x100>
20051ec: 05 00 00 04 sethi %hi(0x1000), %g2
20051f0: 80 a0 60 0b cmp %g1, 0xb
20051f4: 02 bf ff ea be 200519c <rtems_termios_baud_to_number+0x6c>
20051f8: 90 10 29 60 mov 0x960, %o0
20051fc: 80 a0 60 0b cmp %g1, 0xb
2005200: 06 bf ff e7 bl 200519c <rtems_termios_baud_to_number+0x6c>
2005204: 90 10 27 08 mov 0x708, %o0
case B200: baud = 200; break;
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
2005208: 90 02 28 f8 add %o0, 0x8f8, %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
200520c: 80 a0 60 0c cmp %g1, 0xc
2005210: 02 bf ff e3 be 200519c <rtems_termios_baud_to_number+0x6c>
2005214: 90 12 22 c0 or %o0, 0x2c0, %o0
case B300: baud = 300; break;
case B600: baud = 600; break;
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
2005218: 11 00 00 09 sethi %hi(0x2400), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
200521c: 80 a0 60 0d cmp %g1, 0xd
2005220: 12 80 00 1f bne 200529c <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
2005224: 90 12 21 80 or %o0, 0x180, %o0
2005228: 81 c3 e0 08 retl
200522c: 01 00 00 00 nop
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
2005230: 11 00 00 70 sethi %hi(0x1c000), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005234: 86 10 a0 02 or %g2, 2, %g3
2005238: 80 a0 40 03 cmp %g1, %g3
200523c: 02 bf ff d8 be 200519c <rtems_termios_baud_to_number+0x6c>
2005240: 90 12 22 00 or %o0, 0x200, %o0
2005244: 80 a0 40 03 cmp %g1, %g3
2005248: 34 80 00 0d bg,a 200527c <rtems_termios_baud_to_number+0x14c>
200524c: 86 10 a0 03 or %g2, 3, %g3
case B1200: baud = 1200; break;
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
2005250: 11 00 00 25 sethi %hi(0x9400), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005254: 80 a0 60 0f cmp %g1, 0xf
2005258: 02 bf ff d1 be 200519c <rtems_termios_baud_to_number+0x6c>
200525c: 90 12 22 00 or %o0, 0x200, %o0
2005260: 84 10 a0 01 or %g2, 1, %g2
case B1800: baud = 1800; break;
case B2400: baud = 2400; break;
case B4800: baud = 4800; break;
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
2005264: 11 00 00 38 sethi %hi(0xe000), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005268: 80 a0 40 02 cmp %g1, %g2
200526c: 12 80 00 0c bne 200529c <rtems_termios_baud_to_number+0x16c><== NEVER TAKEN
2005270: 90 12 21 00 or %o0, 0x100, %o0
2005274: 81 c3 e0 08 retl
2005278: 01 00 00 00 nop
200527c: 80 a0 40 03 cmp %g1, %g3
2005280: 02 bf ff c7 be 200519c <rtems_termios_baud_to_number+0x6c>
2005284: 11 00 00 e1 sethi %hi(0x38400), %o0
2005288: 84 10 a0 04 or %g2, 4, %g2
case B9600: baud = 9600; break;
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
200528c: 11 00 01 c2 sethi %hi(0x70800), %o0
int termios_baud
)
{
int32_t baud;
switch (termios_baud) {
2005290: 80 a0 40 02 cmp %g1, %g2
2005294: 02 80 00 03 be 20052a0 <rtems_termios_baud_to_number+0x170>
2005298: 01 00 00 00 nop
case B19200: baud = 19200; break;
case B38400: baud = 38400; break;
case B57600: baud = 57600; break;
case B115200: baud = 115200; break;
case B230400: baud = 230400; break;
case B460800: baud = 460800; break;
200529c: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff>
default: baud = -1; break;
}
return baud;
}
20052a0: 81 c3 e0 08 retl
02003b48 <rtems_termios_bufsize>:
int cbufsize,
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
2003b48: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
2003b4c: d0 20 60 60 st %o0, [ %g1 + 0x60 ] ! 201d860 <rtems_termios_cbufsize><== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
2003b50: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
return RTEMS_SUCCESSFUL;
}
2003b54: 90 10 20 00 clr %o0 <== NOT EXECUTED
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
rtems_termios_raw_input_size = raw_input;
2003b58: d2 20 60 64 st %o1, [ %g1 + 0x64 ] <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output;
2003b5c: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
2003b60: 81 c3 e0 08 retl <== NOT EXECUTED
2003b64: d4 20 60 68 st %o2, [ %g1 + 0x68 ] ! 201d868 <rtems_termios_raw_output_size><== NOT EXECUTED
02005198 <rtems_termios_close>:
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
2005198: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
200519c: 03 00 80 78 sethi %hi(0x201e000), %g1
20051a0: d0 00 61 00 ld [ %g1 + 0x100 ], %o0 ! 201e100 <rtems_termios_ttyMutex>
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20051a4: c2 06 00 00 ld [ %i0 ], %g1
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20051a8: 92 10 20 00 clr %o1
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20051ac: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
rtems_status_code sc;
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20051b0: 40 00 04 65 call 2006344 <rtems_semaphore_obtain>
20051b4: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL)
20051b8: 80 a2 20 00 cmp %o0, 0
20051bc: 12 80 00 2c bne 200526c <rtems_termios_close+0xd4> <== NEVER TAKEN
20051c0: 01 00 00 00 nop
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
20051c4: c2 04 20 08 ld [ %l0 + 8 ], %g1
20051c8: 82 00 7f ff add %g1, -1, %g1
20051cc: 80 a0 60 00 cmp %g1, 0
20051d0: 12 80 00 5e bne 2005348 <rtems_termios_close+0x1b0>
20051d4: c2 24 20 08 st %g1, [ %l0 + 8 ]
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
20051d8: c4 04 20 cc ld [ %l0 + 0xcc ], %g2
20051dc: 03 00 80 77 sethi %hi(0x201dc00), %g1
20051e0: 85 28 a0 05 sll %g2, 5, %g2
20051e4: 82 10 62 30 or %g1, 0x230, %g1
20051e8: 82 00 40 02 add %g1, %g2, %g1
20051ec: c2 00 60 04 ld [ %g1 + 4 ], %g1
20051f0: 80 a0 60 00 cmp %g1, 0
20051f4: 22 80 00 06 be,a 200520c <rtems_termios_close+0x74> <== ALWAYS TAKEN
20051f8: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
20051fc: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005200: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
}
if (tty->device.outputUsesInterrupts
2005204: 10 80 00 0b b 2005230 <rtems_termios_close+0x98> <== NOT EXECUTED
2005208: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1 <== NOT EXECUTED
}
else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
200520c: 92 10 20 00 clr %o1
2005210: 40 00 04 4d call 2006344 <rtems_semaphore_obtain>
2005214: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL) {
2005218: 80 a2 20 00 cmp %o0, 0
200521c: 12 80 00 14 bne 200526c <rtems_termios_close+0xd4> <== NEVER TAKEN
2005220: 01 00 00 00 nop
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
2005224: 7f ff fd d0 call 2004964 <drainOutput>
2005228: 90 10 00 10 mov %l0, %o0
}
if (tty->device.outputUsesInterrupts
200522c: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1
2005230: 80 a0 60 02 cmp %g1, 2
2005234: 32 80 00 10 bne,a 2005274 <rtems_termios_close+0xdc> <== ALWAYS TAKEN
2005238: c2 04 20 9c ld [ %l0 + 0x9c ], %g1
== TERMIOS_TASK_DRIVEN) {
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send(
200523c: d0 04 20 c4 ld [ %l0 + 0xc4 ], %o0 <== NOT EXECUTED
2005240: 40 00 03 03 call 2005e4c <rtems_event_send> <== NOT EXECUTED
2005244: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
tty->rxTaskId,
TERMIOS_RX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
2005248: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200524c: 12 80 00 08 bne 200526c <rtems_termios_close+0xd4> <== NOT EXECUTED
2005250: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send(
2005254: d0 04 20 c8 ld [ %l0 + 0xc8 ], %o0 <== NOT EXECUTED
2005258: 40 00 02 fd call 2005e4c <rtems_event_send> <== NOT EXECUTED
200525c: 92 10 20 01 mov 1, %o1 <== NOT EXECUTED
tty->txTaskId,
TERMIOS_TX_TERMINATE_EVENT);
if (sc != RTEMS_SUCCESSFUL)
2005260: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005264: 22 80 00 04 be,a 2005274 <rtems_termios_close+0xdc> <== NOT EXECUTED
2005268: c2 04 20 9c ld [ %l0 + 0x9c ], %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
200526c: 40 00 05 d1 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2005270: 01 00 00 00 nop <== NOT EXECUTED
}
if (tty->device.lastClose)
2005274: 80 a0 60 00 cmp %g1, 0
2005278: 22 80 00 07 be,a 2005294 <rtems_termios_close+0xfc> <== ALWAYS TAKEN
200527c: c4 04 00 00 ld [ %l0 ], %g2
(*tty->device.lastClose)(tty->major, tty->minor, arg);
2005280: d0 04 20 0c ld [ %l0 + 0xc ], %o0 <== NOT EXECUTED
2005284: d2 04 20 10 ld [ %l0 + 0x10 ], %o1 <== NOT EXECUTED
2005288: 9f c0 40 00 call %g1 <== NOT EXECUTED
200528c: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
if (tty->forw == NULL) {
2005290: c4 04 00 00 ld [ %l0 ], %g2 <== NOT EXECUTED
2005294: 80 a0 a0 00 cmp %g2, 0
2005298: 12 80 00 08 bne 20052b8 <rtems_termios_close+0x120>
200529c: c2 04 20 04 ld [ %l0 + 4 ], %g1
rtems_termios_ttyTail = tty->back;
20052a0: 05 00 80 78 sethi %hi(0x201e000), %g2
if ( rtems_termios_ttyTail != NULL ) {
20052a4: 80 a0 60 00 cmp %g1, 0
20052a8: 02 80 00 05 be 20052bc <rtems_termios_close+0x124> <== ALWAYS TAKEN
20052ac: c2 20 a1 04 st %g1, [ %g2 + 0x104 ]
rtems_termios_ttyTail->forw = NULL;
20052b0: 10 80 00 03 b 20052bc <rtems_termios_close+0x124> <== NOT EXECUTED
20052b4: c0 20 40 00 clr [ %g1 ] <== NOT EXECUTED
}
}
else {
tty->forw->back = tty->back;
20052b8: c2 20 a0 04 st %g1, [ %g2 + 4 ]
}
if (tty->back == NULL) {
20052bc: c4 04 20 04 ld [ %l0 + 4 ], %g2
20052c0: 80 a0 a0 00 cmp %g2, 0
20052c4: 12 80 00 08 bne 20052e4 <rtems_termios_close+0x14c> <== NEVER TAKEN
20052c8: c2 04 00 00 ld [ %l0 ], %g1
rtems_termios_ttyHead = tty->forw;
20052cc: 05 00 80 78 sethi %hi(0x201e000), %g2
if ( rtems_termios_ttyHead != NULL ) {
20052d0: 80 a0 60 00 cmp %g1, 0
20052d4: 02 80 00 05 be 20052e8 <rtems_termios_close+0x150>
20052d8: c2 20 a1 08 st %g1, [ %g2 + 0x108 ]
rtems_termios_ttyHead->back = NULL;
20052dc: 10 80 00 03 b 20052e8 <rtems_termios_close+0x150>
20052e0: c0 20 60 04 clr [ %g1 + 4 ]
}
}
else {
tty->back->forw = tty->forw;
20052e4: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED
}
rtems_semaphore_delete (tty->isem);
20052e8: 40 00 03 e9 call 200628c <rtems_semaphore_delete>
20052ec: d0 04 20 14 ld [ %l0 + 0x14 ], %o0
rtems_semaphore_delete (tty->osem);
20052f0: 40 00 03 e7 call 200628c <rtems_semaphore_delete>
20052f4: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
20052f8: 40 00 03 e5 call 200628c <rtems_semaphore_delete>
20052fc: d0 04 20 8c ld [ %l0 + 0x8c ], %o0
if ((tty->device.pollRead == NULL) ||
2005300: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
2005304: 80 a0 60 00 cmp %g1, 0
2005308: 02 80 00 06 be 2005320 <rtems_termios_close+0x188> <== NEVER TAKEN
200530c: 01 00 00 00 nop
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
2005310: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1
2005314: 80 a0 60 02 cmp %g1, 2
2005318: 12 80 00 04 bne 2005328 <rtems_termios_close+0x190> <== ALWAYS TAKEN
200531c: 01 00 00 00 nop
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
2005320: 40 00 03 db call 200628c <rtems_semaphore_delete> <== NOT EXECUTED
2005324: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
free (tty->rawInBuf.theBuf);
2005328: 7f ff f5 f5 call 2002afc <free>
200532c: d0 04 20 58 ld [ %l0 + 0x58 ], %o0
free (tty->rawOutBuf.theBuf);
2005330: 7f ff f5 f3 call 2002afc <free>
2005334: d0 04 20 7c ld [ %l0 + 0x7c ], %o0
free (tty->cbuf);
2005338: 7f ff f5 f1 call 2002afc <free>
200533c: d0 04 20 1c ld [ %l0 + 0x1c ], %o0
free (tty);
2005340: 7f ff f5 ef call 2002afc <free>
2005344: 90 10 00 10 mov %l0, %o0
}
rtems_semaphore_release (rtems_termios_ttyMutex);
2005348: 03 00 80 78 sethi %hi(0x201e000), %g1
200534c: d0 00 61 00 ld [ %g1 + 0x100 ], %o0 ! 201e100 <rtems_termios_ttyMutex>
2005350: 40 00 04 44 call 2006460 <rtems_semaphore_release>
2005354: b0 10 20 00 clr %i0
return RTEMS_SUCCESSFUL;
}
2005358: 81 c7 e0 08 ret
200535c: 81 e8 00 00 restore
02003d64 <rtems_termios_dequeue_characters>:
* for each transmitted character.
* It returns number of characters left to transmit
*/
int
rtems_termios_dequeue_characters (void *ttyp, int len)
{
2003d64: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
2003d68: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
2003d6c: c2 06 20 b4 ld [ %i0 + 0xb4 ], %g1 <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
2003d70: 84 00 80 19 add %g2, %i1, %g2 <== NOT EXECUTED
2003d74: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
2003d78: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003d7c: 12 80 00 0a bne 2003da4 <rtems_termios_dequeue_characters+0x40><== NOT EXECUTED
2003d80: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId,
2003d84: d0 06 20 c8 ld [ %i0 + 0xc8 ], %o0 <== NOT EXECUTED
2003d88: 40 00 08 31 call 2005e4c <rtems_event_send> <== NOT EXECUTED
2003d8c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
TERMIOS_TX_START_EVENT);
if (sc != RTEMS_SUCCESSFUL)
2003d90: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2003d94: 02 80 00 11 be 2003dd8 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
2003d98: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
2003d9c: 40 00 0b 05 call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2003da0: 01 00 00 00 nop <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
else if (tty->t_line == PPPDISC ) {
2003da4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED
2003da8: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED
2003dac: 12 80 00 09 bne 2003dd0 <rtems_termios_dequeue_characters+0x6c><== NOT EXECUTED
2003db0: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
2003db4: c2 00 62 e4 ld [ %g1 + 0x2e4 ], %g1 ! 201dee4 <rtems_termios_linesw+0xb4><== NOT EXECUTED
2003db8: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003dbc: 02 80 00 07 be 2003dd8 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
2003dc0: b0 10 20 00 clr %i0 <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
2003dc4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003dc8: 01 00 00 00 nop <== NOT EXECUTED
2003dcc: 30 80 00 03 b,a 2003dd8 <rtems_termios_dequeue_characters+0x74><== NOT EXECUTED
}
return 0; /* nothing to output in IRQ... */
}
else {
return rtems_termios_refill_transmitter(tty);
2003dd0: 7f ff ff 6c call 2003b80 <rtems_termios_refill_transmitter><== NOT EXECUTED
2003dd4: 81 e8 00 00 restore <== NOT EXECUTED
}
}
2003dd8: 81 c7 e0 08 ret <== NOT EXECUTED
2003ddc: 81 e8 00 00 restore <== NOT EXECUTED
02003de0 <rtems_termios_enqueue_raw_characters>:
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
2003de0: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
char c;
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
2003de4: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED
2003de8: 25 00 80 77 sethi %hi(0x201dc00), %l2 <== NOT EXECUTED
2003dec: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2003df0: a4 14 a2 30 or %l2, 0x230, %l2 <== NOT EXECUTED
2003df4: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED
2003df8: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
2003dfc: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
char c;
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
2003e00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003e04: 12 80 00 11 bne 2003e48 <rtems_termios_enqueue_raw_characters+0x68><== NOT EXECUTED
2003e08: a2 10 00 1a mov %i2, %l1 <== NOT EXECUTED
if ((tty->flow_ctrl & FL_OSTOP) ||
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
(*tty->device.write)(tty->minor,
2003e0c: aa 06 20 4a add %i0, 0x4a, %l5 <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
2003e10: a8 06 20 30 add %i0, 0x30, %l4 <== NOT EXECUTED
2003e14: a4 10 20 00 clr %l2 <== NOT EXECUTED
2003e18: 10 80 00 ad b 20040cc <rtems_termios_enqueue_raw_characters+0x2ec><== NOT EXECUTED
2003e1c: b0 10 20 00 clr %i0 <== NOT EXECUTED
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
c = *buf++;
2003e20: d0 0e 40 00 ldub [ %i1 ], %o0 <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
2003e24: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2003e28: 82 00 60 10 add %g1, 0x10, %g1 <== NOT EXECUTED
2003e2c: c2 04 80 01 ld [ %l2 + %g1 ], %g1 <== NOT EXECUTED
2003e30: 91 2a 20 18 sll %o0, 0x18, %o0 <== NOT EXECUTED
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
c = *buf++;
2003e34: b2 06 60 01 inc %i1 <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
2003e38: 91 3a 20 18 sra %o0, 0x18, %o0 <== NOT EXECUTED
2003e3c: a2 04 7f ff add %l1, -1, %l1 <== NOT EXECUTED
2003e40: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003e44: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
2003e48: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2003e4c: 32 bf ff f5 bne,a 2003e20 <rtems_termios_enqueue_raw_characters+0x40><== NOT EXECUTED
2003e50: c2 04 20 cc ld [ %l0 + 0xcc ], %g1 <== NOT EXECUTED
}
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
2003e54: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED
2003e58: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003e5c: 12 80 00 a6 bne 20040f4 <rtems_termios_enqueue_raw_characters+0x314><== NOT EXECUTED
2003e60: 01 00 00 00 nop <== NOT EXECUTED
2003e64: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED
2003e68: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003e6c: 02 80 00 a2 be 20040f4 <rtems_termios_enqueue_raw_characters+0x314><== NOT EXECUTED
2003e70: 01 00 00 00 nop <== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
2003e74: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED
2003e78: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003e7c: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
2003e80: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
2003e84: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED
2003e88: 81 c7 e0 08 ret <== NOT EXECUTED
2003e8c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
while (len--) {
c = *buf++;
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
2003e90: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003e94: 80 88 62 00 btst 0x200, %g1 <== NOT EXECUTED
2003e98: 02 80 00 1b be 2003f04 <rtems_termios_enqueue_raw_characters+0x124><== NOT EXECUTED
2003e9c: e6 0e 40 00 ldub [ %i1 ], %l3 <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
2003ea0: c4 0c 20 4a ldub [ %l0 + 0x4a ], %g2 <== NOT EXECUTED
2003ea4: 83 2c e0 18 sll %l3, 0x18, %g1 <== NOT EXECUTED
2003ea8: 83 38 60 18 sra %g1, 0x18, %g1 <== NOT EXECUTED
2003eac: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2003eb0: 12 80 00 0e bne 2003ee8 <rtems_termios_enqueue_raw_characters+0x108><== NOT EXECUTED
2003eb4: c4 0c 20 49 ldub [ %l0 + 0x49 ], %g2 <== NOT EXECUTED
if (c == tty->termios.c_cc[VSTART]) {
2003eb8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2003ebc: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2003ec0: 12 80 00 05 bne 2003ed4 <rtems_termios_enqueue_raw_characters+0xf4><== NOT EXECUTED
2003ec4: 01 00 00 00 nop <== NOT EXECUTED
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
2003ec8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003ecc: 10 80 00 04 b 2003edc <rtems_termios_enqueue_raw_characters+0xfc><== NOT EXECUTED
2003ed0: 82 18 60 10 xor %g1, 0x10, %g1 <== NOT EXECUTED
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
2003ed4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003ed8: 82 10 60 10 or %g1, 0x10, %g1 <== NOT EXECUTED
2003edc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
}
}
}
tty->rawInBufDropped += dropped;
rtems_semaphore_release (tty->rawInBuf.Semaphore);
return dropped;
2003ee0: 10 80 00 0c b 2003f10 <rtems_termios_enqueue_raw_characters+0x130><== NOT EXECUTED
2003ee4: a4 10 20 01 mov 1, %l2 <== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
2003ee8: 84 08 a0 ff and %g2, 0xff, %g2 <== NOT EXECUTED
2003eec: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2003ef0: 12 80 00 06 bne 2003f08 <rtems_termios_enqueue_raw_characters+0x128><== NOT EXECUTED
2003ef4: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
2003ef8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003efc: 10 bf ff f8 b 2003edc <rtems_termios_enqueue_raw_characters+0xfc><== NOT EXECUTED
2003f00: 82 08 7f ef and %g1, -17, %g1 <== NOT EXECUTED
flow_rcv = true;
}
}
if (flow_rcv) {
2003f04: 80 8c a0 ff btst 0xff, %l2 <== NOT EXECUTED
2003f08: 02 80 00 1c be 2003f78 <rtems_termios_enqueue_raw_characters+0x198><== NOT EXECUTED
2003f0c: 01 00 00 00 nop <== NOT EXECUTED
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
2003f10: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003f14: 82 08 60 30 and %g1, 0x30, %g1 <== NOT EXECUTED
2003f18: 80 a0 60 20 cmp %g1, 0x20 <== NOT EXECUTED
2003f1c: 32 80 00 6b bne,a 20040c8 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
2003f20: b2 06 60 01 inc %i1 <== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
2003f24: 7f ff f8 28 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2003f28: 01 00 00 00 nop <== NOT EXECUTED
2003f2c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
2003f30: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
2003f34: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED
if (flow_rcv) {
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
/* disable interrupts */
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
2003f38: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED
2003f3c: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
2003f40: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003f44: 02 80 00 09 be 2003f68 <rtems_termios_enqueue_raw_characters+0x188><== NOT EXECUTED
2003f48: 01 00 00 00 nop <== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
2003f4c: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
2003f50: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED
2003f54: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2003f58: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2003f5c: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
2003f60: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003f64: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
2003f68: 7f ff f8 1b call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2003f6c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
2003f70: 10 80 00 56 b 20040c8 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
2003f74: b2 06 60 01 inc %i1 <== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
2003f78: d0 04 20 60 ld [ %l0 + 0x60 ], %o0 <== NOT EXECUTED
2003f7c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
2003f80: 40 00 58 71 call 201a144 <.urem> <== NOT EXECUTED
2003f84: 90 02 20 01 inc %o0 <== NOT EXECUTED
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
2003f88: 7f ff f8 0f call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2003f8c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
2003f90: ac 10 00 08 mov %o0, %l6 <== NOT EXECUTED
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
2003f94: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
2003f98: d0 04 20 64 ld [ %l0 + 0x64 ], %o0 <== NOT EXECUTED
2003f9c: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
2003fa0: 90 22 00 01 sub %o0, %g1, %o0 <== NOT EXECUTED
2003fa4: 40 00 58 68 call 201a144 <.urem> <== NOT EXECUTED
2003fa8: 90 02 00 11 add %o0, %l1, %o0 <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
2003fac: c2 04 20 c0 ld [ %l0 + 0xc0 ], %g1 <== NOT EXECUTED
2003fb0: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2003fb4: 08 80 00 2d bleu 2004068 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
2003fb8: 01 00 00 00 nop <== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
2003fbc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
}
else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
2003fc0: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2003fc4: 12 80 00 29 bne 2004068 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
2003fc8: 01 00 00 00 nop <== NOT EXECUTED
% tty->rawInBuf.Size)
> tty->highwater) &&
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
2003fcc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003fd0: 82 10 60 01 or %g1, 1, %g1 <== NOT EXECUTED
2003fd4: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
2003fd8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003fdc: 82 08 64 02 and %g1, 0x402, %g1 <== NOT EXECUTED
2003fe0: 80 a0 64 00 cmp %g1, 0x400 <== NOT EXECUTED
2003fe4: 12 80 00 13 bne 2004030 <rtems_termios_enqueue_raw_characters+0x250><== NOT EXECUTED
2003fe8: 01 00 00 00 nop <== NOT EXECUTED
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
2003fec: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003ff0: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2003ff4: 12 80 00 06 bne 200400c <rtems_termios_enqueue_raw_characters+0x22c><== NOT EXECUTED
2003ff8: 01 00 00 00 nop <== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
2003ffc: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED
2004000: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004004: 12 80 00 19 bne 2004068 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
2004008: 01 00 00 00 nop <== NOT EXECUTED
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
200400c: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2004010: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2004014: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
2004018: 84 10 a0 02 or %g2, 2, %g2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
200401c: 92 10 00 15 mov %l5, %o1 <== NOT EXECUTED
== (FL_MDXOF ) ){
if ((tty->flow_ctrl & FL_OSTOP) ||
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
2004020: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2004024: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004028: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
200402c: 30 80 00 0f b,a 2004068 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]),
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
2004030: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004034: 82 08 61 04 and %g1, 0x104, %g1 <== NOT EXECUTED
2004038: 80 a0 61 00 cmp %g1, 0x100 <== NOT EXECUTED
200403c: 12 80 00 0b bne 2004068 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
2004040: 01 00 00 00 nop <== NOT EXECUTED
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
2004044: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
2004048: c2 04 20 ac ld [ %l0 + 0xac ], %g1 <== NOT EXECUTED
1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
== (FL_MDRTS ) ) {
tty->flow_ctrl |= FL_IRTSOFF;
200404c: 84 10 a0 04 or %g2, 4, %g2 <== NOT EXECUTED
2004050: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
2004054: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004058: 02 80 00 04 be 2004068 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
200405c: 01 00 00 00 nop <== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
2004060: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004064: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
}
}
}
/* reenable interrupts */
rtems_interrupt_enable(level);
2004068: 7f ff f7 db call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
200406c: 90 10 00 16 mov %l6, %o0 <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
2004070: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
2004074: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2004078: 32 80 00 04 bne,a 2004088 <rtems_termios_enqueue_raw_characters+0x2a8><== NOT EXECUTED
200407c: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED
dropped++;
2004080: 10 80 00 11 b 20040c4 <rtems_termios_enqueue_raw_characters+0x2e4><== NOT EXECUTED
2004084: b0 06 20 01 inc %i0 <== NOT EXECUTED
}
else {
tty->rawInBuf.theBuf[newTail] = c;
2004088: e6 28 40 11 stb %l3, [ %g1 + %l1 ] <== NOT EXECUTED
tty->rawInBuf.Tail = newTail;
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
200408c: c2 04 20 e4 ld [ %l0 + 0xe4 ], %g1 <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
dropped++;
}
else {
tty->rawInBuf.theBuf[newTail] = c;
tty->rawInBuf.Tail = newTail;
2004090: e2 24 20 60 st %l1, [ %l0 + 0x60 ] <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
2004094: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004098: 32 80 00 0c bne,a 20040c8 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
200409c: b2 06 60 01 inc %i1 <== NOT EXECUTED
20040a0: c2 04 20 dc ld [ %l0 + 0xdc ], %g1 <== NOT EXECUTED
20040a4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20040a8: 22 80 00 08 be,a 20040c8 <rtems_termios_enqueue_raw_characters+0x2e8><== NOT EXECUTED
20040ac: b2 06 60 01 inc %i1 <== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
20040b0: d2 04 20 e0 ld [ %l0 + 0xe0 ], %o1 <== NOT EXECUTED
20040b4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20040b8: 90 10 00 14 mov %l4, %o0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
20040bc: 82 10 20 01 mov 1, %g1 <== NOT EXECUTED
20040c0: c2 24 20 e4 st %g1, [ %l0 + 0xe4 ] <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
20040c4: b2 06 60 01 inc %i1 <== NOT EXECUTED
20040c8: b4 06 bf ff add %i2, -1, %i2 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
20040cc: 80 a6 a0 00 cmp %i2, 0 <== NOT EXECUTED
20040d0: 12 bf ff 70 bne 2003e90 <rtems_termios_enqueue_raw_characters+0xb0><== NOT EXECUTED
20040d4: 01 00 00 00 nop <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
20040d8: c2 04 20 78 ld [ %l0 + 0x78 ], %g1 <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
20040dc: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
}
}
}
tty->rawInBufDropped += dropped;
20040e0: 82 00 40 18 add %g1, %i0, %g1 <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
20040e4: 40 00 08 df call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
20040e8: c2 24 20 78 st %g1, [ %l0 + 0x78 ] <== NOT EXECUTED
return dropped;
20040ec: 81 c7 e0 08 ret <== NOT EXECUTED
20040f0: 81 e8 00 00 restore <== NOT EXECUTED
}
20040f4: 81 c7 e0 08 ret <== NOT EXECUTED
20040f8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02003afc <rtems_termios_initialize>:
struct rtems_termios_tty *rtems_termios_ttyTail;
rtems_id rtems_termios_ttyMutex;
void
rtems_termios_initialize (void)
{
2003afc: 9d e3 bf a0 save %sp, -96, %sp
rtems_status_code sc;
/*
* Create the mutex semaphore for the tty list
*/
if (!rtems_termios_ttyMutex) {
2003b00: 19 00 80 78 sethi %hi(0x201e000), %o4
2003b04: c2 03 21 00 ld [ %o4 + 0x100 ], %g1 ! 201e100 <rtems_termios_ttyMutex>
2003b08: 80 a0 60 00 cmp %g1, 0
2003b0c: 12 80 00 0d bne 2003b40 <rtems_termios_initialize+0x44>
2003b10: 98 13 21 00 or %o4, 0x100, %o4
sc = rtems_semaphore_create (
2003b14: 11 15 14 9b sethi %hi(0x54526c00), %o0
2003b18: 92 10 20 01 mov 1, %o1
2003b1c: 90 12 21 69 or %o0, 0x169, %o0
2003b20: 94 10 20 54 mov 0x54, %o2
2003b24: 40 00 09 66 call 20060bc <rtems_semaphore_create>
2003b28: 96 10 20 00 clr %o3
rtems_build_name ('T', 'R', 'm', 'i'),
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_termios_ttyMutex);
if (sc != RTEMS_SUCCESSFUL)
2003b2c: 80 a2 20 00 cmp %o0, 0
2003b30: 02 80 00 04 be 2003b40 <rtems_termios_initialize+0x44> <== ALWAYS TAKEN
2003b34: 01 00 00 00 nop
rtems_fatal_error_occurred (sc);
2003b38: 40 00 0b 9e call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2003b3c: 01 00 00 00 nop <== NOT EXECUTED
2003b40: 81 c7 e0 08 ret
2003b44: 81 e8 00 00 restore
02004d94 <rtems_termios_ioctl>:
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
2004d94: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
2004d98: c2 06 00 00 ld [ %i0 ], %g1
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
2004d9c: c0 26 20 0c clr [ %i0 + 0xc ]
rtems_status_code
rtems_termios_ioctl (void *arg)
{
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
2004da0: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
2004da4: e4 06 20 08 ld [ %i0 + 8 ], %l2
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2004da8: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
2004dac: a2 10 00 18 mov %i0, %l1
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
2004db0: 92 10 20 00 clr %o1
2004db4: 40 00 05 64 call 2006344 <rtems_semaphore_obtain>
2004db8: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL) {
2004dbc: b0 92 20 00 orcc %o0, 0, %i0
2004dc0: 22 80 00 05 be,a 2004dd4 <rtems_termios_ioctl+0x40> <== ALWAYS TAKEN
2004dc4: c2 04 60 04 ld [ %l1 + 4 ], %g1
args->ioctl_return = sc;
2004dc8: f0 24 60 0c st %i0, [ %l1 + 0xc ] <== NOT EXECUTED
return sc;
2004dcc: 81 c7 e0 08 ret <== NOT EXECUTED
2004dd0: 81 e8 00 00 restore <== NOT EXECUTED
}
switch (args->command) {
2004dd4: 80 a0 60 04 cmp %g1, 4
2004dd8: 22 80 00 bd be,a 20050cc <rtems_termios_ioctl+0x338> <== NEVER TAKEN
2004ddc: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
2004de0: 18 80 00 0b bgu 2004e0c <rtems_termios_ioctl+0x78> <== NEVER TAKEN
2004de4: 05 10 01 19 sethi %hi(0x40046400), %g2
2004de8: 80 a0 60 02 cmp %g1, 2
2004dec: 22 80 00 2c be,a 2004e9c <rtems_termios_ioctl+0x108>
2004df0: d2 04 60 08 ld [ %l1 + 8 ], %o1
2004df4: 18 80 00 af bgu 20050b0 <rtems_termios_ioctl+0x31c>
2004df8: 80 a0 60 01 cmp %g1, 1
2004dfc: 32 80 00 17 bne,a 2004e58 <rtems_termios_ioctl+0xc4> <== NEVER TAKEN
2004e00: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
2004e04: 10 80 00 22 b 2004e8c <rtems_termios_ioctl+0xf8>
2004e08: d0 04 60 08 ld [ %l1 + 8 ], %o0
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
2004e0c: 84 10 a2 7f or %g2, 0x27f, %g2 <== NOT EXECUTED
2004e10: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004e14: 02 80 00 cf be 2005150 <rtems_termios_ioctl+0x3bc> <== NOT EXECUTED
2004e18: 01 00 00 00 nop <== NOT EXECUTED
2004e1c: 18 80 00 07 bgu 2004e38 <rtems_termios_ioctl+0xa4> <== NOT EXECUTED
2004e20: 05 10 01 1d sethi %hi(0x40047400), %g2 <== NOT EXECUTED
2004e24: 80 a0 60 05 cmp %g1, 5 <== NOT EXECUTED
2004e28: 32 80 00 0c bne,a 2004e58 <rtems_termios_ioctl+0xc4> <== NOT EXECUTED
2004e2c: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
break;
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
2004e30: 10 80 00 a3 b 20050bc <rtems_termios_ioctl+0x328> <== NOT EXECUTED
2004e34: c2 04 80 00 ld [ %l2 ], %g1 <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
2004e38: 84 10 a0 1a or %g2, 0x1a, %g2 <== NOT EXECUTED
2004e3c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004e40: 02 80 00 c0 be 2005140 <rtems_termios_ioctl+0x3ac> <== NOT EXECUTED
2004e44: 05 20 01 1d sethi %hi(0x80047400), %g2 <== NOT EXECUTED
2004e48: 84 10 a0 1b or %g2, 0x1b, %g2 ! 8004741b <RAM_END+0x7dc4741b><== NOT EXECUTED
2004e4c: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004e50: 02 80 00 a3 be 20050dc <rtems_termios_ioctl+0x348> <== NOT EXECUTED
2004e54: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
2004e58: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
2004e5c: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
2004e60: 82 10 62 30 or %g1, 0x230, %g1 <== NOT EXECUTED
2004e64: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
2004e68: c2 00 60 18 ld [ %g1 + 0x18 ], %g1 <== NOT EXECUTED
2004e6c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004e70: 02 80 00 c5 be 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
2004e74: b0 10 20 0a mov 0xa, %i0 <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
2004e78: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2004e7c: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004e80: 92 10 00 11 mov %l1, %o1 <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
2004e84: 10 80 00 c0 b 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
2004e88: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
2004e8c: 92 04 20 30 add %l0, 0x30, %o1
2004e90: 40 00 30 ea call 2011238 <memcpy>
2004e94: 94 10 20 24 mov 0x24, %o2
break;
2004e98: 30 80 00 bb b,a 2005184 <rtems_termios_ioctl+0x3f0>
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
2004e9c: 90 04 20 30 add %l0, 0x30, %o0
2004ea0: 40 00 30 e6 call 2011238 <memcpy>
2004ea4: 94 10 20 24 mov 0x24, %o2
/*
* check for flow control options to be switched off
*/
/* check for outgoing XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXON) &&
2004ea8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2004eac: 80 88 62 00 btst 0x200, %g1
2004eb0: 02 80 00 20 be 2004f30 <rtems_termios_ioctl+0x19c>
2004eb4: 01 00 00 00 nop
2004eb8: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
2004ebc: 80 88 64 00 btst 0x400, %g1
2004ec0: 12 80 00 1c bne 2004f30 <rtems_termios_ioctl+0x19c> <== ALWAYS TAKEN
2004ec4: 01 00 00 00 nop
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
2004ec8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004ecc: 82 08 7d ef and %g1, -529, %g1 <== NOT EXECUTED
2004ed0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
2004ed4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004ed8: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2004edc: 02 80 00 15 be 2004f30 <rtems_termios_ioctl+0x19c> <== NOT EXECUTED
2004ee0: 01 00 00 00 nop <== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
2004ee4: 7f ff f4 38 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2004ee8: 01 00 00 00 nop <== NOT EXECUTED
2004eec: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
2004ef0: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
2004ef4: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
/* disable interrupts */
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
2004ef8: 84 08 bf df and %g2, -33, %g2 <== NOT EXECUTED
2004efc: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
2004f00: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004f04: 02 80 00 09 be 2004f28 <rtems_termios_ioctl+0x194> <== NOT EXECUTED
2004f08: 01 00 00 00 nop <== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
2004f0c: c4 04 20 84 ld [ %l0 + 0x84 ], %g2 <== NOT EXECUTED
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(tty->minor,
2004f10: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED
2004f14: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2004f18: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2004f1c: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
2004f20: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004f24: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
/* reenable interrupts */
rtems_interrupt_enable(level);
2004f28: 7f ff f4 2b call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2004f2c: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) &&
2004f30: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2004f34: 80 88 64 00 btst 0x400, %g1
2004f38: 02 80 00 0c be 2004f68 <rtems_termios_ioctl+0x1d4> <== ALWAYS TAKEN
2004f3c: 03 00 00 04 sethi %hi(0x1000), %g1
2004f40: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED
2004f44: 80 88 80 01 btst %g2, %g1 <== NOT EXECUTED
2004f48: 12 80 00 08 bne 2004f68 <rtems_termios_ioctl+0x1d4> <== NOT EXECUTED
2004f4c: 01 00 00 00 nop <== NOT EXECUTED
!(tty->termios.c_iflag & IXOFF)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
2004f50: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f54: 82 08 7b ff and %g1, -1025, %g1 <== NOT EXECUTED
2004f58: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
2004f5c: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f60: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED
2004f64: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) &&
2004f68: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2004f6c: 80 88 61 00 btst 0x100, %g1
2004f70: 02 80 00 16 be 2004fc8 <rtems_termios_ioctl+0x234> <== ALWAYS TAKEN
2004f74: c2 04 20 38 ld [ %l0 + 0x38 ], %g1
2004f78: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004f7c: 06 80 00 14 bl 2004fcc <rtems_termios_ioctl+0x238> <== NOT EXECUTED
2004f80: 01 00 00 00 nop <== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
2004f84: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f88: 82 08 7e ff and %g1, -257, %g1 <== NOT EXECUTED
2004f8c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
2004f90: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004f94: 80 88 60 04 btst 4, %g1 <== NOT EXECUTED
2004f98: 02 80 00 08 be 2004fb8 <rtems_termios_ioctl+0x224> <== NOT EXECUTED
2004f9c: 01 00 00 00 nop <== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
2004fa0: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1 <== NOT EXECUTED
!(tty->termios.c_cflag & CRTSCTS)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) &&
2004fa4: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004fa8: 02 80 00 04 be 2004fb8 <rtems_termios_ioctl+0x224> <== NOT EXECUTED
2004fac: 01 00 00 00 nop <== NOT EXECUTED
(tty->device.startRemoteTx != NULL)) {
tty->device.startRemoteTx(tty->minor);
2004fb0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004fb4: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
2004fb8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004fbc: 82 08 7f fb and %g1, -5, %g1 <== NOT EXECUTED
2004fc0: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/*
* check for flow control options to be switched on
*/
/* check for incoming RTS/CTS flow control switched on */
if (tty->termios.c_cflag & CRTSCTS) {
2004fc4: c2 04 20 38 ld [ %l0 + 0x38 ], %g1 <== NOT EXECUTED
2004fc8: 80 a0 60 00 cmp %g1, 0
2004fcc: 36 80 00 06 bge,a 2004fe4 <rtems_termios_ioctl+0x250> <== ALWAYS TAKEN
2004fd0: c4 04 20 30 ld [ %l0 + 0x30 ], %g2
tty->flow_ctrl |= FL_MDRTS;
2004fd4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004fd8: 82 10 61 00 or %g1, 0x100, %g1 <== NOT EXECUTED
2004fdc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
}
/* check for incoming XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXOFF) {
2004fe0: c4 04 20 30 ld [ %l0 + 0x30 ], %g2 <== NOT EXECUTED
2004fe4: 03 00 00 04 sethi %hi(0x1000), %g1
2004fe8: 80 88 80 01 btst %g2, %g1
2004fec: 22 80 00 06 be,a 2005004 <rtems_termios_ioctl+0x270> <== ALWAYS TAKEN
2004ff0: c2 04 20 30 ld [ %l0 + 0x30 ], %g1
tty->flow_ctrl |= FL_MDXOF;
2004ff4: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004ff8: 82 10 64 00 or %g1, 0x400, %g1 <== NOT EXECUTED
2004ffc: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
2005000: c2 04 20 30 ld [ %l0 + 0x30 ], %g1 <== NOT EXECUTED
2005004: 80 88 64 00 btst 0x400, %g1
2005008: 22 80 00 06 be,a 2005020 <rtems_termios_ioctl+0x28c> <== NEVER TAKEN
200500c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
tty->flow_ctrl |= FL_MDXON;
2005010: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1
2005014: 82 10 62 00 or %g1, 0x200, %g1
2005018: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ]
tty->termios = *(struct termios *)args->buffer;
/* check for and process change in flow control options */
termios_set_flowctrl(tty);
if (tty->termios.c_lflag & ICANON) {
200501c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1
2005020: 80 88 60 02 btst 2, %g1
2005024: 32 80 00 17 bne,a 2005080 <rtems_termios_ioctl+0x2ec>
2005028: c0 24 20 6c clr [ %l0 + 0x6c ]
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
rtems_clock_get_ticks_per_second() / 10;
200502c: 40 00 02 fd call 2005c20 <rtems_clock_get_ticks_per_second>
2005030: e4 0c 20 46 ldub [ %l0 + 0x46 ], %l2
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
2005034: 40 00 53 5e call 2019dac <.umul>
2005038: 92 10 00 12 mov %l2, %o1
200503c: 40 00 53 96 call 2019e94 <.udiv>
2005040: 92 10 20 0a mov 0xa, %o1
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
2005044: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
}
else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
2005048: d0 24 20 54 st %o0, [ %l0 + 0x54 ]
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
200504c: 80 a0 60 00 cmp %g1, 0
2005050: 02 80 00 08 be 2005070 <rtems_termios_ioctl+0x2dc> <== ALWAYS TAKEN
2005054: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
2005058: c0 24 20 6c clr [ %l0 + 0x6c ] <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
200505c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005060: 12 80 00 09 bne 2005084 <rtems_termios_ioctl+0x2f0> <== NOT EXECUTED
2005064: d0 24 20 70 st %o0, [ %l0 + 0x70 ] <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
2005068: 10 80 00 0a b 2005090 <rtems_termios_ioctl+0x2fc> <== NOT EXECUTED
200506c: d0 24 20 74 st %o0, [ %l0 + 0x74 ] <== NOT EXECUTED
}
else {
if (tty->termios.c_cc[VMIN]) {
2005070: 80 a0 60 00 cmp %g1, 0
2005074: 02 80 00 06 be 200508c <rtems_termios_ioctl+0x2f8> <== NEVER TAKEN
2005078: 82 10 20 01 mov 1, %g1
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
200507c: c0 24 20 6c clr [ %l0 + 0x6c ]
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
2005080: c0 24 20 70 clr [ %l0 + 0x70 ]
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
2005084: 10 80 00 03 b 2005090 <rtems_termios_ioctl+0x2fc>
2005088: c0 24 20 74 clr [ %l0 + 0x74 ]
}
else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
200508c: c2 24 20 6c st %g1, [ %l0 + 0x6c ] <== NOT EXECUTED
}
}
}
if (tty->device.setAttributes)
2005090: c2 04 20 a8 ld [ %l0 + 0xa8 ], %g1
2005094: 80 a0 60 00 cmp %g1, 0
2005098: 02 80 00 3b be 2005184 <rtems_termios_ioctl+0x3f0>
200509c: 01 00 00 00 nop
(*tty->device.setAttributes)(tty->minor, &tty->termios);
20050a0: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
20050a4: 9f c0 40 00 call %g1
20050a8: 92 04 20 30 add %l0, 0x30, %o1
20050ac: 30 80 00 36 b,a 2005184 <rtems_termios_ioctl+0x3f0>
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
20050b0: 7f ff fe 2d call 2004964 <drainOutput>
20050b4: 90 10 00 10 mov %l0, %o0
break;
20050b8: 30 80 00 33 b,a 2005184 <rtems_termios_ioctl+0x3f0>
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
20050bc: c2 24 20 d4 st %g1, [ %l0 + 0xd4 ] <== NOT EXECUTED
20050c0: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
break;
20050c4: 10 80 00 30 b 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
20050c8: c2 24 20 d8 st %g1, [ %l0 + 0xd8 ] <== NOT EXECUTED
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
20050cc: c2 24 20 dc st %g1, [ %l0 + 0xdc ] <== NOT EXECUTED
20050d0: c2 04 a0 04 ld [ %l2 + 4 ], %g1 <== NOT EXECUTED
break;
20050d4: 10 80 00 2c b 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
20050d8: c2 24 20 e0 st %g1, [ %l0 + 0xe0 ] <== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
20050dc: 03 00 80 77 sethi %hi(0x201dc00), %g1 <== NOT EXECUTED
20050e0: 85 28 a0 05 sll %g2, 5, %g2 <== NOT EXECUTED
20050e4: 82 10 62 30 or %g1, 0x230, %g1 <== NOT EXECUTED
20050e8: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
20050ec: c2 00 60 04 ld [ %g1 + 4 ], %g1 <== NOT EXECUTED
20050f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20050f4: 22 80 00 06 be,a 200510c <rtems_termios_ioctl+0x378> <== NOT EXECUTED
20050f8: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
20050fc: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005100: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2005104: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
2005108: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
200510c: 07 00 80 77 sethi %hi(0x201dc00), %g3 <== NOT EXECUTED
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
}
tty->t_line=*(int*)(args->buffer);
2005110: c4 00 40 00 ld [ %g1 ], %g2 <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
2005114: 86 10 e2 30 or %g3, 0x230, %g3 <== NOT EXECUTED
2005118: 83 28 a0 05 sll %g2, 5, %g1 <== NOT EXECUTED
200511c: c2 00 c0 01 ld [ %g3 + %g1 ], %g1 <== NOT EXECUTED
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
}
tty->t_line=*(int*)(args->buffer);
2005120: c4 24 20 cc st %g2, [ %l0 + 0xcc ] <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
2005124: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005128: 02 80 00 17 be 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
200512c: c0 24 20 d0 clr [ %l0 + 0xd0 ] <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
2005130: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005134: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2005138: 10 80 00 13 b 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
200513c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
2005140: c2 04 60 08 ld [ %l1 + 8 ], %g1 <== NOT EXECUTED
2005144: c4 04 20 cc ld [ %l0 + 0xcc ], %g2 <== NOT EXECUTED
break;
2005148: 10 80 00 0f b 2005184 <rtems_termios_ioctl+0x3f0> <== NOT EXECUTED
200514c: c4 20 40 00 st %g2, [ %g1 ] <== NOT EXECUTED
#endif
case FIONREAD:
{
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
2005150: c4 04 20 60 ld [ %l0 + 0x60 ], %g2 <== NOT EXECUTED
2005154: c2 04 20 5c ld [ %l0 + 0x5c ], %g1 <== NOT EXECUTED
if ( rawnc < 0 )
2005158: 82 a0 80 01 subcc %g2, %g1, %g1 <== NOT EXECUTED
200515c: 3c 80 00 05 bpos,a 2005170 <rtems_termios_ioctl+0x3dc> <== NOT EXECUTED
2005160: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
2005164: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED
2005168: 82 00 40 02 add %g1, %g2, %g1 <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
200516c: c8 04 20 20 ld [ %l0 + 0x20 ], %g4 <== NOT EXECUTED
2005170: c6 04 20 24 ld [ %l0 + 0x24 ], %g3 <== NOT EXECUTED
2005174: c4 04 60 08 ld [ %l1 + 8 ], %g2 <== NOT EXECUTED
2005178: 86 21 00 03 sub %g4, %g3, %g3 <== NOT EXECUTED
200517c: 82 00 c0 01 add %g3, %g1, %g1 <== NOT EXECUTED
2005180: c2 20 80 00 st %g1, [ %g2 ] <== NOT EXECUTED
}
break;
}
rtems_semaphore_release (tty->osem);
2005184: 40 00 04 b7 call 2006460 <rtems_semaphore_release>
2005188: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
args->ioctl_return = sc;
200518c: f0 24 60 0c st %i0, [ %l1 + 0xc ]
return sc;
}
2005190: 81 c7 e0 08 ret
2005194: 81 e8 00 00 restore
0200c51c <rtems_termios_number_to_baud>:
#include <rtems/termiostypes.h>
int rtems_termios_number_to_baud(
int32_t baud
)
{
200c51c: 82 10 00 08 mov %o0, %g1
int termios_baud;
switch (baud) {
200c520: 80 a2 24 b0 cmp %o0, 0x4b0
200c524: 02 80 00 19 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c528: 90 10 20 09 mov 9, %o0
200c52c: 80 a0 64 b0 cmp %g1, 0x4b0
200c530: 14 80 00 29 bg 200c5d4 <rtems_termios_number_to_baud+0xb8>
200c534: 05 00 00 12 sethi %hi(0x4800), %g2
200c538: 80 a0 60 86 cmp %g1, 0x86
200c53c: 02 80 00 13 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c540: 90 10 20 04 mov 4, %o0
200c544: 80 a0 60 86 cmp %g1, 0x86
200c548: 14 80 00 12 bg 200c590 <rtems_termios_number_to_baud+0x74>
200c54c: 80 a0 60 c8 cmp %g1, 0xc8
200c550: 80 a0 60 32 cmp %g1, 0x32
200c554: 02 80 00 0d be 200c588 <rtems_termios_number_to_baud+0x6c>
200c558: 90 10 20 01 mov 1, %o0
200c55c: 80 a0 60 32 cmp %g1, 0x32
200c560: 34 80 00 05 bg,a 200c574 <rtems_termios_number_to_baud+0x58>
200c564: 80 a0 60 4b cmp %g1, 0x4b
200c568: 80 a0 60 00 cmp %g1, 0
200c56c: 10 80 00 52 b 200c6b4 <rtems_termios_number_to_baud+0x198>
200c570: 90 10 20 00 clr %o0
200c574: 02 80 00 05 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c578: 90 10 20 02 mov 2, %o0
200c57c: 80 a0 60 6e cmp %g1, 0x6e
200c580: 12 80 00 4f bne 200c6bc <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c584: 90 10 20 03 mov 3, %o0
200c588: 81 c3 e0 08 retl
200c58c: 01 00 00 00 nop
200c590: 02 bf ff fe be 200c588 <rtems_termios_number_to_baud+0x6c>
200c594: 90 10 20 06 mov 6, %o0 ! 6 <PROM_START+0x6>
200c598: 80 a0 60 c8 cmp %g1, 0xc8
200c59c: 14 80 00 07 bg 200c5b8 <rtems_termios_number_to_baud+0x9c>
200c5a0: 80 a0 61 2c cmp %g1, 0x12c
200c5a4: 80 a0 60 96 cmp %g1, 0x96
200c5a8: 12 80 00 45 bne 200c6bc <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c5ac: 90 10 20 05 mov 5, %o0
200c5b0: 81 c3 e0 08 retl
200c5b4: 01 00 00 00 nop
200c5b8: 02 bf ff f4 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c5bc: 90 10 20 07 mov 7, %o0 ! 7 <PROM_START+0x7>
200c5c0: 80 a0 62 58 cmp %g1, 0x258
200c5c4: 12 80 00 3e bne 200c6bc <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c5c8: 90 10 20 08 mov 8, %o0
200c5cc: 81 c3 e0 08 retl
200c5d0: 01 00 00 00 nop
200c5d4: 84 10 a3 00 or %g2, 0x300, %g2
200c5d8: 80 a0 40 02 cmp %g1, %g2
200c5dc: 02 bf ff eb be 200c588 <rtems_termios_number_to_baud+0x6c>
200c5e0: 90 10 20 0e mov 0xe, %o0
200c5e4: 80 a0 40 02 cmp %g1, %g2
200c5e8: 14 80 00 18 bg 200c648 <rtems_termios_number_to_baud+0x12c>
200c5ec: 07 00 00 70 sethi %hi(0x1c000), %g3
200c5f0: 80 a0 69 60 cmp %g1, 0x960
200c5f4: 02 bf ff e5 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c5f8: 90 10 20 0b mov 0xb, %o0
200c5fc: 80 a0 69 60 cmp %g1, 0x960
200c600: 34 80 00 07 bg,a 200c61c <rtems_termios_number_to_baud+0x100>
200c604: 05 00 00 04 sethi %hi(0x1000), %g2
200c608: 80 a0 67 08 cmp %g1, 0x708
200c60c: 12 80 00 2c bne 200c6bc <rtems_termios_number_to_baud+0x1a0><== NEVER TAKEN
200c610: 90 10 20 0a mov 0xa, %o0
200c614: 81 c3 e0 08 retl
200c618: 01 00 00 00 nop
200c61c: 84 10 a2 c0 or %g2, 0x2c0, %g2
200c620: 80 a0 40 02 cmp %g1, %g2
200c624: 02 bf ff d9 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c628: 90 10 20 0c mov 0xc, %o0
200c62c: 05 00 00 09 sethi %hi(0x2400), %g2
200c630: 84 10 a1 80 or %g2, 0x180, %g2 ! 2580 <PROM_START+0x2580>
200c634: 80 a0 40 02 cmp %g1, %g2
200c638: 12 80 00 21 bne 200c6bc <rtems_termios_number_to_baud+0x1a0>
200c63c: 90 10 20 0d mov 0xd, %o0
200c640: 81 c3 e0 08 retl
200c644: 01 00 00 00 nop
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
200c648: 05 00 00 04 sethi %hi(0x1000), %g2
int32_t baud
)
{
int termios_baud;
switch (baud) {
200c64c: 86 10 e2 00 or %g3, 0x200, %g3
200c650: 80 a0 40 03 cmp %g1, %g3
200c654: 02 bf ff cd be 200c588 <rtems_termios_number_to_baud+0x6c>
200c658: 90 10 a0 02 or %g2, 2, %o0
200c65c: 80 a0 40 03 cmp %g1, %g3
200c660: 14 80 00 0f bg 200c69c <rtems_termios_number_to_baud+0x180>
200c664: 07 00 00 e1 sethi %hi(0x38400), %g3
200c668: 07 00 00 25 sethi %hi(0x9400), %g3
200c66c: 86 10 e2 00 or %g3, 0x200, %g3 ! 9600 <PROM_START+0x9600>
200c670: 80 a0 40 03 cmp %g1, %g3
200c674: 02 bf ff c5 be 200c588 <rtems_termios_number_to_baud+0x6c>
200c678: 90 10 20 0f mov 0xf, %o0
case 1800: termios_baud = B1800; break;
case 2400: termios_baud = B2400; break;
case 4800: termios_baud = B4800; break;
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
200c67c: 90 10 a0 01 or %g2, 1, %o0
int32_t baud
)
{
int termios_baud;
switch (baud) {
200c680: 05 00 00 38 sethi %hi(0xe000), %g2
200c684: 84 10 a1 00 or %g2, 0x100, %g2 ! e100 <PROM_START+0xe100>
200c688: 80 a0 40 02 cmp %g1, %g2
200c68c: 32 bf ff bf bne,a 200c588 <rtems_termios_number_to_baud+0x6c><== NEVER TAKEN
200c690: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
200c694: 81 c3 e0 08 retl
200c698: 01 00 00 00 nop
200c69c: 80 a0 40 03 cmp %g1, %g3
200c6a0: 02 bf ff ba be 200c588 <rtems_termios_number_to_baud+0x6c>
200c6a4: 90 10 a0 03 or %g2, 3, %o0
case 9600: termios_baud = B9600; break;
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
200c6a8: 90 10 a0 04 or %g2, 4, %o0
int32_t baud
)
{
int termios_baud;
switch (baud) {
200c6ac: 05 00 01 c2 sethi %hi(0x70800), %g2
200c6b0: 80 a0 40 02 cmp %g1, %g2
200c6b4: 02 80 00 03 be 200c6c0 <rtems_termios_number_to_baud+0x1a4>
200c6b8: 01 00 00 00 nop
case 19200: termios_baud = B19200; break;
case 38400: termios_baud = B38400; break;
case 57600: termios_baud = B57600; break;
case 115200: termios_baud = B115200; break;
case 230400: termios_baud = B230400; break;
case 460800: termios_baud = B460800; break;
200c6bc: 90 10 3f ff mov -1, %o0 ! ffffffff <RAM_END+0xfdbfffff>
default: termios_baud = -1; break;
}
return termios_baud;
}
200c6c0: 81 c3 e0 08 retl
02005360 <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
2005360: 9d e3 bf a0 save %sp, -96, %sp
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
2005364: 03 00 80 78 sethi %hi(0x201e000), %g1
2005368: d0 00 61 00 ld [ %g1 + 0x100 ], %o0 ! 201e100 <rtems_termios_ttyMutex>
200536c: 92 10 20 00 clr %o1
2005370: 40 00 03 f5 call 2006344 <rtems_semaphore_obtain>
2005374: 94 10 20 00 clr %o2
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2005378: a0 92 20 00 orcc %o0, 0, %l0
200537c: 12 80 01 05 bne 2005790 <rtems_termios_open+0x430> <== NEVER TAKEN
2005380: 03 00 80 78 sethi %hi(0x201e000), %g1
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
2005384: 10 80 00 0a b 20053ac <rtems_termios_open+0x4c>
2005388: e4 00 61 08 ld [ %g1 + 0x108 ], %l2 ! 201e108 <rtems_termios_ttyHead>
if ((tty->major == major) && (tty->minor == minor))
200538c: 80 a0 40 18 cmp %g1, %i0
2005390: 32 80 00 07 bne,a 20053ac <rtems_termios_open+0x4c>
2005394: e4 04 80 00 ld [ %l2 ], %l2
2005398: c2 04 a0 10 ld [ %l2 + 0x10 ], %g1
200539c: 80 a0 40 19 cmp %g1, %i1
20053a0: 22 80 00 d6 be,a 20056f8 <rtems_termios_open+0x398> <== ALWAYS TAKEN
20053a4: c2 04 a0 08 ld [ %l2 + 8 ], %g1
*/
sc = rtems_semaphore_obtain (rtems_termios_ttyMutex,
RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
20053a8: e4 04 80 00 ld [ %l2 ], %l2 <== NOT EXECUTED
20053ac: 80 a4 a0 00 cmp %l2, 0
20053b0: 32 bf ff f7 bne,a 200538c <rtems_termios_open+0x2c>
20053b4: c2 04 a0 0c ld [ %l2 + 0xc ], %g1
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
20053b8: 10 80 00 f8 b 2005798 <rtems_termios_open+0x438>
20053bc: 90 10 20 01 mov 1, %o0
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
20053c0: 03 00 80 76 sethi %hi(0x201d800), %g1
20053c4: c2 00 60 64 ld [ %g1 + 0x64 ], %g1 ! 201d864 <rtems_termios_raw_input_size>
20053c8: c2 24 a0 64 st %g1, [ %l2 + 0x64 ]
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
20053cc: d0 04 a0 64 ld [ %l2 + 0x64 ], %o0
20053d0: 7f ff f6 aa call 2002e78 <malloc>
20053d4: 01 00 00 00 nop
if (tty->rawInBuf.theBuf == NULL) {
20053d8: 80 a2 20 00 cmp %o0, 0
20053dc: 12 80 00 08 bne 20053fc <rtems_termios_open+0x9c> <== ALWAYS TAKEN
20053e0: d0 24 a0 58 st %o0, [ %l2 + 0x58 ]
free(tty);
20053e4: 7f ff f5 c6 call 2002afc <free> <== NOT EXECUTED
20053e8: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
20053ec: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
20053f0: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED
20053f4: 10 80 00 e5 b 2005788 <rtems_termios_open+0x428> <== NOT EXECUTED
20053f8: d0 00 61 00 ld [ %g1 + 0x100 ], %o0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
20053fc: 03 00 80 76 sethi %hi(0x201d800), %g1
2005400: c2 00 60 68 ld [ %g1 + 0x68 ], %g1 ! 201d868 <rtems_termios_raw_output_size>
2005404: c2 24 a0 88 st %g1, [ %l2 + 0x88 ]
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
2005408: d0 04 a0 88 ld [ %l2 + 0x88 ], %o0
200540c: 7f ff f6 9b call 2002e78 <malloc>
2005410: 01 00 00 00 nop
if (tty->rawOutBuf.theBuf == NULL) {
2005414: 80 a2 20 00 cmp %o0, 0
2005418: 12 80 00 05 bne 200542c <rtems_termios_open+0xcc> <== ALWAYS TAKEN
200541c: d0 24 a0 7c st %o0, [ %l2 + 0x7c ]
free((void *)(tty->rawInBuf.theBuf));
2005420: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
2005424: 10 80 00 0c b 2005454 <rtems_termios_open+0xf4> <== NOT EXECUTED
2005428: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
200542c: 03 00 80 76 sethi %hi(0x201d800), %g1
2005430: 7f ff f6 92 call 2002e78 <malloc>
2005434: d0 00 60 60 ld [ %g1 + 0x60 ], %o0 ! 201d860 <rtems_termios_cbufsize>
if (tty->cbuf == NULL) {
2005438: 80 a2 20 00 cmp %o0, 0
200543c: 12 80 00 0c bne 200546c <rtems_termios_open+0x10c> <== ALWAYS TAKEN
2005440: d0 24 a0 1c st %o0, [ %l2 + 0x1c ]
free((void *)(tty->rawOutBuf.theBuf));
2005444: d0 04 a0 7c ld [ %l2 + 0x7c ], %o0 <== NOT EXECUTED
2005448: 7f ff f5 ad call 2002afc <free> <== NOT EXECUTED
200544c: a0 10 20 1a mov 0x1a, %l0 <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
2005450: d0 04 a0 58 ld [ %l2 + 0x58 ], %o0 <== NOT EXECUTED
2005454: 7f ff f5 aa call 2002afc <free> <== NOT EXECUTED
2005458: 01 00 00 00 nop <== NOT EXECUTED
free(tty);
200545c: 7f ff f5 a8 call 2002afc <free> <== NOT EXECUTED
2005460: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
2005464: 10 80 00 c8 b 2005784 <rtems_termios_open+0x424> <== NOT EXECUTED
2005468: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
200546c: 03 00 80 78 sethi %hi(0x201e000), %g1
2005470: c2 00 61 08 ld [ %g1 + 0x108 ], %g1 ! 201e108 <rtems_termios_ttyHead>
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
2005474: c0 24 a0 d4 clr [ %l2 + 0xd4 ]
tty->tty_snd.sw_arg = NULL;
2005478: c0 24 a0 d8 clr [ %l2 + 0xd8 ]
tty->tty_rcv.sw_pfn = NULL;
200547c: c0 24 a0 dc clr [ %l2 + 0xdc ]
tty->tty_rcv.sw_arg = NULL;
2005480: c0 24 a0 e0 clr [ %l2 + 0xe0 ]
tty->tty_rcvwakeup = 0;
2005484: c0 24 a0 e4 clr [ %l2 + 0xe4 ]
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
2005488: c2 24 80 00 st %g1, [ %l2 ]
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
200548c: 80 a0 60 00 cmp %g1, 0
2005490: 02 80 00 03 be 200549c <rtems_termios_open+0x13c>
2005494: c0 24 a0 04 clr [ %l2 + 4 ]
rtems_termios_ttyHead->back = tty;
2005498: e4 20 60 04 st %l2, [ %g1 + 4 ]
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
200549c: 03 00 80 78 sethi %hi(0x201e000), %g1
20054a0: c4 00 61 04 ld [ %g1 + 0x104 ], %g2 ! 201e104 <rtems_termios_ttyTail>
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
20054a4: 07 00 80 78 sethi %hi(0x201e000), %g3
if (rtems_termios_ttyTail == NULL)
20054a8: 80 a0 a0 00 cmp %g2, 0
20054ac: 12 80 00 03 bne 20054b8 <rtems_termios_open+0x158>
20054b0: e2 20 e1 08 st %l1, [ %g3 + 0x108 ]
rtems_termios_ttyTail = tty;
20054b4: e2 20 61 04 st %l1, [ %g1 + 0x104 ]
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
20054b8: 27 00 80 76 sethi %hi(0x201d800), %l3
20054bc: d0 4c e0 6c ldsb [ %l3 + 0x6c ], %o0 ! 201d86c <c.6404>
20054c0: 03 15 14 9a sethi %hi(0x54526800), %g1
20054c4: 82 10 61 00 or %g1, 0x100, %g1 ! 54526900 <RAM_END+0x52126900>
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
rtems_termios_ttyTail = tty;
tty->minor = minor;
20054c8: f2 24 60 10 st %i1, [ %l1 + 0x10 ]
tty->major = major;
20054cc: f0 24 60 0c st %i0, [ %l1 + 0xc ]
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
20054d0: 90 12 00 01 or %o0, %g1, %o0
20054d4: 92 10 20 01 mov 1, %o1
20054d8: 94 10 20 54 mov 0x54, %o2
20054dc: 96 10 20 00 clr %o3
20054e0: 40 00 02 f7 call 20060bc <rtems_semaphore_create>
20054e4: 98 04 60 14 add %l1, 0x14, %o4
rtems_build_name ('T', 'R', 'i', c),
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->isem);
if (sc != RTEMS_SUCCESSFUL)
20054e8: 80 a2 20 00 cmp %o0, 0
20054ec: 12 80 00 a3 bne 2005778 <rtems_termios_open+0x418> <== NEVER TAKEN
20054f0: 03 15 14 9b sethi %hi(0x54526c00), %g1
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
20054f4: d0 4c e0 6c ldsb [ %l3 + 0x6c ], %o0
20054f8: 82 10 63 00 or %g1, 0x300, %g1
20054fc: 92 10 20 01 mov 1, %o1
2005500: 90 12 00 01 or %o0, %g1, %o0
2005504: 94 10 20 54 mov 0x54, %o2
2005508: 96 10 20 00 clr %o3
200550c: 40 00 02 ec call 20060bc <rtems_semaphore_create>
2005510: 98 04 60 18 add %l1, 0x18, %o4
rtems_build_name ('T', 'R', 'o', c),
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->osem);
if (sc != RTEMS_SUCCESSFUL)
2005514: 80 a2 20 00 cmp %o0, 0
2005518: 12 80 00 98 bne 2005778 <rtems_termios_open+0x418> <== NEVER TAKEN
200551c: 03 15 14 9e sethi %hi(0x54527800), %g1
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
2005520: d0 4c e0 6c ldsb [ %l3 + 0x6c ], %o0
2005524: 92 10 20 00 clr %o1
2005528: 90 12 00 01 or %o0, %g1, %o0
200552c: 94 10 20 20 mov 0x20, %o2
2005530: 96 10 20 00 clr %o3
2005534: 40 00 02 e2 call 20060bc <rtems_semaphore_create>
2005538: 98 04 60 8c add %l1, 0x8c, %o4
rtems_build_name ('T', 'R', 'x', c),
0,
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,
RTEMS_NO_PRIORITY,
&tty->rawOutBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
200553c: 80 a2 20 00 cmp %o0, 0
2005540: 12 80 00 8e bne 2005778 <rtems_termios_open+0x418> <== NEVER TAKEN
2005544: 92 10 00 1b mov %i3, %o1
rtems_fatal_error_occurred (sc);
tty->rawOutBufState = rob_idle;
2005548: c0 24 60 94 clr [ %l1 + 0x94 ]
/*
* Set callbacks
*/
tty->device = *callbacks;
200554c: 90 04 60 98 add %l1, 0x98, %o0
2005550: 40 00 2f 3a call 2011238 <memcpy>
2005554: 94 10 20 20 mov 0x20, %o2
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
2005558: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1
200555c: 80 a0 60 02 cmp %g1, 2
2005560: 32 80 00 1a bne,a 20055c8 <rtems_termios_open+0x268> <== ALWAYS TAKEN
2005564: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1
sc = rtems_task_create (
2005568: d0 4c e0 6c ldsb [ %l3 + 0x6c ], %o0 <== NOT EXECUTED
200556c: 03 15 1e 15 sethi %hi(0x54785400), %g1 <== NOT EXECUTED
2005570: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
2005574: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
2005578: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED
200557c: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED
2005580: 98 10 20 00 clr %o4 <== NOT EXECUTED
2005584: 40 00 03 e3 call 2006510 <rtems_task_create> <== NOT EXECUTED
2005588: 9a 04 60 c8 add %l1, 0xc8, %o5 <== NOT EXECUTED
TERMIOS_TXTASK_STACKSIZE,
RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->txTaskId);
if (sc != RTEMS_SUCCESSFUL)
200558c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005590: 12 80 00 7a bne 2005778 <rtems_termios_open+0x418> <== NOT EXECUTED
2005594: 03 14 9e 15 sethi %hi(0x52785400), %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
2005598: d0 4c e0 6c ldsb [ %l3 + 0x6c ], %o0 <== NOT EXECUTED
200559c: 92 10 20 09 mov 9, %o1 <== NOT EXECUTED
20055a0: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
20055a4: 94 10 24 00 mov 0x400, %o2 <== NOT EXECUTED
20055a8: 96 10 25 00 mov 0x500, %o3 <== NOT EXECUTED
20055ac: 98 10 20 00 clr %o4 <== NOT EXECUTED
20055b0: 40 00 03 d8 call 2006510 <rtems_task_create> <== NOT EXECUTED
20055b4: 9a 04 60 c4 add %l1, 0xc4, %o5 <== NOT EXECUTED
TERMIOS_RXTASK_STACKSIZE,
RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->rxTaskId);
if (sc != RTEMS_SUCCESSFUL)
20055b8: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20055bc: 12 80 00 6f bne 2005778 <rtems_termios_open+0x418> <== NOT EXECUTED
20055c0: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
20055c4: c2 04 60 a0 ld [ %l1 + 0xa0 ], %g1 <== NOT EXECUTED
20055c8: 80 a0 60 00 cmp %g1, 0
20055cc: 02 80 00 07 be 20055e8 <rtems_termios_open+0x288> <== NEVER TAKEN
20055d0: 03 00 80 76 sethi %hi(0x201d800), %g1
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
20055d4: c2 04 60 b4 ld [ %l1 + 0xb4 ], %g1
20055d8: 80 a0 60 02 cmp %g1, 2
20055dc: 12 80 00 0f bne 2005618 <rtems_termios_open+0x2b8> <== ALWAYS TAKEN
20055e0: 84 10 20 03 mov 3, %g2
sc = rtems_semaphore_create (
20055e4: 03 00 80 76 sethi %hi(0x201d800), %g1 <== NOT EXECUTED
20055e8: d0 48 60 6c ldsb [ %g1 + 0x6c ], %o0 ! 201d86c <c.6404> <== NOT EXECUTED
20055ec: 03 15 14 9c sethi %hi(0x54527000), %g1 <== NOT EXECUTED
20055f0: 82 10 62 00 or %g1, 0x200, %g1 ! 54527200 <RAM_END+0x52127200><== NOT EXECUTED
20055f4: 92 10 20 00 clr %o1 <== NOT EXECUTED
20055f8: 90 12 00 01 or %o0, %g1, %o0 <== NOT EXECUTED
20055fc: 94 10 20 24 mov 0x24, %o2 <== NOT EXECUTED
2005600: 96 10 20 00 clr %o3 <== NOT EXECUTED
2005604: 40 00 02 ae call 20060bc <rtems_semaphore_create> <== NOT EXECUTED
2005608: 98 04 60 68 add %l1, 0x68, %o4 <== NOT EXECUTED
rtems_build_name ('T', 'R', 'r', c),
0,
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->rawInBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
200560c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005610: 12 80 00 5a bne 2005778 <rtems_termios_open+0x418> <== NOT EXECUTED
2005614: 84 10 20 03 mov 3, %g2 <== NOT EXECUTED
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
2005618: c4 2c 60 41 stb %g2, [ %l1 + 0x41 ]
tty->termios.c_cc[VQUIT] = '\034';
200561c: 84 10 20 1c mov 0x1c, %g2
2005620: c4 2c 60 42 stb %g2, [ %l1 + 0x42 ]
tty->termios.c_cc[VERASE] = '\177';
2005624: 84 10 20 7f mov 0x7f, %g2
2005628: c4 2c 60 43 stb %g2, [ %l1 + 0x43 ]
tty->termios.c_cc[VKILL] = '\025';
200562c: 84 10 20 15 mov 0x15, %g2
2005630: c4 2c 60 44 stb %g2, [ %l1 + 0x44 ]
tty->termios.c_cc[VEOF] = '\004';
2005634: 84 10 20 04 mov 4, %g2
2005638: c4 2c 60 45 stb %g2, [ %l1 + 0x45 ]
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
200563c: 84 10 20 11 mov 0x11, %g2
2005640: c4 2c 60 49 stb %g2, [ %l1 + 0x49 ]
tty->termios.c_cc[VSTOP] = '\023';
2005644: 84 10 20 13 mov 0x13, %g2
2005648: c4 2c 60 4a stb %g2, [ %l1 + 0x4a ]
tty->termios.c_cc[VSUSP] = '\032';
200564c: 84 10 20 1a mov 0x1a, %g2
2005650: c4 2c 60 4b stb %g2, [ %l1 + 0x4b ]
tty->termios.c_cc[VREPRINT] = '\022';
2005654: 84 10 20 12 mov 0x12, %g2
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
tty->termios.c_cc[VLNEXT] = '\026';
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
2005658: c0 24 60 b8 clr [ %l1 + 0xb8 ]
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
200565c: c4 2c 60 4d stb %g2, [ %l1 + 0x4d ]
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
2005660: c8 04 60 64 ld [ %l1 + 0x64 ], %g4
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
2005664: 84 10 20 0f mov 0xf, %g2
2005668: c4 2c 60 4e stb %g2, [ %l1 + 0x4e ]
tty->termios.c_cc[VWERASE] = '\027';
200566c: 84 10 20 17 mov 0x17, %g2
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
2005670: 89 31 20 01 srl %g4, 1, %g4
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
2005674: c4 2c 60 4f stb %g2, [ %l1 + 0x4f ]
tty->termios.c_cc[VLNEXT] = '\026';
2005678: 84 10 20 16 mov 0x16, %g2
tty->termios.c_cc[VINTR] = '\003';
tty->termios.c_cc[VQUIT] = '\034';
tty->termios.c_cc[VERASE] = '\177';
tty->termios.c_cc[VKILL] = '\025';
tty->termios.c_cc[VEOF] = '\004';
tty->termios.c_cc[VEOL] = '\000';
200567c: c0 2c 60 4c clrb [ %l1 + 0x4c ]
tty->termios.c_cc[VEOL2] = '\000';
2005680: c0 2c 60 51 clrb [ %l1 + 0x51 ]
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
2005684: 03 00 80 76 sethi %hi(0x201d800), %g1
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
tty->termios.c_cc[VLNEXT] = '\026';
2005688: c4 2c 60 50 stb %g2, [ %l1 + 0x50 ]
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
200568c: c4 08 60 6c ldub [ %g1 + 0x6c ], %g2
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
2005690: c8 24 60 bc st %g4, [ %l1 + 0xbc ]
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
2005694: 09 00 00 09 sethi %hi(0x2400), %g4
2005698: 88 11 21 02 or %g4, 0x102, %g4 ! 2502 <PROM_START+0x2502>
200569c: c8 24 60 30 st %g4, [ %l1 + 0x30 ]
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
20056a0: 09 00 00 06 sethi %hi(0x1800), %g4
20056a4: 88 11 20 05 or %g4, 5, %g4 ! 1805 <PROM_START+0x1805>
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
20056a8: c6 04 60 64 ld [ %l1 + 0x64 ], %g3
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
20056ac: c8 24 60 34 st %g4, [ %l1 + 0x34 ]
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
20056b0: 88 10 28 bd mov 0x8bd, %g4
20056b4: c8 24 60 38 st %g4, [ %l1 + 0x38 ]
tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
20056b8: 09 00 00 20 sethi %hi(0x8000), %g4
20056bc: 88 11 22 3b or %g4, 0x23b, %g4 ! 823b <PROM_START+0x823b>
20056c0: c8 24 60 3c st %g4, [ %l1 + 0x3c ]
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
20056c4: 89 28 e0 01 sll %g3, 1, %g4
20056c8: 86 01 00 03 add %g4, %g3, %g3
20056cc: 87 30 e0 02 srl %g3, 2, %g3
20056d0: c6 24 60 c0 st %g3, [ %l1 + 0xc0 ]
/*
* Bump name characer
*/
if (c++ == 'z')
20056d4: 86 00 a0 01 add %g2, 1, %g3
20056d8: 85 28 a0 18 sll %g2, 0x18, %g2
20056dc: 85 38 a0 18 sra %g2, 0x18, %g2
20056e0: 80 a0 a0 7a cmp %g2, 0x7a
20056e4: 12 80 00 04 bne 20056f4 <rtems_termios_open+0x394> <== ALWAYS TAKEN
20056e8: c6 28 60 6c stb %g3, [ %g1 + 0x6c ]
c = 'a';
20056ec: 84 10 20 61 mov 0x61, %g2 <== NOT EXECUTED
20056f0: c4 28 60 6c stb %g2, [ %g1 + 0x6c ] <== NOT EXECUTED
}
args->iop->data1 = tty;
if (!tty->refcount++) {
20056f4: c2 04 a0 08 ld [ %l2 + 8 ], %g1
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
20056f8: c6 06 80 00 ld [ %i2 ], %g3
if (!tty->refcount++) {
20056fc: 84 00 60 01 add %g1, 1, %g2
*/
if (c++ == 'z')
c = 'a';
}
args->iop->data1 = tty;
2005700: e4 20 e0 38 st %l2, [ %g3 + 0x38 ]
if (!tty->refcount++) {
2005704: 80 a0 60 00 cmp %g1, 0
2005708: 12 80 00 1e bne 2005780 <rtems_termios_open+0x420>
200570c: c4 24 a0 08 st %g2, [ %l2 + 8 ]
if (tty->device.firstOpen)
2005710: c2 04 a0 98 ld [ %l2 + 0x98 ], %g1
2005714: 80 a0 60 00 cmp %g1, 0
2005718: 02 80 00 05 be 200572c <rtems_termios_open+0x3cc>
200571c: 90 10 00 18 mov %i0, %o0
(*tty->device.firstOpen)(major, minor, arg);
2005720: 92 10 00 19 mov %i1, %o1
2005724: 9f c0 40 00 call %g1
2005728: 94 10 00 1a mov %i2, %o2
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
200572c: c2 04 a0 b4 ld [ %l2 + 0xb4 ], %g1
2005730: 80 a0 60 02 cmp %g1, 2
2005734: 12 80 00 14 bne 2005784 <rtems_termios_open+0x424> <== ALWAYS TAKEN
2005738: 03 00 80 78 sethi %hi(0x201e000), %g1
sc = rtems_task_start(tty->rxTaskId,
200573c: d0 04 a0 c4 ld [ %l2 + 0xc4 ], %o0 <== NOT EXECUTED
2005740: 13 00 80 16 sethi %hi(0x2005800), %o1 <== NOT EXECUTED
2005744: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
2005748: 40 00 04 18 call 20067a8 <rtems_task_start> <== NOT EXECUTED
200574c: 92 12 60 30 or %o1, 0x30, %o1 <== NOT EXECUTED
rtems_termios_rxdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
2005750: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005754: 12 80 00 09 bne 2005778 <rtems_termios_open+0x418> <== NOT EXECUTED
2005758: 94 10 00 12 mov %l2, %o2 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(tty->txTaskId,
200575c: d0 04 a0 c8 ld [ %l2 + 0xc8 ], %o0 <== NOT EXECUTED
2005760: 13 00 80 15 sethi %hi(0x2005400), %o1 <== NOT EXECUTED
2005764: 40 00 04 11 call 20067a8 <rtems_task_start> <== NOT EXECUTED
2005768: 92 12 63 b4 or %o1, 0x3b4, %o1 ! 20057b4 <rtems_termios_txdaemon><== NOT EXECUTED
rtems_termios_txdaemon,
(rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
200576c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2005770: 02 80 00 05 be 2005784 <rtems_termios_open+0x424> <== NOT EXECUTED
2005774: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
2005778: 40 00 04 8e call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
200577c: 01 00 00 00 nop <== NOT EXECUTED
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
2005780: 03 00 80 78 sethi %hi(0x201e000), %g1
2005784: d0 00 61 00 ld [ %g1 + 0x100 ], %o0 ! 201e100 <rtems_termios_ttyMutex>
2005788: 40 00 03 36 call 2006460 <rtems_semaphore_release>
200578c: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
}
2005790: 81 c7 e0 08 ret
2005794: 91 e8 00 10 restore %g0, %l0, %o0
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
2005798: 7f ff f4 47 call 20028b4 <calloc>
200579c: 92 10 20 e8 mov 0xe8, %o1
if (tty == NULL) {
20057a0: a4 92 20 00 orcc %o0, 0, %l2
20057a4: 12 bf ff 07 bne 20053c0 <rtems_termios_open+0x60> <== ALWAYS TAKEN
20057a8: a2 10 00 12 mov %l2, %l1
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
if (tty->rawInBuf.theBuf == NULL) {
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
20057ac: 10 bf ff 11 b 20053f0 <rtems_termios_open+0x90> <== NOT EXECUTED
20057b0: 03 00 80 78 sethi %hi(0x201e000), %g1 <== NOT EXECUTED
020040fc <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
20040fc: 9d e3 bf a0 save %sp, -96, %sp
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
2004100: c2 06 a0 b4 ld [ %i2 + 0xb4 ], %g1
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
2004104: 92 10 00 18 mov %i0, %o1
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
2004108: 80 a0 60 00 cmp %g1, 0
200410c: 12 80 00 08 bne 200412c <rtems_termios_puts+0x30> <== NEVER TAKEN
2004110: a2 10 00 18 mov %i0, %l1
(*tty->device.write)(tty->minor, (void *)buf, len);
2004114: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0
2004118: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1
200411c: 9f c0 40 00 call %g1
2004120: 94 10 00 19 mov %i1, %o2
return;
2004124: 81 c7 e0 08 ret
2004128: 81 e8 00 00 restore
}
newHead = tty->rawOutBuf.Head;
200412c: e0 06 a0 80 ld [ %i2 + 0x80 ], %l0 <== NOT EXECUTED
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
tty->rawOutBufState = rob_wait;
2004130: a8 10 20 02 mov 2, %l4 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
2004134: 10 80 00 37 b 2004210 <rtems_termios_puts+0x114> <== NOT EXECUTED
2004138: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
200413c: d2 06 a0 88 ld [ %i2 + 0x88 ], %o1 <== NOT EXECUTED
2004140: 40 00 58 01 call 201a144 <.urem> <== NOT EXECUTED
2004144: 90 04 20 01 add %l0, 1, %o0 <== NOT EXECUTED
2004148: 10 80 00 0d b 200417c <rtems_termios_puts+0x80> <== NOT EXECUTED
200414c: a0 10 00 08 mov %o0, %l0 <== NOT EXECUTED
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
tty->rawOutBufState = rob_wait;
rtems_interrupt_enable (level);
2004150: 7f ff f7 a1 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2004154: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore,
2004158: d0 06 a0 8c ld [ %i2 + 0x8c ], %o0 <== NOT EXECUTED
200415c: 92 10 20 00 clr %o1 <== NOT EXECUTED
2004160: 40 00 08 79 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
2004164: 94 10 20 00 clr %o2 <== NOT EXECUTED
RTEMS_WAIT,
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
2004168: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
200416c: 02 80 00 04 be 200417c <rtems_termios_puts+0x80> <== NOT EXECUTED
2004170: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
2004174: 40 00 0a 0f call 20069b0 <rtems_fatal_error_occurred> <== NOT EXECUTED
2004178: 01 00 00 00 nop <== NOT EXECUTED
rtems_interrupt_disable (level);
200417c: 7f ff f7 92 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2004180: 01 00 00 00 nop <== NOT EXECUTED
2004184: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
2004188: c2 06 a0 84 ld [ %i2 + 0x84 ], %g1 <== NOT EXECUTED
200418c: 80 a4 00 01 cmp %l0, %g1 <== NOT EXECUTED
2004190: 22 bf ff f0 be,a 2004150 <rtems_termios_puts+0x54> <== NOT EXECUTED
2004194: e8 26 a0 94 st %l4, [ %i2 + 0x94 ] <== NOT EXECUTED
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
2004198: c2 06 a0 80 ld [ %i2 + 0x80 ], %g1 <== NOT EXECUTED
200419c: c6 0c 40 00 ldub [ %l1 ], %g3 <== NOT EXECUTED
20041a0: c4 06 a0 7c ld [ %i2 + 0x7c ], %g2 <== NOT EXECUTED
20041a4: c6 28 80 01 stb %g3, [ %g2 + %g1 ] <== NOT EXECUTED
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
20041a8: c2 06 a0 94 ld [ %i2 + 0x94 ], %g1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
tty->rawOutBuf.Head = newHead;
20041ac: e0 26 a0 80 st %l0, [ %i2 + 0x80 ] <== NOT EXECUTED
if (tty->rawOutBufState == rob_idle) {
20041b0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
20041b4: 32 80 00 14 bne,a 2004204 <rtems_termios_puts+0x108> <== NOT EXECUTED
20041b8: a2 04 60 01 inc %l1 <== NOT EXECUTED
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
20041bc: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED
20041c0: 80 88 60 10 btst 0x10, %g1 <== NOT EXECUTED
20041c4: 12 80 00 0b bne 20041f0 <rtems_termios_puts+0xf4> <== NOT EXECUTED
20041c8: 01 00 00 00 nop <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
20041cc: c4 06 a0 84 ld [ %i2 + 0x84 ], %g2 <== NOT EXECUTED
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
(*tty->device.write)(tty->minor,
20041d0: d2 06 a0 7c ld [ %i2 + 0x7c ], %o1 <== NOT EXECUTED
20041d4: c2 06 a0 a4 ld [ %i2 + 0xa4 ], %g1 <== NOT EXECUTED
20041d8: d0 06 a0 10 ld [ %i2 + 0x10 ], %o0 <== NOT EXECUTED
20041dc: 92 02 40 02 add %o1, %g2, %o1 <== NOT EXECUTED
20041e0: 9f c0 40 00 call %g1 <== NOT EXECUTED
20041e4: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
20041e8: 10 80 00 06 b 2004200 <rtems_termios_puts+0x104> <== NOT EXECUTED
20041ec: e6 26 a0 94 st %l3, [ %i2 + 0x94 ] <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
}
else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
20041f0: c2 06 a0 b8 ld [ %i2 + 0xb8 ], %g1 <== NOT EXECUTED
20041f4: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
20041f8: c2 26 a0 b8 st %g1, [ %i2 + 0xb8 ] <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy;
20041fc: e6 26 a0 94 st %l3, [ %i2 + 0x94 ] <== NOT EXECUTED
RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
2004200: a2 04 60 01 inc %l1 <== NOT EXECUTED
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
}
rtems_interrupt_enable (level);
2004204: 90 10 00 12 mov %l2, %o0 <== NOT EXECUTED
2004208: 7f ff f7 73 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
200420c: b2 06 7f ff add %i1, -1, %i1 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
2004210: 80 a6 60 00 cmp %i1, 0 <== NOT EXECUTED
2004214: 12 bf ff ca bne 200413c <rtems_termios_puts+0x40> <== NOT EXECUTED
2004218: 01 00 00 00 nop <== NOT EXECUTED
200421c: 81 c7 e0 08 ret <== NOT EXECUTED
2004220: 81 e8 00 00 restore <== NOT EXECUTED
020049e0 <rtems_termios_read>:
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
20049e0: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20049e4: c2 06 00 00 ld [ %i0 ], %g1
uint32_t count = args->count;
20049e8: e4 06 20 14 ld [ %i0 + 0x14 ], %l2
rtems_status_code
rtems_termios_read (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20049ec: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
uint32_t count = args->count;
char *buffer = args->buffer;
20049f0: ea 06 20 10 ld [ %i0 + 0x10 ], %l5
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20049f4: d0 04 20 14 ld [ %l0 + 0x14 ], %o0
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
20049f8: a2 10 00 18 mov %i0, %l1
struct rtems_termios_tty *tty = args->iop->data1;
uint32_t count = args->count;
char *buffer = args->buffer;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20049fc: 92 10 20 00 clr %o1
2004a00: 40 00 06 51 call 2006344 <rtems_semaphore_obtain>
2004a04: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL)
2004a08: b0 92 20 00 orcc %o0, 0, %i0
2004a0c: 12 80 00 10 bne 2004a4c <rtems_termios_read+0x6c> <== NEVER TAKEN
2004a10: 05 00 80 77 sethi %hi(0x201dc00), %g2
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
2004a14: c2 04 20 cc ld [ %l0 + 0xcc ], %g1
2004a18: 83 28 60 05 sll %g1, 5, %g1
2004a1c: 84 10 a2 30 or %g2, 0x230, %g2
2004a20: 82 00 60 08 add %g1, 8, %g1
2004a24: c2 00 80 01 ld [ %g2 + %g1 ], %g1
2004a28: 80 a0 60 00 cmp %g1, 0
2004a2c: 02 80 00 0a be 2004a54 <rtems_termios_read+0x74> <== ALWAYS TAKEN
2004a30: 92 10 00 11 mov %l1, %o1
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
2004a34: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004a38: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
2004a3c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
2004a40: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
2004a44: 40 00 06 87 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
2004a48: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED
return sc;
2004a4c: 81 c7 e0 08 ret <== NOT EXECUTED
2004a50: 81 e8 00 00 restore <== NOT EXECUTED
}
if (tty->cindex == tty->ccount) {
2004a54: c4 04 20 24 ld [ %l0 + 0x24 ], %g2
2004a58: c2 04 20 20 ld [ %l0 + 0x20 ], %g1
2004a5c: 80 a0 80 01 cmp %g2, %g1
2004a60: 12 80 00 be bne 2004d58 <rtems_termios_read+0x378> <== NEVER TAKEN
2004a64: 80 a4 a0 00 cmp %l2, 0
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
2004a68: c4 04 20 28 ld [ %l0 + 0x28 ], %g2
if (tty->device.pollRead != NULL
2004a6c: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
2004a70: c4 24 20 2c st %g2, [ %l0 + 0x2c ]
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
2004a74: c0 24 20 20 clr [ %l0 + 0x20 ]
tty->read_start_column = tty->column;
if (tty->device.pollRead != NULL
2004a78: 80 a0 60 00 cmp %g1, 0
2004a7c: 02 80 00 4c be 2004bac <rtems_termios_read+0x1cc> <== NEVER TAKEN
2004a80: c0 24 20 24 clr [ %l0 + 0x24 ]
&& tty->device.outputUsesInterrupts == TERMIOS_POLLED)
2004a84: c2 04 20 b4 ld [ %l0 + 0xb4 ], %g1
2004a88: 80 a0 60 00 cmp %g1, 0
2004a8c: 12 80 00 49 bne 2004bb0 <rtems_termios_read+0x1d0> <== NEVER TAKEN
2004a90: 2f 00 80 76 sethi %hi(0x201d800), %l7
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
2004a94: c2 04 20 3c ld [ %l0 + 0x3c ], %g1
2004a98: 80 88 60 02 btst 2, %g1
2004a9c: 02 80 00 13 be 2004ae8 <rtems_termios_read+0x108>
2004aa0: 01 00 00 00 nop
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
2004aa4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
2004aa8: 9f c0 40 00 call %g1
2004aac: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if (n < 0) {
2004ab0: 80 a2 20 00 cmp %o0, 0
2004ab4: 16 80 00 06 bge 2004acc <rtems_termios_read+0xec> <== NEVER TAKEN
2004ab8: 90 0a 20 ff and %o0, 0xff, %o0
rtems_task_wake_after (1);
2004abc: 40 00 07 57 call 2006818 <rtems_task_wake_after>
2004ac0: 90 10 20 01 mov 1, %o0
{
int n;
if (tty->termios.c_lflag & ICANON) {
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
2004ac4: 10 bf ff f9 b 2004aa8 <rtems_termios_read+0xc8>
2004ac8: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
if (n < 0) {
rtems_task_wake_after (1);
}
else {
if (siproc (n, tty))
2004acc: 7f ff ff 5f call 2004848 <siproc> <== NOT EXECUTED
2004ad0: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2004ad4: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2004ad8: 22 bf ff f4 be,a 2004aa8 <rtems_termios_read+0xc8> <== NOT EXECUTED
2004adc: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
2004ae0: 10 80 00 9e b 2004d58 <rtems_termios_read+0x378> <== NOT EXECUTED
2004ae4: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
}
}
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
2004ae8: 40 00 04 56 call 2005c40 <rtems_clock_get_ticks_since_boot>
2004aec: 01 00 00 00 nop
2004af0: a6 10 00 08 mov %o0, %l3
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
2004af4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
2004af8: 9f c0 40 00 call %g1
2004afc: d0 04 20 10 ld [ %l0 + 0x10 ], %o0
if (n < 0) {
2004b00: 80 a2 20 00 cmp %o0, 0
2004b04: 36 80 00 1c bge,a 2004b74 <rtems_termios_read+0x194> <== NEVER TAKEN
2004b08: 90 0a 20 ff and %o0, 0xff, %o0 <== NOT EXECUTED
if (tty->termios.c_cc[VMIN]) {
2004b0c: c4 0c 20 47 ldub [ %l0 + 0x47 ], %g2
2004b10: 80 a0 a0 00 cmp %g2, 0
2004b14: 02 80 00 0a be 2004b3c <rtems_termios_read+0x15c> <== NEVER TAKEN
2004b18: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1
if (tty->termios.c_cc[VTIME] && tty->ccount) {
2004b1c: 80 a0 60 00 cmp %g1, 0
2004b20: 02 80 00 11 be 2004b64 <rtems_termios_read+0x184> <== ALWAYS TAKEN
2004b24: 01 00 00 00 nop
2004b28: c2 04 20 20 ld [ %l0 + 0x20 ], %g1 <== NOT EXECUTED
2004b2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004b30: 02 80 00 0d be 2004b64 <rtems_termios_read+0x184> <== NOT EXECUTED
2004b34: 01 00 00 00 nop <== NOT EXECUTED
2004b38: 30 80 00 04 b,a 2004b48 <rtems_termios_read+0x168> <== NOT EXECUTED
break;
}
}
}
else {
if (!tty->termios.c_cc[VTIME])
2004b3c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004b40: 02 80 00 86 be 2004d58 <rtems_termios_read+0x378> <== NOT EXECUTED
2004b44: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
2004b48: 40 00 04 3e call 2005c40 <rtems_clock_get_ticks_since_boot><== NOT EXECUTED
2004b4c: 01 00 00 00 nop <== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
2004b50: c2 04 20 54 ld [ %l0 + 0x54 ], %g1 <== NOT EXECUTED
2004b54: 90 22 00 13 sub %o0, %l3, %o0 <== NOT EXECUTED
2004b58: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2004b5c: 18 80 00 7f bgu 2004d58 <rtems_termios_read+0x378> <== NOT EXECUTED
2004b60: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
break;
}
}
rtems_task_wake_after (1);
2004b64: 40 00 07 2d call 2006818 <rtems_task_wake_after>
2004b68: 90 10 20 01 mov 1, %o0
}
else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
2004b6c: 10 bf ff e3 b 2004af8 <rtems_termios_read+0x118>
2004b70: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1
}
}
rtems_task_wake_after (1);
}
else {
siproc (n, tty);
2004b74: 7f ff ff 35 call 2004848 <siproc> <== NOT EXECUTED
2004b78: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
2004b7c: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED
2004b80: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2004b84: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004b88: 16 80 00 73 bge 2004d54 <rtems_termios_read+0x374> <== NOT EXECUTED
2004b8c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
2004b90: 22 bf ff da be,a 2004af8 <rtems_termios_read+0x118> <== NOT EXECUTED
2004b94: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED
2004b98: c2 0c 20 46 ldub [ %l0 + 0x46 ], %g1 <== NOT EXECUTED
2004b9c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004ba0: 22 bf ff d6 be,a 2004af8 <rtems_termios_read+0x118> <== NOT EXECUTED
2004ba4: c2 04 20 a0 ld [ %l0 + 0xa0 ], %g1 <== NOT EXECUTED
2004ba8: 30 bf ff d0 b,a 2004ae8 <rtems_termios_read+0x108> <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004bac: 2f 00 80 76 sethi %hi(0x201d800), %l7 <== NOT EXECUTED
* Fill the input buffer from the raw input queue
*/
static rtems_status_code
fillBufferQueue (struct rtems_termios_tty *tty)
{
rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;
2004bb0: e8 04 20 74 ld [ %l0 + 0x74 ], %l4 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004bb4: ae 15 e0 60 or %l7, 0x60, %l7 <== NOT EXECUTED
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
2004bb8: ac 04 20 49 add %l0, 0x49, %l6 <== NOT EXECUTED
2004bbc: 10 80 00 4b b 2004ce8 <rtems_termios_read+0x308> <== NOT EXECUTED
2004bc0: a6 10 20 01 mov 1, %l3 <== NOT EXECUTED
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
2004bc4: d0 04 20 5c ld [ %l0 + 0x5c ], %o0 <== NOT EXECUTED
2004bc8: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
2004bcc: 40 00 55 5e call 201a144 <.urem> <== NOT EXECUTED
2004bd0: 90 02 20 01 inc %o0 <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
2004bd4: c2 04 20 58 ld [ %l0 + 0x58 ], %g1 <== NOT EXECUTED
2004bd8: e8 08 40 08 ldub [ %g1 + %o0 ], %l4 <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
2004bdc: d0 24 20 5c st %o0, [ %l0 + 0x5c ] <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
2004be0: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED
2004be4: c4 04 20 64 ld [ %l0 + 0x64 ], %g2 <== NOT EXECUTED
2004be8: d2 04 20 64 ld [ %l0 + 0x64 ], %o1 <== NOT EXECUTED
2004bec: 82 00 80 01 add %g2, %g1, %g1 <== NOT EXECUTED
2004bf0: 40 00 55 55 call 201a144 <.urem> <== NOT EXECUTED
2004bf4: 90 20 40 08 sub %g1, %o0, %o0 <== NOT EXECUTED
2004bf8: c2 04 20 bc ld [ %l0 + 0xbc ], %g1 <== NOT EXECUTED
2004bfc: 80 a2 00 01 cmp %o0, %g1 <== NOT EXECUTED
2004c00: 3a 80 00 27 bcc,a 2004c9c <rtems_termios_read+0x2bc> <== NOT EXECUTED
2004c04: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
2004c08: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004c0c: 82 08 7f fe and %g1, -2, %g1 <== NOT EXECUTED
2004c10: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* if tx stopped and XON should be sent... */
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
2004c14: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004c18: 82 08 62 02 and %g1, 0x202, %g1 <== NOT EXECUTED
2004c1c: 80 a0 62 02 cmp %g1, 0x202 <== NOT EXECUTED
2004c20: 12 80 00 11 bne 2004c64 <rtems_termios_read+0x284> <== NOT EXECUTED
2004c24: 01 00 00 00 nop <== NOT EXECUTED
2004c28: c2 04 20 94 ld [ %l0 + 0x94 ], %g1 <== NOT EXECUTED
2004c2c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004c30: 22 80 00 07 be,a 2004c4c <rtems_termios_read+0x26c> <== NOT EXECUTED
2004c34: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
2004c38: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
/* if tx stopped and XON should be sent... */
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
2004c3c: 80 88 60 20 btst 0x20, %g1 <== NOT EXECUTED
2004c40: 02 80 00 09 be 2004c64 <rtems_termios_read+0x284> <== NOT EXECUTED
2004c44: 01 00 00 00 nop <== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
2004c48: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2004c4c: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
2004c50: 92 10 00 16 mov %l6, %o1 <== NOT EXECUTED
2004c54: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004c58: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
2004c5c: 10 80 00 10 b 2004c9c <rtems_termios_read+0x2bc> <== NOT EXECUTED
2004c60: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]),
1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
2004c64: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2004c68: 80 88 61 00 btst 0x100, %g1 <== NOT EXECUTED
2004c6c: 22 80 00 0c be,a 2004c9c <rtems_termios_read+0x2bc> <== NOT EXECUTED
2004c70: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
2004c74: c4 04 20 b8 ld [ %l0 + 0xb8 ], %g2 <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
2004c78: c2 04 20 b0 ld [ %l0 + 0xb0 ], %g1 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]),
1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
tty->flow_ctrl &= ~FL_IRTSOFF;
2004c7c: 84 08 bf fb and %g2, -5, %g2 <== NOT EXECUTED
2004c80: c4 24 20 b8 st %g2, [ %l0 + 0xb8 ] <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
2004c84: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2004c88: 22 80 00 05 be,a 2004c9c <rtems_termios_read+0x2bc> <== NOT EXECUTED
2004c8c: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
2004c90: 9f c0 40 00 call %g1 <== NOT EXECUTED
2004c94: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
2004c98: c2 04 20 3c ld [ %l0 + 0x3c ], %g1 <== NOT EXECUTED
2004c9c: 80 88 60 02 btst 2, %g1 <== NOT EXECUTED
2004ca0: 02 80 00 09 be 2004cc4 <rtems_termios_read+0x2e4> <== NOT EXECUTED
2004ca4: 90 0d 20 ff and %l4, 0xff, %o0 <== NOT EXECUTED
if (siproc (c, tty))
2004ca8: 7f ff fe e8 call 2004848 <siproc> <== NOT EXECUTED
2004cac: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
2004cb0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2004cb4: 32 80 00 0c bne,a 2004ce4 <rtems_termios_read+0x304> <== NOT EXECUTED
2004cb8: a6 10 20 00 clr %l3 <== NOT EXECUTED
else {
siproc (c, tty);
if (tty->ccount >= tty->termios.c_cc[VMIN])
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
2004cbc: 10 80 00 0b b 2004ce8 <rtems_termios_read+0x308> <== NOT EXECUTED
2004cc0: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED
if (tty->termios.c_lflag & ICANON) {
if (siproc (c, tty))
wait = 0;
}
else {
siproc (c, tty);
2004cc4: 7f ff fe e1 call 2004848 <siproc> <== NOT EXECUTED
2004cc8: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
2004ccc: c2 0c 20 47 ldub [ %l0 + 0x47 ], %g1 <== NOT EXECUTED
2004cd0: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2004cd4: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004cd8: 26 80 00 04 bl,a 2004ce8 <rtems_termios_read+0x308> <== NOT EXECUTED
2004cdc: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED
2004ce0: a6 10 20 00 clr %l3 <== NOT EXECUTED
wait = 0;
}
timeout = tty->rawInBufSemaphoreTimeout;
2004ce4: e8 04 20 70 ld [ %l0 + 0x70 ], %l4 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
2004ce8: c4 04 20 5c ld [ %l0 + 0x5c ], %g2 <== NOT EXECUTED
2004cec: c2 04 20 60 ld [ %l0 + 0x60 ], %g1 <== NOT EXECUTED
2004cf0: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004cf4: 02 80 00 08 be 2004d14 <rtems_termios_read+0x334> <== NOT EXECUTED
2004cf8: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
2004cfc: c2 05 c0 00 ld [ %l7 ], %g1 <== NOT EXECUTED
2004d00: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2004d04: 82 00 7f ff add %g1, -1, %g1 <== NOT EXECUTED
2004d08: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2004d0c: 06 bf ff ae bl 2004bc4 <rtems_termios_read+0x1e4> <== NOT EXECUTED
2004d10: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
2004d14: 02 80 00 11 be 2004d58 <rtems_termios_read+0x378> <== NOT EXECUTED
2004d18: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore,
2004d1c: d0 04 20 68 ld [ %l0 + 0x68 ], %o0 <== NOT EXECUTED
2004d20: d2 04 20 6c ld [ %l0 + 0x6c ], %o1 <== NOT EXECUTED
2004d24: 40 00 05 88 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
2004d28: 94 10 00 14 mov %l4, %o2 <== NOT EXECUTED
tty->rawInBufSemaphoreOptions,
timeout);
if (sc != RTEMS_SUCCESSFUL)
2004d2c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2004d30: 02 bf ff ee be 2004ce8 <rtems_termios_read+0x308> <== NOT EXECUTED
2004d34: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2004d38: 30 80 00 08 b,a 2004d58 <rtems_termios_read+0x378> <== NOT EXECUTED
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
2004d3c: c4 04 20 1c ld [ %l0 + 0x1c ], %g2 <== NOT EXECUTED
count--;
2004d40: a4 04 bf ff add %l2, -1, %l2 <== NOT EXECUTED
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
2004d44: c2 08 80 01 ldub [ %g2 + %g1 ], %g1 <== NOT EXECUTED
2004d48: c2 2d 40 00 stb %g1, [ %l5 ] <== NOT EXECUTED
2004d4c: c6 24 20 24 st %g3, [ %l0 + 0x24 ] <== NOT EXECUTED
2004d50: aa 05 60 01 inc %l5 <== NOT EXECUTED
else
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
2004d54: 80 a4 a0 00 cmp %l2, 0 <== NOT EXECUTED
2004d58: 22 80 00 08 be,a 2004d78 <rtems_termios_read+0x398> <== NOT EXECUTED
2004d5c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
2004d60: c2 04 20 24 ld [ %l0 + 0x24 ], %g1 <== NOT EXECUTED
2004d64: c4 04 20 20 ld [ %l0 + 0x20 ], %g2 <== NOT EXECUTED
2004d68: 80 a0 40 02 cmp %g1, %g2 <== NOT EXECUTED
2004d6c: 06 bf ff f4 bl 2004d3c <rtems_termios_read+0x35c> <== NOT EXECUTED
2004d70: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
2004d74: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
2004d78: c0 24 20 e4 clr [ %l0 + 0xe4 ] <== NOT EXECUTED
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
2004d7c: a4 20 40 12 sub %g1, %l2, %l2 <== NOT EXECUTED
2004d80: e4 24 60 1c st %l2, [ %l1 + 0x1c ] <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
2004d84: 40 00 05 b7 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
2004d88: d0 04 20 14 ld [ %l0 + 0x14 ], %o0 <== NOT EXECUTED
return sc;
}
2004d8c: 81 c7 e0 08 ret <== NOT EXECUTED
2004d90: 81 e8 00 00 restore <== NOT EXECUTED
02003b80 <rtems_termios_refill_transmitter>:
* in task-driven mode, this function is called in Tx task context
* in interrupt-driven mode, this function is called in TxIRQ context
*/
int
rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
{
2003b80: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int nToSend;
rtems_interrupt_level level;
int len;
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
2003b84: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED
2003b88: 82 08 64 03 and %g1, 0x403, %g1 <== NOT EXECUTED
2003b8c: 80 a0 64 01 cmp %g1, 0x401 <== NOT EXECUTED
2003b90: 12 80 00 0f bne 2003bcc <rtems_termios_refill_transmitter+0x4c><== NOT EXECUTED
2003b94: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
2003b98: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED
2003b9c: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2003ba0: 92 06 20 4a add %i0, 0x4a, %o1 <== NOT EXECUTED
2003ba4: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003ba8: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
2003bac: 7f ff f9 06 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2003bb0: 01 00 00 00 nop <== NOT EXECUTED
tty->t_dqlen--;
2003bb4: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
2003bb8: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
2003bbc: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
2003bc0: 82 10 60 02 or %g1, 2, %g1 <== NOT EXECUTED
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
2003bc4: 10 80 00 12 b 2003c0c <rtems_termios_refill_transmitter+0x8c><== NOT EXECUTED
2003bc8: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
rtems_interrupt_enable(level);
nToSend = 1;
}
else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF))
2003bcc: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED
2003bd0: 82 08 60 03 and %g1, 3, %g1 <== NOT EXECUTED
2003bd4: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003bd8: 12 80 00 12 bne 2003c20 <rtems_termios_refill_transmitter+0xa0><== NOT EXECUTED
2003bdc: 92 06 20 49 add %i0, 0x49, %o1 <== NOT EXECUTED
* FIXME: this .write call will generate another
* dequeue callback. This will advance the "Tail" in the data
* buffer, although the corresponding data is not yet out!
* Therefore the dequeue "length" should be reduced by 1
*/
(*tty->device.write)(tty->minor,
2003be0: c2 06 20 a4 ld [ %i0 + 0xa4 ], %g1 <== NOT EXECUTED
2003be4: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
2003be8: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003bec: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
2003bf0: 7f ff f8 f5 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2003bf4: 01 00 00 00 nop <== NOT EXECUTED
tty->t_dqlen--;
2003bf8: c4 06 20 90 ld [ %i0 + 0x90 ], %g2 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
2003bfc: c2 06 20 b8 ld [ %i0 + 0xb8 ], %g1 <== NOT EXECUTED
*/
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
2003c00: 84 00 bf ff add %g2, -1, %g2 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
2003c04: 82 08 7f fd and %g1, -3, %g1 <== NOT EXECUTED
*/
(*tty->device.write)(tty->minor,
(void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
2003c08: c4 26 20 90 st %g2, [ %i0 + 0x90 ] <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
2003c0c: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
rtems_interrupt_enable(level);
2003c10: 7f ff f8 f1 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2003c14: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
2003c18: 81 c7 e0 08 ret <== NOT EXECUTED
2003c1c: 81 e8 00 00 restore <== NOT EXECUTED
nToSend = 1;
}
else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
2003c20: c4 06 20 80 ld [ %i0 + 0x80 ], %g2 <== NOT EXECUTED
2003c24: c2 06 20 84 ld [ %i0 + 0x84 ], %g1 <== NOT EXECUTED
2003c28: 80 a0 80 01 cmp %g2, %g1 <== NOT EXECUTED
2003c2c: 12 80 00 0a bne 2003c54 <rtems_termios_refill_transmitter+0xd4><== NOT EXECUTED
2003c30: 01 00 00 00 nop <== NOT EXECUTED
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
2003c34: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED
2003c38: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003c3c: 12 bf ff f7 bne 2003c18 <rtems_termios_refill_transmitter+0x98><== NOT EXECUTED
2003c40: b0 10 20 00 clr %i0 <== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
2003c44: 40 00 0a 07 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
2003c48: d0 04 20 8c ld [ %l0 + 0x8c ], %o0 <== NOT EXECUTED
2003c4c: 81 c7 e0 08 ret <== NOT EXECUTED
2003c50: 81 e8 00 00 restore <== NOT EXECUTED
}
return 0;
}
rtems_interrupt_disable(level);
2003c54: 7f ff f8 dc call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2003c58: 01 00 00 00 nop <== NOT EXECUTED
len = tty->t_dqlen;
2003c5c: e2 06 20 90 ld [ %i0 + 0x90 ], %l1 <== NOT EXECUTED
tty->t_dqlen = 0;
2003c60: c0 26 20 90 clr [ %i0 + 0x90 ] <== NOT EXECUTED
rtems_interrupt_enable(level);
2003c64: 7f ff f8 dc call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2003c68: 01 00 00 00 nop <== NOT EXECUTED
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
2003c6c: d0 06 20 84 ld [ %i0 + 0x84 ], %o0 <== NOT EXECUTED
2003c70: d2 06 20 88 ld [ %i0 + 0x88 ], %o1 <== NOT EXECUTED
2003c74: 40 00 59 34 call 201a144 <.urem> <== NOT EXECUTED
2003c78: 90 04 40 08 add %l1, %o0, %o0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
2003c7c: c2 06 20 94 ld [ %i0 + 0x94 ], %g1 <== NOT EXECUTED
len = tty->t_dqlen;
tty->t_dqlen = 0;
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
tty->rawOutBuf.Tail = newTail;
2003c80: d0 24 20 84 st %o0, [ %l0 + 0x84 ] <== NOT EXECUTED
if (tty->rawOutBufState == rob_wait) {
2003c84: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2003c88: 12 80 00 04 bne 2003c98 <rtems_termios_refill_transmitter+0x118><== NOT EXECUTED
2003c8c: a2 10 00 08 mov %o0, %l1 <== NOT EXECUTED
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
2003c90: 40 00 09 f4 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
2003c94: d0 06 20 8c ld [ %i0 + 0x8c ], %o0 <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
2003c98: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2003c9c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2003ca0: 12 80 00 0b bne 2003ccc <rtems_termios_refill_transmitter+0x14c><== NOT EXECUTED
2003ca4: 01 00 00 00 nop <== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
2003ca8: c2 04 20 d4 ld [ %l0 + 0xd4 ], %g1 <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
2003cac: c0 24 20 94 clr [ %l0 + 0x94 ] <== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
2003cb0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2003cb4: 02 80 00 29 be 2003d58 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
2003cb8: b0 10 20 00 clr %i0 <== NOT EXECUTED
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
2003cbc: d2 04 20 d8 ld [ %l0 + 0xd8 ], %o1 <== NOT EXECUTED
2003cc0: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003cc4: 90 04 20 30 add %l0, 0x30, %o0 <== NOT EXECUTED
2003cc8: 30 80 00 24 b,a 2003d58 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
2003ccc: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003cd0: 82 08 62 10 and %g1, 0x210, %g1 <== NOT EXECUTED
2003cd4: 80 a0 62 10 cmp %g1, 0x210 <== NOT EXECUTED
2003cd8: 12 80 00 0c bne 2003d08 <rtems_termios_refill_transmitter+0x188><== NOT EXECUTED
2003cdc: 01 00 00 00 nop <== NOT EXECUTED
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
2003ce0: 7f ff f8 b9 call 2001fc4 <sparc_disable_interrupts> <== NOT EXECUTED
2003ce4: 01 00 00 00 nop <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
2003ce8: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
2003cec: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
tty->flow_ctrl |= FL_OSTOP;
2003cf0: 82 10 60 20 or %g1, 0x20, %g1 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
2003cf4: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
tty->flow_ctrl |= FL_OSTOP;
2003cf8: c2 24 20 b8 st %g1, [ %l0 + 0xb8 ] <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
rtems_interrupt_enable(level);
2003cfc: 7f ff f8 b6 call 2001fd4 <sparc_enable_interrupts> <== NOT EXECUTED
2003d00: b0 10 20 00 clr %i0 <== NOT EXECUTED
2003d04: 30 80 00 15 b,a 2003d58 <rtems_termios_refill_transmitter+0x1d8><== NOT EXECUTED
}
else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
2003d08: c2 04 20 80 ld [ %l0 + 0x80 ], %g1 <== NOT EXECUTED
2003d0c: 80 a4 40 01 cmp %l1, %g1 <== NOT EXECUTED
2003d10: 08 80 00 04 bleu 2003d20 <rtems_termios_refill_transmitter+0x1a0><== NOT EXECUTED
2003d14: 01 00 00 00 nop <== NOT EXECUTED
nToSend = tty->rawOutBuf.Size - newTail;
2003d18: f0 04 20 88 ld [ %l0 + 0x88 ], %i0 <== NOT EXECUTED
2003d1c: 30 80 00 02 b,a 2003d24 <rtems_termios_refill_transmitter+0x1a4><== NOT EXECUTED
else
nToSend = tty->rawOutBuf.Head - newTail;
2003d20: f0 04 20 80 ld [ %l0 + 0x80 ], %i0 <== NOT EXECUTED
/* when flow control XON or XOF, don't send blocks of data */
/* to allow fast reaction on incoming flow ctrl and low latency*/
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
2003d24: c2 04 20 b8 ld [ %l0 + 0xb8 ], %g1 <== NOT EXECUTED
2003d28: 80 88 66 00 btst 0x600, %g1 <== NOT EXECUTED
2003d2c: 02 80 00 03 be 2003d38 <rtems_termios_refill_transmitter+0x1b8><== NOT EXECUTED
2003d30: b0 26 00 11 sub %i0, %l1, %i0 <== NOT EXECUTED
2003d34: b0 10 20 01 mov 1, %i0 <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor,
2003d38: d2 04 20 7c ld [ %l0 + 0x7c ], %o1 <== NOT EXECUTED
2003d3c: c2 04 20 a4 ld [ %l0 + 0xa4 ], %g1 <== NOT EXECUTED
2003d40: d0 04 20 10 ld [ %l0 + 0x10 ], %o0 <== NOT EXECUTED
/* to allow fast reaction on incoming flow ctrl and low latency*/
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
2003d44: 84 10 20 01 mov 1, %g2 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2003d48: 92 02 40 11 add %o1, %l1, %o1 <== NOT EXECUTED
/* to allow fast reaction on incoming flow ctrl and low latency*/
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
2003d4c: c4 24 20 94 st %g2, [ %l0 + 0x94 ] <== NOT EXECUTED
(*tty->device.write)(tty->minor,
2003d50: 9f c0 40 00 call %g1 <== NOT EXECUTED
2003d54: 94 10 00 18 mov %i0, %o2 <== NOT EXECUTED
&tty->rawOutBuf.theBuf[newTail],
nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
2003d58: e2 24 20 84 st %l1, [ %l0 + 0x84 ] <== NOT EXECUTED
}
return nToSend;
}
2003d5c: 81 c7 e0 08 ret <== NOT EXECUTED
2003d60: 81 e8 00 00 restore <== NOT EXECUTED
02005830 <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
2005830: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
2005834: a2 07 bf f8 add %fp, -8, %l1 <== NOT EXECUTED
if (c != EOF) {
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
rtems_termios_enqueue_raw_characters (
2005838: a0 07 bf ff add %fp, -1, %l0 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
200583c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
2005840: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2005844: 94 10 20 00 clr %o2 <== NOT EXECUTED
2005848: 40 00 01 1f call 2005cc4 <rtems_event_receive> <== NOT EXECUTED
200584c: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
TERMIOS_RX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {
2005850: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2005854: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
2005858: 22 80 00 07 be,a 2005874 <rtems_termios_rxdaemon+0x44> <== NOT EXECUTED
200585c: c2 06 20 a0 ld [ %i0 + 0xa0 ], %g1 <== NOT EXECUTED
tty->rxTaskId = 0;
2005860: c0 26 20 c4 clr [ %i0 + 0xc4 ] <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
2005864: 40 00 03 78 call 2006644 <rtems_task_delete> <== NOT EXECUTED
2005868: 90 10 20 00 clr %o0 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
200586c: 10 bf ff f5 b 2005840 <rtems_termios_rxdaemon+0x10> <== NOT EXECUTED
2005870: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
}
else {
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
2005874: 9f c0 40 00 call %g1 <== NOT EXECUTED
2005878: d0 06 20 10 ld [ %i0 + 0x10 ], %o0 <== NOT EXECUTED
if (c != EOF) {
200587c: 80 a2 3f ff cmp %o0, -1 <== NOT EXECUTED
2005880: 02 bf ff ef be 200583c <rtems_termios_rxdaemon+0xc> <== NOT EXECUTED
2005884: 92 10 00 10 mov %l0, %o1 <== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
2005888: d0 2f bf ff stb %o0, [ %fp + -1 ] <== NOT EXECUTED
rtems_termios_enqueue_raw_characters (
200588c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2005890: 7f ff f9 54 call 2003de0 <rtems_termios_enqueue_raw_characters><== NOT EXECUTED
2005894: 94 10 20 01 mov 1, %o2 <== NOT EXECUTED
char c_buf;
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_RX_PROC_EVENT |
2005898: 10 bf ff ea b 2005840 <rtems_termios_rxdaemon+0x10> <== NOT EXECUTED
200589c: 96 10 00 11 mov %l1, %o3 <== NOT EXECUTED
02003b68 <rtems_termios_rxirq_occured>:
void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty)
{
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
2003b68: d0 02 20 c4 ld [ %o0 + 0xc4 ], %o0 <== NOT EXECUTED
2003b6c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
2003b70: 82 13 c0 00 mov %o7, %g1 <== NOT EXECUTED
2003b74: 40 00 08 b6 call 2005e4c <rtems_event_send> <== NOT EXECUTED
2003b78: 9e 10 40 00 mov %g1, %o7 <== NOT EXECUTED
020057b4 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
20057b4: 9d e3 bf 98 save %sp, -104, %sp <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
20057b8: 23 00 80 77 sethi %hi(0x201dc00), %l1 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
20057bc: a0 07 bf fc add %fp, -4, %l0 <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
20057c0: a2 14 62 30 or %l1, 0x230, %l1 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
20057c4: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
20057c8: 94 10 20 00 clr %o2 <== NOT EXECUTED
20057cc: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
20057d0: 40 00 01 3d call 2005cc4 <rtems_event_receive> <== NOT EXECUTED
20057d4: 90 10 20 03 mov 3, %o0 <== NOT EXECUTED
TERMIOS_TX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event);
if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
20057d8: c2 07 bf fc ld [ %fp + -4 ], %g1 <== NOT EXECUTED
20057dc: 80 88 60 01 btst 1, %g1 <== NOT EXECUTED
20057e0: 02 80 00 07 be 20057fc <rtems_termios_txdaemon+0x48> <== NOT EXECUTED
20057e4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
tty->txTaskId = 0;
20057e8: c0 26 20 c8 clr [ %i0 + 0xc8 ] <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
20057ec: 40 00 03 96 call 2006644 <rtems_task_delete> <== NOT EXECUTED
20057f0: 90 10 20 00 clr %o0 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
20057f4: 10 bf ff f5 b 20057c8 <rtems_termios_txdaemon+0x14> <== NOT EXECUTED
20057f8: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
}
else {
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
20057fc: c2 06 20 cc ld [ %i0 + 0xcc ], %g1 <== NOT EXECUTED
2005800: 83 28 60 05 sll %g1, 5, %g1 <== NOT EXECUTED
2005804: 82 04 40 01 add %l1, %g1, %g1 <== NOT EXECUTED
2005808: c2 00 60 14 ld [ %g1 + 0x14 ], %g1 <== NOT EXECUTED
200580c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2005810: 02 80 00 04 be 2005820 <rtems_termios_txdaemon+0x6c> <== NOT EXECUTED
2005814: 01 00 00 00 nop <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
2005818: 9f c0 40 00 call %g1 <== NOT EXECUTED
200581c: 01 00 00 00 nop <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
2005820: 7f ff f8 d8 call 2003b80 <rtems_termios_refill_transmitter><== NOT EXECUTED
2005824: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive((TERMIOS_TX_START_EVENT |
2005828: 10 bf ff e8 b 20057c8 <rtems_termios_txdaemon+0x14> <== NOT EXECUTED
200582c: 92 10 20 02 mov 2, %o1 <== NOT EXECUTED
02004898 <rtems_termios_write>:
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
2004898: 9d e3 bf a0 save %sp, -96, %sp
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
200489c: c2 06 00 00 ld [ %i0 ], %g1
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
20048a0: a2 10 00 18 mov %i0, %l1
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
20048a4: e0 00 60 38 ld [ %g1 + 0x38 ], %l0
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
20048a8: 92 10 20 00 clr %o1
20048ac: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
20048b0: 40 00 06 a5 call 2006344 <rtems_semaphore_obtain>
20048b4: 94 10 20 00 clr %o2
if (sc != RTEMS_SUCCESSFUL)
20048b8: b0 92 20 00 orcc %o0, 0, %i0
20048bc: 12 80 00 0f bne 20048f8 <rtems_termios_write+0x60> <== NEVER TAKEN
20048c0: 03 00 80 77 sethi %hi(0x201dc00), %g1
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
20048c4: c4 04 20 cc ld [ %l0 + 0xcc ], %g2
20048c8: 85 28 a0 05 sll %g2, 5, %g2
20048cc: 82 10 62 30 or %g1, 0x230, %g1
20048d0: 82 00 40 02 add %g1, %g2, %g1
20048d4: c2 00 60 0c ld [ %g1 + 0xc ], %g1
20048d8: 80 a0 60 00 cmp %g1, 0
20048dc: 02 80 00 09 be 2004900 <rtems_termios_write+0x68> <== ALWAYS TAKEN
20048e0: 92 10 00 11 mov %l1, %o1
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
20048e4: 9f c0 40 00 call %g1 <== NOT EXECUTED
20048e8: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
20048ec: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
20048f0: 40 00 06 dc call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
20048f4: d0 04 20 18 ld [ %l0 + 0x18 ], %o0 <== NOT EXECUTED
return sc;
20048f8: 81 c7 e0 08 ret <== NOT EXECUTED
20048fc: 81 e8 00 00 restore <== NOT EXECUTED
}
if (tty->termios.c_oflag & OPOST) {
2004900: c2 04 20 34 ld [ %l0 + 0x34 ], %g1
2004904: d2 04 60 14 ld [ %l1 + 0x14 ], %o1
2004908: 80 88 60 01 btst 1, %g1
200490c: 02 80 00 0e be 2004944 <rtems_termios_write+0xac> <== NEVER TAKEN
2004910: d0 04 60 10 ld [ %l1 + 0x10 ], %o0
uint32_t count = args->count;
2004914: a6 10 00 09 mov %o1, %l3
char *buffer = args->buffer;
while (count--)
2004918: 10 80 00 06 b 2004930 <rtems_termios_write+0x98>
200491c: a4 10 00 08 mov %o0, %l2
oproc (*buffer++, tty);
2004920: a6 04 ff ff add %l3, -1, %l3
2004924: a4 04 a0 01 inc %l2
2004928: 7f ff fe 3f call 2004224 <oproc>
200492c: 92 10 00 10 mov %l0, %o1
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
2004930: 80 a4 e0 00 cmp %l3, 0
2004934: 32 bf ff fb bne,a 2004920 <rtems_termios_write+0x88>
2004938: d0 0c 80 00 ldub [ %l2 ], %o0
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
args->bytes_moved = args->count;
200493c: 10 80 00 05 b 2004950 <rtems_termios_write+0xb8>
2004940: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
while (count--)
oproc (*buffer++, tty);
args->bytes_moved = args->count;
}
else {
rtems_termios_puts (args->buffer, args->count, tty);
2004944: 7f ff fd ee call 20040fc <rtems_termios_puts> <== NOT EXECUTED
2004948: 94 10 00 10 mov %l0, %o2 <== NOT EXECUTED
args->bytes_moved = args->count;
200494c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
2004950: c2 24 60 1c st %g1, [ %l1 + 0x1c ]
}
rtems_semaphore_release (tty->osem);
2004954: 40 00 06 c3 call 2006460 <rtems_semaphore_release>
2004958: d0 04 20 18 ld [ %l0 + 0x18 ], %o0
return sc;
}
200495c: 81 c7 e0 08 ret
2004960: 81 e8 00 00 restore
020155fc <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
20155fc: 9d e3 bf 98 save %sp, -104, %sp
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
2015600: 11 00 80 fe sethi %hi(0x203f800), %o0
2015604: 92 10 00 18 mov %i0, %o1
2015608: 90 12 21 04 or %o0, 0x104, %o0
201560c: 40 00 0b 7c call 20183fc <_Objects_Get>
2015610: 94 07 bf fc add %fp, -4, %o2
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
2015614: c2 07 bf fc ld [ %fp + -4 ], %g1
2015618: 80 a0 60 00 cmp %g1, 0
201561c: 12 80 00 0a bne 2015644 <rtems_timer_cancel+0x48>
2015620: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
2015624: c2 02 20 38 ld [ %o0 + 0x38 ], %g1
2015628: 80 a0 60 04 cmp %g1, 4
201562c: 02 80 00 04 be 201563c <rtems_timer_cancel+0x40> <== NEVER TAKEN
2015630: 01 00 00 00 nop
(void) _Watchdog_Remove( &the_timer->Ticker );
2015634: 40 00 14 4c call 201a764 <_Watchdog_Remove>
2015638: 90 02 20 10 add %o0, 0x10, %o0
_Thread_Enable_dispatch();
201563c: 40 00 0e 1e call 2018eb4 <_Thread_Enable_dispatch>
2015640: b0 10 20 00 clr %i0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
2015644: 81 c7 e0 08 ret
2015648: 81 e8 00 00 restore
02015aec <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
2015aec: 9d e3 bf 98 save %sp, -104, %sp
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
2015af0: 03 00 80 fe sethi %hi(0x203f800), %g1
2015af4: e0 00 61 44 ld [ %g1 + 0x144 ], %l0 ! 203f944 <_Timer_server>
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
2015af8: a2 10 00 18 mov %i0, %l1
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
2015afc: 80 a4 20 00 cmp %l0, 0
2015b00: 02 80 00 32 be 2015bc8 <rtems_timer_server_fire_when+0xdc>
2015b04: b0 10 20 0e mov 0xe, %i0
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
2015b08: 03 00 80 fb sethi %hi(0x203ec00), %g1
2015b0c: c2 08 63 64 ldub [ %g1 + 0x364 ], %g1 ! 203ef64 <_TOD_Is_set>
2015b10: 80 a0 60 00 cmp %g1, 0
2015b14: 02 80 00 2d be 2015bc8 <rtems_timer_server_fire_when+0xdc><== NEVER TAKEN
2015b18: b0 10 20 0b mov 0xb, %i0
return RTEMS_NOT_DEFINED;
if ( !routine )
2015b1c: 80 a6 a0 00 cmp %i2, 0
2015b20: 02 80 00 2a be 2015bc8 <rtems_timer_server_fire_when+0xdc>
2015b24: b0 10 20 09 mov 9, %i0
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
2015b28: 7f ff f4 0e call 2012b60 <_TOD_Validate>
2015b2c: 90 10 00 19 mov %i1, %o0
2015b30: 80 8a 20 ff btst 0xff, %o0
2015b34: 22 80 00 25 be,a 2015bc8 <rtems_timer_server_fire_when+0xdc>
2015b38: b0 10 20 14 mov 0x14, %i0
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
2015b3c: 7f ff f3 d5 call 2012a90 <_TOD_To_seconds>
2015b40: 90 10 00 19 mov %i1, %o0
if ( seconds <= _TOD_Seconds_since_epoch() )
2015b44: 27 00 80 fb sethi %hi(0x203ec00), %l3
2015b48: c2 04 e3 e4 ld [ %l3 + 0x3e4 ], %g1 ! 203efe4 <_TOD_Now>
2015b4c: 80 a2 00 01 cmp %o0, %g1
2015b50: 08 80 00 20 bleu 2015bd0 <rtems_timer_server_fire_when+0xe4>
2015b54: a4 10 00 08 mov %o0, %l2
2015b58: 11 00 80 fe sethi %hi(0x203f800), %o0
2015b5c: 92 10 00 11 mov %l1, %o1
2015b60: 90 12 21 04 or %o0, 0x104, %o0
2015b64: 40 00 0a 26 call 20183fc <_Objects_Get>
2015b68: 94 07 bf fc add %fp, -4, %o2
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
2015b6c: c2 07 bf fc ld [ %fp + -4 ], %g1
2015b70: b2 10 00 08 mov %o0, %i1
2015b74: 80 a0 60 00 cmp %g1, 0
2015b78: 12 80 00 14 bne 2015bc8 <rtems_timer_server_fire_when+0xdc>
2015b7c: b0 10 20 04 mov 4, %i0
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
2015b80: 40 00 12 f9 call 201a764 <_Watchdog_Remove>
2015b84: 90 02 20 10 add %o0, 0x10, %o0
the_watchdog->routine = routine;
the_watchdog->id = id;
2015b88: e2 26 60 30 st %l1, [ %i1 + 0x30 ]
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
2015b8c: c4 04 e3 e4 ld [ %l3 + 0x3e4 ], %g2
(*timer_server->schedule_operation)( timer_server, the_timer );
2015b90: c2 04 20 04 ld [ %l0 + 4 ], %g1
2015b94: 90 10 00 10 mov %l0, %o0
2015b98: 92 10 00 19 mov %i1, %o1
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
2015b9c: a4 24 80 02 sub %l2, %g2, %l2
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
2015ba0: 84 10 20 03 mov 3, %g2
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2015ba4: f4 26 60 2c st %i2, [ %i1 + 0x2c ]
2015ba8: c4 26 60 38 st %g2, [ %i1 + 0x38 ]
the_watchdog->id = id;
the_watchdog->user_data = user_data;
2015bac: f6 26 60 34 st %i3, [ %i1 + 0x34 ]
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
2015bb0: e4 26 60 1c st %l2, [ %i1 + 0x1c ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2015bb4: c0 26 60 18 clr [ %i1 + 0x18 ]
(*timer_server->schedule_operation)( timer_server, the_timer );
2015bb8: 9f c0 40 00 call %g1
2015bbc: b0 10 20 00 clr %i0
_Thread_Enable_dispatch();
2015bc0: 40 00 0c bd call 2018eb4 <_Thread_Enable_dispatch>
2015bc4: 01 00 00 00 nop
return RTEMS_SUCCESSFUL;
2015bc8: 81 c7 e0 08 ret
2015bcc: 81 e8 00 00 restore
2015bd0: b0 10 20 14 mov 0x14, %i0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
2015bd4: 81 c7 e0 08 ret
2015bd8: 81 e8 00 00 restore
02007740 <rtems_verror>:
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
2007740: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC)
2007744: 2b 08 00 00 sethi %hi(0x20000000), %l5 <== NOT EXECUTED
2007748: aa 8e 00 15 andcc %i0, %l5, %l5 <== NOT EXECUTED
200774c: 02 80 00 11 be 2007790 <rtems_verror+0x50> <== NOT EXECUTED
2007750: a0 10 00 18 mov %i0, %l0 <== NOT EXECUTED
{
if (rtems_panic_in_progress++)
2007754: 05 00 80 9d sethi %hi(0x2027400), %g2 <== NOT EXECUTED
2007758: c2 00 a3 6c ld [ %g2 + 0x36c ], %g1 ! 202776c <rtems_panic_in_progress><== NOT EXECUTED
200775c: 86 00 60 01 add %g1, 1, %g3 <== NOT EXECUTED
2007760: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007764: 02 80 00 06 be 200777c <rtems_verror+0x3c> <== NOT EXECUTED
2007768: c6 20 a3 6c st %g3, [ %g2 + 0x36c ] <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
200776c: 03 00 80 9e sethi %hi(0x2027800), %g1 <== NOT EXECUTED
2007770: c4 00 61 40 ld [ %g1 + 0x140 ], %g2 ! 2027940 <_Thread_Dispatch_disable_level><== NOT EXECUTED
2007774: 84 00 a0 01 inc %g2 <== NOT EXECUTED
2007778: c4 20 61 40 st %g2, [ %g1 + 0x140 ] <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
200777c: 03 00 80 9d sethi %hi(0x2027400), %g1 <== NOT EXECUTED
2007780: c2 00 63 6c ld [ %g1 + 0x36c ], %g1 ! 202776c <rtems_panic_in_progress><== NOT EXECUTED
2007784: 80 a0 60 02 cmp %g1, 2 <== NOT EXECUTED
2007788: 34 80 00 5a bg,a 20078f0 <rtems_verror+0x1b0> <== NOT EXECUTED
200778c: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
2007790: 03 00 80 9b sethi %hi(0x2026c00), %g1 <== NOT EXECUTED
2007794: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 2026ee0 <_impure_ptr><== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
2007798: 27 1c 00 00 sethi %hi(0x70000000), %l3 <== NOT EXECUTED
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
200779c: d0 00 60 08 ld [ %g1 + 8 ], %o0 <== NOT EXECUTED
20077a0: 40 00 3b 47 call 20164bc <fflush> <== NOT EXECUTED
20077a4: a2 10 20 00 clr %l1 <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
20077a8: 03 10 00 00 sethi %hi(0x40000000), %g1 <== NOT EXECUTED
20077ac: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED
20077b0: 02 80 00 05 be 20077c4 <rtems_verror+0x84> <== NOT EXECUTED
20077b4: a6 2c 00 13 andn %l0, %l3, %l3 <== NOT EXECUTED
local_errno = errno;
20077b8: 40 00 3a 37 call 2016094 <__errno> <== NOT EXECUTED
20077bc: 01 00 00 00 nop <== NOT EXECUTED
20077c0: e2 02 00 00 ld [ %o0 ], %l1 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if (_System_state_Is_multiprocessing)
fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
20077c4: 29 00 80 9b sethi %hi(0x2026c00), %l4 <== NOT EXECUTED
20077c8: c2 05 22 e0 ld [ %l4 + 0x2e0 ], %g1 ! 2026ee0 <_impure_ptr><== NOT EXECUTED
20077cc: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
20077d0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
20077d4: 40 00 52 c1 call 201c2d8 <vfprintf> <== NOT EXECUTED
20077d8: 94 10 00 1a mov %i2, %o2 <== NOT EXECUTED
if (status)
20077dc: 80 a4 e0 00 cmp %l3, 0 <== NOT EXECUTED
20077e0: 02 80 00 0c be 2007810 <rtems_verror+0xd0> <== NOT EXECUTED
20077e4: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status));
20077e8: c2 05 22 e0 ld [ %l4 + 0x2e0 ], %g1 <== NOT EXECUTED
20077ec: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
20077f0: 7f ff ff cd call 2007724 <rtems_status_text> <== NOT EXECUTED
20077f4: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED
20077f8: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
20077fc: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2007800: 92 12 60 b8 or %o1, 0xb8, %o1 <== NOT EXECUTED
2007804: 40 00 3c 02 call 201680c <fprintf> <== NOT EXECUTED
2007808: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
200780c: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
if (local_errno)
2007810: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2007814: 22 80 00 1c be,a 2007884 <rtems_verror+0x144> <== NOT EXECUTED
2007818: 27 00 80 9b sethi %hi(0x2026c00), %l3 <== NOT EXECUTED
{
if ((local_errno > 0) && *strerror(local_errno))
200781c: 80 a4 60 00 cmp %l1, 0 <== NOT EXECUTED
2007820: 04 80 00 11 ble 2007864 <rtems_verror+0x124> <== NOT EXECUTED
2007824: 03 00 80 9b sethi %hi(0x2026c00), %g1 <== NOT EXECUTED
2007828: 40 00 3f 4c call 2017558 <strerror> <== NOT EXECUTED
200782c: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2007830: c2 4a 00 00 ldsb [ %o0 ], %g1 <== NOT EXECUTED
2007834: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2007838: 02 80 00 0b be 2007864 <rtems_verror+0x124> <== NOT EXECUTED
200783c: 03 00 80 9b sethi %hi(0x2026c00), %g1 <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
2007840: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 ! 2026ee0 <_impure_ptr><== NOT EXECUTED
2007844: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
2007848: 40 00 3f 44 call 2017558 <strerror> <== NOT EXECUTED
200784c: e6 00 60 0c ld [ %g1 + 0xc ], %l3 <== NOT EXECUTED
2007850: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
2007854: 94 10 00 08 mov %o0, %o2 <== NOT EXECUTED
2007858: 92 12 60 c8 or %o1, 0xc8, %o1 <== NOT EXECUTED
200785c: 10 80 00 07 b 2007878 <rtems_verror+0x138> <== NOT EXECUTED
2007860: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
2007864: c2 00 62 e0 ld [ %g1 + 0x2e0 ], %g1 <== NOT EXECUTED
2007868: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
200786c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007870: 92 12 60 d8 or %o1, 0xd8, %o1 <== NOT EXECUTED
2007874: 94 10 00 11 mov %l1, %o2 <== NOT EXECUTED
2007878: 40 00 3b e5 call 201680c <fprintf> <== NOT EXECUTED
200787c: 27 00 80 9b sethi %hi(0x2026c00), %l3 <== NOT EXECUTED
2007880: a4 04 80 08 add %l2, %o0, %l2 <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
2007884: c2 04 e2 e0 ld [ %l3 + 0x2e0 ], %g1 <== NOT EXECUTED
2007888: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
200788c: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
2007890: 40 00 3b df call 201680c <fprintf> <== NOT EXECUTED
2007894: 92 12 60 f0 or %o1, 0xf0, %o1 <== NOT EXECUTED
(void) fflush(stderr);
2007898: c2 04 e2 e0 ld [ %l3 + 0x2e0 ], %g1 <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
}
chars_written += fprintf(stderr, "\n");
200789c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
(void) fflush(stderr);
20078a0: d0 00 60 0c ld [ %g1 + 0xc ], %o0 <== NOT EXECUTED
20078a4: 40 00 3b 06 call 20164bc <fflush> <== NOT EXECUTED
20078a8: b0 06 00 12 add %i0, %l2, %i0 <== NOT EXECUTED
if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT))
20078ac: 03 0c 00 00 sethi %hi(0x30000000), %g1 <== NOT EXECUTED
20078b0: 80 8c 00 01 btst %l0, %g1 <== NOT EXECUTED
20078b4: 02 80 00 0f be 20078f0 <rtems_verror+0x1b0> <== NOT EXECUTED
20078b8: 80 a5 60 00 cmp %l5, 0 <== NOT EXECUTED
{
if (error_flag & RTEMS_ERROR_PANIC)
20078bc: 22 80 00 08 be,a 20078dc <rtems_verror+0x19c> <== NOT EXECUTED
20078c0: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
{
rtems_error(0, "fatal error, exiting");
20078c4: 13 00 80 93 sethi %hi(0x2024c00), %o1 <== NOT EXECUTED
20078c8: 90 10 20 00 clr %o0 <== NOT EXECUTED
20078cc: 40 00 00 18 call 200792c <rtems_error> <== NOT EXECUTED
20078d0: 92 12 60 f8 or %o1, 0xf8, %o1 <== NOT EXECUTED
_exit(local_errno);
20078d4: 40 00 03 0c call 2008504 <_exit> <== NOT EXECUTED
20078d8: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
}
else
{
rtems_error(0, "fatal error, aborting");
20078dc: 90 10 20 00 clr %o0 <== NOT EXECUTED
20078e0: 40 00 00 13 call 200792c <rtems_error> <== NOT EXECUTED
20078e4: 92 12 61 10 or %o1, 0x110, %o1 <== NOT EXECUTED
abort();
20078e8: 40 00 39 dd call 201605c <abort> <== NOT EXECUTED
20078ec: 01 00 00 00 nop <== NOT EXECUTED
}
}
return chars_written;
}
20078f0: 81 c7 e0 08 ret <== NOT EXECUTED
20078f4: 81 e8 00 00 restore <== NOT EXECUTED
020290c4 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
20290c4: 9d e3 bf a0 save %sp, -96, %sp
20290c8: 27 1f ff ff sethi %hi(0x7ffffc00), %l3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
20290cc: 2b 00 81 ad sethi %hi(0x206b400), %l5
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
20290d0: 29 00 81 ad sethi %hi(0x206b400), %l4
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
20290d4: a6 14 e3 ff or %l3, 0x3ff, %l3
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
20290d8: aa 15 61 48 or %l5, 0x148, %l5
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
20290dc: a8 15 21 3c or %l4, 0x13c, %l4
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
20290e0: a2 10 20 00 clr %l1
20290e4: a0 10 20 00 clr %l0
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
20290e8: c2 06 20 04 ld [ %i0 + 4 ], %g1
20290ec: 82 00 7f ff add %g1, -1, %g1
20290f0: 80 a0 60 00 cmp %g1, 0
20290f4: 16 80 00 07 bge 2029110 <scanInt+0x4c> <== ALWAYS TAKEN
20290f8: c2 26 20 04 st %g1, [ %i0 + 4 ]
20290fc: d0 05 40 00 ld [ %l5 ], %o0 <== NOT EXECUTED
2029100: 40 00 82 b0 call 2049bc0 <__srget_r> <== NOT EXECUTED
2029104: 92 10 00 18 mov %i0, %o1 <== NOT EXECUTED
2029108: 10 80 00 06 b 2029120 <scanInt+0x5c> <== NOT EXECUTED
202910c: a4 10 00 08 mov %o0, %l2 <== NOT EXECUTED
2029110: c2 06 00 00 ld [ %i0 ], %g1
2029114: 84 00 60 01 add %g1, 1, %g2
2029118: e4 08 40 00 ldub [ %g1 ], %l2
202911c: c4 26 00 00 st %g2, [ %i0 ]
if (c == ':')
2029120: 80 a4 a0 3a cmp %l2, 0x3a
2029124: 02 80 00 22 be 20291ac <scanInt+0xe8>
2029128: 80 a4 60 00 cmp %l1, 0
break;
if (sign == 0) {
202912c: 32 80 00 09 bne,a 2029150 <scanInt+0x8c> <== NEVER TAKEN
2029130: c2 05 00 00 ld [ %l4 ], %g1 <== NOT EXECUTED
if (c == '-') {
2029134: 80 a4 a0 2d cmp %l2, 0x2d
2029138: 12 80 00 05 bne 202914c <scanInt+0x88> <== ALWAYS TAKEN
202913c: a2 10 20 01 mov 1, %l1
sign = -1;
limit++;
2029140: a6 04 e0 01 inc %l3 <== NOT EXECUTED
continue;
2029144: 10 bf ff e9 b 20290e8 <scanInt+0x24> <== NOT EXECUTED
2029148: a2 10 3f ff mov -1, %l1 <== NOT EXECUTED
}
sign = 1;
}
if (!isdigit(c))
202914c: c2 05 00 00 ld [ %l4 ], %g1
2029150: 82 00 40 12 add %g1, %l2, %g1
2029154: c2 08 60 01 ldub [ %g1 + 1 ], %g1
2029158: 80 88 60 04 btst 4, %g1
202915c: 02 80 00 1c be 20291cc <scanInt+0x108> <== NEVER TAKEN
2029160: 90 10 00 13 mov %l3, %o0
return 0;
d = c - '0';
if ((i > (limit / 10))
2029164: 40 00 cd 8d call 205c798 <.udiv>
2029168: 92 10 20 0a mov 0xa, %o1
202916c: 80 a4 00 08 cmp %l0, %o0
2029170: 18 80 00 17 bgu 20291cc <scanInt+0x108> <== NEVER TAKEN
2029174: 01 00 00 00 nop
2029178: 12 80 00 08 bne 2029198 <scanInt+0xd4> <== ALWAYS TAKEN
202917c: a4 04 bf d0 add %l2, -48, %l2
2029180: 90 10 00 13 mov %l3, %o0 <== NOT EXECUTED
2029184: 40 00 ce 31 call 205ca48 <.urem> <== NOT EXECUTED
2029188: 92 10 20 0a mov 0xa, %o1 <== NOT EXECUTED
202918c: 80 a4 80 08 cmp %l2, %o0 <== NOT EXECUTED
2029190: 18 80 00 0f bgu 20291cc <scanInt+0x108> <== NOT EXECUTED
2029194: 01 00 00 00 nop <== NOT EXECUTED
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
i = i * 10 + d;
2029198: 83 2c 20 03 sll %l0, 3, %g1
202919c: a1 2c 20 01 sll %l0, 1, %l0
20291a0: a0 04 00 01 add %l0, %g1, %l0
20291a4: 10 bf ff d1 b 20290e8 <scanInt+0x24>
20291a8: a0 04 80 10 add %l2, %l0, %l0
}
if (sign == 0)
20291ac: 02 80 00 08 be 20291cc <scanInt+0x108> <== NEVER TAKEN
20291b0: 90 10 00 11 mov %l1, %o0
return 0;
*val = i * sign;
20291b4: 92 10 00 10 mov %l0, %o1
20291b8: 7f ff 66 10 call 20029f8 <.umul>
20291bc: b0 10 20 01 mov 1, %i0
20291c0: d0 26 40 00 st %o0, [ %i1 ]
return 1;
20291c4: 81 c7 e0 08 ret
20291c8: 81 e8 00 00 restore
}
20291cc: 81 c7 e0 08 ret <== NOT EXECUTED
20291d0: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
020291d4 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
20291d4: 9d e3 bf a0 save %sp, -96, %sp
int c;
*name = *bufp;
20291d8: c2 06 80 00 ld [ %i2 ], %g1
for (;;) {
c = getc(fp);
20291dc: 21 00 81 ad sethi %hi(0x206b400), %l0
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
int c;
*name = *bufp;
20291e0: c2 26 40 00 st %g1, [ %i1 ]
for (;;) {
c = getc(fp);
20291e4: a0 14 21 48 or %l0, 0x148, %l0
20291e8: c2 06 20 04 ld [ %i0 + 4 ], %g1
20291ec: 82 00 7f ff add %g1, -1, %g1
20291f0: 80 a0 60 00 cmp %g1, 0
20291f4: 16 80 00 07 bge 2029210 <scanString+0x3c>
20291f8: c2 26 20 04 st %g1, [ %i0 + 4 ]
20291fc: d0 04 00 00 ld [ %l0 ], %o0
2029200: 40 00 82 70 call 2049bc0 <__srget_r>
2029204: 92 10 00 18 mov %i0, %o1
if (c == ':') {
2029208: 10 80 00 07 b 2029224 <scanString+0x50>
202920c: 80 a2 20 3a cmp %o0, 0x3a
{
int c;
*name = *bufp;
for (;;) {
c = getc(fp);
2029210: c2 06 00 00 ld [ %i0 ], %g1
2029214: 84 00 60 01 add %g1, 1, %g2
2029218: d0 08 40 00 ldub [ %g1 ], %o0
202921c: c4 26 00 00 st %g2, [ %i0 ]
if (c == ':') {
2029220: 80 a2 20 3a cmp %o0, 0x3a
2029224: 12 80 00 07 bne 2029240 <scanString+0x6c>
2029228: 80 a2 20 0a cmp %o0, 0xa
if (nlFlag)
202922c: 80 a7 20 00 cmp %i4, 0
2029230: 22 80 00 1a be,a 2029298 <scanString+0xc4> <== ALWAYS TAKEN
2029234: c2 06 80 00 ld [ %i2 ], %g1
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
2029238: 81 c7 e0 08 ret <== NOT EXECUTED
202923c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (c == ':') {
if (nlFlag)
return 0;
break;
}
if (c == '\n') {
2029240: 12 80 00 07 bne 202925c <scanString+0x88>
2029244: 80 a2 3f ff cmp %o0, -1
if (!nlFlag)
2029248: 80 a7 20 00 cmp %i4, 0
202924c: 32 80 00 13 bne,a 2029298 <scanString+0xc4> <== ALWAYS TAKEN
2029250: c2 06 80 00 ld [ %i2 ], %g1
--(*nleft);
}
**bufp = '\0';
++(*bufp);
--(*nleft);
return 1;
2029254: 81 c7 e0 08 ret <== NOT EXECUTED
2029258: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
if (c == '\n') {
if (!nlFlag)
return 0;
break;
}
if (c == EOF)
202925c: 22 80 00 17 be,a 20292b8 <scanString+0xe4> <== NEVER TAKEN
2029260: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
if (*nleft < 2)
2029264: c2 06 c0 00 ld [ %i3 ], %g1
2029268: 80 a0 60 01 cmp %g1, 1
202926c: 28 80 00 13 bleu,a 20292b8 <scanString+0xe4> <== NEVER TAKEN
2029270: b0 10 20 00 clr %i0 <== NOT EXECUTED
return 0;
**bufp = c;
2029274: c2 06 80 00 ld [ %i2 ], %g1
2029278: d0 28 40 00 stb %o0, [ %g1 ]
++(*bufp);
202927c: c4 06 80 00 ld [ %i2 ], %g2
--(*nleft);
2029280: c2 06 c0 00 ld [ %i3 ], %g1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
2029284: 84 00 a0 01 inc %g2
--(*nleft);
2029288: 82 00 7f ff add %g1, -1, %g1
if (c == EOF)
return 0;
if (*nleft < 2)
return 0;
**bufp = c;
++(*bufp);
202928c: c4 26 80 00 st %g2, [ %i2 ]
--(*nleft);
}
2029290: 10 bf ff d6 b 20291e8 <scanString+0x14>
2029294: c2 26 c0 00 st %g1, [ %i3 ]
**bufp = '\0';
2029298: c0 28 40 00 clrb [ %g1 ]
++(*bufp);
202929c: c4 06 80 00 ld [ %i2 ], %g2
--(*nleft);
20292a0: c2 06 c0 00 ld [ %i3 ], %g1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
20292a4: 84 00 a0 01 inc %g2
--(*nleft);
20292a8: 82 00 7f ff add %g1, -1, %g1
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
++(*bufp);
20292ac: c4 26 80 00 st %g2, [ %i2 ]
--(*nleft);
20292b0: c2 26 c0 00 st %g1, [ %i3 ]
20292b4: b0 10 20 01 mov 1, %i0
return 1;
}
20292b8: 81 c7 e0 08 ret
20292bc: 81 e8 00 00 restore
020292c0 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
20292c0: 9d e3 bf 98 save %sp, -104, %sp
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
20292c4: 98 10 20 00 clr %o4
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
20292c8: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
20292cc: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
20292d0: a2 07 a0 4c add %fp, 0x4c, %l1
20292d4: a0 07 a0 50 add %fp, 0x50, %l0
20292d8: 90 10 00 18 mov %i0, %o0
20292dc: 92 10 00 19 mov %i1, %o1
20292e0: 94 10 00 11 mov %l1, %o2
20292e4: 7f ff ff bc call 20291d4 <scanString>
20292e8: 96 10 00 10 mov %l0, %o3
20292ec: 80 a2 20 00 cmp %o0, 0
20292f0: 02 80 00 41 be 20293f4 <scangr+0x134> <== NEVER TAKEN
20292f4: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
20292f8: 92 06 60 04 add %i1, 4, %o1
20292fc: 94 10 00 11 mov %l1, %o2
2029300: 96 10 00 10 mov %l0, %o3
2029304: 7f ff ff b4 call 20291d4 <scanString>
2029308: 98 10 20 00 clr %o4
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
202930c: 80 a2 20 00 cmp %o0, 0
2029310: 02 80 00 39 be 20293f4 <scangr+0x134> <== NEVER TAKEN
2029314: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
2029318: 7f ff ff 6b call 20290c4 <scanInt>
202931c: 92 07 bf fc add %fp, -4, %o1
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2029320: 80 a2 20 00 cmp %o0, 0
2029324: 02 80 00 34 be 20293f4 <scangr+0x134> <== NEVER TAKEN
2029328: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
202932c: 94 10 00 11 mov %l1, %o2
2029330: 96 10 00 10 mov %l0, %o3
2029334: 92 07 bf f8 add %fp, -8, %o1
2029338: 7f ff ff a7 call 20291d4 <scanString>
202933c: 98 10 20 01 mov 1, %o4
{
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
2029340: 80 a2 20 00 cmp %o0, 0
2029344: 02 80 00 2c be 20293f4 <scangr+0x134> <== NEVER TAKEN
2029348: c2 07 bf fc ld [ %fp + -4 ], %g1
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202934c: c6 07 bf f8 ld [ %fp + -8 ], %g3
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
return 0;
grp->gr_gid = grgid;
2029350: c2 36 60 08 sth %g1, [ %i1 + 8 ]
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
2029354: 84 10 00 03 mov %g3, %g2
2029358: 10 80 00 05 b 202936c <scangr+0xac>
202935c: 82 10 20 01 mov 1, %g1
if(*cp == ',')
memcount++;
2029360: 88 19 20 2c xor %g4, 0x2c, %g4
2029364: 80 a0 00 04 cmp %g0, %g4
2029368: 82 60 7f ff subx %g1, -1, %g1
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
202936c: c8 48 80 00 ldsb [ %g2 ], %g4
2029370: 80 a1 20 00 cmp %g4, 0
2029374: 12 bf ff fb bne 2029360 <scangr+0xa0>
2029378: 84 00 a0 01 inc %g2
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
202937c: c4 07 a0 50 ld [ %fp + 0x50 ], %g2
2029380: 83 28 60 02 sll %g1, 2, %g1
2029384: 82 00 60 13 add %g1, 0x13, %g1
2029388: 80 a0 80 01 cmp %g2, %g1
202938c: 0a 80 00 1a bcs 20293f4 <scangr+0x134> <== NEVER TAKEN
2029390: c2 07 a0 4c ld [ %fp + 0x4c ], %g1
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
2029394: 84 10 20 01 mov 1, %g2
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
2029398: 82 00 60 0f add %g1, 0xf, %g1
202939c: 82 08 7f f0 and %g1, -16, %g1
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
20293a0: c6 20 40 00 st %g3, [ %g1 ]
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
20293a4: c2 26 60 0c st %g1, [ %i1 + 0xc ]
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
20293a8: 10 80 00 09 b 20293cc <scangr+0x10c>
20293ac: c2 07 bf f8 ld [ %fp + -8 ], %g1
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
if(*cp == ',') {
20293b0: 32 80 00 08 bne,a 20293d0 <scangr+0x110> <== ALWAYS TAKEN
20293b4: 82 00 60 01 inc %g1
*cp = '\0';
20293b8: c0 28 7f ff clrb [ %g1 + -1 ] <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
20293bc: c8 06 60 0c ld [ %i1 + 0xc ], %g4 <== NOT EXECUTED
20293c0: 87 28 a0 02 sll %g2, 2, %g3 <== NOT EXECUTED
20293c4: 84 00 a0 01 inc %g2 <== NOT EXECUTED
20293c8: c2 21 00 03 st %g1, [ %g4 + %g3 ] <== NOT EXECUTED
20293cc: 82 00 60 01 inc %g1
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
20293d0: c6 48 7f ff ldsb [ %g1 + -1 ], %g3
20293d4: 80 a0 e0 00 cmp %g3, 0
20293d8: 32 bf ff f6 bne,a 20293b0 <scangr+0xf0>
20293dc: 80 a0 e0 2c cmp %g3, 0x2c
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
20293e0: c2 06 60 0c ld [ %i1 + 0xc ], %g1
20293e4: 85 28 a0 02 sll %g2, 2, %g2
20293e8: c0 20 40 02 clr [ %g1 + %g2 ]
return 1;
20293ec: 81 c7 e0 08 ret
20293f0: 91 e8 20 01 restore %g0, 1, %o0
}
20293f4: 81 c7 e0 08 ret <== NOT EXECUTED
20293f8: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02029444 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
2029444: 9d e3 bf 98 save %sp, -104, %sp
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029448: 98 10 20 00 clr %o4
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
202944c: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
2029450: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029454: a2 07 a0 4c add %fp, 0x4c, %l1
2029458: a0 07 a0 50 add %fp, 0x50, %l0
202945c: 90 10 00 18 mov %i0, %o0
2029460: 92 10 00 19 mov %i1, %o1
2029464: 94 10 00 11 mov %l1, %o2
2029468: 7f ff ff 5b call 20291d4 <scanString>
202946c: 96 10 00 10 mov %l0, %o3
2029470: 80 a2 20 00 cmp %o0, 0
2029474: 02 80 00 39 be 2029558 <scanpw+0x114> <== NEVER TAKEN
2029478: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
202947c: 92 06 60 04 add %i1, 4, %o1
2029480: 94 10 00 11 mov %l1, %o2
2029484: 96 10 00 10 mov %l0, %o3
2029488: 7f ff ff 53 call 20291d4 <scanString>
202948c: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029490: 80 a2 20 00 cmp %o0, 0
2029494: 02 80 00 31 be 2029558 <scanpw+0x114> <== NEVER TAKEN
2029498: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
202949c: 7f ff ff 0a call 20290c4 <scanInt>
20294a0: 92 07 bf fc add %fp, -4, %o1
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20294a4: 80 a2 20 00 cmp %o0, 0
20294a8: 02 80 00 2c be 2029558 <scanpw+0x114> <== NEVER TAKEN
20294ac: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
20294b0: 7f ff ff 05 call 20290c4 <scanInt>
20294b4: 92 07 bf f8 add %fp, -8, %o1
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20294b8: 80 a2 20 00 cmp %o0, 0
20294bc: 02 80 00 27 be 2029558 <scanpw+0x114> <== NEVER TAKEN
20294c0: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
20294c4: 92 06 60 0c add %i1, 0xc, %o1
20294c8: 94 10 00 11 mov %l1, %o2
20294cc: 96 10 00 10 mov %l0, %o3
20294d0: 7f ff ff 41 call 20291d4 <scanString>
20294d4: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20294d8: 80 a2 20 00 cmp %o0, 0
20294dc: 02 80 00 1f be 2029558 <scanpw+0x114> <== NEVER TAKEN
20294e0: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
20294e4: 92 06 60 10 add %i1, 0x10, %o1
20294e8: 94 10 00 11 mov %l1, %o2
20294ec: 96 10 00 10 mov %l0, %o3
20294f0: 7f ff ff 39 call 20291d4 <scanString>
20294f4: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
20294f8: 80 a2 20 00 cmp %o0, 0
20294fc: 02 80 00 17 be 2029558 <scanpw+0x114> <== NEVER TAKEN
2029500: 90 10 00 18 mov %i0, %o0
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
2029504: 92 06 60 14 add %i1, 0x14, %o1
2029508: 94 10 00 11 mov %l1, %o2
202950c: 96 10 00 10 mov %l0, %o3
2029510: 7f ff ff 31 call 20291d4 <scanString>
2029514: 98 10 20 00 clr %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029518: 80 a2 20 00 cmp %o0, 0
202951c: 02 80 00 0f be 2029558 <scanpw+0x114> <== NEVER TAKEN
2029520: 90 10 00 18 mov %i0, %o0
|| !scanInt(fp, &pwuid)
|| !scanInt(fp, &pwgid)
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
2029524: 94 10 00 11 mov %l1, %o2
2029528: 96 10 00 10 mov %l0, %o3
202952c: 92 06 60 18 add %i1, 0x18, %o1
2029530: 7f ff ff 29 call 20291d4 <scanString>
2029534: 98 10 20 01 mov 1, %o4
size_t bufsize
)
{
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
2029538: 80 a2 20 00 cmp %o0, 0
202953c: 02 80 00 07 be 2029558 <scanpw+0x114> <== NEVER TAKEN
2029540: c2 07 bf fc ld [ %fp + -4 ], %g1
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
return 0;
pwd->pw_uid = pwuid;
2029544: c2 36 60 08 sth %g1, [ %i1 + 8 ]
pwd->pw_gid = pwgid;
2029548: c2 07 bf f8 ld [ %fp + -8 ], %g1
202954c: c2 36 60 0a sth %g1, [ %i1 + 0xa ]
return 1;
2029550: 81 c7 e0 08 ret
2029554: 91 e8 20 01 restore %g0, 1, %o0
}
2029558: 81 c7 e0 08 ret <== NOT EXECUTED
202955c: 91 e8 20 00 restore %g0, 0, %o0 <== NOT EXECUTED
02006c24 <sched_get_priority_max>:
#include <rtems/posix/priority.h>
int sched_get_priority_max(
int policy
)
{
2006c24: 9d e3 bf a0 save %sp, -96, %sp
switch ( policy ) {
2006c28: 80 a6 20 04 cmp %i0, 4
2006c2c: 18 80 00 06 bgu 2006c44 <sched_get_priority_max+0x20>
2006c30: 82 10 20 01 mov 1, %g1
2006c34: b1 28 40 18 sll %g1, %i0, %i0
2006c38: 80 8e 20 17 btst 0x17, %i0
2006c3c: 12 80 00 08 bne 2006c5c <sched_get_priority_max+0x38> <== ALWAYS TAKEN
2006c40: 03 00 80 7b sethi %hi(0x201ec00), %g1
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
2006c44: 40 00 2b 27 call 20118e0 <__errno>
2006c48: b0 10 3f ff mov -1, %i0
2006c4c: 82 10 20 16 mov 0x16, %g1
2006c50: c2 22 00 00 st %g1, [ %o0 ]
2006c54: 81 c7 e0 08 ret
2006c58: 81 e8 00 00 restore
}
return POSIX_SCHEDULER_MAXIMUM_PRIORITY;
2006c5c: f0 08 60 68 ldub [ %g1 + 0x68 ], %i0
}
2006c60: 81 c7 e0 08 ret
2006c64: 91 ee 3f ff restore %i0, -1, %o0
02006c68 <sched_get_priority_min>:
#include <rtems/posix/priority.h>
int sched_get_priority_min(
int policy
)
{
2006c68: 9d e3 bf a0 save %sp, -96, %sp
switch ( policy ) {
2006c6c: 80 a6 20 04 cmp %i0, 4
2006c70: 18 80 00 06 bgu 2006c88 <sched_get_priority_min+0x20>
2006c74: 82 10 20 01 mov 1, %g1
2006c78: b1 28 40 18 sll %g1, %i0, %i0
2006c7c: 80 8e 20 17 btst 0x17, %i0
2006c80: 12 80 00 06 bne 2006c98 <sched_get_priority_min+0x30> <== ALWAYS TAKEN
2006c84: b0 10 20 01 mov 1, %i0
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
2006c88: 40 00 2b 16 call 20118e0 <__errno>
2006c8c: b0 10 3f ff mov -1, %i0
2006c90: 82 10 20 16 mov 0x16, %g1
2006c94: c2 22 00 00 st %g1, [ %o0 ]
}
return POSIX_SCHEDULER_MINIMUM_PRIORITY;
}
2006c98: 81 c7 e0 08 ret
2006c9c: 81 e8 00 00 restore
02006ca0 <sched_rr_get_interval>:
int sched_rr_get_interval(
pid_t pid,
struct timespec *interval
)
{
2006ca0: 9d e3 bf a0 save %sp, -96, %sp
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid && pid != getpid() )
2006ca4: 80 a6 20 00 cmp %i0, 0
2006ca8: 02 80 00 0b be 2006cd4 <sched_rr_get_interval+0x34> <== NEVER TAKEN
2006cac: 80 a6 60 00 cmp %i1, 0
2006cb0: 7f ff f1 c7 call 20033cc <getpid>
2006cb4: 01 00 00 00 nop
2006cb8: 80 a6 00 08 cmp %i0, %o0
2006cbc: 02 80 00 06 be 2006cd4 <sched_rr_get_interval+0x34>
2006cc0: 80 a6 60 00 cmp %i1, 0
rtems_set_errno_and_return_minus_one( ESRCH );
2006cc4: 40 00 2b 07 call 20118e0 <__errno>
2006cc8: 01 00 00 00 nop
2006ccc: 10 80 00 07 b 2006ce8 <sched_rr_get_interval+0x48>
2006cd0: 82 10 20 03 mov 3, %g1 ! 3 <PROM_START+0x3>
if ( !interval )
2006cd4: 12 80 00 08 bne 2006cf4 <sched_rr_get_interval+0x54>
2006cd8: 03 00 80 7d sethi %hi(0x201f400), %g1
rtems_set_errno_and_return_minus_one( EINVAL );
2006cdc: 40 00 2b 01 call 20118e0 <__errno>
2006ce0: 01 00 00 00 nop
2006ce4: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
2006ce8: c2 22 00 00 st %g1, [ %o0 ]
2006cec: 81 c7 e0 08 ret
2006cf0: 91 e8 3f ff restore %g0, -1, %o0
_Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );
2006cf4: d0 00 62 d8 ld [ %g1 + 0x2d8 ], %o0
2006cf8: 92 10 00 19 mov %i1, %o1
2006cfc: 40 00 0e 4b call 200a628 <_Timespec_From_ticks>
2006d00: b0 10 20 00 clr %i0
return 0;
}
2006d04: 81 c7 e0 08 ret
2006d08: 81 e8 00 00 restore
0200953c <sem_open>:
int oflag,
...
/* mode_t mode, */
/* unsigned int value */
)
{
200953c: 9d e3 bf 90 save %sp, -112, %sp
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2009540: 03 00 80 91 sethi %hi(0x2024400), %g1
2009544: c4 00 63 60 ld [ %g1 + 0x360 ], %g2 ! 2024760 <_Thread_Dispatch_disable_level>
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
va_start(arg, oflag);
2009548: f4 27 a0 4c st %i2, [ %fp + 0x4c ]
200954c: 84 00 a0 01 inc %g2
2009550: f6 27 a0 50 st %i3, [ %fp + 0x50 ]
2009554: f8 27 a0 54 st %i4, [ %fp + 0x54 ]
2009558: fa 27 a0 58 st %i5, [ %fp + 0x58 ]
200955c: c4 20 63 60 st %g2, [ %g1 + 0x360 ]
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
2009560: a2 8e 62 00 andcc %i1, 0x200, %l1
2009564: 02 80 00 05 be 2009578 <sem_open+0x3c>
2009568: a0 10 20 00 clr %l0
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
200956c: e0 07 a0 50 ld [ %fp + 0x50 ], %l0
2009570: 82 07 a0 54 add %fp, 0x54, %g1
2009574: c2 27 bf fc st %g1, [ %fp + -4 ]
va_end(arg);
}
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
2009578: 90 10 00 18 mov %i0, %o0
200957c: 40 00 1d f4 call 2010d4c <_POSIX_Semaphore_Name_to_id>
2009580: 92 07 bf f8 add %fp, -8, %o1
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "semaphore does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
2009584: a4 92 20 00 orcc %o0, 0, %l2
2009588: 22 80 00 0e be,a 20095c0 <sem_open+0x84>
200958c: b2 0e 6a 00 and %i1, 0xa00, %i1
/*
* Unless provided a valid name that did not already exist
* and we are willing to create then it is an error.
*/
if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {
2009590: 80 a4 a0 02 cmp %l2, 2
2009594: 12 80 00 04 bne 20095a4 <sem_open+0x68> <== NEVER TAKEN
2009598: 80 a4 60 00 cmp %l1, 0
200959c: 12 80 00 21 bne 2009620 <sem_open+0xe4>
20095a0: 94 10 00 10 mov %l0, %o2
_Thread_Enable_dispatch();
20095a4: 40 00 0a da call 200c10c <_Thread_Enable_dispatch>
20095a8: b0 10 3f ff mov -1, %i0
rtems_set_errno_and_return_minus_one_cast( status, sem_t * );
20095ac: 40 00 2e 4c call 2014edc <__errno>
20095b0: 01 00 00 00 nop
20095b4: e4 22 00 00 st %l2, [ %o0 ]
20095b8: 81 c7 e0 08 ret
20095bc: 81 e8 00 00 restore
/*
* Check for existence with creation.
*/
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
20095c0: 80 a6 6a 00 cmp %i1, 0xa00
20095c4: 12 80 00 0a bne 20095ec <sem_open+0xb0>
20095c8: d2 07 bf f8 ld [ %fp + -8 ], %o1
_Thread_Enable_dispatch();
20095cc: 40 00 0a d0 call 200c10c <_Thread_Enable_dispatch>
20095d0: b0 10 3f ff mov -1, %i0
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
20095d4: 40 00 2e 42 call 2014edc <__errno>
20095d8: 01 00 00 00 nop
20095dc: 82 10 20 11 mov 0x11, %g1 ! 11 <PROM_START+0x11>
20095e0: c2 22 00 00 st %g1, [ %o0 ]
20095e4: 81 c7 e0 08 ret
20095e8: 81 e8 00 00 restore
20095ec: 94 07 bf f0 add %fp, -16, %o2
20095f0: 11 00 80 92 sethi %hi(0x2024800), %o0
20095f4: 40 00 08 5f call 200b770 <_Objects_Get>
20095f8: 90 12 22 70 or %o0, 0x270, %o0 ! 2024a70 <_POSIX_Semaphore_Information>
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
the_semaphore->open_count += 1;
20095fc: c2 02 20 18 ld [ %o0 + 0x18 ], %g1
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
2009600: d0 27 bf f4 st %o0, [ %fp + -12 ]
the_semaphore->open_count += 1;
2009604: 82 00 60 01 inc %g1
_Thread_Enable_dispatch();
2009608: 40 00 0a c1 call 200c10c <_Thread_Enable_dispatch>
200960c: c2 22 20 18 st %g1, [ %o0 + 0x18 ]
_Thread_Enable_dispatch();
2009610: 40 00 0a bf call 200c10c <_Thread_Enable_dispatch>
2009614: 01 00 00 00 nop
goto return_id;
2009618: 10 80 00 0c b 2009648 <sem_open+0x10c>
200961c: f0 07 bf f4 ld [ %fp + -12 ], %i0
/*
* At this point, the semaphore does not exist and everything has been
* checked. We should go ahead and create a semaphore.
*/
status =_POSIX_Semaphore_Create_support(
2009620: 90 10 00 18 mov %i0, %o0
2009624: 92 10 20 00 clr %o1
2009628: 40 00 1d 73 call 2010bf4 <_POSIX_Semaphore_Create_support>
200962c: 96 07 bf f4 add %fp, -12, %o3
/*
* errno was set by Create_support, so don't set it again.
*/
_Thread_Enable_dispatch();
2009630: 40 00 0a b7 call 200c10c <_Thread_Enable_dispatch>
2009634: a0 10 00 08 mov %o0, %l0
if ( status == -1 )
2009638: 80 a4 3f ff cmp %l0, -1
200963c: 02 bf ff ea be 20095e4 <sem_open+0xa8>
2009640: b0 10 3f ff mov -1, %i0
return_id:
#if defined(RTEMS_USE_16_BIT_OBJECT)
the_semaphore->Semaphore_id = the_semaphore->Object.id;
id = &the_semaphore->Semaphore_id;
#else
id = (sem_t *)&the_semaphore->Object.id;
2009644: f0 07 bf f4 ld [ %fp + -12 ], %i0
2009648: b0 06 20 08 add %i0, 8, %i0
#endif
return id;
}
200964c: 81 c7 e0 08 ret
2009650: 81 e8 00 00 restore
02029050 <setgid>:
int setgid(
gid_t gid
)
{
_POSIX_types_Gid = gid;
2029050: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
2029054: c2 00 61 64 ld [ %g1 + 0x164 ], %g1 ! 206ad64 <rtems_current_user_env><== NOT EXECUTED
2029058: d0 30 60 34 sth %o0, [ %g1 + 0x34 ] <== NOT EXECUTED
return 0;
}
202905c: 81 c3 e0 08 retl <== NOT EXECUTED
2029060: 90 10 20 00 clr %o0 <== NOT EXECUTED
02029680 <setgrent>:
return NULL;
return &grent;
}
void setgrent(void)
{
2029680: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
init_etc_passwd_group();
2029684: 7f ff ff c9 call 20295a8 <init_etc_passwd_group> <== NOT EXECUTED
2029688: 01 00 00 00 nop <== NOT EXECUTED
if (group_fp != NULL)
202968c: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
2029690: d0 00 60 9c ld [ %g1 + 0x9c ], %o0 ! 206e89c <group_fp> <== NOT EXECUTED
2029694: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
2029698: 22 80 00 05 be,a 20296ac <setgrent+0x2c> <== NOT EXECUTED
202969c: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED
fclose(group_fp);
20296a0: 40 00 6b 55 call 20443f4 <fclose> <== NOT EXECUTED
20296a4: 01 00 00 00 nop <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
20296a8: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED
20296ac: 13 00 81 93 sethi %hi(0x2064c00), %o1 <== NOT EXECUTED
20296b0: 90 12 21 58 or %o0, 0x158, %o0 <== NOT EXECUTED
20296b4: 40 00 6d a0 call 2044d34 <fopen> <== NOT EXECUTED
20296b8: 92 12 60 e0 or %o1, 0xe0, %o1 <== NOT EXECUTED
20296bc: 03 00 81 ba sethi %hi(0x206e800), %g1 <== NOT EXECUTED
20296c0: d0 20 60 9c st %o0, [ %g1 + 0x9c ] ! 206e89c <group_fp> <== NOT EXECUTED
}
20296c4: 81 c7 e0 08 ret <== NOT EXECUTED
20296c8: 81 e8 00 00 restore <== NOT EXECUTED
02029874 <setpwent>:
return NULL;
return &pwent;
}
void setpwent(void)
{
2029874: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
init_etc_passwd_group();
2029878: 7f ff ff 4c call 20295a8 <init_etc_passwd_group> <== NOT EXECUTED
202987c: 01 00 00 00 nop <== NOT EXECUTED
if (passwd_fp != NULL)
2029880: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
2029884: d0 00 63 b4 ld [ %g1 + 0x3b4 ], %o0 ! 206e7b4 <passwd_fp> <== NOT EXECUTED
2029888: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202988c: 22 80 00 05 be,a 20298a0 <setpwent+0x2c> <== NOT EXECUTED
2029890: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED
fclose(passwd_fp);
2029894: 40 00 6a d8 call 20443f4 <fclose> <== NOT EXECUTED
2029898: 01 00 00 00 nop <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
202989c: 11 00 81 93 sethi %hi(0x2064c00), %o0 <== NOT EXECUTED
20298a0: 13 00 81 93 sethi %hi(0x2064c00), %o1 <== NOT EXECUTED
20298a4: 90 12 20 d0 or %o0, 0xd0, %o0 <== NOT EXECUTED
20298a8: 40 00 6d 23 call 2044d34 <fopen> <== NOT EXECUTED
20298ac: 92 12 60 e0 or %o1, 0xe0, %o1 <== NOT EXECUTED
20298b0: 03 00 81 b9 sethi %hi(0x206e400), %g1 <== NOT EXECUTED
20298b4: d0 20 63 b4 st %o0, [ %g1 + 0x3b4 ] ! 206e7b4 <passwd_fp> <== NOT EXECUTED
}
20298b8: 81 c7 e0 08 ret <== NOT EXECUTED
20298bc: 81 e8 00 00 restore <== NOT EXECUTED
020083a4 <setuid>:
int setuid(
uid_t uid
)
{
_POSIX_types_Uid = uid;
20083a4: 03 00 81 ab sethi %hi(0x206ac00), %g1 <== NOT EXECUTED
20083a8: c2 00 61 64 ld [ %g1 + 0x164 ], %g1 ! 206ad64 <rtems_current_user_env><== NOT EXECUTED
20083ac: d0 30 60 32 sth %o0, [ %g1 + 0x32 ] <== NOT EXECUTED
return 0;
}
20083b0: 81 c3 e0 08 retl <== NOT EXECUTED
20083b4: 90 10 20 00 clr %o0 <== NOT EXECUTED
02006b48 <sigaction>:
int sigaction(
int sig,
const struct sigaction *act,
struct sigaction *oact
)
{
2006b48: 9d e3 bf a0 save %sp, -96, %sp
2006b4c: 90 10 00 1a mov %i2, %o0
ISR_Level level;
if ( oact )
2006b50: 80 a6 a0 00 cmp %i2, 0
2006b54: 02 80 00 0a be 2006b7c <sigaction+0x34>
2006b58: a0 10 00 18 mov %i0, %l0
*oact = _POSIX_signals_Vectors[ sig ];
2006b5c: 83 2e 20 02 sll %i0, 2, %g1
2006b60: 85 2e 20 04 sll %i0, 4, %g2
2006b64: 82 20 80 01 sub %g2, %g1, %g1
2006b68: 13 00 80 83 sethi %hi(0x2020c00), %o1
2006b6c: 94 10 20 0c mov 0xc, %o2
2006b70: 92 12 60 48 or %o1, 0x48, %o1
2006b74: 40 00 2e 2f call 2012430 <memcpy>
2006b78: 92 02 40 01 add %o1, %g1, %o1
if ( !sig )
2006b7c: 80 a4 20 00 cmp %l0, 0
2006b80: 02 80 00 07 be 2006b9c <sigaction+0x54>
2006b84: 82 04 3f ff add %l0, -1, %g1
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
2006b88: 80 a0 60 1f cmp %g1, 0x1f
2006b8c: 18 80 00 04 bgu 2006b9c <sigaction+0x54>
2006b90: 80 a4 20 09 cmp %l0, 9
*
* NOTE: Solaris documentation claims to "silently enforce" this which
* contradicts the POSIX specification.
*/
if ( sig == SIGKILL )
2006b94: 12 80 00 08 bne 2006bb4 <sigaction+0x6c>
2006b98: 80 a6 60 00 cmp %i1, 0
rtems_set_errno_and_return_minus_one( EINVAL );
2006b9c: 40 00 2b e4 call 2011b2c <__errno>
2006ba0: b0 10 3f ff mov -1, %i0
2006ba4: 82 10 20 16 mov 0x16, %g1
2006ba8: c2 22 00 00 st %g1, [ %o0 ]
2006bac: 81 c7 e0 08 ret
2006bb0: 81 e8 00 00 restore
/*
* Evaluate the new action structure and set the global signal vector
* appropriately.
*/
if ( act ) {
2006bb4: 02 bf ff fe be 2006bac <sigaction+0x64> <== NEVER TAKEN
2006bb8: b0 10 20 00 clr %i0
/*
* Unless the user is installing the default signal actions, then
* we can just copy the provided sigaction structure into the vectors.
*/
_ISR_Disable( level );
2006bbc: 7f ff ee 88 call 20025dc <sparc_disable_interrupts>
2006bc0: 01 00 00 00 nop
2006bc4: a2 10 00 08 mov %o0, %l1
if ( act->sa_handler == SIG_DFL ) {
2006bc8: c2 06 60 08 ld [ %i1 + 8 ], %g1
2006bcc: 25 00 80 83 sethi %hi(0x2020c00), %l2
2006bd0: 80 a0 60 00 cmp %g1, 0
2006bd4: a4 14 a0 48 or %l2, 0x48, %l2
2006bd8: a7 2c 20 02 sll %l0, 2, %l3
2006bdc: 12 80 00 08 bne 2006bfc <sigaction+0xb4>
2006be0: a9 2c 20 04 sll %l0, 4, %l4
_POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
2006be4: a6 25 00 13 sub %l4, %l3, %l3
2006be8: 13 00 80 7b sethi %hi(0x201ec00), %o1
2006bec: 90 04 80 13 add %l2, %l3, %o0
2006bf0: 92 12 61 08 or %o1, 0x108, %o1
2006bf4: 10 80 00 07 b 2006c10 <sigaction+0xc8>
2006bf8: 92 02 40 13 add %o1, %l3, %o1
} else {
_POSIX_signals_Clear_process_signals( sig );
2006bfc: 40 00 1b f0 call 200dbbc <_POSIX_signals_Clear_process_signals>
2006c00: 90 10 00 10 mov %l0, %o0
_POSIX_signals_Vectors[ sig ] = *act;
2006c04: a6 25 00 13 sub %l4, %l3, %l3
2006c08: 92 10 00 19 mov %i1, %o1
2006c0c: 90 04 80 13 add %l2, %l3, %o0
2006c10: 40 00 2e 08 call 2012430 <memcpy>
2006c14: 94 10 20 0c mov 0xc, %o2
}
_ISR_Enable( level );
2006c18: b0 10 20 00 clr %i0
2006c1c: 7f ff ee 74 call 20025ec <sparc_enable_interrupts>
2006c20: 90 10 00 11 mov %l1, %o0
* + If we are now ignoring a signal that was previously pending,
* we clear the pending signal indicator.
*/
return 0;
}
2006c24: 81 c7 e0 08 ret
2006c28: 81 e8 00 00 restore
02008e18 <sigsuspend>:
#include <rtems/seterr.h>
int sigsuspend(
const sigset_t *sigmask
)
{
2008e18: 9d e3 bf 98 save %sp, -104, %sp
int status;
POSIX_API_Control *api;
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
2008e1c: 90 10 20 01 mov 1, %o0
2008e20: 92 10 00 18 mov %i0, %o1
2008e24: a0 07 bf fc add %fp, -4, %l0
2008e28: 7f ff ff f1 call 2008dec <sigprocmask>
2008e2c: 94 10 00 10 mov %l0, %o2
(void) sigfillset( &all_signals );
2008e30: a2 07 bf f8 add %fp, -8, %l1
2008e34: 7f ff ff b6 call 2008d0c <sigfillset>
2008e38: 90 10 00 11 mov %l1, %o0
status = sigtimedwait( &all_signals, NULL, NULL );
2008e3c: 90 10 00 11 mov %l1, %o0
2008e40: 92 10 20 00 clr %o1
2008e44: 40 00 00 28 call 2008ee4 <sigtimedwait>
2008e48: 94 10 20 00 clr %o2
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
2008e4c: 92 10 00 10 mov %l0, %o1
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
(void) sigfillset( &all_signals );
status = sigtimedwait( &all_signals, NULL, NULL );
2008e50: a2 10 00 08 mov %o0, %l1
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
2008e54: 94 10 20 00 clr %o2
2008e58: 7f ff ff e5 call 2008dec <sigprocmask>
2008e5c: 90 10 20 00 clr %o0
/*
* sigtimedwait() returns the signal number while sigsuspend()
* is supposed to return -1 and EINTR when a signal is caught.
*/
if ( status != -1 )
2008e60: 80 a4 7f ff cmp %l1, -1
2008e64: 02 80 00 06 be 2008e7c <sigsuspend+0x64> <== NEVER TAKEN
2008e68: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINTR );
2008e6c: 40 00 2b 0c call 2013a9c <__errno>
2008e70: 01 00 00 00 nop
2008e74: 82 10 20 04 mov 4, %g1 ! 4 <PROM_START+0x4>
2008e78: c2 22 00 00 st %g1, [ %o0 ]
return status;
}
2008e7c: 81 c7 e0 08 ret
2008e80: 91 e8 3f ff restore %g0, -1, %o0
02007044 <sigtimedwait>:
int sigtimedwait(
const sigset_t *set,
siginfo_t *info,
const struct timespec *timeout
)
{
2007044: 9d e3 bf 90 save %sp, -112, %sp
ISR_Level level;
/*
* Error check parameters before disabling interrupts.
*/
if ( !set )
2007048: 80 a6 20 00 cmp %i0, 0
200704c: 02 80 00 0e be 2007084 <sigtimedwait+0x40>
2007050: 80 a6 a0 00 cmp %i2, 0
/* NOTE: This is very specifically a RELATIVE not ABSOLUTE time
* in the Open Group specification.
*/
interval = 0;
if ( timeout ) {
2007054: 02 80 00 12 be 200709c <sigtimedwait+0x58>
2007058: a8 10 20 00 clr %l4
if ( !_Timespec_Is_valid( timeout ) )
200705c: 40 00 0e 5e call 200a9d4 <_Timespec_Is_valid>
2007060: 90 10 00 1a mov %i2, %o0
2007064: 80 8a 20 ff btst 0xff, %o0
2007068: 02 80 00 07 be 2007084 <sigtimedwait+0x40>
200706c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
interval = _Timespec_To_ticks( timeout );
2007070: 40 00 0e 7e call 200aa68 <_Timespec_To_ticks>
2007074: 90 10 00 1a mov %i2, %o0
if ( !interval )
2007078: a8 92 20 00 orcc %o0, 0, %l4
200707c: 12 80 00 09 bne 20070a0 <sigtimedwait+0x5c> <== ALWAYS TAKEN
2007080: 80 a6 60 00 cmp %i1, 0
rtems_set_errno_and_return_minus_one( EINVAL );
2007084: 40 00 2b 86 call 2011e9c <__errno>
2007088: b0 10 3f ff mov -1, %i0
200708c: 82 10 20 16 mov 0x16, %g1
2007090: c2 22 00 00 st %g1, [ %o0 ]
2007094: 81 c7 e0 08 ret
2007098: 81 e8 00 00 restore
/*
* Initialize local variables.
*/
the_info = ( info ) ? info : &signal_information;
200709c: 80 a6 60 00 cmp %i1, 0
20070a0: 02 80 00 03 be 20070ac <sigtimedwait+0x68>
20070a4: a0 07 bf f4 add %fp, -12, %l0
20070a8: a0 10 00 19 mov %i1, %l0
the_thread = _Thread_Executing;
20070ac: 23 00 80 82 sethi %hi(0x2020800), %l1
20070b0: f2 04 63 b0 ld [ %l1 + 0x3b0 ], %i1 ! 2020bb0 <_Thread_Executing>
* What if they are already pending?
*/
/* API signals pending? */
_ISR_Disable( level );
20070b4: 7f ff ee 1b call 2002920 <sparc_disable_interrupts>
20070b8: e6 06 61 6c ld [ %i1 + 0x16c ], %l3
20070bc: a4 10 00 08 mov %o0, %l2
if ( *set & api->signals_pending ) {
20070c0: c4 06 00 00 ld [ %i0 ], %g2
20070c4: c2 04 e0 d0 ld [ %l3 + 0xd0 ], %g1
20070c8: 80 88 80 01 btst %g2, %g1
20070cc: 22 80 00 10 be,a 200710c <sigtimedwait+0xc8>
20070d0: 03 00 80 84 sethi %hi(0x2021000), %g1
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
20070d4: 7f ff ff c4 call 2006fe4 <_POSIX_signals_Get_highest>
20070d8: 90 10 00 01 mov %g1, %o0
_POSIX_signals_Clear_signals(
20070dc: 94 10 00 10 mov %l0, %o2
/* API signals pending? */
_ISR_Disable( level );
if ( *set & api->signals_pending ) {
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
20070e0: 92 10 00 08 mov %o0, %o1
_POSIX_signals_Clear_signals(
20070e4: 96 10 20 00 clr %o3
20070e8: 90 10 00 13 mov %l3, %o0
/* API signals pending? */
_ISR_Disable( level );
if ( *set & api->signals_pending ) {
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_highest( api->signals_pending );
20070ec: d2 24 00 00 st %o1, [ %l0 ]
_POSIX_signals_Clear_signals(
20070f0: 40 00 1c a9 call 200e394 <_POSIX_signals_Clear_signals>
20070f4: 98 10 20 00 clr %o4
the_info->si_signo,
the_info,
false,
false
);
_ISR_Enable( level );
20070f8: 7f ff ee 0e call 2002930 <sparc_enable_interrupts>
20070fc: 90 10 00 12 mov %l2, %o0
the_info->si_code = SI_USER;
the_info->si_value.sival_int = 0;
2007100: c0 24 20 08 clr [ %l0 + 8 ]
return the_info->si_signo;
2007104: 10 80 00 13 b 2007150 <sigtimedwait+0x10c>
2007108: f0 04 00 00 ld [ %l0 ], %i0
}
/* Process pending signals? */
if ( *set & _POSIX_signals_Pending ) {
200710c: c2 00 62 6c ld [ %g1 + 0x26c ], %g1
2007110: 80 88 80 01 btst %g2, %g1
2007114: 22 80 00 13 be,a 2007160 <sigtimedwait+0x11c>
2007118: 03 00 80 82 sethi %hi(0x2020800), %g1
signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
200711c: 7f ff ff b2 call 2006fe4 <_POSIX_signals_Get_highest>
2007120: 90 10 00 01 mov %g1, %o0
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
2007124: 94 10 00 10 mov %l0, %o2
}
/* Process pending signals? */
if ( *set & _POSIX_signals_Pending ) {
signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
2007128: b0 10 00 08 mov %o0, %i0
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
200712c: 96 10 20 01 mov 1, %o3
2007130: 90 10 00 13 mov %l3, %o0
2007134: 92 10 00 18 mov %i0, %o1
2007138: 40 00 1c 97 call 200e394 <_POSIX_signals_Clear_signals>
200713c: 98 10 20 00 clr %o4
_ISR_Enable( level );
2007140: 7f ff ed fc call 2002930 <sparc_enable_interrupts>
2007144: 90 10 00 12 mov %l2, %o0
the_info->si_signo = signo;
the_info->si_code = SI_USER;
the_info->si_value.sival_int = 0;
2007148: c0 24 20 08 clr [ %l0 + 8 ]
if ( *set & _POSIX_signals_Pending ) {
signo = _POSIX_signals_Get_highest( _POSIX_signals_Pending );
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
_ISR_Enable( level );
the_info->si_signo = signo;
200714c: f0 24 00 00 st %i0, [ %l0 ]
the_info->si_code = SI_USER;
2007150: 82 10 20 01 mov 1, %g1
2007154: c2 24 20 04 st %g1, [ %l0 + 4 ]
the_info->si_value.sival_int = 0;
return signo;
2007158: 81 c7 e0 08 ret
200715c: 81 e8 00 00 restore
2007160: c4 00 62 f0 ld [ %g1 + 0x2f0 ], %g2
2007164: 84 00 a0 01 inc %g2
2007168: c4 20 62 f0 st %g2, [ %g1 + 0x2f0 ]
}
the_info->si_signo = -1;
200716c: 82 10 3f ff mov -1, %g1
2007170: c2 24 00 00 st %g1, [ %l0 ]
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
the_thread->Wait.return_code = EINTR;
2007174: 82 10 20 04 mov 4, %g1
2007178: c2 26 60 34 st %g1, [ %i1 + 0x34 ]
the_thread->Wait.option = *set;
200717c: c2 06 00 00 ld [ %i0 ], %g1
the_thread->Wait.return_argument = the_info;
2007180: e0 26 60 28 st %l0, [ %i1 + 0x28 ]
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
2007184: c2 26 60 30 st %g1, [ %i1 + 0x30 ]
}
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
2007188: 25 00 80 84 sethi %hi(0x2021000), %l2
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
200718c: 82 10 20 01 mov 1, %g1
2007190: a4 14 a2 04 or %l2, 0x204, %l2
2007194: e4 26 60 44 st %l2, [ %i1 + 0x44 ]
2007198: c2 24 a0 30 st %g1, [ %l2 + 0x30 ]
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
the_thread->Wait.return_argument = the_info;
_Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
_ISR_Enable( level );
200719c: 7f ff ed e5 call 2002930 <sparc_enable_interrupts>
20071a0: 01 00 00 00 nop
_Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );
20071a4: 90 10 00 12 mov %l2, %o0
20071a8: 92 10 00 14 mov %l4, %o1
20071ac: 15 00 80 29 sethi %hi(0x200a400), %o2
20071b0: 40 00 0b c7 call 200a0cc <_Thread_queue_Enqueue_with_handler>
20071b4: 94 12 a0 18 or %o2, 0x18, %o2 ! 200a418 <_Thread_queue_Timeout>
_Thread_Enable_dispatch();
20071b8: 40 00 0a 60 call 2009b38 <_Thread_Enable_dispatch>
20071bc: 01 00 00 00 nop
/*
* When the thread is set free by a signal, it is need to eliminate
* the signal.
*/
_POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
20071c0: d2 04 00 00 ld [ %l0 ], %o1
20071c4: 94 10 00 10 mov %l0, %o2
20071c8: 96 10 20 00 clr %o3
20071cc: 98 10 20 00 clr %o4
20071d0: 40 00 1c 71 call 200e394 <_POSIX_signals_Clear_signals>
20071d4: 90 10 00 13 mov %l3, %o0
errno = _Thread_Executing->Wait.return_code;
20071d8: 40 00 2b 31 call 2011e9c <__errno>
20071dc: 01 00 00 00 nop
20071e0: c2 04 63 b0 ld [ %l1 + 0x3b0 ], %g1
20071e4: c2 00 60 34 ld [ %g1 + 0x34 ], %g1
20071e8: c2 22 00 00 st %g1, [ %o0 ]
return the_info->si_signo;
20071ec: f0 04 00 00 ld [ %l0 ], %i0
}
20071f0: 81 c7 e0 08 ret
20071f4: 81 e8 00 00 restore
020090ac <sigwait>:
int sigwait(
const sigset_t *set,
int *sig
)
{
20090ac: 9d e3 bf a0 save %sp, -96, %sp
int status;
status = sigtimedwait( set, NULL, NULL );
20090b0: 92 10 20 00 clr %o1
20090b4: 90 10 00 18 mov %i0, %o0
20090b8: 7f ff ff 8b call 2008ee4 <sigtimedwait>
20090bc: 94 10 20 00 clr %o2
if ( status != -1 ) {
20090c0: 80 a2 3f ff cmp %o0, -1
20090c4: 02 80 00 07 be 20090e0 <sigwait+0x34>
20090c8: 80 a6 60 00 cmp %i1, 0
if ( sig )
20090cc: 02 80 00 03 be 20090d8 <sigwait+0x2c> <== NEVER TAKEN
20090d0: b0 10 20 00 clr %i0
*sig = status;
20090d4: d0 26 40 00 st %o0, [ %i1 ]
20090d8: 81 c7 e0 08 ret
20090dc: 81 e8 00 00 restore
return 0;
}
return errno;
20090e0: 40 00 2a 6f call 2013a9c <__errno>
20090e4: 01 00 00 00 nop
20090e8: f0 02 00 00 ld [ %o0 ], %i0
}
20090ec: 81 c7 e0 08 ret
20090f0: 81 e8 00 00 restore
02004848 <siproc>:
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
2004848: 9d e3 bf a0 save %sp, -96, %sp <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
200484c: c2 06 60 3c ld [ %i1 + 0x3c ], %g1 <== NOT EXECUTED
2004850: 80 88 6e 78 btst 0xe78, %g1 <== NOT EXECUTED
2004854: 02 80 00 0e be 200488c <siproc+0x44> <== NOT EXECUTED
2004858: b0 0e 20 ff and %i0, 0xff, %i0 <== NOT EXECUTED
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
200485c: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED
2004860: 94 10 20 00 clr %o2 <== NOT EXECUTED
2004864: 40 00 06 b8 call 2006344 <rtems_semaphore_obtain> <== NOT EXECUTED
2004868: 92 10 20 00 clr %o1 <== NOT EXECUTED
i = iproc (c, tty);
200486c: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
2004870: 7f ff ff 7f call 200466c <iproc> <== NOT EXECUTED
2004874: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
2004878: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
200487c: 40 00 06 f9 call 2006460 <rtems_semaphore_release> <== NOT EXECUTED
2004880: d0 06 60 18 ld [ %i1 + 0x18 ], %o0 <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
2004884: 81 c7 e0 08 ret <== NOT EXECUTED
2004888: 81 e8 00 00 restore <== NOT EXECUTED
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
i = iproc (c, tty);
rtems_semaphore_release (tty->osem);
}
else {
i = iproc (c, tty);
200488c: 7f ff ff 78 call 200466c <iproc> <== NOT EXECUTED
2004890: 81 e8 00 00 restore <== NOT EXECUTED
02009b64 <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
2009b64: 9d e3 bf 88 save %sp, -120, %sp
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
2009b68: 80 a6 60 00 cmp %i1, 0
2009b6c: 12 80 00 06 bne 2009b84 <stat+0x20>
2009b70: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EFAULT );
2009b74: 40 00 e9 c8 call 2044294 <__errno>
2009b78: b0 10 3f ff mov -1, %i0 ! ffffffff <RAM_END+0xfdbfffff>
2009b7c: 10 80 00 20 b 2009bfc <stat+0x98>
2009b80: 82 10 20 0e mov 0xe, %g1
status = rtems_filesystem_evaluate_path( path, strlen( path ),
2009b84: 40 01 05 80 call 204b184 <strlen>
2009b88: 90 10 00 18 mov %i0, %o0
2009b8c: a0 07 bf ec add %fp, -20, %l0
2009b90: 92 10 00 08 mov %o0, %o1
2009b94: 94 10 20 00 clr %o2
2009b98: 90 10 00 18 mov %i0, %o0
2009b9c: 96 10 00 10 mov %l0, %o3
2009ba0: 98 10 20 01 mov 1, %o4
2009ba4: 7f ff f9 92 call 20081ec <rtems_filesystem_evaluate_path>
2009ba8: b0 10 3f ff mov -1, %i0
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
2009bac: 80 a2 20 00 cmp %o0, 0
2009bb0: 12 80 00 14 bne 2009c00 <stat+0x9c>
2009bb4: c2 07 bf f4 ld [ %fp + -12 ], %g1
return -1;
if ( !loc.handlers->fstat_h ){
2009bb8: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
2009bbc: 80 a0 60 00 cmp %g1, 0
2009bc0: 12 80 00 12 bne 2009c08 <stat+0xa4> <== ALWAYS TAKEN
2009bc4: 92 10 20 00 clr %o1
rtems_filesystem_freenode( &loc );
2009bc8: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
2009bcc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2009bd0: 02 80 00 08 be 2009bf0 <stat+0x8c> <== NOT EXECUTED
2009bd4: 01 00 00 00 nop <== NOT EXECUTED
2009bd8: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
2009bdc: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
2009be0: 02 80 00 04 be 2009bf0 <stat+0x8c> <== NOT EXECUTED
2009be4: 01 00 00 00 nop <== NOT EXECUTED
2009be8: 9f c0 40 00 call %g1 <== NOT EXECUTED
2009bec: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
2009bf0: 40 00 e9 a9 call 2044294 <__errno> <== NOT EXECUTED
2009bf4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2009bf8: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2009bfc: c2 22 00 00 st %g1, [ %o0 ]
2009c00: 81 c7 e0 08 ret
2009c04: 81 e8 00 00 restore
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
2009c08: 94 10 20 48 mov 0x48, %o2
2009c0c: 40 00 f7 81 call 2047a10 <memset>
2009c10: 90 10 00 19 mov %i1, %o0
status = (*loc.handlers->fstat_h)( &loc, buf );
2009c14: c2 07 bf f4 ld [ %fp + -12 ], %g1
2009c18: 92 10 00 19 mov %i1, %o1
2009c1c: c2 00 60 18 ld [ %g1 + 0x18 ], %g1
2009c20: 9f c0 40 00 call %g1
2009c24: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
2009c28: c2 07 bf f8 ld [ %fp + -8 ], %g1
2009c2c: 80 a0 60 00 cmp %g1, 0
2009c30: 02 bf ff f4 be 2009c00 <stat+0x9c> <== NEVER TAKEN
2009c34: b0 10 00 08 mov %o0, %i0
2009c38: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
2009c3c: 80 a0 60 00 cmp %g1, 0
2009c40: 02 80 00 04 be 2009c50 <stat+0xec> <== NEVER TAKEN
2009c44: 01 00 00 00 nop
2009c48: 9f c0 40 00 call %g1
2009c4c: 90 10 00 10 mov %l0, %o0
return status;
}
2009c50: 81 c7 e0 08 ret
2009c54: 81 e8 00 00 restore
0202a8ec <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
202a8ec: 9d e3 bf 88 save %sp, -120, %sp <== NOT EXECUTED
* The root node of the mounted filesytem.
* The node for the directory that the fileystem is mounted on.
* The mount entry that is being refered to.
*/
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
202a8f0: 40 00 82 25 call 204b184 <strlen> <== NOT EXECUTED
202a8f4: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202a8f8: a0 07 bf ec add %fp, -20, %l0 <== NOT EXECUTED
202a8fc: 92 10 00 08 mov %o0, %o1 <== NOT EXECUTED
202a900: 94 10 20 00 clr %o2 <== NOT EXECUTED
202a904: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
202a908: 96 10 00 10 mov %l0, %o3 <== NOT EXECUTED
202a90c: 98 10 20 01 mov 1, %o4 <== NOT EXECUTED
202a910: 7f ff 76 37 call 20081ec <rtems_filesystem_evaluate_path> <== NOT EXECUTED
202a914: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202a918: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202a91c: 12 80 00 0b bne 202a948 <statvfs+0x5c> <== NOT EXECUTED
202a920: e2 07 bf fc ld [ %fp + -4 ], %l1 <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
fs_mount_root = &mt_entry->mt_fs_root;
202a924: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED
202a928: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED
202a92c: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a930: 12 80 00 08 bne 202a950 <statvfs+0x64> <== NOT EXECUTED
202a934: 92 10 20 00 clr %o1 <== NOT EXECUTED
if ( !fs_mount_root->ops->statvfs_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202a938: 40 00 66 57 call 2044294 <__errno> <== NOT EXECUTED
202a93c: 01 00 00 00 nop <== NOT EXECUTED
202a940: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
202a944: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202a948: 81 c7 e0 08 ret <== NOT EXECUTED
202a94c: 81 e8 00 00 restore <== NOT EXECUTED
memset (sb, 0, sizeof (struct statvfs));
202a950: 94 10 20 38 mov 0x38, %o2 <== NOT EXECUTED
202a954: 40 00 74 2f call 2047a10 <memset> <== NOT EXECUTED
202a958: 90 10 00 19 mov %i1, %o0 <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
202a95c: c2 04 60 28 ld [ %l1 + 0x28 ], %g1 <== NOT EXECUTED
202a960: 90 04 60 1c add %l1, 0x1c, %o0 <== NOT EXECUTED
202a964: c2 00 60 44 ld [ %g1 + 0x44 ], %g1 <== NOT EXECUTED
202a968: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a96c: 92 10 00 19 mov %i1, %o1 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
202a970: c2 07 bf f8 ld [ %fp + -8 ], %g1 <== NOT EXECUTED
202a974: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a978: 02 bf ff f4 be 202a948 <statvfs+0x5c> <== NOT EXECUTED
202a97c: b0 10 00 08 mov %o0, %i0 <== NOT EXECUTED
202a980: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
202a984: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202a988: 02 80 00 04 be 202a998 <statvfs+0xac> <== NOT EXECUTED
202a98c: 01 00 00 00 nop <== NOT EXECUTED
202a990: 9f c0 40 00 call %g1 <== NOT EXECUTED
202a994: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
return result;
}
202a998: 81 c7 e0 08 ret <== NOT EXECUTED
202a99c: 81 e8 00 00 restore <== NOT EXECUTED
0202a9e0 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
202a9e0: 9d e3 bf 80 save %sp, -128, %sp
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
202a9e4: a0 07 bf e4 add %fp, -28, %l0
202a9e8: 90 10 00 19 mov %i1, %o0
202a9ec: 92 07 bf fc add %fp, -4, %o1
202a9f0: 7f ff 7c a0 call 2009c70 <rtems_filesystem_get_start_loc>
202a9f4: 94 10 00 10 mov %l0, %o2
if ( !loc.ops->evalformake_h ) {
202a9f8: c2 07 bf f0 ld [ %fp + -16 ], %g1
202a9fc: c2 00 60 04 ld [ %g1 + 4 ], %g1
202aa00: 80 a0 60 00 cmp %g1, 0
202aa04: 02 80 00 15 be 202aa58 <symlink+0x78> <== NEVER TAKEN
202aa08: a2 10 00 18 mov %i0, %l1
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
202aa0c: d0 07 bf fc ld [ %fp + -4 ], %o0
202aa10: 92 10 00 10 mov %l0, %o1
202aa14: 90 06 40 08 add %i1, %o0, %o0
202aa18: 94 07 bf f8 add %fp, -8, %o2
202aa1c: 9f c0 40 00 call %g1
202aa20: b0 10 3f ff mov -1, %i0
if ( result != 0 )
202aa24: 80 a2 20 00 cmp %o0, 0
202aa28: 12 80 00 10 bne 202aa68 <symlink+0x88>
202aa2c: c4 07 bf f0 ld [ %fp + -16 ], %g2
return -1;
if ( !loc.ops->symlink_h ) {
202aa30: c2 00 a0 38 ld [ %g2 + 0x38 ], %g1
202aa34: 80 a0 60 00 cmp %g1, 0
202aa38: 12 80 00 0e bne 202aa70 <symlink+0x90> <== ALWAYS TAKEN
202aa3c: d4 07 bf f8 ld [ %fp + -8 ], %o2
rtems_filesystem_freenode( &loc );
202aa40: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202aa44: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202aa48: 02 80 00 04 be 202aa58 <symlink+0x78> <== NOT EXECUTED
202aa4c: 01 00 00 00 nop <== NOT EXECUTED
202aa50: 9f c0 40 00 call %g1 <== NOT EXECUTED
202aa54: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202aa58: 40 00 66 0f call 2044294 <__errno> <== NOT EXECUTED
202aa5c: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202aa60: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202aa64: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202aa68: 81 c7 e0 08 ret
202aa6c: 81 e8 00 00 restore
}
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
202aa70: 92 10 00 11 mov %l1, %o1
202aa74: 9f c0 40 00 call %g1
202aa78: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &loc );
202aa7c: c2 07 bf f0 ld [ %fp + -16 ], %g1
202aa80: 80 a0 60 00 cmp %g1, 0
202aa84: 02 bf ff f9 be 202aa68 <symlink+0x88> <== NEVER TAKEN
202aa88: b0 10 00 08 mov %o0, %i0
202aa8c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202aa90: 80 a0 60 00 cmp %g1, 0
202aa94: 02 80 00 04 be 202aaa4 <symlink+0xc4> <== NEVER TAKEN
202aa98: 01 00 00 00 nop
202aa9c: 9f c0 40 00 call %g1
202aaa0: 90 10 00 10 mov %l0, %o0
return result;
}
202aaa4: 81 c7 e0 08 ret
202aaa8: 81 e8 00 00 restore
02004fd4 <sync_per_thread>:
fdatasync(fn);
}
/* iterate over all FILE *'s for this thread */
static void sync_per_thread(Thread_Control *t)
{
2004fd4: 9d e3 bf a0 save %sp, -96, %sp
/*
* The sync_wrapper() function will operate on the current thread's
* reent structure so we will temporarily use that.
*/
this_reent = t->libc_reent;
2004fd8: c4 06 21 64 ld [ %i0 + 0x164 ], %g2
if ( this_reent ) {
2004fdc: 80 a0 a0 00 cmp %g2, 0
2004fe0: 02 80 00 0b be 200500c <sync_per_thread+0x38> <== NEVER TAKEN
2004fe4: 21 00 80 80 sethi %hi(0x2020000), %l0
current_reent = _Thread_Executing->libc_reent;
2004fe8: c2 04 22 b0 ld [ %l0 + 0x2b0 ], %g1 ! 20202b0 <_Thread_Executing>
_Thread_Executing->libc_reent = this_reent;
_fwalk (t->libc_reent, sync_wrapper);
2004fec: 13 00 80 14 sethi %hi(0x2005000), %o1
* The sync_wrapper() function will operate on the current thread's
* reent structure so we will temporarily use that.
*/
this_reent = t->libc_reent;
if ( this_reent ) {
current_reent = _Thread_Executing->libc_reent;
2004ff0: e2 00 61 64 ld [ %g1 + 0x164 ], %l1
_Thread_Executing->libc_reent = this_reent;
2004ff4: c4 20 61 64 st %g2, [ %g1 + 0x164 ]
_fwalk (t->libc_reent, sync_wrapper);
2004ff8: d0 06 21 64 ld [ %i0 + 0x164 ], %o0
2004ffc: 40 00 37 47 call 2012d18 <_fwalk>
2005000: 92 12 60 3c or %o1, 0x3c, %o1
_Thread_Executing->libc_reent = current_reent;
2005004: c2 04 22 b0 ld [ %l0 + 0x2b0 ], %g1
2005008: e2 20 61 64 st %l1, [ %g1 + 0x164 ]
200500c: 81 c7 e0 08 ret
2005010: 81 e8 00 00 restore
02005e70 <sysconf>:
*/
long sysconf(
int name
)
{
2005e70: 9d e3 bf a0 save %sp, -96, %sp
if ( name == _SC_CLK_TCK )
2005e74: 80 a6 20 02 cmp %i0, 2
2005e78: 12 80 00 09 bne 2005e9c <sysconf+0x2c>
2005e7c: 80 a6 20 04 cmp %i0, 4
return (TOD_MICROSECONDS_PER_SECOND /
2005e80: 03 00 80 7b sethi %hi(0x201ec00), %g1
2005e84: d2 00 60 38 ld [ %g1 + 0x38 ], %o1 ! 201ec38 <Configuration+0xc>
2005e88: 11 00 03 d0 sethi %hi(0xf4000), %o0
2005e8c: 40 00 53 1c call 201aafc <.udiv>
2005e90: 90 12 22 40 or %o0, 0x240, %o0 ! f4240 <PROM_START+0xf4240>
2005e94: 81 c7 e0 08 ret
2005e98: 91 e8 00 08 restore %g0, %o0, %o0
rtems_configuration_get_microseconds_per_tick());
if ( name == _SC_OPEN_MAX )
2005e9c: 12 80 00 05 bne 2005eb0 <sysconf+0x40>
2005ea0: 80 a6 20 33 cmp %i0, 0x33
return rtems_libio_number_iops;
2005ea4: 03 00 80 7a sethi %hi(0x201e800), %g1
2005ea8: 10 80 00 0f b 2005ee4 <sysconf+0x74>
2005eac: d0 00 63 54 ld [ %g1 + 0x354 ], %o0 ! 201eb54 <rtems_libio_number_iops>
if ( name == _SC_GETPW_R_SIZE_MAX )
2005eb0: 02 80 00 0d be 2005ee4 <sysconf+0x74>
2005eb4: 90 10 24 00 mov 0x400, %o0
return 1024;
if ( name == _SC_PAGESIZE )
2005eb8: 80 a6 20 08 cmp %i0, 8
2005ebc: 02 80 00 0a be 2005ee4 <sysconf+0x74>
2005ec0: 90 02 2c 00 add %o0, 0xc00, %o0
return PAGE_SIZE;
#if defined(__sparc__)
if ( name == 515 ) /* Solaris _SC_STACK_PROT */
2005ec4: 80 a6 22 03 cmp %i0, 0x203
2005ec8: 02 80 00 07 be 2005ee4 <sysconf+0x74> <== NEVER TAKEN
2005ecc: 90 10 20 00 clr %o0
return 0;
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
2005ed0: 40 00 2c 68 call 2011070 <__errno>
2005ed4: 01 00 00 00 nop
2005ed8: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
2005edc: c2 22 00 00 st %g1, [ %o0 ]
2005ee0: 90 10 3f ff mov -1, %o0
}
2005ee4: b0 10 00 08 mov %o0, %i0
2005ee8: 81 c7 e0 08 ret
2005eec: 81 e8 00 00 restore
02013994 <tcsetattr>:
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
2013994: 9d e3 bf a0 save %sp, -96, %sp
switch (opt) {
2013998: 80 a6 60 00 cmp %i1, 0
201399c: 02 80 00 10 be 20139dc <tcsetattr+0x48> <== ALWAYS TAKEN
20139a0: 80 a6 60 01 cmp %i1, 1
20139a4: 02 80 00 08 be 20139c4 <tcsetattr+0x30> <== NOT EXECUTED
20139a8: 90 10 00 18 mov %i0, %o0 <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
20139ac: 40 00 16 93 call 20193f8 <__errno> <== NOT EXECUTED
20139b0: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
20139b4: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
20139b8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
20139bc: 81 c7 e0 08 ret <== NOT EXECUTED
20139c0: 81 e8 00 00 restore <== NOT EXECUTED
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
20139c4: 92 10 20 03 mov 3, %o1 <== NOT EXECUTED
20139c8: 40 00 11 7f call 2017fc4 <ioctl> <== NOT EXECUTED
20139cc: 94 10 20 00 clr %o2 <== NOT EXECUTED
20139d0: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
20139d4: 26 80 00 04 bl,a 20139e4 <tcsetattr+0x50> <== NOT EXECUTED
20139d8: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
20139dc: 40 00 11 7a call 2017fc4 <ioctl>
20139e0: 93 e8 20 02 restore %g0, 2, %o1
}
}
20139e4: 81 c7 e0 08 ret <== NOT EXECUTED
20139e8: 81 e8 00 00 restore <== NOT EXECUTED
020061dc <timer_create>:
int timer_create(
clockid_t clock_id,
struct sigevent *evp,
timer_t *timerid
)
{
20061dc: 9d e3 bf a0 save %sp, -96, %sp
POSIX_Timer_Control *ptimer;
if ( clock_id != CLOCK_REALTIME )
20061e0: 80 a6 20 01 cmp %i0, 1
20061e4: 12 80 00 13 bne 2006230 <timer_create+0x54>
20061e8: 80 a6 a0 00 cmp %i2, 0
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !timerid )
20061ec: 02 80 00 11 be 2006230 <timer_create+0x54>
20061f0: 80 a6 60 00 cmp %i1, 0
/*
* The data of the structure evp are checked in order to verify if they
* are coherent.
*/
if (evp != NULL) {
20061f4: 02 80 00 13 be 2006240 <timer_create+0x64>
20061f8: 03 00 80 8a sethi %hi(0x2022800), %g1
/* The structure has data */
if ( ( evp->sigev_notify != SIGEV_NONE ) &&
20061fc: c2 06 40 00 ld [ %i1 ], %g1
2006200: 82 00 7f ff add %g1, -1, %g1
2006204: 80 a0 60 01 cmp %g1, 1
2006208: 18 80 00 0a bgu 2006230 <timer_create+0x54> <== NEVER TAKEN
200620c: 01 00 00 00 nop
( evp->sigev_notify != SIGEV_SIGNAL ) ) {
/* The value of the field sigev_notify is not valid */
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !evp->sigev_signo )
2006210: c2 06 60 04 ld [ %i1 + 4 ], %g1
2006214: 80 a0 60 00 cmp %g1, 0
2006218: 02 80 00 06 be 2006230 <timer_create+0x54> <== NEVER TAKEN
200621c: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(evp->sigev_signo) )
2006220: 82 00 7f ff add %g1, -1, %g1
2006224: 80 a0 60 1f cmp %g1, 0x1f
2006228: 28 80 00 06 bleu,a 2006240 <timer_create+0x64> <== ALWAYS TAKEN
200622c: 03 00 80 8a sethi %hi(0x2022800), %g1
rtems_set_errno_and_return_minus_one( EINVAL );
2006230: 40 00 2c eb call 20115dc <__errno>
2006234: 01 00 00 00 nop
2006238: 10 80 00 10 b 2006278 <timer_create+0x9c>
200623c: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
2006240: c4 00 62 c0 ld [ %g1 + 0x2c0 ], %g2
2006244: 84 00 a0 01 inc %g2
2006248: c4 20 62 c0 st %g2, [ %g1 + 0x2c0 ]
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{
return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
200624c: 11 00 80 8b sethi %hi(0x2022c00), %o0
2006250: 40 00 07 da call 20081b8 <_Objects_Allocate>
2006254: 90 12 22 10 or %o0, 0x210, %o0 ! 2022e10 <_POSIX_Timer_Information>
/*
* Allocate a timer
*/
ptimer = _POSIX_Timer_Allocate();
if ( !ptimer ) {
2006258: 80 a2 20 00 cmp %o0, 0
200625c: 12 80 00 0a bne 2006284 <timer_create+0xa8>
2006260: 82 10 20 02 mov 2, %g1
_Thread_Enable_dispatch();
2006264: 40 00 0b 69 call 2009008 <_Thread_Enable_dispatch>
2006268: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EAGAIN );
200626c: 40 00 2c dc call 20115dc <__errno>
2006270: 01 00 00 00 nop
2006274: 82 10 20 0b mov 0xb, %g1 ! b <PROM_START+0xb>
2006278: c2 22 00 00 st %g1, [ %o0 ]
200627c: 81 c7 e0 08 ret
2006280: 91 e8 3f ff restore %g0, -1, %o0
}
/* The data of the created timer are stored to use them later */
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
2006284: c2 2a 20 3c stb %g1, [ %o0 + 0x3c ]
ptimer->thread_id = _Thread_Executing->Object.id;
2006288: 03 00 80 8a sethi %hi(0x2022800), %g1
200628c: c2 00 63 80 ld [ %g1 + 0x380 ], %g1 ! 2022b80 <_Thread_Executing>
if ( evp != NULL ) {
2006290: 80 a6 60 00 cmp %i1, 0
}
/* The data of the created timer are stored to use them later */
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
ptimer->thread_id = _Thread_Executing->Object.id;
2006294: c2 00 60 08 ld [ %g1 + 8 ], %g1
if ( evp != NULL ) {
2006298: 02 80 00 08 be 20062b8 <timer_create+0xdc>
200629c: c2 22 20 38 st %g1, [ %o0 + 0x38 ]
ptimer->inf.sigev_notify = evp->sigev_notify;
ptimer->inf.sigev_signo = evp->sigev_signo;
ptimer->inf.sigev_value = evp->sigev_value;
20062a0: c2 06 60 08 ld [ %i1 + 8 ], %g1
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
ptimer->thread_id = _Thread_Executing->Object.id;
if ( evp != NULL ) {
ptimer->inf.sigev_notify = evp->sigev_notify;
20062a4: c6 06 40 00 ld [ %i1 ], %g3
ptimer->inf.sigev_signo = evp->sigev_signo;
20062a8: c4 06 60 04 ld [ %i1 + 4 ], %g2
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
ptimer->thread_id = _Thread_Executing->Object.id;
if ( evp != NULL ) {
ptimer->inf.sigev_notify = evp->sigev_notify;
20062ac: c6 22 20 40 st %g3, [ %o0 + 0x40 ]
ptimer->inf.sigev_signo = evp->sigev_signo;
20062b0: c4 22 20 44 st %g2, [ %o0 + 0x44 ]
ptimer->inf.sigev_value = evp->sigev_value;
20062b4: c2 22 20 48 st %g1, [ %o0 + 0x48 ]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
20062b8: c2 12 20 0a lduh [ %o0 + 0xa ], %g1
20062bc: 05 00 80 8b sethi %hi(0x2022c00), %g2
20062c0: c4 00 a2 2c ld [ %g2 + 0x22c ], %g2 ! 2022e2c <_POSIX_Timer_Information+0x1c>
20062c4: 83 28 60 02 sll %g1, 2, %g1
20062c8: d0 20 80 01 st %o0, [ %g2 + %g1 ]
20062cc: c2 02 20 08 ld [ %o0 + 8 ], %g1
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
20062d0: c0 22 20 0c clr [ %o0 + 0xc ]
}
ptimer->overrun = 0;
20062d4: c0 22 20 68 clr [ %o0 + 0x68 ]
ptimer->timer_data.it_value.tv_sec = 0;
20062d8: c0 22 20 5c clr [ %o0 + 0x5c ]
ptimer->timer_data.it_value.tv_nsec = 0;
20062dc: c0 22 20 60 clr [ %o0 + 0x60 ]
ptimer->timer_data.it_interval.tv_sec = 0;
20062e0: c0 22 20 54 clr [ %o0 + 0x54 ]
ptimer->timer_data.it_interval.tv_nsec = 0;
20062e4: c0 22 20 58 clr [ %o0 + 0x58 ]
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
20062e8: c0 22 20 30 clr [ %o0 + 0x30 ]
_Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );
_Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);
*timerid = ptimer->Object.id;
20062ec: c2 26 80 00 st %g1, [ %i2 ]
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
20062f0: c0 22 20 18 clr [ %o0 + 0x18 ]
the_watchdog->routine = routine;
20062f4: c0 22 20 2c clr [ %o0 + 0x2c ]
the_watchdog->id = id;
the_watchdog->user_data = user_data;
20062f8: c0 22 20 34 clr [ %o0 + 0x34 ]
_Thread_Enable_dispatch();
20062fc: 40 00 0b 43 call 2009008 <_Thread_Enable_dispatch>
2006300: b0 10 20 00 clr %i0
return 0;
}
2006304: 81 c7 e0 08 ret
2006308: 81 e8 00 00 restore
0200630c <timer_settime>:
timer_t timerid,
int flags,
const struct itimerspec *value,
struct itimerspec *ovalue
)
{
200630c: 9d e3 bf 80 save %sp, -128, %sp
Objects_Locations location;
bool activated;
uint32_t initial_period;
struct itimerspec normalize;
if ( !value )
2006310: 80 a6 a0 00 cmp %i2, 0
2006314: 02 80 00 20 be 2006394 <timer_settime+0x88> <== NEVER TAKEN
2006318: 03 0e e6 b2 sethi %hi(0x3b9ac800), %g1
rtems_set_errno_and_return_minus_one( EINVAL );
/* First, it verifies if the structure "value" is correct */
if ( ( value->it_value.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) ||
200631c: c4 06 a0 0c ld [ %i2 + 0xc ], %g2
2006320: 82 10 61 ff or %g1, 0x1ff, %g1
2006324: 80 a0 80 01 cmp %g2, %g1
2006328: 18 80 00 1b bgu 2006394 <timer_settime+0x88>
200632c: 01 00 00 00 nop
( value->it_value.tv_nsec < 0 ) ||
( value->it_interval.tv_nsec >= TOD_NANOSECONDS_PER_SECOND) ||
2006330: c4 06 a0 04 ld [ %i2 + 4 ], %g2
2006334: 80 a0 80 01 cmp %g2, %g1
2006338: 18 80 00 17 bgu 2006394 <timer_settime+0x88> <== NEVER TAKEN
200633c: 80 a6 60 00 cmp %i1, 0
( value->it_interval.tv_nsec < 0 )) {
/* The number of nanoseconds is not correct */
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {
2006340: 02 80 00 05 be 2006354 <timer_settime+0x48>
2006344: 90 07 bf e4 add %fp, -28, %o0
2006348: 80 a6 60 04 cmp %i1, 4
200634c: 12 80 00 12 bne 2006394 <timer_settime+0x88>
2006350: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
}
normalize = *value;
2006354: 92 10 00 1a mov %i2, %o1
2006358: 40 00 2e f7 call 2011f34 <memcpy>
200635c: 94 10 20 10 mov 0x10, %o2
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
2006360: 80 a6 60 04 cmp %i1, 4
2006364: 12 80 00 16 bne 20063bc <timer_settime+0xb0>
2006368: 92 10 00 18 mov %i0, %o1
struct timespec now;
_TOD_Get( &now );
200636c: a0 07 bf f4 add %fp, -12, %l0
2006370: 40 00 06 31 call 2007c34 <_TOD_Get>
2006374: 90 10 00 10 mov %l0, %o0
/* Check for seconds in the past */
if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
2006378: b2 07 bf ec add %fp, -20, %i1
200637c: 90 10 00 10 mov %l0, %o0
2006380: 40 00 0e c9 call 2009ea4 <_Timespec_Greater_than>
2006384: 92 10 00 19 mov %i1, %o1
2006388: 80 8a 20 ff btst 0xff, %o0
200638c: 02 80 00 08 be 20063ac <timer_settime+0xa0>
2006390: 92 10 00 19 mov %i1, %o1
rtems_set_errno_and_return_minus_one( EINVAL );
2006394: 40 00 2c 92 call 20115dc <__errno>
2006398: b0 10 3f ff mov -1, %i0
200639c: 82 10 20 16 mov 0x16, %g1
20063a0: c2 22 00 00 st %g1, [ %o0 ]
20063a4: 81 c7 e0 08 ret
20063a8: 81 e8 00 00 restore
_Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
20063ac: 90 10 00 10 mov %l0, %o0
20063b0: 40 00 0e ce call 2009ee8 <_Timespec_Subtract>
20063b4: 94 10 00 19 mov %i1, %o2
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get (
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
20063b8: 92 10 00 18 mov %i0, %o1
20063bc: 11 00 80 8b sethi %hi(0x2022c00), %o0
20063c0: 94 07 bf fc add %fp, -4, %o2
20063c4: 40 00 08 bc call 20086b4 <_Objects_Get>
20063c8: 90 12 22 10 or %o0, 0x210, %o0
* something with the structure of times of the timer: to stop, start
* or start it again
*/
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
20063cc: c2 07 bf fc ld [ %fp + -4 ], %g1
20063d0: 80 a0 60 00 cmp %g1, 0
20063d4: 12 80 00 38 bne 20064b4 <timer_settime+0x1a8>
20063d8: a0 10 00 08 mov %o0, %l0
case OBJECTS_LOCAL:
/* First, it verifies if the timer must be stopped */
if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
20063dc: c2 07 bf ec ld [ %fp + -20 ], %g1
20063e0: 80 a0 60 00 cmp %g1, 0
20063e4: 12 80 00 14 bne 2006434 <timer_settime+0x128>
20063e8: c2 07 bf f0 ld [ %fp + -16 ], %g1
20063ec: 80 a0 60 00 cmp %g1, 0
20063f0: 12 80 00 11 bne 2006434 <timer_settime+0x128>
20063f4: 01 00 00 00 nop
/* Stop the timer */
(void) _Watchdog_Remove( &ptimer->Timer );
20063f8: 40 00 0f fe call 200a3f0 <_Watchdog_Remove>
20063fc: 90 02 20 10 add %o0, 0x10, %o0
/* The old data of the timer are returned */
if ( ovalue )
2006400: 80 a6 e0 00 cmp %i3, 0
2006404: 02 80 00 05 be 2006418 <timer_settime+0x10c>
2006408: 90 10 00 1b mov %i3, %o0
*ovalue = ptimer->timer_data;
200640c: 92 04 20 54 add %l0, 0x54, %o1
2006410: 40 00 2e c9 call 2011f34 <memcpy>
2006414: 94 10 20 10 mov 0x10, %o2
/* The new data are set */
ptimer->timer_data = normalize;
2006418: 92 07 bf e4 add %fp, -28, %o1
200641c: 94 10 20 10 mov 0x10, %o2
2006420: 40 00 2e c5 call 2011f34 <memcpy>
2006424: 90 04 20 54 add %l0, 0x54, %o0
/* Indicates that the timer is created and stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
2006428: 82 10 20 04 mov 4, %g1
200642c: 10 80 00 1e b 20064a4 <timer_settime+0x198>
2006430: c2 2c 20 3c stb %g1, [ %l0 + 0x3c ]
_Thread_Enable_dispatch();
return 0;
}
/* Convert from seconds and nanoseconds to ticks */
ptimer->ticks = _Timespec_To_ticks( &value->it_interval );
2006434: 40 00 0e c1 call 2009f38 <_Timespec_To_ticks>
2006438: 90 10 00 1a mov %i2, %o0
200643c: d0 24 20 64 st %o0, [ %l0 + 0x64 ]
initial_period = _Timespec_To_ticks( &normalize.it_value );
2006440: 40 00 0e be call 2009f38 <_Timespec_To_ticks>
2006444: 90 07 bf ec add %fp, -20, %o0
activated = _POSIX_Timer_Insert_helper(
2006448: d4 04 20 08 ld [ %l0 + 8 ], %o2
return 0;
}
/* Convert from seconds and nanoseconds to ticks */
ptimer->ticks = _Timespec_To_ticks( &value->it_interval );
initial_period = _Timespec_To_ticks( &normalize.it_value );
200644c: 92 10 00 08 mov %o0, %o1
activated = _POSIX_Timer_Insert_helper(
2006450: 17 00 80 19 sethi %hi(0x2006400), %o3
2006454: 90 04 20 10 add %l0, 0x10, %o0
2006458: 96 12 e0 cc or %o3, 0xcc, %o3
200645c: 40 00 1d 75 call 200da30 <_POSIX_Timer_Insert_helper>
2006460: 98 10 00 10 mov %l0, %o4
initial_period,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated ) {
2006464: 80 8a 20 ff btst 0xff, %o0
2006468: 02 80 00 0f be 20064a4 <timer_settime+0x198>
200646c: 80 a6 e0 00 cmp %i3, 0
/*
* The timer has been started and is running. So we return the
* old ones in "ovalue"
*/
if ( ovalue )
2006470: 02 80 00 05 be 2006484 <timer_settime+0x178>
2006474: 90 10 00 1b mov %i3, %o0
*ovalue = ptimer->timer_data;
2006478: 92 04 20 54 add %l0, 0x54, %o1
200647c: 40 00 2e ae call 2011f34 <memcpy>
2006480: 94 10 20 10 mov 0x10, %o2
ptimer->timer_data = normalize;
2006484: 92 07 bf e4 add %fp, -28, %o1
2006488: 94 10 20 10 mov 0x10, %o2
200648c: 40 00 2e aa call 2011f34 <memcpy>
2006490: 90 04 20 54 add %l0, 0x54, %o0
/* Indicate that the time is running */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
2006494: 82 10 20 03 mov 3, %g1
_TOD_Get( &ptimer->time );
2006498: 90 04 20 6c add %l0, 0x6c, %o0
200649c: 40 00 05 e6 call 2007c34 <_TOD_Get>
20064a0: c2 2c 20 3c stb %g1, [ %l0 + 0x3c ]
_Thread_Enable_dispatch();
20064a4: 40 00 0a d9 call 2009008 <_Thread_Enable_dispatch>
20064a8: b0 10 20 00 clr %i0
return 0;
20064ac: 81 c7 e0 08 ret
20064b0: 81 e8 00 00 restore
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
20064b4: 40 00 2c 4a call 20115dc <__errno>
20064b8: b0 10 3f ff mov -1, %i0
20064bc: 82 10 20 16 mov 0x16, %g1
20064c0: c2 22 00 00 st %g1, [ %o0 ]
}
20064c4: 81 c7 e0 08 ret
20064c8: 81 e8 00 00 restore
020060e0 <ualarm>:
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
20060e0: 9d e3 bf 98 save %sp, -104, %sp
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
20060e4: 21 00 80 82 sethi %hi(0x2020800), %l0
20060e8: a0 14 21 70 or %l0, 0x170, %l0 ! 2020970 <_POSIX_signals_Ualarm_timer>
20060ec: c2 04 20 1c ld [ %l0 + 0x1c ], %g1
20060f0: 80 a0 60 00 cmp %g1, 0
20060f4: 12 80 00 0a bne 200611c <ualarm+0x3c>
20060f8: a2 10 00 18 mov %i0, %l1
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
20060fc: 03 00 80 18 sethi %hi(0x2006000), %g1
the_watchdog->id = id;
the_watchdog->user_data = user_data;
2006100: c0 24 20 24 clr [ %l0 + 0x24 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2006104: 82 10 61 f4 or %g1, 0x1f4, %g1
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
2006108: c0 24 20 08 clr [ %l0 + 8 ]
the_watchdog->routine = routine;
the_watchdog->id = id;
200610c: c0 24 20 20 clr [ %l0 + 0x20 ]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
2006110: c2 24 20 1c st %g1, [ %l0 + 0x1c ]
the_watchdog->id = id;
the_watchdog->user_data = user_data;
2006114: 10 80 00 1b b 2006180 <ualarm+0xa0>
2006118: b0 10 20 00 clr %i0
_Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
200611c: 40 00 0f ae call 2009fd4 <_Watchdog_Remove>
2006120: 90 10 00 10 mov %l0, %o0
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
2006124: 90 02 3f fe add %o0, -2, %o0
2006128: 80 a2 20 01 cmp %o0, 1
200612c: 18 80 00 15 bgu 2006180 <ualarm+0xa0> <== NEVER TAKEN
2006130: b0 10 20 00 clr %i0
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
2006134: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
2006138: c4 04 20 0c ld [ %l0 + 0xc ], %g2
200613c: d0 04 20 14 ld [ %l0 + 0x14 ], %o0
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
2006140: 92 07 bf f8 add %fp, -8, %o1
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
2006144: 90 02 00 02 add %o0, %g2, %o0
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
2006148: 40 00 0e 25 call 20099dc <_Timespec_From_ticks>
200614c: 90 22 00 01 sub %o0, %g1, %o0
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
2006150: c2 07 bf f8 ld [ %fp + -8 ], %g1
remaining += tp.tv_nsec / 1000;
2006154: d0 07 bf fc ld [ %fp + -4 ], %o0
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
2006158: b1 28 60 08 sll %g1, 8, %i0
200615c: 85 28 60 03 sll %g1, 3, %g2
2006160: 84 26 00 02 sub %i0, %g2, %g2
remaining += tp.tv_nsec / 1000;
2006164: 92 10 23 e8 mov 0x3e8, %o1
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
2006168: b1 28 a0 06 sll %g2, 6, %i0
200616c: b0 26 00 02 sub %i0, %g2, %i0
remaining += tp.tv_nsec / 1000;
2006170: 40 00 55 fc call 201b960 <.div>
2006174: b0 06 00 01 add %i0, %g1, %i0
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
2006178: b1 2e 20 06 sll %i0, 6, %i0
remaining += tp.tv_nsec / 1000;
200617c: b0 02 00 18 add %o0, %i0, %i0
/*
* If useconds is non-zero, then the caller wants to schedule
* the alarm repeatedly at that interval. If the interval is
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
2006180: 80 a4 60 00 cmp %l1, 0
2006184: 02 80 00 1a be 20061ec <ualarm+0x10c>
2006188: 21 00 03 d0 sethi %hi(0xf4000), %l0
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
200618c: 90 10 00 11 mov %l1, %o0
2006190: 40 00 55 f2 call 201b958 <.udiv>
2006194: 92 14 22 40 or %l0, 0x240, %o1
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
2006198: 92 14 22 40 or %l0, 0x240, %o1
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
200619c: d0 27 bf f8 st %o0, [ %fp + -8 ]
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
20061a0: 40 00 56 9a call 201bc08 <.urem>
20061a4: 90 10 00 11 mov %l1, %o0
20061a8: 85 2a 20 07 sll %o0, 7, %g2
20061ac: 83 2a 20 02 sll %o0, 2, %g1
20061b0: 82 20 80 01 sub %g2, %g1, %g1
20061b4: 90 00 40 08 add %g1, %o0, %o0
20061b8: 91 2a 20 03 sll %o0, 3, %o0
ticks = _Timespec_To_ticks( &tp );
20061bc: a0 07 bf f8 add %fp, -8, %l0
*/
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
20061c0: d0 27 bf fc st %o0, [ %fp + -4 ]
ticks = _Timespec_To_ticks( &tp );
20061c4: 40 00 0e 2f call 2009a80 <_Timespec_To_ticks>
20061c8: 90 10 00 10 mov %l0, %o0
if ( ticks == 0 )
ticks = 1;
_Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );
20061cc: 40 00 0e 2d call 2009a80 <_Timespec_To_ticks>
20061d0: 90 10 00 10 mov %l0, %o0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
20061d4: 13 00 80 82 sethi %hi(0x2020800), %o1
20061d8: 92 12 61 70 or %o1, 0x170, %o1 ! 2020970 <_POSIX_signals_Ualarm_timer>
20061dc: d0 22 60 0c st %o0, [ %o1 + 0xc ]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
20061e0: 11 00 80 80 sethi %hi(0x2020000), %o0
20061e4: 40 00 0f 20 call 2009e64 <_Watchdog_Insert>
20061e8: 90 12 21 50 or %o0, 0x150, %o0 ! 2020150 <_Watchdog_Ticks_chain>
}
return remaining;
}
20061ec: 81 c7 e0 08 ret
20061f0: 81 e8 00 00 restore
0200f730 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
200f730: 9d e3 bf 70 save %sp, -144, %sp
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
200f734: 7f ff cc 89 call 2002958 <rtems_filesystem_dirname>
200f738: 90 10 00 18 mov %i0, %o0
if ( parentpathlen == 0 )
200f73c: a6 92 20 00 orcc %o0, 0, %l3
200f740: 12 80 00 09 bne 200f764 <unlink+0x34>
200f744: 96 07 bf e8 add %fp, -24, %o3
rtems_filesystem_get_start_loc( path, &i, &parentloc );
200f748: 94 10 00 0b mov %o3, %o2
200f74c: 90 10 00 18 mov %i0, %o0
200f750: 92 07 bf fc add %fp, -4, %o1
200f754: 7f ff d0 c8 call 2003a74 <rtems_filesystem_get_start_loc>
200f758: a2 10 20 00 clr %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200f75c: 10 80 00 0b b 200f788 <unlink+0x58>
200f760: 94 10 20 14 mov 0x14, %o2
parentpathlen = rtems_filesystem_dirname ( path );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
200f764: 90 10 00 18 mov %i0, %o0
200f768: 92 10 00 13 mov %l3, %o1
200f76c: 94 10 20 02 mov 2, %o2
200f770: 7f ff cc c6 call 2002a88 <rtems_filesystem_evaluate_path>
200f774: 98 10 20 00 clr %o4
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
200f778: 80 a2 20 00 cmp %o0, 0
200f77c: 12 80 00 82 bne 200f984 <unlink+0x254> <== NEVER TAKEN
200f780: a2 10 20 01 mov 1, %l1
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
200f784: 94 10 20 14 mov 0x14, %o2
200f788: a0 07 bf d4 add %fp, -44, %l0
200f78c: a4 07 bf e8 add %fp, -24, %l2
200f790: 90 10 00 10 mov %l0, %o0
200f794: 40 00 06 a9 call 2011238 <memcpy>
200f798: 92 10 00 12 mov %l2, %o1
name = path + parentpathlen;
200f79c: b0 06 00 13 add %i0, %l3, %i0
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
200f7a0: 40 00 08 37 call 201187c <strlen>
200f7a4: 90 10 00 18 mov %i0, %o0
200f7a8: 92 10 00 08 mov %o0, %o1
200f7ac: 7f ff cc 59 call 2002910 <rtems_filesystem_prefix_separators>
200f7b0: 90 10 00 18 mov %i0, %o0
200f7b4: b0 06 00 08 add %i0, %o0, %i0
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
200f7b8: 40 00 08 31 call 201187c <strlen>
200f7bc: 90 10 00 18 mov %i0, %o0
200f7c0: 94 10 20 00 clr %o2
200f7c4: 92 10 00 08 mov %o0, %o1
200f7c8: 96 10 00 10 mov %l0, %o3
200f7cc: 90 10 00 18 mov %i0, %o0
200f7d0: 7f ff cc 72 call 2002998 <rtems_filesystem_evaluate_relative_path>
200f7d4: 98 10 20 00 clr %o4
0, &loc, false );
if ( result != 0 ) {
200f7d8: 80 a2 20 00 cmp %o0, 0
200f7dc: 02 80 00 11 be 200f820 <unlink+0xf0>
200f7e0: c4 07 bf e0 ld [ %fp + -32 ], %g2
if ( free_parentloc )
200f7e4: 80 8c 60 ff btst 0xff, %l1
200f7e8: 02 80 00 0c be 200f818 <unlink+0xe8> <== NEVER TAKEN
200f7ec: b0 10 3f ff mov -1, %i0
rtems_filesystem_freenode( &parentloc );
200f7f0: c2 07 bf f4 ld [ %fp + -12 ], %g1
200f7f4: 80 a0 60 00 cmp %g1, 0
200f7f8: 02 80 00 64 be 200f988 <unlink+0x258> <== NEVER TAKEN
200f7fc: 01 00 00 00 nop
200f800: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200f804: 80 a0 60 00 cmp %g1, 0
200f808: 02 80 00 04 be 200f818 <unlink+0xe8> <== NEVER TAKEN
200f80c: 90 10 00 12 mov %l2, %o0
200f810: 9f c0 40 00 call %g1
200f814: 01 00 00 00 nop
200f818: 81 c7 e0 08 ret
200f81c: 81 e8 00 00 restore
return -1;
}
if ( !loc.ops->node_type_h ) {
200f820: c2 00 a0 10 ld [ %g2 + 0x10 ], %g1
200f824: 80 a0 60 00 cmp %g1, 0
200f828: 22 80 00 26 be,a 200f8c0 <unlink+0x190> <== NEVER TAKEN
200f82c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
200f830: 9f c0 40 00 call %g1
200f834: 90 10 00 10 mov %l0, %o0
200f838: 80 a2 20 01 cmp %o0, 1
200f83c: 12 80 00 1c bne 200f8ac <unlink+0x17c>
200f840: c4 07 bf e0 ld [ %fp + -32 ], %g2
rtems_filesystem_freenode( &loc );
200f844: 80 a0 a0 00 cmp %g2, 0
200f848: 02 80 00 09 be 200f86c <unlink+0x13c> <== NEVER TAKEN
200f84c: 80 8c 60 ff btst 0xff, %l1
200f850: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1
200f854: 80 a0 60 00 cmp %g1, 0
200f858: 02 80 00 05 be 200f86c <unlink+0x13c> <== NEVER TAKEN
200f85c: 80 8c 60 ff btst 0xff, %l1
200f860: 9f c0 40 00 call %g1
200f864: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
200f868: 80 8c 60 ff btst 0xff, %l1
200f86c: 02 80 00 0c be 200f89c <unlink+0x16c> <== ALWAYS TAKEN
200f870: 01 00 00 00 nop
rtems_filesystem_freenode( &parentloc );
200f874: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
200f878: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f87c: 02 80 00 08 be 200f89c <unlink+0x16c> <== NOT EXECUTED
200f880: 01 00 00 00 nop <== NOT EXECUTED
200f884: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200f888: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f88c: 02 80 00 04 be 200f89c <unlink+0x16c> <== NOT EXECUTED
200f890: 01 00 00 00 nop <== NOT EXECUTED
200f894: 9f c0 40 00 call %g1 <== NOT EXECUTED
200f898: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
200f89c: 40 00 04 2b call 2010948 <__errno>
200f8a0: b0 10 3f ff mov -1, %i0
200f8a4: 10 80 00 1b b 200f910 <unlink+0x1e0>
200f8a8: 82 10 20 15 mov 0x15, %g1
}
if ( !loc.ops->unlink_h ) {
200f8ac: c2 00 a0 0c ld [ %g2 + 0xc ], %g1
200f8b0: 80 a0 60 00 cmp %g1, 0
200f8b4: 12 80 00 1a bne 200f91c <unlink+0x1ec> <== ALWAYS TAKEN
200f8b8: 90 10 00 12 mov %l2, %o0
rtems_filesystem_freenode( &loc );
200f8bc: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
200f8c0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f8c4: 02 80 00 05 be 200f8d8 <unlink+0x1a8> <== NOT EXECUTED
200f8c8: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
200f8cc: 9f c0 40 00 call %g1 <== NOT EXECUTED
200f8d0: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
if ( free_parentloc )
200f8d4: 80 8c 60 ff btst 0xff, %l1 <== NOT EXECUTED
200f8d8: 02 80 00 0b be 200f904 <unlink+0x1d4> <== NOT EXECUTED
200f8dc: c2 07 bf f4 ld [ %fp + -12 ], %g1 <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
200f8e0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f8e4: 02 80 00 08 be 200f904 <unlink+0x1d4> <== NOT EXECUTED
200f8e8: 01 00 00 00 nop <== NOT EXECUTED
200f8ec: c2 00 60 1c ld [ %g1 + 0x1c ], %g1 <== NOT EXECUTED
200f8f0: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
200f8f4: 02 80 00 04 be 200f904 <unlink+0x1d4> <== NOT EXECUTED
200f8f8: 01 00 00 00 nop <== NOT EXECUTED
200f8fc: 9f c0 40 00 call %g1 <== NOT EXECUTED
200f900: 90 07 bf e8 add %fp, -24, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
200f904: 40 00 04 11 call 2010948 <__errno> <== NOT EXECUTED
200f908: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
200f90c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
200f910: c2 22 00 00 st %g1, [ %o0 ]
200f914: 81 c7 e0 08 ret
200f918: 81 e8 00 00 restore
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
200f91c: 9f c0 40 00 call %g1
200f920: 92 10 00 10 mov %l0, %o1
rtems_filesystem_freenode( &loc );
200f924: c2 07 bf e0 ld [ %fp + -32 ], %g1
200f928: 80 a0 60 00 cmp %g1, 0
200f92c: 02 80 00 08 be 200f94c <unlink+0x21c> <== NEVER TAKEN
200f930: b0 10 00 08 mov %o0, %i0
200f934: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200f938: 80 a0 60 00 cmp %g1, 0
200f93c: 02 80 00 05 be 200f950 <unlink+0x220> <== NEVER TAKEN
200f940: 80 8c 60 ff btst 0xff, %l1
200f944: 9f c0 40 00 call %g1
200f948: 90 10 00 10 mov %l0, %o0
if ( free_parentloc )
200f94c: 80 8c 60 ff btst 0xff, %l1
200f950: 02 bf ff b2 be 200f818 <unlink+0xe8>
200f954: c2 07 bf f4 ld [ %fp + -12 ], %g1
rtems_filesystem_freenode( &parentloc );
200f958: 80 a0 60 00 cmp %g1, 0
200f95c: 02 80 00 0b be 200f988 <unlink+0x258> <== NEVER TAKEN
200f960: 01 00 00 00 nop
200f964: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
200f968: 80 a0 60 00 cmp %g1, 0
200f96c: 02 80 00 07 be 200f988 <unlink+0x258> <== NEVER TAKEN
200f970: 01 00 00 00 nop
200f974: 9f c0 40 00 call %g1
200f978: 90 07 bf e8 add %fp, -24, %o0
200f97c: 81 c7 e0 08 ret
200f980: 81 e8 00 00 restore
200f984: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
return result;
}
200f988: 81 c7 e0 08 ret <== NOT EXECUTED
200f98c: 81 e8 00 00 restore <== NOT EXECUTED
0202acf4 <unmount>:
*/
int unmount(
const char *path
)
{
202acf4: 9d e3 bf 88 save %sp, -120, %sp
* The root node of the mounted filesytem.
* The node for the directory that the fileystem is mounted on.
* The mount entry that is being refered to.
*/
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
202acf8: 40 00 81 23 call 204b184 <strlen>
202acfc: 90 10 00 18 mov %i0, %o0
202ad00: a0 07 bf ec add %fp, -20, %l0
202ad04: 92 10 00 08 mov %o0, %o1
202ad08: 94 10 20 00 clr %o2
202ad0c: 90 10 00 18 mov %i0, %o0
202ad10: 96 10 00 10 mov %l0, %o3
202ad14: 7f ff 75 36 call 20081ec <rtems_filesystem_evaluate_path>
202ad18: 98 10 20 01 mov 1, %o4
202ad1c: 80 a2 20 00 cmp %o0, 0
202ad20: 12 80 00 6f bne 202aedc <unmount+0x1e8>
202ad24: e2 07 bf fc ld [ %fp + -4 ], %l1
return -1;
mt_entry = loc.mt_entry;
fs_mount_loc = &mt_entry->mt_point_node;
fs_root_loc = &mt_entry->mt_fs_root;
202ad28: c4 07 bf ec ld [ %fp + -20 ], %g2
202ad2c: c6 04 60 1c ld [ %l1 + 0x1c ], %g3
202ad30: 80 a0 c0 02 cmp %g3, %g2
202ad34: 02 80 00 0f be 202ad70 <unmount+0x7c>
202ad38: c2 07 bf f8 ld [ %fp + -8 ], %g1
/*
* Verify this is the root node for the file system to be unmounted.
*/
if ( fs_root_loc->node_access != loc.node_access ){
rtems_filesystem_freenode( &loc );
202ad3c: 80 a0 60 00 cmp %g1, 0
202ad40: 02 80 00 08 be 202ad60 <unmount+0x6c> <== NEVER TAKEN
202ad44: 01 00 00 00 nop
202ad48: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202ad4c: 80 a0 60 00 cmp %g1, 0
202ad50: 02 80 00 04 be 202ad60 <unmount+0x6c> <== NEVER TAKEN
202ad54: 01 00 00 00 nop
202ad58: 9f c0 40 00 call %g1
202ad5c: 90 10 00 10 mov %l0, %o0
rtems_set_errno_and_return_minus_one( EACCES );
202ad60: 40 00 65 4d call 2044294 <__errno>
202ad64: 01 00 00 00 nop
202ad68: 10 80 00 21 b 202adec <unmount+0xf8>
202ad6c: 82 10 20 0d mov 0xd, %g1 ! d <PROM_START+0xd>
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
202ad70: 80 a0 60 00 cmp %g1, 0
202ad74: 22 80 00 09 be,a 202ad98 <unmount+0xa4> <== NEVER TAKEN
202ad78: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202ad7c: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202ad80: 80 a0 60 00 cmp %g1, 0
202ad84: 22 80 00 05 be,a 202ad98 <unmount+0xa4> <== NEVER TAKEN
202ad88: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202ad8c: 9f c0 40 00 call %g1
202ad90: 90 10 00 10 mov %l0, %o0
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
return -1;
mt_entry = loc.mt_entry;
fs_mount_loc = &mt_entry->mt_point_node;
202ad94: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202ad98: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202ad9c: 80 a0 60 00 cmp %g1, 0
202ada0: 02 80 00 07 be 202adbc <unmount+0xc8> <== NEVER TAKEN
202ada4: 01 00 00 00 nop
fs_root_loc = &mt_entry->mt_fs_root;
202ada8: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
202adac: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
202adb0: 80 a0 60 00 cmp %g1, 0
202adb4: 32 80 00 06 bne,a 202adcc <unmount+0xd8> <== ALWAYS TAKEN
202adb8: 03 00 81 ab sethi %hi(0x206ac00), %g1
if ( !fs_mount_loc->ops->unmount_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
if ( !fs_root_loc->ops->fsunmount_me_h )
rtems_set_errno_and_return_minus_one( ENOTSUP );
202adbc: 40 00 65 36 call 2044294 <__errno> <== NOT EXECUTED
202adc0: 01 00 00 00 nop <== NOT EXECUTED
202adc4: 10 80 00 0a b 202adec <unmount+0xf8> <== NOT EXECUTED
202adc8: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
* that made the current node thread based instead
* of system based? I thought it was but it doesn't
* look like it in this version.
*/
if ( rtems_filesystem_current.mt_entry == mt_entry )
202adcc: c2 00 61 64 ld [ %g1 + 0x164 ], %g1
202add0: c2 00 60 14 ld [ %g1 + 0x14 ], %g1
202add4: 80 a0 40 11 cmp %g1, %l1
202add8: 32 80 00 08 bne,a 202adf8 <unmount+0x104>
202addc: d2 04 60 2c ld [ %l1 + 0x2c ], %o1
rtems_set_errno_and_return_minus_one( EBUSY );
202ade0: 40 00 65 2d call 2044294 <__errno>
202ade4: 01 00 00 00 nop
202ade8: 82 10 20 10 mov 0x10, %g1 ! 10 <PROM_START+0x10>
202adec: c2 22 00 00 st %g1, [ %o0 ]
202adf0: 81 c7 e0 08 ret
202adf4: 91 e8 3f ff restore %g0, -1, %o0
/*
* Verify there are no file systems below the path specified
*/
if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,
202adf8: 11 00 80 ab sethi %hi(0x202ac00), %o0
202adfc: 7f ff 77 aa call 2008ca4 <rtems_filesystem_mount_iterate>
202ae00: 90 12 20 e0 or %o0, 0xe0, %o0 ! 202ace0 <is_fs_below_mount_point>
202ae04: 80 8a 20 ff btst 0xff, %o0
202ae08: 12 bf ff f6 bne 202ade0 <unmount+0xec>
202ae0c: 01 00 00 00 nop
* Run the file descriptor table to determine if there are any file
* descriptors that are currently active and reference nodes in the
* file system that we are trying to unmount
*/
if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )
202ae10: 7f ff 75 f9 call 20085f4 <rtems_libio_is_open_files_in_fs>
202ae14: 90 10 00 11 mov %l1, %o0
202ae18: 80 a2 20 01 cmp %o0, 1
202ae1c: 02 bf ff f1 be 202ade0 <unmount+0xec>
202ae20: 01 00 00 00 nop
* Allow the file system being unmounted on to do its cleanup.
* If it fails it will set the errno to the approprate value
* and the fileystem will not be modified.
*/
if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 )
202ae24: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202ae28: c2 00 60 28 ld [ %g1 + 0x28 ], %g1
202ae2c: 9f c0 40 00 call %g1
202ae30: 90 10 00 11 mov %l1, %o0
202ae34: 80 a2 20 00 cmp %o0, 0
202ae38: 12 80 00 29 bne 202aedc <unmount+0x1e8> <== NEVER TAKEN
202ae3c: 01 00 00 00 nop
* NOTE: Fatal error is called in a case which should never happen
* This was response was questionable but the best we could
* come up with.
*/
if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){
202ae40: c2 04 60 28 ld [ %l1 + 0x28 ], %g1
202ae44: c2 00 60 2c ld [ %g1 + 0x2c ], %g1
202ae48: 9f c0 40 00 call %g1
202ae4c: 90 10 00 11 mov %l1, %o0
202ae50: 80 a2 20 00 cmp %o0, 0
202ae54: 02 80 00 0b be 202ae80 <unmount+0x18c> <== ALWAYS TAKEN
202ae58: 21 00 81 ba sethi %hi(0x206e800), %l0
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
202ae5c: c2 04 60 14 ld [ %l1 + 0x14 ], %g1 <== NOT EXECUTED
202ae60: c2 00 60 20 ld [ %g1 + 0x20 ], %g1 <== NOT EXECUTED
202ae64: 9f c0 40 00 call %g1 <== NOT EXECUTED
202ae68: 90 10 00 11 mov %l1, %o0 <== NOT EXECUTED
202ae6c: 80 a2 20 00 cmp %o0, 0 <== NOT EXECUTED
202ae70: 02 80 00 1b be 202aedc <unmount+0x1e8> <== NOT EXECUTED
202ae74: 01 00 00 00 nop <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
202ae78: 7f ff 89 0a call 200d2a0 <rtems_fatal_error_occurred> <== NOT EXECUTED
202ae7c: 90 10 20 00 clr %o0 ! 0 <PROM_START> <== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
202ae80: d0 04 23 ac ld [ %l0 + 0x3ac ], %o0
202ae84: 92 10 20 00 clr %o1
202ae88: 7f ff 87 1a call 200caf0 <rtems_semaphore_obtain>
202ae8c: 94 10 20 00 clr %o2
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
202ae90: 7f ff 8a 4a call 200d7b8 <_Chain_Extract>
202ae94: 90 10 00 11 mov %l1, %o0
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
202ae98: 7f ff 87 5d call 200cc0c <rtems_semaphore_release>
202ae9c: d0 04 23 ac ld [ %l0 + 0x3ac ], %o0
/*
* Free the memory node that was allocated in mount
* Free the memory associated with the extracted mount table entry.
*/
rtems_filesystem_freenode( fs_mount_loc );
202aea0: c2 04 60 14 ld [ %l1 + 0x14 ], %g1
202aea4: 80 a0 60 00 cmp %g1, 0
202aea8: 02 80 00 09 be 202aecc <unmount+0x1d8> <== NEVER TAKEN
202aeac: 90 10 00 11 mov %l1, %o0
202aeb0: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202aeb4: 80 a0 60 00 cmp %g1, 0
202aeb8: 02 80 00 05 be 202aecc <unmount+0x1d8> <== NEVER TAKEN
202aebc: 01 00 00 00 nop
202aec0: 9f c0 40 00 call %g1
202aec4: 90 04 60 08 add %l1, 8, %o0
free( mt_entry );
202aec8: 90 10 00 11 mov %l1, %o0
202aecc: 7f ff 74 e5 call 2008260 <free>
202aed0: b0 10 20 00 clr %i0
return 0;
202aed4: 81 c7 e0 08 ret
202aed8: 81 e8 00 00 restore
}
202aedc: 81 c7 e0 08 ret
202aee0: 91 e8 3f ff restore %g0, -1, %o0
0202aee4 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
202aee4: 9d e3 bf 88 save %sp, -120, %sp
rtems_filesystem_location_info_t temp_loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
202aee8: 40 00 80 a7 call 204b184 <strlen>
202aeec: 90 10 00 18 mov %i0, %o0
202aef0: a0 07 bf ec add %fp, -20, %l0
202aef4: 92 10 00 08 mov %o0, %o1
202aef8: 94 10 20 00 clr %o2
202aefc: 90 10 00 18 mov %i0, %o0
202af00: 96 10 00 10 mov %l0, %o3
202af04: 98 10 20 01 mov 1, %o4
202af08: 7f ff 74 b9 call 20081ec <rtems_filesystem_evaluate_path>
202af0c: b0 10 3f ff mov -1, %i0
202af10: 80 a2 20 00 cmp %o0, 0
202af14: 12 80 00 10 bne 202af54 <utime+0x70>
202af18: c4 07 bf f8 ld [ %fp + -8 ], %g2
return -1;
if ( !temp_loc.ops->utime_h ){
202af1c: c2 00 a0 30 ld [ %g2 + 0x30 ], %g1
202af20: 80 a0 60 00 cmp %g1, 0
202af24: 32 80 00 0e bne,a 202af5c <utime+0x78> <== ALWAYS TAKEN
202af28: d4 06 60 04 ld [ %i1 + 4 ], %o2
rtems_filesystem_freenode( &temp_loc );
202af2c: c2 00 a0 1c ld [ %g2 + 0x1c ], %g1 <== NOT EXECUTED
202af30: 80 a0 60 00 cmp %g1, 0 <== NOT EXECUTED
202af34: 02 80 00 04 be 202af44 <utime+0x60> <== NOT EXECUTED
202af38: 01 00 00 00 nop <== NOT EXECUTED
202af3c: 9f c0 40 00 call %g1 <== NOT EXECUTED
202af40: 90 10 00 10 mov %l0, %o0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
202af44: 40 00 64 d4 call 2044294 <__errno> <== NOT EXECUTED
202af48: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
202af4c: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
202af50: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
202af54: 81 c7 e0 08 ret
202af58: 81 e8 00 00 restore
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
202af5c: d2 06 40 00 ld [ %i1 ], %o1
202af60: 9f c0 40 00 call %g1
202af64: 90 10 00 10 mov %l0, %o0
rtems_filesystem_freenode( &temp_loc );
202af68: c2 07 bf f8 ld [ %fp + -8 ], %g1
202af6c: 80 a0 60 00 cmp %g1, 0
202af70: 02 bf ff f9 be 202af54 <utime+0x70> <== NEVER TAKEN
202af74: b0 10 00 08 mov %o0, %i0
202af78: c2 00 60 1c ld [ %g1 + 0x1c ], %g1
202af7c: 80 a0 60 00 cmp %g1, 0
202af80: 02 80 00 04 be 202af90 <utime+0xac> <== NEVER TAKEN
202af84: 01 00 00 00 nop
202af88: 9f c0 40 00 call %g1
202af8c: 90 10 00 10 mov %l0, %o0
return result;
}
202af90: 81 c7 e0 08 ret
202af94: 81 e8 00 00 restore
020058dc <vprintk>:
*/
void vprintk(
const char *fmt,
va_list ap
)
{
20058dc: 9d e3 bf 88 save %sp, -120, %sp
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
20058e0: 23 00 80 76 sethi %hi(0x201d800), %l1
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
20058e4: 39 00 80 71 sethi %hi(0x201c400), %i4
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
20058e8: 3b 00 80 71 sethi %hi(0x201c400), %i5
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
20058ec: a2 14 60 4c or %l1, 0x4c, %l1
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
20058f0: b8 17 20 90 or %i4, 0x90, %i4
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
if ( str == NULL ) {
20058f4: ba 17 60 88 or %i5, 0x88, %i5
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
20058f8: 10 80 00 c4 b 2005c08 <vprintk+0x32c>
20058fc: ac 07 bf e8 add %fp, -24, %l6
bool minus = false;
bool sign = false;
char lead = ' ';
char c;
if (*fmt != '%') {
2005900: 32 80 00 88 bne,a 2005b20 <vprintk+0x244>
2005904: c2 04 40 00 ld [ %l1 ], %g1
BSP_output_char(*fmt);
continue;
}
fmt++;
2005908: b0 06 20 01 inc %i0
if (*fmt == '0' ) {
200590c: c2 4e 00 00 ldsb [ %i0 ], %g1
2005910: 80 a0 60 30 cmp %g1, 0x30
2005914: 12 80 00 05 bne 2005928 <vprintk+0x4c>
2005918: b6 10 20 20 mov 0x20, %i3
lead = '0';
fmt++;
200591c: b0 06 20 01 inc %i0
2005920: b6 10 20 30 mov 0x30, %i3
}
if (*fmt == '-' ) {
2005924: c2 4e 00 00 ldsb [ %i0 ], %g1
2005928: 80 a0 60 2d cmp %g1, 0x2d
200592c: 12 80 00 04 bne 200593c <vprintk+0x60>
2005930: a8 10 20 00 clr %l4
minus = true;
fmt++;
2005934: b0 06 20 01 inc %i0
2005938: a8 10 20 01 mov 1, %l4
200593c: 10 80 00 08 b 200595c <vprintk+0x80>
2005940: a0 10 20 00 clr %l0
}
while (*fmt >= '0' && *fmt <= '9' ) {
width *= 10;
width += ((unsigned) *fmt - '0');
2005944: 83 38 60 18 sra %g1, 0x18, %g1
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
width *= 10;
2005948: a1 2c 20 01 sll %l0, 1, %l0
width += ((unsigned) *fmt - '0');
200594c: 82 00 7f d0 add %g1, -48, %g1
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
width *= 10;
2005950: a0 04 00 02 add %l0, %g2, %l0
width += ((unsigned) *fmt - '0');
fmt++;
2005954: b0 06 20 01 inc %i0
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
width *= 10;
width += ((unsigned) *fmt - '0');
2005958: a0 00 40 10 add %g1, %l0, %l0
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
200595c: d0 0e 00 00 ldub [ %i0 ], %o0
width *= 10;
2005960: 85 2c 20 03 sll %l0, 3, %g2
}
if (*fmt == '-' ) {
minus = true;
fmt++;
}
while (*fmt >= '0' && *fmt <= '9' ) {
2005964: 82 02 3f d0 add %o0, -48, %g1
2005968: 82 08 60 ff and %g1, 0xff, %g1
200596c: 80 a0 60 09 cmp %g1, 9
2005970: 08 bf ff f5 bleu 2005944 <vprintk+0x68>
2005974: 83 2a 20 18 sll %o0, 0x18, %g1
width *= 10;
width += ((unsigned) *fmt - '0');
fmt++;
}
if ((c = *fmt) == 'l') {
2005978: 83 38 60 18 sra %g1, 0x18, %g1
200597c: 80 a0 60 6c cmp %g1, 0x6c
2005980: 12 80 00 05 bne 2005994 <vprintk+0xb8>
2005984: 83 2a 20 18 sll %o0, 0x18, %g1
lflag = true;
c = *++fmt;
2005988: b0 06 20 01 inc %i0
200598c: d0 0e 00 00 ldub [ %i0 ], %o0
}
if ( c == 'c' ) {
2005990: 83 2a 20 18 sll %o0, 0x18, %g1
2005994: 83 38 60 18 sra %g1, 0x18, %g1
2005998: 80 a0 60 63 cmp %g1, 0x63
200599c: 12 80 00 08 bne 20059bc <vprintk+0xe0>
20059a0: 80 a0 60 73 cmp %g1, 0x73
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
20059a4: d0 06 40 00 ld [ %i1 ], %o0
BSP_output_char(chr);
20059a8: c2 04 40 00 ld [ %l1 ], %g1
20059ac: 91 2a 20 18 sll %o0, 0x18, %o0
lflag = true;
c = *++fmt;
}
if ( c == 'c' ) {
/* need a cast here since va_arg() only takes fully promoted types */
char chr = (char) va_arg(ap, int);
20059b0: b2 06 60 04 add %i1, 4, %i1
BSP_output_char(chr);
20059b4: 10 80 00 5b b 2005b20 <vprintk+0x244>
20059b8: 91 3a 20 18 sra %o0, 0x18, %o0
continue;
}
if ( c == 's' ) {
20059bc: 12 80 00 33 bne 2005a88 <vprintk+0x1ac>
20059c0: 80 a0 60 4f cmp %g1, 0x4f
unsigned i, len;
char *s, *str;
str = va_arg(ap, char *);
20059c4: e6 06 40 00 ld [ %i1 ], %l3
if ( str == NULL ) {
20059c8: 80 a4 e0 00 cmp %l3, 0
20059cc: 12 80 00 03 bne 20059d8 <vprintk+0xfc>
20059d0: b2 06 60 04 add %i1, 4, %i1
20059d4: a6 10 00 1d mov %i5, %l3
20059d8: a4 10 20 00 clr %l2
str = "";
}
/* calculate length of string */
for ( len=0, s=str ; *s ; len++, s++ )
20059dc: c2 4c c0 12 ldsb [ %l3 + %l2 ], %g1
20059e0: 80 a0 60 00 cmp %g1, 0
20059e4: 32 bf ff fe bne,a 20059dc <vprintk+0x100>
20059e8: a4 04 a0 01 inc %l2
;
/* leading spaces */
if ( !minus )
20059ec: 80 8d 20 ff btst 0xff, %l4
20059f0: 02 80 00 07 be 2005a0c <vprintk+0x130>
20059f4: aa 10 00 12 mov %l2, %l5
for ( i=len ; i<width ; i++ )
BSP_output_char(' ');
/* no width option */
if (width == 0) {
20059f8: 10 80 00 09 b 2005a1c <vprintk+0x140>
20059fc: 80 a4 20 00 cmp %l0, 0
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
2005a00: aa 05 60 01 inc %l5
BSP_output_char(' ');
2005a04: 9f c0 40 00 call %g1
2005a08: 90 10 20 20 mov 0x20, %o0
for ( len=0, s=str ; *s ; len++, s++ )
;
/* leading spaces */
if ( !minus )
for ( i=len ; i<width ; i++ )
2005a0c: 80 a5 40 10 cmp %l5, %l0
2005a10: 2a bf ff fc bcs,a 2005a00 <vprintk+0x124>
2005a14: c2 04 40 00 ld [ %l1 ], %g1
BSP_output_char(' ');
/* no width option */
if (width == 0) {
2005a18: 80 a4 20 00 cmp %l0, 0
2005a1c: 22 80 00 02 be,a 2005a24 <vprintk+0x148>
2005a20: a0 10 00 12 mov %l2, %l0
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
2005a24: 80 a4 20 00 cmp %l0, 0
2005a28: 02 80 00 0c be 2005a58 <vprintk+0x17c>
2005a2c: 80 8d 20 ff btst 0xff, %l4
2005a30: 10 80 00 06 b 2005a48 <vprintk+0x16c>
2005a34: d0 4c c0 00 ldsb [ %l3 ], %o0
BSP_output_char(*str);
2005a38: c2 04 40 00 ld [ %l1 ], %g1
2005a3c: 9f c0 40 00 call %g1
2005a40: 01 00 00 00 nop
if (width == 0) {
width = len;
}
/* output the string */
for ( i=0 ; i<width && *str ; str++ )
2005a44: d0 4c c0 00 ldsb [ %l3 ], %o0
2005a48: 80 a2 20 00 cmp %o0, 0
2005a4c: 12 bf ff fb bne 2005a38 <vprintk+0x15c>
2005a50: a6 04 e0 01 inc %l3
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
2005a54: 80 8d 20 ff btst 0xff, %l4
2005a58: 12 80 00 08 bne 2005a78 <vprintk+0x19c>
2005a5c: 80 a4 80 10 cmp %l2, %l0
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2005a60: 10 80 00 6a b 2005c08 <vprintk+0x32c>
2005a64: b0 06 20 01 inc %i0
for ( i=0 ; i<width && *str ; str++ )
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
for ( i=len ; i<width ; i++ )
2005a68: a4 04 a0 01 inc %l2
BSP_output_char(' ');
2005a6c: 9f c0 40 00 call %g1
2005a70: 90 10 20 20 mov 0x20, %o0
for ( i=0 ; i<width && *str ; str++ )
BSP_output_char(*str);
/* trailing spaces */
if ( minus )
for ( i=len ; i<width ; i++ )
2005a74: 80 a4 80 10 cmp %l2, %l0
2005a78: 2a bf ff fc bcs,a 2005a68 <vprintk+0x18c>
2005a7c: c2 04 40 00 ld [ %l1 ], %g1
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2005a80: 10 80 00 62 b 2005c08 <vprintk+0x32c>
2005a84: b0 06 20 01 inc %i0
continue;
}
/* must be a numeric format or something unsupported */
if ( c == 'o' || c == 'O' ) {
2005a88: 22 80 00 2a be,a 2005b30 <vprintk+0x254>
2005a8c: 82 10 20 00 clr %g1
2005a90: 80 a0 60 6f cmp %g1, 0x6f
2005a94: 22 80 00 27 be,a 2005b30 <vprintk+0x254> <== NEVER TAKEN
2005a98: 82 10 20 00 clr %g1 <== NOT EXECUTED
base = 8; sign = false;
} else if ( c == 'i' || c == 'I' ||
2005a9c: 80 a0 60 49 cmp %g1, 0x49
2005aa0: 22 80 00 26 be,a 2005b38 <vprintk+0x25c>
2005aa4: 82 10 20 01 mov 1, %g1
2005aa8: 80 a0 60 69 cmp %g1, 0x69
2005aac: 22 80 00 23 be,a 2005b38 <vprintk+0x25c>
2005ab0: 82 10 20 01 mov 1, %g1
2005ab4: 80 a0 60 44 cmp %g1, 0x44
2005ab8: 22 80 00 20 be,a 2005b38 <vprintk+0x25c>
2005abc: 82 10 20 01 mov 1, %g1
2005ac0: 80 a0 60 64 cmp %g1, 0x64
2005ac4: 22 80 00 1d be,a 2005b38 <vprintk+0x25c>
2005ac8: 82 10 20 01 mov 1, %g1
c == 'd' || c == 'D' ) {
base = 10; sign = true;
} else if ( c == 'u' || c == 'U' ) {
2005acc: 80 a0 60 55 cmp %g1, 0x55
2005ad0: 22 80 00 1a be,a 2005b38 <vprintk+0x25c>
2005ad4: 82 10 20 00 clr %g1
2005ad8: 80 a0 60 75 cmp %g1, 0x75
2005adc: 32 80 00 04 bne,a 2005aec <vprintk+0x210>
2005ae0: 91 2a 20 18 sll %o0, 0x18, %o0
2005ae4: 10 80 00 15 b 2005b38 <vprintk+0x25c>
2005ae8: 82 10 20 00 clr %g1
base = 10; sign = false;
} else if ( c == 'x' || c == 'X' ) {
2005aec: 91 3a 20 18 sra %o0, 0x18, %o0
2005af0: 80 a2 20 58 cmp %o0, 0x58
2005af4: 02 80 00 06 be 2005b0c <vprintk+0x230>
2005af8: 82 10 20 00 clr %g1
2005afc: 80 a2 20 78 cmp %o0, 0x78
2005b00: 12 80 00 05 bne 2005b14 <vprintk+0x238>
2005b04: 80 a2 20 70 cmp %o0, 0x70
2005b08: 82 10 20 00 clr %g1
2005b0c: 10 80 00 0c b 2005b3c <vprintk+0x260>
2005b10: a4 10 20 10 mov 0x10, %l2
base = 16; sign = false;
} else if ( c == 'p' ) {
2005b14: 02 80 00 0a be 2005b3c <vprintk+0x260>
2005b18: a4 10 20 10 mov 0x10, %l2
base = 16; sign = false; lflag = true;
} else {
BSP_output_char(c);
2005b1c: c2 04 40 00 ld [ %l1 ], %g1
2005b20: 9f c0 40 00 call %g1
2005b24: b0 06 20 01 inc %i0
continue;
2005b28: 10 80 00 39 b 2005c0c <vprintk+0x330>
2005b2c: d0 4e 00 00 ldsb [ %i0 ], %o0
2005b30: 10 80 00 03 b 2005b3c <vprintk+0x260>
2005b34: a4 10 20 08 mov 8, %l2
2005b38: a4 10 20 0a mov 0xa, %l2
}
printNum(
2005b3c: e8 06 40 00 ld [ %i1 ], %l4
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
2005b40: 80 88 60 ff btst 0xff, %g1
BSP_output_char(c);
continue;
}
printNum(
lflag ? va_arg(ap, long) : (long) va_arg(ap, int),
2005b44: b2 06 60 04 add %i1, 4, %i1
unsigned long unsigned_num;
unsigned long n;
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
2005b48: 02 80 00 0d be 2005b7c <vprintk+0x2a0>
2005b4c: b6 0e e0 30 and %i3, 0x30, %i3
2005b50: 80 a5 20 00 cmp %l4, 0
2005b54: 36 80 00 12 bge,a 2005b9c <vprintk+0x2c0>
2005b58: a6 10 20 00 clr %l3
BSP_output_char('-');
2005b5c: c2 04 40 00 ld [ %l1 ], %g1
2005b60: 9f c0 40 00 call %g1
2005b64: 90 10 20 2d mov 0x2d, %o0
unsigned_num = (unsigned long) -num;
if (maxwidth) maxwidth--;
2005b68: 82 1c 20 00 xor %l0, 0, %g1
unsigned count;
char toPrint[20];
if ( sign && (num < 0) ) {
BSP_output_char('-');
unsigned_num = (unsigned long) -num;
2005b6c: a8 20 00 14 neg %l4
if (maxwidth) maxwidth--;
2005b70: 80 a0 00 01 cmp %g0, %g1
2005b74: 82 40 20 00 addx %g0, 0, %g1
2005b78: a0 24 00 01 sub %l0, %g1, %l0
} else {
unsigned_num = (unsigned long) num;
2005b7c: 10 80 00 08 b 2005b9c <vprintk+0x2c0>
2005b80: a6 10 20 00 clr %l3
}
count = 0;
while ((n = unsigned_num / base) > 0) {
toPrint[count++] = (char) (unsigned_num - (n * base));
2005b84: 40 00 50 8a call 2019dac <.umul>
2005b88: 92 10 00 12 mov %l2, %o1
2005b8c: 90 25 00 08 sub %l4, %o0, %o0
2005b90: a8 10 00 17 mov %l7, %l4
2005b94: d0 2d 80 13 stb %o0, [ %l6 + %l3 ]
2005b98: a6 10 00 15 mov %l5, %l3
} else {
unsigned_num = (unsigned long) num;
}
count = 0;
while ((n = unsigned_num / base) > 0) {
2005b9c: 90 10 00 14 mov %l4, %o0
2005ba0: 92 10 00 12 mov %l2, %o1
2005ba4: 40 00 50 bc call 2019e94 <.udiv>
2005ba8: aa 04 e0 01 add %l3, 1, %l5
2005bac: ae 92 20 00 orcc %o0, 0, %l7
2005bb0: 12 bf ff f5 bne 2005b84 <vprintk+0x2a8>
2005bb4: 82 07 80 13 add %fp, %l3, %g1
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
2005bb8: 10 80 00 05 b 2005bcc <vprintk+0x2f0>
2005bbc: e8 28 7f e8 stb %l4, [ %g1 + -24 ]
for (n=maxwidth ; n > count; n-- )
2005bc0: a0 04 3f ff add %l0, -1, %l0
BSP_output_char(lead);
2005bc4: 9f c0 40 00 call %g1
2005bc8: 90 10 00 1b mov %i3, %o0
toPrint[count++] = (char) (unsigned_num - (n * base));
unsigned_num = n;
}
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
2005bcc: 80 a4 00 15 cmp %l0, %l5
2005bd0: 38 bf ff fc bgu,a 2005bc0 <vprintk+0x2e4>
2005bd4: c2 04 40 00 ld [ %l1 ], %g1
2005bd8: a6 05 80 13 add %l6, %l3, %l3
2005bdc: 10 80 00 07 b 2005bf8 <vprintk+0x31c>
2005be0: a0 10 20 00 clr %l0
BSP_output_char(lead);
for (n = 0; n < count; n++) {
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
2005be4: c2 04 40 00 ld [ %l1 ], %g1
2005be8: d0 4f 00 02 ldsb [ %i4 + %g2 ], %o0
2005bec: 9f c0 40 00 call %g1
2005bf0: a0 04 20 01 inc %l0
toPrint[count++] = (char) unsigned_num;
for (n=maxwidth ; n > count; n-- )
BSP_output_char(lead);
for (n = 0; n < count; n++) {
2005bf4: a6 04 ff ff add %l3, -1, %l3
2005bf8: 80 a4 00 15 cmp %l0, %l5
2005bfc: 2a bf ff fa bcs,a 2005be4 <vprintk+0x308>
2005c00: c4 4c c0 00 ldsb [ %l3 ], %g2
void vprintk(
const char *fmt,
va_list ap
)
{
for (; *fmt != '\0'; fmt++) {
2005c04: b0 06 20 01 inc %i0
2005c08: d0 4e 00 00 ldsb [ %i0 ], %o0
2005c0c: 80 a2 20 00 cmp %o0, 0
2005c10: 12 bf ff 3c bne 2005900 <vprintk+0x24>
2005c14: 80 a2 20 25 cmp %o0, 0x25
sign,
width,
lead
);
}
}
2005c18: 81 c7 e0 08 ret
2005c1c: 81 e8 00 00 restore
0201b84c <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
201b84c: 9d e3 bf a0 save %sp, -96, %sp
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201b850: 03 00 80 75 sethi %hi(0x201d400), %g1
201b854: c2 00 62 a4 ld [ %g1 + 0x2a4 ], %g1 ! 201d6a4 <rtems_libio_number_iops>
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
201b858: 92 10 00 19 mov %i1, %o1
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
201b85c: 80 a6 00 01 cmp %i0, %g1
201b860: 1a 80 00 17 bcc 201b8bc <write+0x70> <== NEVER TAKEN
201b864: 94 10 00 1a mov %i2, %o2
iop = rtems_libio_iop( fd );
201b868: 03 00 80 78 sethi %hi(0x201e000), %g1
201b86c: e0 00 60 b4 ld [ %g1 + 0xb4 ], %l0 ! 201e0b4 <rtems_libio_iops>
201b870: 83 2e 20 06 sll %i0, 6, %g1
201b874: b1 2e 20 03 sll %i0, 3, %i0
201b878: b0 06 00 01 add %i0, %g1, %i0
201b87c: a0 04 00 18 add %l0, %i0, %l0
rtems_libio_check_is_open( iop );
201b880: c2 04 20 18 ld [ %l0 + 0x18 ], %g1
201b884: 80 88 61 00 btst 0x100, %g1
201b888: 02 80 00 0d be 201b8bc <write+0x70> <== NEVER TAKEN
201b88c: 80 a6 60 00 cmp %i1, 0
rtems_libio_check_buffer( buffer );
201b890: 12 80 00 06 bne 201b8a8 <write+0x5c> <== ALWAYS TAKEN
201b894: 80 a6 a0 00 cmp %i2, 0
201b898: 7f ff d4 2c call 2010948 <__errno> <== NOT EXECUTED
201b89c: 01 00 00 00 nop <== NOT EXECUTED
201b8a0: 10 80 00 12 b 201b8e8 <write+0x9c> <== NOT EXECUTED
201b8a4: 82 10 20 16 mov 0x16, %g1 ! 16 <PROM_START+0x16> <== NOT EXECUTED
rtems_libio_check_count( count );
201b8a8: 02 80 00 1c be 201b918 <write+0xcc>
201b8ac: 90 10 20 00 clr %o0
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
201b8b0: 80 88 60 04 btst 4, %g1
201b8b4: 32 80 00 06 bne,a 201b8cc <write+0x80> <== ALWAYS TAKEN
201b8b8: c2 04 20 40 ld [ %l0 + 0x40 ], %g1
201b8bc: 7f ff d4 23 call 2010948 <__errno> <== NOT EXECUTED
201b8c0: 01 00 00 00 nop <== NOT EXECUTED
201b8c4: 10 80 00 09 b 201b8e8 <write+0x9c> <== NOT EXECUTED
201b8c8: 82 10 20 09 mov 9, %g1 ! 9 <PROM_START+0x9> <== NOT EXECUTED
/*
* Now process the write() request.
*/
if ( !iop->handlers->write_h )
201b8cc: c2 00 60 0c ld [ %g1 + 0xc ], %g1
201b8d0: 80 a0 60 00 cmp %g1, 0
201b8d4: 12 80 00 08 bne 201b8f4 <write+0xa8> <== ALWAYS TAKEN
201b8d8: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( ENOTSUP );
201b8dc: 7f ff d4 1b call 2010948 <__errno> <== NOT EXECUTED
201b8e0: 01 00 00 00 nop <== NOT EXECUTED
201b8e4: 82 10 20 86 mov 0x86, %g1 ! 86 <PROM_START+0x86> <== NOT EXECUTED
201b8e8: c2 22 00 00 st %g1, [ %o0 ] <== NOT EXECUTED
201b8ec: 10 80 00 0b b 201b918 <write+0xcc> <== NOT EXECUTED
201b8f0: 90 10 3f ff mov -1, %o0 <== NOT EXECUTED
rc = (*iop->handlers->write_h)( iop, buffer, count );
201b8f4: 9f c0 40 00 call %g1
201b8f8: 90 10 00 10 mov %l0, %o0
if ( rc > 0 )
201b8fc: 80 a2 20 00 cmp %o0, 0
201b900: 04 80 00 06 ble 201b918 <write+0xcc> <== NEVER TAKEN
201b904: 85 3a 20 1f sra %o0, 0x1f, %g2
iop->offset += rc;
201b908: d8 1c 20 10 ldd [ %l0 + 0x10 ], %o4
201b90c: 86 83 40 08 addcc %o5, %o0, %g3
201b910: 84 43 00 02 addx %o4, %g2, %g2
201b914: c4 3c 20 10 std %g2, [ %l0 + 0x10 ]
return rc;
}
201b918: 81 c7 e0 08 ret
201b91c: 91 e8 00 08 restore %g0, %o0, %o0
02006d1c <writev>:
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
2006d1c: 9d e3 bf a0 save %sp, -96, %sp
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
2006d20: 03 00 80 80 sethi %hi(0x2020000), %g1
2006d24: c2 00 61 94 ld [ %g1 + 0x194 ], %g1 ! 2020194 <rtems_libio_number_iops>
2006d28: 80 a6 00 01 cmp %i0, %g1
2006d2c: 1a 80 00 0e bcc 2006d64 <writev+0x48> <== NEVER TAKEN
2006d30: 01 00 00 00 nop
iop = rtems_libio_iop( fd );
2006d34: 03 00 80 84 sethi %hi(0x2021000), %g1
2006d38: e4 00 63 74 ld [ %g1 + 0x374 ], %l2 ! 2021374 <rtems_libio_iops>
2006d3c: 83 2e 20 06 sll %i0, 6, %g1
2006d40: b1 2e 20 03 sll %i0, 3, %i0
2006d44: b0 06 00 01 add %i0, %g1, %i0
2006d48: a4 04 80 18 add %l2, %i0, %l2
rtems_libio_check_is_open( iop );
2006d4c: c2 04 a0 18 ld [ %l2 + 0x18 ], %g1
2006d50: 80 88 61 00 btst 0x100, %g1
2006d54: 02 80 00 04 be 2006d64 <writev+0x48>
2006d58: 80 88 60 04 btst 4, %g1
rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
2006d5c: 12 80 00 06 bne 2006d74 <writev+0x58> <== ALWAYS TAKEN
2006d60: 80 a6 60 00 cmp %i1, 0
2006d64: 40 00 2b 2d call 2011a18 <__errno>
2006d68: b0 10 3f ff mov -1, %i0
2006d6c: 10 80 00 1b b 2006dd8 <writev+0xbc>
2006d70: 82 10 20 09 mov 9, %g1
/*
* Argument validation on IO vector
*/
if ( !iov )
2006d74: 02 80 00 16 be 2006dcc <writev+0xb0>
2006d78: 80 a6 a0 00 cmp %i2, 0
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
2006d7c: 04 80 00 14 ble 2006dcc <writev+0xb0>
2006d80: 80 a6 a4 00 cmp %i2, 0x400
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
2006d84: 14 80 00 12 bg 2006dcc <writev+0xb0> <== NEVER TAKEN
2006d88: 01 00 00 00 nop
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !iop->handlers->write_h )
2006d8c: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1
2006d90: c2 00 60 0c ld [ %g1 + 0xc ], %g1
2006d94: 80 a0 60 00 cmp %g1, 0
2006d98: 12 80 00 06 bne 2006db0 <writev+0x94> <== ALWAYS TAKEN
2006d9c: 86 10 20 01 mov 1, %g3
rtems_set_errno_and_return_minus_one( ENOTSUP );
2006da0: 40 00 2b 1e call 2011a18 <__errno> <== NOT EXECUTED
2006da4: b0 10 3f ff mov -1, %i0 <== NOT EXECUTED
2006da8: 10 80 00 0c b 2006dd8 <writev+0xbc> <== NOT EXECUTED
2006dac: 82 10 20 86 mov 0x86, %g1 <== NOT EXECUTED
2006db0: 84 10 00 19 mov %i1, %g2
2006db4: 88 10 20 00 clr %g4
2006db8: 82 10 20 00 clr %g1
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
if ( !iov[v].iov_base )
2006dbc: da 00 80 00 ld [ %g2 ], %o5
2006dc0: 80 a3 60 00 cmp %o5, 0
2006dc4: 12 80 00 08 bne 2006de4 <writev+0xc8>
2006dc8: 88 01 20 01 inc %g4
rtems_set_errno_and_return_minus_one( EINVAL );
2006dcc: 40 00 2b 13 call 2011a18 <__errno>
2006dd0: b0 10 3f ff mov -1, %i0
2006dd4: 82 10 20 16 mov 0x16, %g1
2006dd8: c2 22 00 00 st %g1, [ %o0 ]
2006ddc: 81 c7 e0 08 ret
2006de0: 81 e8 00 00 restore
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
2006de4: da 00 a0 04 ld [ %g2 + 4 ], %o5
* this loop does that check as well and sets "all-zero" appropriately.
* The variable "all_zero" is used as an early exit point before
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
2006de8: 84 00 a0 08 add %g2, 8, %g2
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len < 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
2006dec: 80 a0 00 0d cmp %g0, %o5
2006df0: 98 40 3f ff addx %g0, -1, %o4
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
2006df4: 9a 80 40 0d addcc %g1, %o5, %o5
2006df8: 0c bf ff f5 bneg 2006dcc <writev+0xb0>
2006dfc: 86 08 c0 0c and %g3, %o4, %g3
2006e00: 80 a3 40 01 cmp %o5, %g1
2006e04: 06 bf ff f2 bl 2006dcc <writev+0xb0>
2006e08: 80 a1 00 1a cmp %g4, %i2
* this loop does that check as well and sets "all-zero" appropriately.
* The variable "all_zero" is used as an early exit point before
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
2006e0c: 06 bf ff ec bl 2006dbc <writev+0xa0>
2006e10: 82 10 00 0d mov %o5, %g1
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
2006e14: 80 88 e0 ff btst 0xff, %g3
2006e18: a6 10 20 00 clr %l3
2006e1c: 12 bf ff f0 bne 2006ddc <writev+0xc0>
2006e20: b0 10 20 00 clr %i0
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
2006e24: d4 06 60 04 ld [ %i1 + 4 ], %o2
2006e28: 80 a2 a0 00 cmp %o2, 0
2006e2c: 02 80 00 17 be 2006e88 <writev+0x16c> <== NEVER TAKEN
2006e30: a6 04 e0 01 inc %l3
continue;
bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len );
2006e34: c2 04 a0 40 ld [ %l2 + 0x40 ], %g1
2006e38: d2 06 40 00 ld [ %i1 ], %o1
2006e3c: c2 00 60 0c ld [ %g1 + 0xc ], %g1
2006e40: 9f c0 40 00 call %g1
2006e44: 90 10 00 12 mov %l2, %o0
if ( bytes < 0 )
2006e48: 80 a2 20 00 cmp %o0, 0
2006e4c: 16 80 00 04 bge 2006e5c <writev+0x140> <== ALWAYS TAKEN
2006e50: 01 00 00 00 nop
2006e54: 81 c7 e0 08 ret <== NOT EXECUTED
2006e58: 91 e8 3f ff restore %g0, -1, %o0 <== NOT EXECUTED
return -1;
if ( bytes > 0 ) {
2006e5c: 02 80 00 07 be 2006e78 <writev+0x15c> <== NEVER TAKEN
2006e60: a1 3a 20 1f sra %o0, 0x1f, %l0
iop->offset += bytes;
2006e64: c4 1c a0 10 ldd [ %l2 + 0x10 ], %g2
2006e68: 86 80 c0 08 addcc %g3, %o0, %g3
total += bytes;
2006e6c: b0 06 00 08 add %i0, %o0, %i0
if ( bytes < 0 )
return -1;
if ( bytes > 0 ) {
iop->offset += bytes;
2006e70: 84 40 80 10 addx %g2, %l0, %g2
2006e74: c4 3c a0 10 std %g2, [ %l2 + 0x10 ]
total += bytes;
}
if (bytes != iov[ v ].iov_len)
2006e78: c2 06 60 04 ld [ %i1 + 4 ], %g1
2006e7c: 80 a2 00 01 cmp %o0, %g1
2006e80: 12 80 00 05 bne 2006e94 <writev+0x178> <== NEVER TAKEN
2006e84: 01 00 00 00 nop
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
2006e88: 80 a4 c0 1a cmp %l3, %i2
2006e8c: 06 bf ff e6 bl 2006e24 <writev+0x108>
2006e90: b2 06 60 08 add %i1, 8, %i1
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
2006e94: 81 c7 e0 08 ret
2006e98: 81 e8 00 00 restore